Files
crm.clientright.ru/modules/Project/views/EditAjax.php

38 lines
1.4 KiB
PHP
Executable File

<?php
/*+***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*************************************************************************************/
class Project_EditAjax_View extends Vtiger_IndexAjax_View {
function __construct() {
parent::__construct();
$this->exposeMethod('editColor');
}
public function process(Vtiger_Request $request) {
$mode = $request->get('mode');
if (!empty($mode)) {
$this->invokeExposedMethod($mode, $request);
return;
}
}
public function editColor(Vtiger_Request $request) {
$viewer = $this->getViewer($request);
$moduleName = $request->get('module');
$parentRecordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
$viewer->assign('MODULE', $moduleName);
$viewer->assign('STATUS', $request->get('status'));
$viewer->assign('TASK_STATUS', Vtiger_Util_Helper::getPickListValues('projecttaskstatus'));
$viewer->assign('TASK_STATUS_COLOR', $parentRecordModel->getStatusColors());
$viewer->view('EditColor.tpl', $moduleName);
}
}