Beispiel #1
0
 function showTabWorkersAction()
 {
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->assign('path', $this->_TPL_PATH);
     $workers = DAO_Worker::getAllWithDisabled();
     $tpl->assign('workers', $workers);
     $teams = DAO_Group::getAll();
     $tpl->assign('teams', $teams);
     $tpl->assign('response_uri', 'config/workers');
     $defaults = new C4_AbstractViewModel();
     $defaults->id = 'workers_cfg';
     $defaults->class_name = 'C4_WorkerView';
     $view = C4_AbstractViewLoader::getView($defaults->id, $defaults);
     $tpl->assign('view', $view);
     $tpl->assign('view_fields', C4_WorkerView::getFields());
     $tpl->assign('view_searchable_fields', C4_WorkerView::getSearchFields());
     $tpl->assign('license', CerberusLicense::getInstance());
     $tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/workers/index.tpl');
 }
Beispiel #2
0
 function showTabWorkersAction()
 {
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->assign('path', $this->_TPL_PATH);
     $workers = DAO_Worker::getAllWithDisabled();
     $tpl->assign('workers', $workers);
     $tpl->assign('response_uri', 'setup/workers');
     $defaults = new Feg_AbstractViewModel();
     $defaults->id = 'workers_cfg';
     $defaults->class_name = 'View_Worker';
     $view = Feg_AbstractViewLoader::getView($defaults->id, $defaults);
     $tpl->assign('view', $view);
     $tpl->assign('view_fields', View_Worker::getFields());
     $tpl->assign('view_searchable_fields', View_Worker::getSearchFields());
     $tpl->assign('license', FegLicense::getInstance());
     $tpl->display('file:' . $this->_TPL_PATH . 'setup/tabs/workers/index.tpl');
 }
Beispiel #3
0
 function showTabWorkersAction()
 {
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->cache_lifetime = "0";
     $tpl->assign('path', $this->_TPL_PATH);
     $workers = DAO_Worker::getAllWithDisabled();
     $tpl->assign('workers', $workers);
     $teams = DAO_Group::getAll();
     $tpl->assign('teams', $teams);
     $tpl->assign('license', CerberusLicense::getInstance());
     $tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/workers/index.tpl');
 }
Beispiel #4
0
 function showOppNotesTabAction()
 {
     @($opp_id = DevblocksPlatform::importGPC($_REQUEST['id'], 'integer'));
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl_path = dirname(dirname(__FILE__)) . '/templates/';
     $tpl->assign('path', $tpl_path);
     $opp = DAO_CrmOpportunity::get($opp_id);
     $tpl->assign('opp', $opp);
     list($notes, $null) = DAO_Note::search(array(new DevblocksSearchCriteria(SearchFields_Note::SOURCE_EXT_ID, '=', CrmNotesSource_Opportunity::ID), new DevblocksSearchCriteria(SearchFields_Note::SOURCE_ID, '=', $opp->id)), 25, 0, DAO_Note::CREATED, false, false);
     $tpl->assign('notes', $notes);
     $active_workers = DAO_Worker::getAllActive();
     $tpl->assign('active_workers', $active_workers);
     $workers = DAO_Worker::getAllWithDisabled();
     $tpl->assign('workers', $workers);
     $tpl->display('file:' . $tpl_path . 'crm/opps/display/tabs/notes.tpl');
 }
Beispiel #5
0
 function showTabNotesAction()
 {
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->assign('path', $this->_TPL_PATH);
     @($org_id = DevblocksPlatform::importGPC($_REQUEST['org']));
     $org = DAO_ContactOrg::get($org_id);
     $tpl->assign('org', $org);
     list($notes, $null) = DAO_Note::search(array(new DevblocksSearchCriteria(SearchFields_Note::SOURCE_EXT_ID, '=', ChNotesSource_Org::ID), new DevblocksSearchCriteria(SearchFields_Note::SOURCE_ID, '=', $org->id)), 25, 0, SearchFields_Note::CREATED, false, false);
     $tpl->assign('notes', $notes);
     $active_workers = DAO_Worker::getAllActive();
     $tpl->assign('active_workers', $active_workers);
     $workers = DAO_Worker::getAllWithDisabled();
     $tpl->assign('workers', $workers);
     $tpl->display('file:' . $this->_TPL_PATH . 'contacts/orgs/tabs/notes.tpl');
 }
Beispiel #6
0
 function showTaskNotesTabAction()
 {
     @($task_id = DevblocksPlatform::importGPC($_REQUEST['id'], 'integer'));
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl_path = dirname(dirname(dirname(__FILE__))) . '/templates/';
     $tpl->assign('path', $tpl_path);
     $visit = CerberusApplication::getVisit();
     //		$visit->set(self::SESSION_OPP_TAB, 'notes');
     $task = DAO_Task::get($task_id);
     $tpl->assign('task', $task);
     list($notes, $null) = DAO_Note::search(array(new DevblocksSearchCriteria(SearchFields_Note::SOURCE_EXT_ID, '=', ChNotesSource_Task::ID), new DevblocksSearchCriteria(SearchFields_Note::SOURCE_ID, '=', $task->id)), 25, 0, SearchFields_Note::CREATED, false, false);
     $tpl->assign('notes', $notes);
     $active_workers = DAO_Worker::getAllActive();
     $tpl->assign('active_workers', $active_workers);
     $workers = DAO_Worker::getAllWithDisabled();
     $tpl->assign('workers', $workers);
     $tpl->display('file:' . $tpl_path . 'tasks/display/tabs/notes.tpl');
 }