<?php if ($_valid && !is_callable('content_5605b6548373c')) {function content_5605b6548373c($_smarty_tpl) {?> <?php $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?><?php $_smarty_tpl->tpl_vars['SEARCH_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['SEARCH_INFO']->value['searchValue'], null, 0);?><div class="row-fluid"><select class="select2 listSearchContributor" name="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');?> " style="width:90px;" data-fieldinfo='<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['FIELD_INFO']->value, ENT_QUOTES, 'UTF-8', true);?> '><option value=""><?php echo vtranslate('LBL_SELECT_OPTION','Vtiger');?> </option><option value="1" <?php if ($_smarty_tpl->tpl_vars['SEARCH_VALUES']->value==1){?> selected<?php }?>><?php echo vtranslate('LBL_YES',$_smarty_tpl->tpl_vars['MODULE']->value);?> </option><option value="0" <?php if ($_smarty_tpl->tpl_vars['SEARCH_VALUES']->value=='0'){?> selected<?php }?>><?php echo vtranslate('LBL_NO',$_smarty_tpl->tpl_vars['MODULE']->value);?> </option></select></div><?php }} ?>
function content_54d38169ec1d6($_smarty_tpl) { ?> <span id="shortcut_<?php echo $_smarty_tpl->tpl_vars['SETTINGS_SHORTCUT']->value->getId(); ?> " data-actionurl="<?php echo $_smarty_tpl->tpl_vars['SETTINGS_SHORTCUT']->value->getPinUnpinActionUrl(); ?> " class="span3 contentsBackground well cursorPointer moduleBlock" data-url="<?php echo $_smarty_tpl->tpl_vars['SETTINGS_SHORTCUT']->value->getUrl(); ?> "><button data-id="<?php echo $_smarty_tpl->tpl_vars['SETTINGS_SHORTCUT']->value->getId(); ?> " title="<?php echo vtranslate('LBL_REMOVE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> " style="margin-right: -2%;margin-top: -5%;" title="Close" type="button" class="unpin close hide">x</button><h5 class="themeTextColor"><?php echo vtranslate($_smarty_tpl->tpl_vars['SETTINGS_SHORTCUT']->value->get('name'), $_smarty_tpl->tpl_vars['MODULE']->value); ?> </h5><div><?php echo vtranslate($_smarty_tpl->tpl_vars['SETTINGS_SHORTCUT']->value->get('description'), $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div></span> <?php }
function getDetailViewRelatedLinks() { $recordModel = $this->getRecord(); $moduleName = $recordModel->getModuleName(); $parentModuleModel = $this->getModule(); $relatedLinks = array(); if ($parentModuleModel->isSummaryViewSupported()) { $relatedLinks = array(array('linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('LBL_RECORD_SUMMARY', $moduleName), 'linkKey' => 'LBL_RECORD_SUMMARY', 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showDetailViewByMode&requestMode=summary', 'linkicon' => '', 'related' => 'Summary')); } //link which shows the summary information(generally detail of record) $relatedLinks[] = array('linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('LBL_RECORD_DETAILS', $moduleName), 'linkKey' => 'LBL_RECORD_DETAILS', 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showDetailViewByMode&requestMode=full', 'linkicon' => '', 'related' => 'Details'); if ('Contacts' != $moduleName) { $relatedLinks[] = array('linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('LBL_RECORD_SUMMARY_PRODUCTS_SERVICES', $moduleName), 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showRelatedProductsServices&requestMode=summary', 'linkicon' => '', 'linkKey' => 'LBL_RECORD_SUMMARY', 'related' => 'ProductsAndServices'); } $modCommentsModel = Vtiger_Module_Model::getInstance('ModComments'); if ($parentModuleModel->isCommentEnabled() && $modCommentsModel->isPermitted('DetailView')) { $relatedLinks[] = array('linktype' => 'DETAILVIEWTAB', 'linklabel' => 'ModComments', 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showAllComments', 'linkicon' => '', 'related' => 'Comments'); } if ($parentModuleModel->isTrackingEnabled()) { $relatedLinks[] = array('linktype' => 'DETAILVIEWTAB', 'linklabel' => 'LBL_UPDATES', 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showRecentActivities&page=1', 'linkicon' => '', 'related' => 'Updates'); } $relationModels = $parentModuleModel->getRelations(); foreach ($relationModels as $relation) { //TODO : Way to get limited information than getting all the information $link = array('linktype' => 'DETAILVIEWRELATED', 'linklabel' => $relation->get('label'), 'linkurl' => $relation->getListUrl($recordModel), 'linkicon' => '', 'relatedModuleName' => $relation->get('relatedModuleName')); $relatedLinks[] = $link; } return $relatedLinks; }
function content_566e8feb636a8($_smarty_tpl) { ?> <center><?php echo vtranslate('LBL_LOADING_PLEASE_WAIT'); ?> ...</center> <form class="form-horizontal" name="step7" method="post" action="?module=Users&action=Login"> <img src="//stats.vtiger.com/stats.php?uid=<?php echo $_smarty_tpl->tpl_vars['APPUNIQUEKEY']->value; ?> &v=<?php echo $_smarty_tpl->tpl_vars['CURRENT_VERSION']->value; ?> &type=I&industry=<?php echo urlencode($_smarty_tpl->tpl_vars['INDUSTRY']->value); ?> " alt='' title='' border=0 width='1px' height='1px'> <input type=hidden name="username" value="admin" > <input type=hidden name="password" value="<?php echo $_smarty_tpl->tpl_vars['PASSWORD']->value; ?> " > </form> <script type="text/javascript"> jQuery(function() { /* Delay to let page load complete */ setTimeout(function() { jQuery('form[name="step7"]').submit(); }, 150); }); </script> <?php }
public function process(Vtiger_Request $request) { $recordId = $request->get('record'); $qualifiedModuleName = $request->getModule(false); if ($recordId) { $recordModel = Settings_MailConverter_Record_Model::getInstanceById($recordId); } else { $recordModel = Settings_MailConverter_Record_Model::getCleanInstance(); } $recordModel->set('scannerOldName', $request->get('scannerOldName')); $fieldsList = $recordModel->getModule()->getFields(); foreach ($fieldsList as $fieldName => $fieldModel) { $recordModel->set($fieldName, $request->get($fieldName)); } $status = $recordModel->save(); $response = new Vtiger_Response(); if ($status) { $result = array('message' => vtranslate('LBL_SAVED_SUCCESSFULLY', $qualifiedModuleName)); $result['id'] = $recordModel->getId(); $response->setResult($result); } else { $response->setError(vtranslate('LBL_CONNECTION_TO_MAILBOX_FAILED', $qualifiedModuleName)); } $response->emit(); }
function checkPermission(Vtiger_Request $request) { $currentUserModel = Users_Record_Model::getCurrentUserModel(); if (!$currentUserModel->isAdminUser()) { throw new AppException(vtranslate('LBL_PERMISSION_DENIED', 'Vtiger')); } }
/** * Save date * @param <Object> $request * @return true if saved, false otherwise */ public function save(Vtiger_Request $request) { $response = new Vtiger_Response(); $moduleName = 'Settings:' . $request->getModule(); try { $id = $request->get('holidayId'); $date = DateTimeField::convertToDBFormat($request->get('holidayDate')); $name = $request->get('holidayName'); $type = $request->get('holidayType'); if (empty($name) || empty($date)) { $response->setResult(array('success' => false, 'message' => vtranslate('LBL_FILL_FORM_ERROR', $moduleName))); } else { if (!empty($id)) { if (Settings_PublicHoliday_Module_Model::edit($id, $date, $name, $type)) { $response->setResult(array('success' => true, 'message' => vtranslate('LBL_EDIT_DATE_OK', $moduleName))); } else { $response->setResult(array('success' => false, 'message' => vtranslate('LBL_EDIT_DATE_ERROR', $moduleName))); } } else { if (Settings_PublicHoliday_Module_Model::save($date, $name, $type)) { $response->setResult(array('success' => true, 'message' => vtranslate('LBL_NEW_DATE_OK', $moduleName))); } else { $response->setResult(array('success' => false, 'message' => vtranslate('LBL_NEW_DATE_ERROR', $moduleName))); } } } } catch (Exception $e) { $response->setError($e->getCode(), $e->getMessage()); } $response->emit(); }
<?php if ($_valid && !is_callable('content_55c5c16a70ef6')) {function content_55c5c16a70ef6($_smarty_tpl) {?> <script type="text/javascript"> Vtiger_Barchat_Widget_Js('Vtiger_Ticketsbystatus_Widget_Js',{},{}); </script> <div class="dashboardWidgetHeader"> <?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("dashboards/WidgetHeader.tpl",$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('SETTING_EXIST'=>true), 0);?> <div class="row-fluid filterContainer hide" style="position:absolute;z-index:100001"> <div class="row-fluid"> <span class="span5"> <span class="pull-right"> <?php echo vtranslate('Created Time',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> <?php echo vtranslate('LBL_BETWEEN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> </span> </span> <span class="span4"> <input type="text" name="createdtime" class="dateRange widgetFilter" /> </span> </div> <div class="row-fluid"> <span class="span5"> <span class="pull-right"> <?php echo vtranslate('Assigned To',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> </span> </span> <span class="span4"> <?php $_smarty_tpl->tpl_vars['CURRENT_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENTUSER']->value->getId(), null, 0);?> <select class="widgetFilter" name="owner"> <option value=""><?php echo vtranslate('LBL_ALL',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> </option> <?php $_smarty_tpl->tpl_vars['USER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['USER_NAME']->_loop = false; $_smarty_tpl->tpl_vars['USER_ID'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['ACCESSIBLE_USERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['USER_NAME']->key => $_smarty_tpl->tpl_vars['USER_NAME']->value){ $_smarty_tpl->tpl_vars['USER_NAME']->_loop = true; $_smarty_tpl->tpl_vars['USER_ID']->value = $_smarty_tpl->tpl_vars['USER_NAME']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['USER_ID']->value;?> "> <?php if ($_smarty_tpl->tpl_vars['USER_ID']->value==$_smarty_tpl->tpl_vars['CURRENTUSER']->value->getId()){?> <?php echo vtranslate('LBL_MINE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?> <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['USER_NAME']->value;?> <?php }?> </option> <?php } ?> </select> </span> </div> </div> </div> <div class="dashboardWidgetContent"> <?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("dashboards/DashBoardWidgetContents.tpl",$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> </div><?php }} ?>
public function process(Vtiger_Request $request) { $moduleName = $request->getModule(); $documentIdsList = $this->getRecordsListFromRequest($request); $folderId = $request->get('folderid'); if (!empty($documentIdsList)) { foreach ($documentIdsList as $documentId) { $documentModel = Vtiger_Record_Model::getInstanceById($documentId, $moduleName); if (Users_Privileges_Model::isPermitted($moduleName, 'EditView', $documentId)) { $documentModel->set('folderid', $folderId); $documentModel->set('mode', 'edit'); $documentModel->save(); } else { $documentsMoveDenied[] = $documentModel->getName(); } } } if (empty($documentsMoveDenied)) { $result = array('success' => true, 'message' => vtranslate('LBL_DOCUMENTS_MOVED_SUCCESSFULLY', $moduleName)); } else { $result = array('success' => false, 'message' => vtranslate('LBL_DENIED_DOCUMENTS', $moduleName), 'LBL_RECORDS_LIST' => $documentsMoveDenied); } $response = new Vtiger_Response(); $response->setResult($result); $response->emit(); }
public function process(Vtiger_Request $request) { $recordId = $request->get('record'); $scannerId = $request->get('scannerId'); $action = $request->get('action1'); $request->set('action', $action); $qualifiedModuleName = $request->getModule(false); if ($recordId) { $recordModel = Settings_MailConverter_RuleRecord_Model::getInstanceById($recordId); } else { $recordModel = Settings_MailConverter_RuleRecord_Model::getCleanInstance($scannerId); } $recordModel->assignedTo = $request->get('assignedTo'); $recordModel->cc = $request->get('cc'); $recordModel->bcc = $request->get('bcc'); $fieldsList = $recordModel->getFields(); foreach ($fieldsList as $fieldName) { $recordModel->set($fieldName, $request->get($fieldName)); } $recordModel->set('newAction', $request->get('action')); $ruleId = $recordModel->save(); $response = new Vtiger_Response(); $response->setResult(array('message' => vtranslate('LBL_SAVED_SUCCESSFULLY', $qualifiedModuleName), 'id' => $ruleId, 'scannerId' => $scannerId)); $response->emit(); }
public function save(Vtiger_Request $request) { $fieldId = $request->get('fieldid'); $fieldInstance = Vtiger_Field_Model::getInstance($fieldId); $fields = ['presence', 'quickcreate', 'summaryfield', 'helpinfo', 'generatedtype', 'masseditable', 'displaytype']; foreach ($request->getAll() as $key => $value) { if ($key == 'mandatory') { $fieldInstance->updateTypeofDataFromMandatory($value); } if (in_array($key, $fields)) { $fieldInstance->set($key, $value); } } $defaultValue = $request->get('fieldDefaultValue'); if ($fieldInstance->getFieldDataType() == 'date') { $dateInstance = new Vtiger_Date_UIType(); $defaultValue = $dateInstance->getDBInsertedValue($defaultValue); } if ($request->has('fieldMask')) { $fieldInstance->set('fieldparams', $request->get('fieldMask')); } if (is_array($defaultValue)) { $defaultValue = implode(' |##| ', $defaultValue); } $fieldInstance->set('defaultvalue', $defaultValue); $response = new Vtiger_Response(); try { $fieldInstance->save(); $response->setResult(array('success' => true, 'presence' => $request->get('presence'), 'mandatory' => $fieldInstance->isMandatory(), 'label' => vtranslate($fieldInstance->get('label'), $request->get('sourceModule')))); } catch (Exception $e) { $response->setError($e->getCode(), $e->getMessage()); } $response->emit(); }
public function getMenuName($row, $settings = false) { switch ($row['type']) { case 0: $name = empty($row['label']) ? $row['name'] : $row['label']; break; case 3: $name = 'LBL_SEPARATOR'; break; case 5: if ($row['label'] != '') { $name = $row['label']; } elseif ($settings) { $name = vtranslate('LBL_QUICK_CREATE_MODULE', 'Menu') . ': ' . Vtiger_Menu_Model::vtranslateMenu('SINGLE_' . $row['name'], $row['name']); } break; case 6: $name = 'LBL_HOME'; break; case 7: $adb = PearDatabase::getInstance(); $result = $adb->pquery('SELECT viewname,entitytype FROM vtiger_customview WHERE cvid=?', [$row['dataurl']]); $data = $adb->raw_query_result_rowdata($result, 0); if ($settings) { $name = Vtiger_Menu_Model::vtranslateMenu($data['entitytype'], $data['entitytype']) . ': ' . vtranslate($data['viewname'], $data['entitytype']); } else { $name = Vtiger_Menu_Model::vtranslateMenu($data['viewname'], $data['entitytype']); } break; default: $name = $row['label']; break; } return $name; }
public function showFieldLayout(Vtiger_Request $request) { $sourceModule = $request->get('sourceModule'); $supportedModulesList = Settings_LayoutEditor_Module_Model::getSupportedModules(); if (empty($sourceModule)) { //To get the first element $sourceModule = reset($supportedModulesList); } $moduleModel = Settings_LayoutEditor_Module_Model::getInstanceByName($sourceModule); $fieldModels = $moduleModel->getFields(); $blockModels = $moduleModel->getBlocks(); $blockIdFieldMap = array(); $inactiveFields = array(); foreach ($fieldModels as $fieldModel) { $blockIdFieldMap[$fieldModel->getBlockId()][$fieldModel->getName()] = $fieldModel; if (!$fieldModel->isActiveField()) { $inactiveFields[$fieldModel->getBlockId()][$fieldModel->getId()] = vtranslate($fieldModel->get('label'), $sourceModule); } } foreach ($blockModels as $blockLabel => $blockModel) { $fieldModelList = $blockIdFieldMap[$blockModel->get('id')]; $blockModel->setFields($fieldModelList); } $qualifiedModule = $request->getModule(false); $viewer = $this->getViewer($request); $viewer->assign('SELECTED_MODULE_NAME', $sourceModule); $viewer->assign('SUPPORTED_MODULES', $supportedModulesList); $viewer->assign('SELECTED_MODULE_MODEL', $moduleModel); $viewer->assign('BLOCKS', $blockModels); $viewer->assign('ADD_SUPPORTED_FIELD_TYPES', $moduleModel->getAddSupportedFieldTypes()); $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel()); $viewer->assign('QUALIFIED_MODULE', $qualifiedModule); $viewer->assign('IN_ACTIVE_FIELDS', $inactiveFields); $viewer->view('Index.tpl', $qualifiedModule); }
public function process(Vtiger_Request $request) { $moduleName = $request->getModule(); $moduleModel = Vtiger_Module_Model::getInstance($moduleName); if ($request->get('selected_ids') == 'all' && $request->get('mode') == 'FindDuplicates') { $recordIds = Vtiger_FindDuplicate_Model::getMassDeleteRecords($request); } else { $recordIds = $this->getRecordsListFromRequest($request); } foreach ($recordIds as $recordId) { if (Users_Privileges_Model::isPermitted($moduleName, 'Delete', $recordId)) { $recordModel = Vtiger_Record_Model::getInstanceById($recordId, $moduleModel); $recordModel->delete(); } else { $permission = 'No'; } } if ($permission === 'No') { throw new AppException(vtranslate('LBL_PERMISSION_DENIED')); } $cvId = $request->get('viewname'); $response = new Vtiger_Response(); $response->setResult(array('viewname' => $cvId, 'module' => $moduleName)); $response->emit(); }
function content_54d2436e8ce6e($_smarty_tpl) { ?> <!DOCTYPE html><html><head><title><?php echo vtranslate($_smarty_tpl->tpl_vars['PAGETITLE']->value, $_smarty_tpl->tpl_vars['MODULE_NAME']->value); ?> </title><link REL="SHORTCUT ICON" HREF="layouts/vlayout/skins/images/favicon.ico"><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" href="libraries/jquery/chosen/chosen.css" type="text/css" media="screen" /><link rel="stylesheet" href="libraries/jquery/jquery-ui/css/custom-theme/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" /><link rel="stylesheet" href="libraries/jquery/select2/select2.css" type="text/css" media="screen" /><link rel="stylesheet" href="libraries/bootstrap/css/bootstrap.css" type="text/css" media="screen" /><link rel="stylesheet" href="resources/styles.css" type="text/css" media="screen" /><link rel="stylesheet" href="libraries/jquery/posabsolute-jQuery-Validation-Engine/css/validationEngine.jquery.css" /><link rel="stylesheet" href="libraries/jquery/select2/select2.css" /><link rel="stylesheet" href="libraries/guidersjs/guiders-1.2.6.css"/><link rel="stylesheet" href="libraries/jquery/pnotify/jquery.pnotify.default.css"/><link rel="stylesheet" href="libraries/jquery/pnotify/use for pines style icons/jquery.pnotify.default.icons.css"/><link rel="stylesheet" media="screen" type="text/css" href="libraries/jquery/datepicker/css/datepicker.css" /><?php $_smarty_tpl->tpl_vars['cssModel'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['cssModel']->_loop = false; $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['STYLES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['cssModel']->key => $_smarty_tpl->tpl_vars['cssModel']->value) { $_smarty_tpl->tpl_vars['cssModel']->_loop = true; $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['cssModel']->key; ?> <link rel="<?php echo $_smarty_tpl->tpl_vars['cssModel']->value->getRel(); ?> " href="<?php echo $_smarty_tpl->tpl_vars['cssModel']->value->getHref(); ?> ?&v=<?php echo $_smarty_tpl->tpl_vars['VTIGER_VERSION']->value; ?> " type="<?php echo $_smarty_tpl->tpl_vars['cssModel']->value->getType(); ?> " media="<?php echo $_smarty_tpl->tpl_vars['cssModel']->value->getMedia(); ?> " /><?php } ?> <style type="text/css">@media print {.noprint { display:none; }}</style><script type="text/javascript" src="libraries/jquery/jquery.min.js"></script></head><body data-skinpath="<?php echo $_smarty_tpl->tpl_vars['SKIN_PATH']->value; ?> " data-language="<?php echo $_smarty_tpl->tpl_vars['LANGUAGE']->value; ?> "><div id="js_strings" class="hide noprint"><?php echo Zend_Json::encode($_smarty_tpl->tpl_vars['LANGUAGE_STRINGS']->value); ?> </div><?php $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL'] = new Smarty_variable(Users_Record_Model::getCurrentUserModel(), null, 0); ?> <input type="hidden" id="start_day" value="<?php echo $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('dayoftheweek'); ?> " /><input type="hidden" id="row_type" value="<?php echo $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('rowheight'); ?> " /><input type="hidden" id="current_user_id" value="<?php echo $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('id'); ?> " /><div id="page"><!-- container which holds data temporarly for pjax calls --><div id="pjaxContainer" class="hide noprint"></div> <?php }
function content_56755d06176cd($_smarty_tpl) { ?> <div class="quickWidgetContainer accordion"><?php $_smarty_tpl->tpl_vars['val'] = new Smarty_variable(1, null, 0); $_smarty_tpl->tpl_vars['SIDEBARWIDGET'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = false; $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARWIDGET']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key => $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value) { $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = true; $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key; ?> <div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-target="#<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> _sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel()); ?> "data-toggle="collapse" data-parent="#quickWidgets" data-label="<?php echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(); ?> "data-widget-url="<?php echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl(); ?> " ><span class="pull-left"><img class="imageElement" data-rightimage="<?php echo vimage_path('rightArrowWhite.png'); ?> " data-downimage="<?php echo vimage_path('downArrowWhite.png'); ?> " src="<?php echo vimage_path('rightArrowWhite.png'); ?> " /></span><h5 class="title widgetTextOverflowEllipsis pull-right" title="<?php echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value); ?> "><?php echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value); ?> </h5><div class="loadingImg hide pull-right"><div class="loadingWidgetMsg"><strong><?php echo vtranslate('LBL_LOADING_WIDGET', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></div></div><div class="clearfix"></div></div><div class="widgetContainer accordion-body collapse" id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> _sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel()); ?> " data-url="<?php echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl(); ?> "></div></div><?php } ?> </div><?php }
<?php if ($_valid && !is_callable('content_56059c18e4bca')) {function content_56059c18e4bca($_smarty_tpl) {?> <?php $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?><div class="row-fluid"><?php $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);?><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsers(), null, 0);?><?php $_smarty_tpl->tpl_vars['SEARCH_VALUES'] = new Smarty_variable(explode(',',$_smarty_tpl->tpl_vars['SEARCH_INFO']->value['searchValue']), null, 0);?><?php $_smarty_tpl->tpl_vars['SEARCH_VALUES'] = new Smarty_variable(array_map("trim",$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value), null, 0);?><?php if ($_smarty_tpl->tpl_vars['ASSIGNED_USER_ID']->value!='modifiedby'){?><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroups(), null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable(array(), null, 0);?><?php }?><?php $_smarty_tpl->tpl_vars['ACCESSIBLE_USER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsersForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?><?php $_smarty_tpl->tpl_vars['ACCESSIBLE_GROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroupForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?><select class="select2 listSearchContributor span10 <?php echo $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID']->value;?> " name="<?php echo $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID']->value;?> " multiple style="width:150px;"data-fieldinfo='<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['FIELD_INFO']->value, ENT_QUOTES, 'UTF-8', true);?> '><optgroup label="<?php echo vtranslate('LBL_USERS');?> "><?php $_smarty_tpl->tpl_vars['OWNER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = false; $_smarty_tpl->tpl_vars['OWNER_ID'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['OWNER_NAME']->key => $_smarty_tpl->tpl_vars['OWNER_NAME']->value){ $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = true; $_smarty_tpl->tpl_vars['OWNER_ID']->value = $_smarty_tpl->tpl_vars['OWNER_NAME']->key; ?><option value="<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?> " data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?> ' <?php if (in_array(trim(decode_html($_smarty_tpl->tpl_vars['OWNER_NAME']->value)),$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value)){?> selected <?php }?><?php if (array_key_exists($_smarty_tpl->tpl_vars['OWNER_ID']->value,$_smarty_tpl->tpl_vars['ACCESSIBLE_USER_LIST']->value)){?> data-recordaccess=true <?php }else{ ?> data-recordaccess=false <?php }?>data-userId="<?php echo $_smarty_tpl->tpl_vars['CURRENT_USER_ID']->value;?> "><?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?> </option><?php } ?></optgroup><?php if (count($_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST']->value)>0){?><optgroup label="<?php echo vtranslate('LBL_GROUPS');?> "><?php $_smarty_tpl->tpl_vars['OWNER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = false; $_smarty_tpl->tpl_vars['OWNER_ID'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['OWNER_NAME']->key => $_smarty_tpl->tpl_vars['OWNER_NAME']->value){ $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = true; $_smarty_tpl->tpl_vars['OWNER_ID']->value = $_smarty_tpl->tpl_vars['OWNER_NAME']->key; ?><option value="<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?> " data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?> ' <?php if (in_array(trim($_smarty_tpl->tpl_vars['OWNER_NAME']->value),$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value)){?> selected <?php }?><?php if (array_key_exists($_smarty_tpl->tpl_vars['OWNER_ID']->value,$_smarty_tpl->tpl_vars['ACCESSIBLE_GROUP_LIST']->value)){?> data-recordaccess=true <?php }else{ ?> data-recordaccess=false <?php }?> ><?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?> </option><?php } ?></optgroup><?php }?></select></div><?php }} ?>
public function process(Vtiger_Request $request) { $moduleName = $request->getModule(); vimport('~~modules/' . $moduleName . '/' . $moduleName . '.php'); $bag = false; $paymentsIn = $request->get('paymentsIn'); foreach ($paymentsIn as $fields) { $ossPaymentsIn = new $moduleName(); $ossPaymentsIn->column_fields['paymentsname'] = 'Name'; $ossPaymentsIn->column_fields['paymentsvalue'] = $fields['amount']; $ossPaymentsIn->column_fields['paymentscurrency'] = $fields['third_letter_currency_code']; $ossPaymentsIn->column_fields['paymentstitle'] = $fields['details']['title']; $ossPaymentsIn->column_fields['bank_account'] = $fields['details']['contAccount']; $saved = $ossPaymentsIn->save('PaymentsIn'); if ($saved == false) { $bag = true; } } if ($bag) { $result = array('success' => true, 'return' => vtranslate('MSG_SAVE_OK', $moduleName)); } else { $result = array('success' => false, 'return' => vtranslate('MSG_SAVE_ERROR', $moduleName)); } $response = new Vtiger_Response(); $response->setResult($result); $response->emit(); }
public function checkPermission(Vtiger_Request $request) { $moduleName = $request->getModule(); if (!Users_Privileges_Model::isPermitted($moduleName, 'EditView')) { throw new AppException(vtranslate('LBL_PERMISSION_DENIED', $moduleName)); } }
function content_56327dbce2932($_smarty_tpl) { ?> <input type="hidden" id="module" value="Install" /> <input type="hidden" id="view" value="Index" /> <div class="container-fluid page-container"> <div class="row-fluid"> <div class="span6"> <div class="logo"> <img src="<?php echo vimage_path('logo.png'); ?> "/> </div> </div> <div class="span6"> <div class="head pull-right"> <h3><?php echo vtranslate('LBL_INSTALLATION_WIZARD', 'Install'); ?> </h3> </div> </div> </div> <?php }
function content_567d6e7751be3($_smarty_tpl) { ?> <div style="margin:0 auto;width: 50em;"> <table border='0' cellpadding='5' cellspacing='0' height='600px' width="700px"> <tr><td align='center'> <div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 80%; position: relative; z-index: 100000020;'> <table border='0' cellpadding='5' cellspacing='0' width='98%'> <tr> <td rowspan='2' width='11%'><img src="<?php echo vimage_path('denied.gif'); ?> " ></td> <td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'> <span class='genHeaderSmall'><?php echo vtranslate($_smarty_tpl->tpl_vars['MESSAGE']->value); ?> </span></td> </tr> <tr> <td class='small' align='right' nowrap='nowrap'> <a href='javascript:window.history.back();'><?php echo vtranslate('LBL_GO_BACK'); ?> </a><br> </td> </tr> </table> </div> </td></tr> </table> </div><?php }
<?php if ($_valid && !is_callable('content_56087a12baeb7')) {function content_56087a12baeb7($_smarty_tpl) {?> <div class="container-fluid"><div class="contents row-fluid"><?php $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('rowheight'), null, 0);?><form id="OutgoingServerForm" class="form-horizontal" data-detail-url="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->getDetailViewUrl();?> " method="POST"><div class="widget_header row-fluid"><div class="span8"><h3><?php echo vtranslate('LBL_OUTGOING_SERVER',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </h3> <?php echo vtranslate('LBL_OUTGOING_SERVER_DESC',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </div><div class="span4 btn-toolbar"><div class="pull-right"><button class="btn btn-success saveButton" type="submit" title="<?php echo vtranslate('LBL_SAVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> "><strong><?php echo vtranslate('LBL_SAVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </strong></button><a type="reset" class="cancelLink" title="<?php echo vtranslate('LBL_CANCEL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> "><?php echo vtranslate('LBL_CANCEL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </a></div></div></div><hr><input type="hidden" name="default" value="false" /><input type="hidden" name="server_port" value="0" /><input type="hidden" name="server_type" value="email" /><input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('id');?> " /><div class="row-fluid hide errorMessage"><div class="alert alert-error"><?php echo vtranslate('LBL_TESTMAILSTATUS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> <strong><?php echo vtranslate('LBL_MAILSENDERROR',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </strong></div></div><table class="table table-bordered table-condensed themeTableColor"><thead><tr class="blockHeader"><th colspan="2" class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> "><?php echo vtranslate('LBL_MAIL_SERVER_SMTP',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </th></tr></thead><tbody><tr><td width="20%" class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> "><label class="muted pull-right marginRight10px"><span class="redColor">*</span><?php echo vtranslate('LBL_SERVER_NAME',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </label></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> " style="border-left: none;"><input type="text" name="server" data-validation-engine='validate[required]' value="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('server');?> " /></td></tr><tr><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> "><label class="muted pull-right marginRight10px"><?php echo vtranslate('LBL_USER_NAME',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </label></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> " style="border-left: none;"><input type="text" name="server_username" value="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('server_username');?> "</td></tr><tr><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> "><label class="muted pull-right marginRight10px"><?php echo vtranslate('LBL_PASSWORD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </label></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> " style="border-left: none;"><input type="password" name="server_password" value="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('server_password');?> "</td></tr><tr><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> "><label class="muted pull-right marginRight10px"><?php echo vtranslate('LBL_FROM_EMAIL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </label></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> " style="border-left: none;"><input type="text" name="from_email_field" data-validation-engine="validate[funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-validator='<?php echo Zend_Json::encode(array(array('name'=>'Email')));?> ' value="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('from_email_field');?> "</td></tr><tr><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> "><label class="muted pull-right marginRight10px"><?php echo vtranslate('LBL_REQUIRES_AUTHENTICATION',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </label></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?> " style="border-left: none;"><input type="checkbox" name="smtp_auth" <?php if ($_smarty_tpl->tpl_vars['MODEL']->value->isSmtpAuthEnabled()){?>checked<?php }?>/></td></tr></tbody></table><br><div class="alert alert-info"><?php echo vtranslate('LBL_OUTGOING_SERVER_NOTE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> </div></form></div></div><?php }} ?>
function content_56755e7c23f3c($_smarty_tpl) { ?> <div class="detailViewInfo"><table class="table table-bordered equalSplit detailview-table" style="table-layout:fixed"><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value['TOOLTIP_FIELDS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldsCount']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) { $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true; $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldsCount']['index']++; if ($_smarty_tpl->getVariable('smarty')->value['foreach']['fieldsCount']['index'] < 7) { ?> <tr><td class="fieldLabel narrowWidthType" nowrap><label class="muted"><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value); ?> </label></td><td class="fieldValue narrowWidthType"><span class="value"><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getDetailViewTemplateName(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL' => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value, 'USER_MODEL' => $_smarty_tpl->tpl_vars['USER_MODEL']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE_NAME']->value, 'RECORD' => $_smarty_tpl->tpl_vars['RECORD']->value), 0); ?> </span></td></tr><?php } } ?> </table></div> <?php }
public static function getSupportedModulesList() { $db = PearDatabase::getInstance(); $presence = array(0, 2); $restrictedModules = array('SPSocialConnector', 'SMSNotifier', 'Emails', 'Integration', 'Dashboard', 'ModComments', 'vtmessages', 'vttwitter'); $query = 'SELECT name FROM vtiger_tab WHERE presence IN ('. generateQuestionMarks($presence) .') AND isentitytype = ? AND name NOT IN ('. generateQuestionMarks($restrictedModules) .')'; $result = $db->pquery($query, array($presence, 1, $restrictedModules)); $numOfRows = $db->num_rows($result); $modulesList = array(); for($i=0; $i<$numOfRows; $i++) { $moduleName = $db->query_result($result, $i, 'name'); $modulesList[$moduleName] = vtranslate($moduleName, $moduleName); } // If calendar is disabled we should not show events module too // in layout editor if(!array_key_exists('Calendar', $modulesList)) { unset($modulesList['Events']); } return $modulesList; }
public function process(Vtiger_Request $request) { $currentUser = Users_Record_Model::getCurrentUserModel(); $viewer = $this->getViewer($request); $moduleName = $request->getModule(); $stateActivityLabels = Calendar_Module_Model::getComponentActivityStateLabel(); $page = $request->get('page'); $linkId = $request->get('linkid'); $sortOrder = $request->get('sortorder'); $orderBy = $request->get('orderby'); $params = ['status' => $stateActivityLabels['in_realization']]; if ($request->get('switchParams')) { $params = ['status' => $request->get('switchParams')]; } $widget = Vtiger_Widget_Model::getInstance($linkId, $currentUser->getId()); if (!$request->has('owner')) $owner = Settings_WidgetsManagement_Module_Model::getDefaultUserId($widget); else $owner = $request->get('owner'); $pagingModel = new Vtiger_Paging_Model(); $pagingModel->set('page', $page); $pagingModel->set('limit', (int) $widget->get('limit')); $pagingModel->set('orderby', $orderBy); $pagingModel->set('sortorder', $sortOrder); $moduleModel = Vtiger_Module_Model::getInstance($moduleName); $calendarActivities = ($owner === false) ? array() : $moduleModel->getCalendarActivities('upcoming', $pagingModel, $owner, false, $params); $switchLabels = []; $switchLabels[] = ['label' => vtranslate($stateActivityLabels['in_realization'], 'Calendar'), 'name' => $stateActivityLabels['in_realization']]; $switchLabels[] = ['label' => vtranslate($stateActivityLabels['not_started'], 'Calendar'), 'name' => $stateActivityLabels['not_started']]; $msgLabel = 'LBL_NO_SCHEDULED_ACTIVITIES'; if ($params['status'] == $stateActivityLabels['in_realization']) { $msgLabel = 'LBL_NO_CURRENT_ACTIVITIES'; } $viewer->assign('WIDGET', $widget); $viewer->assign('MODULE_NAME', $moduleName); $viewer->assign('ACTIVITIES', $calendarActivities); $viewer->assign('PAGING', $pagingModel); $viewer->assign('CURRENTUSER', $currentUser); $title_max_length = vglobal('title_max_length'); $href_max_length = vglobal('href_max_length'); $viewer->assign('NAMELENGHT', $title_max_length); $viewer->assign('OWNER', $owner); $viewer->assign('HREFNAMELENGHT', $href_max_length); $viewer->assign('NODATAMSGLABLE', $msgLabel); $viewer->assign('SWITCH', $switchLabels); $viewer->assign('LISTVIEWLINKS', true); $content = $request->get('content'); if (!empty($content)) { $viewer->view('dashboards/CalendarActivitiesContents.tpl', $moduleName); } else { $viewer->view('dashboards/CalendarActivities.tpl', $moduleName); } }
function content_56327dbce3bfe($_smarty_tpl) { ?> <div class="row-fluid main-container"> <div class="inner-container"> <div class="row-fluid"> <div class="span10"> <h4><?php echo vtranslate('LBL_WELCOME', 'Install'); ?> </h4> </div> <div class="span2"> <a href="https://wiki.vtiger.com/vtiger6/" target="_blank" class="pull-right"> <img src="<?php echo vimage_path('help.png'); ?> " alt="Help-Icon"/> </a> </div> </div> <hr> <form class="form-horizontal" name="step1" method="post" action="index.php"> <input type=hidden name="module" value="Install" /> <input type=hidden name="view" value="Index" /> <input type=hidden name="mode" value="Step2" /> <div class="row-fluid"> <div class="span4 welcome-image"> <img src="<?php echo vimage_path('wizard_screen.png'); ?> " alt="Vtiger Logo"/> </div> <div class="span8"> <div class="welcome-div"> <h3><?php echo vtranslate('LBL_WELCOME_TO_VTIGER6_SETUP_WIZARD', 'Install'); ?> </h3> <?php echo vtranslate('LBL_VTIGER6_SETUP_WIZARD_DESCRIPTION', 'Install'); ?> </div> </div> </div> <div class="row-fluid"> <div class="button-container"> <input type="submit" class="btn btn-large btn-primary" value="<?php echo vtranslate('LBL_INSTALL_BUTTON', 'Install'); ?> "/> </div> </div> </form> </div> </div><?php }
function content_564cd12534e65($_smarty_tpl) { ?> <div class="container-fluid"><div class="widget_header row-fluid"><div class="span8"><h3><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </h3></div></div><hr><div class="clearfix treeView"><ul><li data-role="<?php echo $_smarty_tpl->tpl_vars['ROOT_ROLE']->value->getParentRoleString(); ?> " data-roleid="<?php echo $_smarty_tpl->tpl_vars['ROOT_ROLE']->value->getId(); ?> "><div class="toolbar-handle"><a href="javascript:;" class="btn btn-inverse draggable droppable"><?php echo $_smarty_tpl->tpl_vars['ROOT_ROLE']->value->getName(); ?> </a><div class="toolbar" title="<?php echo vtranslate('LBL_ADD_RECORD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "> <a href="<?php echo $_smarty_tpl->tpl_vars['ROOT_ROLE']->value->getCreateChildUrl(); ?> " data-url="<?php echo $_smarty_tpl->tpl_vars['ROOT_ROLE']->value->getCreateChildUrl(); ?> " data-action="modal"><span class="icon-plus-sign"></span></a></div></div><?php $_smarty_tpl->tpl_vars["ROLE"] = new Smarty_variable($_smarty_tpl->tpl_vars['ROOT_ROLE']->value, null, 0); echo $_smarty_tpl->getSubTemplate(vtemplate_path("RoleTree.tpl", "Settings:Roles"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </li></ul></div></div><?php }
<?php if ($_valid && !is_callable('content_56059c186b1a4')) {function content_56059c186b1a4($_smarty_tpl) {?> <?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("Header.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> <?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("BasicHeader.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> <div class="bodyContents"><div class="mainContainer row-fluid"><?php $_smarty_tpl->tpl_vars['LEFTPANELHIDE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('leftpanelhide'), null, 0);?><div class="span2 row-fluid <?php if ($_smarty_tpl->tpl_vars['LEFTPANELHIDE']->value=='1'){?> hide <?php }?>" id="leftPanel" style="min-height:550px;"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("ListViewSidebar.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> </div><div class="contentsDiv <?php if ($_smarty_tpl->tpl_vars['LEFTPANELHIDE']->value!='1'){?> span10 <?php }?>marginLeftZero" id="rightPanel" style="min-height:550px;"><div id="toggleButton" class="toggleButton" title="<?php echo vtranslate('LBL_LEFT_PANEL_SHOW_HIDE','Vtiger');?> "><i id="tButtonImage" class="<?php if ($_smarty_tpl->tpl_vars['LEFTPANELHIDE']->value!='1'){?>icon-chevron-left<?php }else{ ?>icon-chevron-right<?php }?>"></i></div><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("ListViewHeader.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> <?php }} ?>
<?php if ($_valid && !is_callable('content_53720a894156d')) {function content_53720a894156d($_smarty_tpl) {?> <br> <center> <footer class="noprint"> <div class="vtFooter"> <p> <?php echo vtranslate('POWEREDBY');?> <?php echo $_smarty_tpl->tpl_vars['VTIGER_VERSION']->value;?> © 2004 - <?php echo date('Y');?>   <a href="//www.vtiger.com" target="_blank">vtiger.com</a> | <a href="#" onclick="window.open('../copyright.html','copyright', 'height=115,width=575').moveTo(210,620)"><?php echo vtranslate('LBL_READ_LICENSE');?> </a> | <a href="https://www.vtiger.com/crm/privacy-policy" target="_blank"><?php echo vtranslate('LBL_PRIVACY_POLICY');?> </a> </p> </div> </footer> </center> <?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('JSResources.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> </div> <?php }} ?>
function process(Vtiger_Request $request) { $currentUser = Users_Record_Model::getCurrentUserModel(); $moduleName = $request->getModule(); $componentName = $request->get('name'); $linkId = $request->get('linkid'); if (!empty($componentName)) { $className = Vtiger_Loader::getComponentClassName('Dashboard', $componentName, $moduleName); if (!empty($className)) { $widget = NULL; if (!empty($linkId)) { $widget = new Vtiger_Widget_Model(); $widget->set('linkid', $linkId); $widget->set('userid', $currentUser->getId()); $widget->set('filterid', $request->get('filterid', NULL)); if ($request->has('data')) { $widget->set('data', $request->get('data')); } $widget->add(); } $classInstance = new $className(); $classInstance->process($request, $widget); return; } } $response = new Vtiger_Response(); $response->setResult(array('success' => false, 'message' => vtranslate('NO_DATA'))); $response->emit(); }