function vtEditExpressions($adb, $appStrings, $current_language, $theme, $formodule = '') { $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new vtigerCRM_Smarty(); $smarty->assign('APP', $appStrings); $mod = array_merge(return_module_language($current_language, 'FieldFormulas'), return_module_language($current_language, 'Settings')); $jsStrings = array('NEED_TO_ADD_A' => $mod['NEED_TO_ADD_A'], 'CUSTOM_FIELD' => $mod['LBL_CUSTOM_FIELD'], 'LBL_USE_FUNCTION_DASHDASH' => $mod['LBL_USE_FUNCTION_DASHDASH'], 'LBL_USE_FIELD_VALUE_DASHDASH' => $mod['LBL_USE_FIELD_VALUE_DASHDASH'], 'LBL_DELETE_EXPRESSION_CONFIRM' => $mod['LBL_DELETE_EXPRESSION_CONFIRM']); $smarty->assign("JS_STRINGS", Zend_Json::encode($jsStrings)); $smarty->assign("MOD", $mod); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("MODULE_NAME", 'FieldFormulas'); $smarty->assign("PAGE_NAME", 'LBL_FIELDFORMULAS'); $smarty->assign("PAGE_TITLE", 'LBL_FIELDFORMULAS'); $smarty->assign("PAGE_DESC", 'LBL_FIELDFORMULAS_DESCRIPTION'); $smarty->assign("FORMODULE", $formodule); if (file_exists("modules/{$formodule}/{$formodule}.php")) { $focus = CRMEntity::getInstance($formodule); $validationArray = split_validationdataArray(getDBValidationData($focus->tab_name, getTabid($formodule))); $smarty->assign('VALIDATION_DATA_FIELDNAME', $validationArray['fieldname']); $smarty->assign('VALIDATION_DATA_FIELDDATATYPE', $validationArray['datatype']); $smarty->assign('VALIDATION_DATA_FIELDLABEL', $validationArray['fieldlabel']); } $smarty->display(vtlib_getModuleTemplate('FieldFormulas', 'EditExpressions.tpl')); }
function process($templateName) { $smarty = $this->viewController(); $response = new Mobile_API_Response(); $response->setResult($smarty->fetch(vtlib_getModuleTemplate('Mobile', $templateName))); return $response; }
function process(Integration_Request $request) { global $currentModule, $site_URL; $viewer = new Integration_Viewer(); $gmailBookmarklet = sprintf("javascript:(%s)();", "function()%7Bvar%20doc=document;var%20bodyElement=document.body;doc.vtigerURL=%22{$site_URL}/%22;" . "var%20scriptElement=document.createElement(%22script%22);scriptElement.type=%22text/javascript%22;" . "scriptElement.src=doc.vtigerURL+%22modules/Emails/GmailBookmarkletTrigger.js%22;bodyElement.appendChild(scriptElement);%7D"); $viewer->assign('GMAIL_BOOKMARKLET', $gmailBookmarklet); $viewer->display(vtlib_getModuleTemplate($currentModule, 'index.tpl')); }
function fetch($templateName, $moduleName = '') { $smarty = $this->viewController(); if (empty($moduleName)) { $moduleName = 'Import'; } return $smarty->fetch(vtlib_getModuleTemplate($moduleName, $templateName)); }
/** * Default action */ protected function processDefault($request) { global $currentModule; $configReader = $this->getReader(); $viewer = $this->getViewer(); if (is_null($configReader)) { $viewer->assign('WARNING', 'Configuration file is not writable!'); } else { if ($configReader === false) { $viewer->assign('WARNING', 'Configuration file not found!'); } else { $viewer->assign('CONFIGREADER', $configReader); } } $viewer->display(vtlib_getModuleTemplate($currentModule, 'index.tpl')); }
$sql = "INSERT INTO its4you_calendar4you_profilespermissions (profileid, operation, permissions) VALUES(?, ?, ?)"; $adb->pquery($sql, $params); } } echo '<meta http-equiv="refresh" content="0; url=index.php?module=Settings&action=ModuleManager&module_settings=true&formodule=Calendar4You&parenttab=Settings">'; } else { $permissionNames = array(); foreach ($permissions as $profileid => $subArr) { $permissionNames[$profileid] = array(); $profileName = getProfileName($profileid); foreach ($subArr as $actionid => $perm) { $permStr = $perm == "0" ? 'checked="checked"' : ""; switch ($actionid) { case $actionEDIT: $permissionNames[$profileid][$profileName]["EDIT"]["name"] = 'priv_chk_' . $profileid . '_' . $actionEDIT; $permissionNames[$profileid][$profileName]["EDIT"]["checked"] = $permStr; break; case $actionDETAIL: $permissionNames[$profileid][$profileName]["DETAIL"]["name"] = 'priv_chk_' . $profileid . '_' . $actionDETAIL; $permissionNames[$profileid][$profileName]["DETAIL"]["checked"] = $permStr; break; case $actionDELETE: $permissionNames[$profileid][$profileName]["DELETE"]["name"] = 'priv_chk_' . $profileid . '_' . $actionDELETE; $permissionNames[$profileid][$profileName]["DELETE"]["checked"] = $permStr; break; } } } $smarty->assign("PERMISSIONS", $permissionNames); $smarty->display(vtlib_getModuleTemplate($currentModule, 'ProfilesPrivilegies.tpl')); }
$numrows = $adb->num_rows($res); $version = $adb->query_result($res, 0, "version"); $smarty->assign('MODULE_VERSION', $version); $sql = "select * from vtiger_currency_info where deleted=0"; $result = $adb->pquery($sql, array()); $temprow = $adb->fetch_array($result); $cnt = 1; $currency = array(); $currencies = array(); $currency_default = ''; do { $currency_element = array(); $currency_element['name'] = $temprow["currency_name"]; $currency_element['code'] = $temprow["currency_code"]; $currency_element['symbol'] = $temprow["currency_symbol"]; $currency_element['crate'] = $temprow["conversion_rate"]; $currency_element['status'] = $temprow["currency_status"]; if ($temprow["defaultid"] != '-11') { array_push($currencies, $temprow["currency_code"]); $currency_element['default'] = 'false'; } else { $currency_element['default'] = 'true'; $currency_default = $currency_element['code']; } $currency[] = $currency_element; $cnt++; } while ($temprow = $adb->fetch_array($result)); $smarty->assign('CURRENCIES', rtrim($currency_default . "," . implode(",", $currencies), ",")); $smarty->assign('RECORD_CURRENCY', $config["defaultcurrency"]); $smarty->display(vtlib_getModuleTemplate($currentModule, 'AccountingSettings.tpl'));
} else { $return_module = $currentModule; } if (!empty($_REQUEST['return_action'])) { $return_action = vtlib_purify($_REQUEST['return_action']); } else { $return_action = 'DetailView'; } if (isset($_REQUEST['return_id']) && $_REQUEST['return_id'] != '') { $return_id = vtlib_purify($_REQUEST['return_id']); } //code added for returning back to the current view after edit from list view if (empty($_REQUEST['return_viewname']) or $singlepane_view == 'true') { $return_viewname = '0'; } else { $return_viewname = vtlib_purify($_REQUEST['return_viewname']); } if (isset($_REQUEST['activity_mode'])) { $return_action .= '&activity_mode=' . vtlib_purify($_REQUEST['activity_mode']); } header("Location: index.php?action={$return_action}&module={$return_module}&record={$return_id}&parenttab={$parenttab}&viewname={$return_viewname}&start=" . vtlib_purify($_REQUEST['pagenumber']) . $search); } else { global $mod_strings, $app_strings, $theme; require_once 'Smarty_setup.php'; $smarty = new vtigerCRM_Smarty(); $smarty->assign('MOD', $mod_strings); $smarty->assign('APP', $app_strings); $smarty->assign('THEME', "{$theme}"); $smarty->assign('IMAGE_PATH', "themes/{$theme}/images/"); $smarty->display(vtlib_getModuleTemplate('Vtiger', 'OperationNotPermitted.tpl')); }
//Assign the entered global search string to a variable and display it again if ($_REQUEST['query_string'] != '') { $smarty_obj->assign("QUERY_STRING", htmlspecialchars($_REQUEST['query_string'], ENT_QUOTES, $default_charset)); } else { $smarty_obj->assign("QUERY_STRING", "{$app_strings['LBL_SEARCH_STRING']}"); } global $module_menu; require_once 'data/Tracker.php'; $tracFocus = new Tracker(); $list = $tracFocus->get_recently_viewed($current_user->id); $smarty_obj->assign("TRACINFO", $list); // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $hdrcustomlink_params = array('MODULE' => $currentModule); $COMMONHDRLINKS = Vtiger_Link::getAllByType(Vtiger_Link::IGNORE_MODULE, array('ONDEMANDLINK', 'HEADERLINK', 'HEADERSCRIPT', 'HEADERCSS'), $hdrcustomlink_params); $smarty_obj->assign('HEADERLINKS', $COMMONHDRLINKS['HEADERLINK']); $smarty_obj->assign('ONDEMANDLINKS', $COMMONHDRLINKS['ONDEMANDLINK']); $smarty_obj->assign('HEADERSCRIPTS', $COMMONHDRLINKS['HEADERSCRIPT']); $smarty_obj->assign('HEADERCSS', $COMMONHDRLINKS['HEADERCSS']); // END // Pass on the version information global $vtiger_current_version; $smarty_obj->assign('VERSION', $vtiger_current_version); // END $sql = "select * from vtiger_organizationdetails"; $result = $adb->pquery($sql, array()); //Handle for allowed organation logo/logoname likes UTF-8 Character $organization_logo = decode_html($adb->query_result($result, 0, 'logoname')); $smarty_obj->assign("LOGO", $organization_logo); $smarty_obj->display(vtlib_getModuleTemplate($currentModule, 'Reports4YouHeader.tpl'));
<?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. ********************************************************************************/ require_once 'modules/Webforms/Webforms.php'; require_once 'modules/Webforms/model/WebformsModel.php'; require_once 'Smarty_setup.php'; require_once 'config.inc.php'; Webforms::checkAdminAccess($current_user); $webformModel = Webforms_Model::retrieveWithId($_REQUEST['id']); $webformFields = $webformModel->getFields(); $smarty = new vtigerCRM_Smarty(); $smarty->assign('ACTIONPATH', $site_URL); $smarty->assign('WEBFORM', new Webforms()); $smarty->assign('WEBFORMMODEL', $webformModel); $smarty->assign('WEBFORMFIELDS', $webformFields); $smarty->assign('LANGUAGE', $current_language); $smarty->display(vtlib_getModuleTemplate($currentModule, 'HTMLView.tpl'));
$smarty_obj->assign("FOLDERID", vtlib_purify($_REQUEST['folder'])); $smarty_obj->assign("REP_FOLDERS", $ITS4YouReports->getReportFolders()); if (!isset($_REQUEST["mode"])) { // ReportsStep2 $smarty_obj = $ITS4YouReports->getSelectedValuesToSmarty($smarty_obj, "all"); // ReportGrouping // ReportColumns $RC_BLOCK2 = $ITS4YouReports->getSelectedColumnsList($ITS4YouReports->selected_columns_list_arr); $smarty_obj->assign("RC_BLOCK2", $RC_BLOCK2); } $tool_buttons = Button_Check($currentModule); $tool_buttons["Import"] = "no"; $tool_buttons["Export"] = "no"; $smarty_obj->assign('CHECK', $tool_buttons); if ($ITS4YouReports->CheckPermissions("EDIT")) { $smarty_obj->assign("EXPORT", "yes"); } if ($ITS4YouReports->CheckPermissions("EDIT") && $ITS4YouReports->GetVersionType() != "deactivate") { $smarty_obj->assign("EDIT", "permitted"); $smarty_obj->assign("IMPORT", "yes"); } if ($ITS4YouReports->CheckPermissions("DELETE") && $ITS4YouReports->GetVersionType() != "deactivate") { $smarty_obj->assign("DELETE", "permitted"); } $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty_obj->assign("IMAGE_PATH", $image_path); $smarty_obj->assign("THEME_PATH", $theme_path); $smarty_obj->assign("ERROR_MSG", getTranslatedString('LBL_NO_PERMISSION', $currentModule)); $smarty_obj->display(vtlib_getModuleTemplate($currentModule, "EditReports4You.tpl"));
<?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. ********************************************************************************/ global $app_strings, $mod_strings, $current_language, $currentModule, $theme; require_once 'Smarty_setup.php'; require_once "modules/{$currentModule}/{$currentModule}.php"; $focus = new $currentModule(); $smarty = new vtigerCRM_Smarty(); $category = getParentTab($currentModule); $smarty->assign('APP', $app_strings); $smarty->assign('MOD', $mod_strings); $smarty->assign('MODULE', $currentModule); $smarty->assign('SINGLE_MOD', "CallHistory"); $smarty->assign('CATEGORY', $category); $smarty->assign("THEME", $theme); $smarty->assign('IMAGE_PATH', "themes/{$theme}/images/"); $smarty->assign('CHECK', array()); $smarty->display(vtlib_getModuleTemplate('PBXManager', 'EditView.tpl'));
} $smarty->assign('OMIT_HEADERS', $hideheaders); $smarty->assign('LISTHEADER', $listview_header); $smarty->assign('LISTENTITY', $listview_entries); $smarty->assign('SEARCHLISTHEADER', $listview_header_search); // Module Search $alphabetical = AlphabeticalSearch($currentModule, 'index', $focus->def_basicsearch_col, 'true', 'basic', '', '', '', '', $viewid); $fieldnames = getAdvSearchfields($currentModule); $criteria = getcriteria_options(); $smarty->assign("ALPHABETICAL", $alphabetical); $smarty->assign("FIELDNAMES", $fieldnames); $smarty->assign("CRITERIA", $criteria); $smarty->assign("AVALABLE_FIELDS", getMergeFields($currentModule, "available_fields")); $smarty->assign("FIELDS_TO_MERGE", getMergeFields($currentModule, "fileds_to_merge")); $_SESSION[$currentModule . '_listquery'] = $list_query; global $current_user; if (is_admin($current_user)) { $smarty->assign("ISADMIN", "true"); } else { $smarty->assign("ISADMIN", "false"); } if ($partialpaymentview == 'true') { $smarty->assign('PARTIAL_PAYMENT_VIEW', 'checked'); } else { $smarty->assign('PARTIAL_PAYMENT_VIEW', ''); } if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display(vtlib_getModuleTemplate("Accounting", "ListViewEntries.tpl")); } else { $smarty->display(vtlib_getModuleTemplate("Accounting", 'ListView.tpl')); }
/*+******************************************************************************** * The content of this file is subject to the Reports 4 You license. * ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. ********************************************************************************/ require_once "data/Tracker.php"; require_once 'Smarty_setup.php'; require_once 'include/logging.php'; require_once 'include/utils/utils.php'; require_once 'modules/ITS4YouReports/ITS4YouReports.php'; global $app_strings; global $app_list_strings; global $mod_strings; // ITS4YOU-CR SlOl 20.12.2010 R4U singlerow $current_module_strings = return_module_language($current_language, 'ITS4YouReports'); global $list_max_entries_per_page; global $urlPrefix; global $currentModule; global $image_path; global $theme; $smarty_obj = new vtigerCRM_Smarty(); $smarty_obj->assign("MOD", $mod_strings); $smarty_obj->assign("APP", $app_strings); $smarty_obj->assign("IMAGE_PATH", $image_path); $ITS4YouReports = ITS4YouReports::getStoredITS4YouReport(); $smarty_obj = $ITS4YouReports->getSelectedValuesToSmarty($smarty_obj, "ReportColumnsTotal"); $smarty_obj->display(vtlib_getModuleTemplate($currentModule, 'ReportColumnsTotal.tpl'));
<?php global $app_strings, $mod_strings, $current_language, $currentModule, $theme; require_once 'modules/Accounting/AccountingUtils.php'; $chart_strings = return_chart_language($_SESSION["authenticated_user_language"]); require_once 'Smarty_setup.php'; require_once 'modules/Accounting/ChartTabs.php'; $smarty = new vtigerCRM_Smarty(); $smarty->assign('MOD', $mod_strings); $smarty->assign('APP', $app_strings); $smarty->assign('MODULE', $currentModule); $smarty->assign('CHART_LANG', $chart_strings); $charttab = $_REQUEST['charttab']; $tab = $tabs[$charttab]; $tab_sections = $tabs[$charttab]['sections']; $smarty->assign('SECTIONS', $tab_sections); $smarty->assign('CHART', $chart_strings); $smarty->display(vtlib_getModuleTemplate("Accounting", 'SelectCharts.tpl'));
require_once 'Smarty_setup.php'; require_once 'modules/ModTracker/ModTrackerUtils.php'; global $app_strings, $mod_strings, $current_language, $currentModule, $theme, $current_user; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; if (!is_admin($current_user)) { echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>"; echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\t\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\n\t\t\t\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>{$app_strings['LBL_PERMISSION']}</span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='small' align='right' nowrap='nowrap'>\n\t\t\t\t\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>"; echo "</td></tr></table>"; die; } $category = getParentTab(); $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign('CATEGORY', $category); $tabid = vtlib_purify($_REQUEST['tabid']); $status = vtlib_purify($_REQUEST['status']); if ($status != '' && $tabid != '') { ModTrackerUtils::modTrac_changeModuleVisibility($tabid, $status); } $infomodules = ModTrackerUtils::modTrac_getModuleinfo(); $smarty->assign('INFOMODULES', $infomodules); $smarty->assign('MODULE', $module); if ($_REQUEST['ajax'] != true) { $smarty->display(vtlib_getModuleTemplate($currentModule, 'BasicSettings.tpl')); } else { $smarty->display(vtlib_getModuleTemplate($currentModule, 'BasicSettingsContents.tpl')); }
function process($context = false) { $this->context = $context; $sourceRecordId = $this->getFromContext('ID', true); $usecriteria = $this->criteria === false ? $this->defaultCriteria : $this->criteria; $viewer = $this->getViewer(); $viewer->assign('ID', $sourceRecordId); $viewer->assign('CRITERIA', $usecriteria); $viewer->assign('COMMENTS', $this->getModels($sourceRecordId, $usecriteria)); return $viewer->fetch(vtlib_getModuleTemplate("ModComments", "widgets/DetailViewBlockComment.tpl")); }
<?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. *********************************************************************************/ require_once "Smarty_setup.php"; require_once "modules/Accounting/Accounting.php"; $config = Accounting::loadConfigParams(); if ($config['licenseok'] != "true") { echo "<script>location.href='index.php?module=Accounting&action=AccountingSettings&parenttab=Settings&formodule=Accounting';</script>"; exit; } $smarty = new vtigerCRM_Smarty(); $smarty->display(vtlib_getModuleTemplate("Accounting", 'QuickCreate.tpl'));
} $smsproviders = SMSNotifierManager::listAvailableProviders(); // Collect required parameters to be made available in the EditForm $smsproviderparams = array(); if (!empty($smsproviders)) { foreach ($smsproviders as $smsprovidername) { $smsprovider = SMSProvider::getInstance($smsprovidername); $requiredparameters = $smsprovider->getRequiredParams(); if (!empty($requiredparameters)) { $smsproviderparams[$smsprovidername] = $requiredparameters; } } } $smarty->assign('SMSPROVIDERS', $smsproviders); $smarty->assign('SMSPROVIDERSPARAMS', $smsproviderparams); $smarty->display(vtlib_getModuleTemplate($currentModule, 'SMSConfigServerEdit.tpl')); } else { if ($mode == 'Save') { SMSNotifierManager::updateConfiguredServer($_REQUEST['smsserver_id'], $_REQUEST); $smarty->assign('SMSSERVERS', SMSNotifierManager::listConfiguredServers()); $smarty->display(vtlib_getModuleTemplate($currentModule, 'SMSConfigServerListContents.tpl')); } else { if ($mode == 'Delete') { SMSNotifierManager::deleteConfiguredServer(vtlib_purify($_REQUEST['record'])); $smarty->assign('SMSSERVERS', SMSNotifierManager::listConfiguredServers()); $smarty->display(vtlib_getModuleTemplate($currentModule, 'SMSConfigServerListContents.tpl')); } } } } }
static function templatePath($filename) { return vtlib_getModuleTemplate('Mobile', "generic/{$filename}"); }
<?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. *************************************************************************************/ require_once 'Smarty_setup.php'; include_once dirname(__FILE__) . '/SMSNotifier.php'; global $theme, $currentModule, $mod_strings, $app_strings, $current_user; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", return_module_language($current_language, 'Settings')); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("APP", $app_strings); $smarty->assign("CMOD", $mod_strings); $mode = vtlib_purify($_REQUEST['mode']); $record = vtlib_purify($_REQUEST['record']); if ($mode == 'query') { SMSNotifier::smsquery($record); } $results = SMSNotifier::getSMSStatusInfo($record); $smarty->assign("RESULTS", $results); $smarty->display(vtlib_getModuleTemplate($currentModule, 'StatusWidget.tpl'));
* ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. ********************************************************************************/ require_once "data/Tracker.php"; require_once 'Smarty_setup.php'; require_once 'include/logging.php'; require_once 'include/utils/utils.php'; require_once 'modules/ITS4YouReports/ITS4YouReports.php'; global $app_strings; global $app_list_strings; global $mod_strings; // ITS4YOU-CR SlOl 20.12.2010 R4U singlerow $current_module_strings = return_module_language($current_language, 'ITS4YouReports'); global $list_max_entries_per_page; global $urlPrefix; $log = LoggerManager::getLogger('report_type'); global $currentModule; global $image_path; global $theme; $smarty_obj = new vtigerCRM_Smarty(); $smarty_obj->assign("MOD", $mod_strings); $smarty_obj->assign("APP", $app_strings); $smarty_obj->assign("IMAGE_PATH", $image_path); $ITS4YouReports = ITS4YouReports::getStoredITS4YouReport(); $Objects = array(); $selected_columns_array = $selectedSummaries_array = $curl_array = array(); $smarty_obj = $ITS4YouReports->getSelectedValuesToSmarty($smarty_obj, "ReportLabels"); $smarty_obj->display(vtlib_getModuleTemplate($currentModule, 'ReportLabels.tpl'));
/*+******************************************************************************** * 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. ******************************************************************************* */ require_once 'data/Tracker.php'; require_once 'include/utils/utils.php'; require_once 'include/utils/UserInfoUtil.php'; require_once 'include/Webservices/DescribeObject.php'; require_once 'Smarty_setup.php'; global $currentModule, $app_strings, $log, $current_user, $theme; $theme_path = "themes/" . $theme . "/"; if (isset($_REQUEST['record'])) { $id = vtlib_purify($_REQUEST['record']); $log->debug(" the id is " . $id); } $category = getParentTab(); require_once 'modules/Leads/ConvertLeadUI.php'; $uiinfo = new ConvertLeadUI($id, $current_user); $smarty = new vtigerCRM_Smarty(); $smarty->assign('UIINFO', $uiinfo); $smarty->assign('MODULE', 'Leads'); $smarty->assign('CATEGORY', $category); $smarty->assign('THEME', $theme_path); $smarty->assign('DATE_FORMAT', $current_user->date_format); $smarty->assign('CAL_DATE_FORMAT', parse_calendardate($app_strings['NTC_DATE_FORMAT'])); $smarty->display(vtlib_getModuleTemplate($currentModule, 'ConvertLead.tpl'));
/** * Function which fetches the template file * @global String $currentModule * @param String $filename * @return template file */ function getModuleTpl($filename) { global $currentModule; return vtlib_getModuleTemplate($currentModule, $filename); }
$smarty->assign("MODULE_NAME", $module_name); $smarty->assign("SELECTED_MODULE", $select_module); $smarty->assign("MODULE_DATA", $rb_listview_header); $smarty->assign("MOD", $mod_strings); $smarty->assign("MODULE", $currentModule); $smarty->assign("CATEGORY", $category); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("APP", $app_strings); $smarty->assign("CMOD", return_module_language($current_language, $select_module)); $smarty->assign("lvEntries", $lvEntries); $smarty->assign("IS_ADMIN", $is_admin); if ($_REQUEST['mode'] != 'ajax') { $smarty->display(vtlib_getModuleTemplate($currentModule, 'RecycleBin.tpl')); } else { $smarty->display(vtlib_getModuleTemplate($currentModule, 'RecycleBinContents.tpl')); } function show_error_msg($error_type = 'permission_denied') { global $theme; if ($error_type == 'permission_denied') { echo "<link rel='stylesheet' type='text/css' href='themes/{$theme}/style.css'>"; echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>"; echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\t\n\t\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t\t<tbody><tr>\n\t\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\n\t\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>" . getTranslatedString('LBL_PERMISSION') . "</span></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td class='small' align='right' nowrap='nowrap'>\t\t\t \t\n\t\t\t<a href='javascript:window.history.back();'>" . getTranslatedString('LBL_GO_BACK') . "</a><br>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</tbody></table> \n\t\t\t</div>"; echo "</td></tr></table>"; die; } else { if ($error_type == 'no_permitted_modules') { echo "<link rel='stylesheet' type='text/css' href='themes/{$theme}/style.css'>"; echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>"; echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\t\n\t\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t\t<tbody><tr>\n\t\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('empty.jpg', $theme) . "' ></td>\n\t\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>" . getTranslatedString('LBL_NO_PERMITTED_MODULES') . "</span></td>\n\t\t\t</tr>\n\t\t\t</tbody></table> \n\t\t\t</div>";
${${"GLOBALS"}["sneqsybpugmu"]}["REMOVE"]["image_src"] = "themes/images/set-IcoTwoTabConfig.gif"; ${${"GLOBALS"}["sneqsybpugmu"]}["REMOVE"]["desc"] = getTranslatedString("LBL_SETTINGS_REMOVE_DESC", "Workflow2"); $rshsjgcwpq = "menu_array"; ${${"GLOBALS"}["icidyejtp"]}["REMOVE"]["label"] = getTranslatedString("LBL_SETTINGS_REMOVE", "Workflow2"); ${$rshsjgcwpq}["triggerManager"]["location"] = "index.php?module=Workflow2&action=settingsTrigger&parenttab=Settings"; ${${"GLOBALS"}["ijilwdnuql"]}["triggerManager"]["image_src"] = "themes/images/set-IcoTwoTabConfig.gif"; ${$mkpvpyngeb}["triggerManager"]["desc"] = getTranslatedString("LBL_SETTINGS_TRIGGERMANAGER_DESC", "Workflow2"); ${${"GLOBALS"}["leupglrwyvz"]}["triggerManager"]["label"] = getTranslatedString("LBL_SETTINGS_TRIGGERMANAGER", "Workflow2"); $vwnultwhm = "menu_array"; ${${"GLOBALS"}["sneqsybpugmu"]}["httpManager"]["location"] = "index.php?module=Workflow2&action=settingsHTTPHandler&parenttab=Settings"; ${$vwnultwhm}["httpManager"]["image_src"] = "themes/images/set-IcoTwoTabConfig.gif"; ${${"GLOBALS"}["sneqsybpugmu"]}["httpManager"]["desc"] = getTranslatedString("LBL_SETTINGS_HTTPHANDLER_DESC", "Workflow2"); ${$yyrymsutf}["httpManager"]["label"] = getTranslatedString("LBL_SETTINGS_HTTPHANDLER", "Workflow2"); ${${"GLOBALS"}["vjdvqldgvw"]} = count(${${"GLOBALS"}["crfpgrbayo"]}) % 3; $nyvffs = "module"; if (${${"GLOBALS"}["vaygchnsv"]} > 0) { $lyjqwptuu = "i"; ${"GLOBALS"}["xtrtzgwubzve"] = "i"; for (${$lyjqwptuu} = 0; ${${"GLOBALS"}["xtrtzgwubzve"]} < 3 - ${${"GLOBALS"}["vaygchnsv"]}; ${${"GLOBALS"}["jrnjmx"]}++) { ${${"GLOBALS"}["sneqsybpugmu"]}[] = array(); } } $smarty->assign("MOD", ${$aersjtn}); $smarty->assign("APP", ${$uxvgytdjtioy}); $smarty->assign("THEME", "{$theme}"); $smarty->assign("IMAGE_PATH", "themes/{$theme}/images/"); $smarty->assign("MODULE", ${$nyvffs}); $smarty->assign("MODULE_LBL", getTranslatedString(${$qxrilvlgnehg})); $smarty->assign("MENU_ARRAY", ${${"GLOBALS"}["mlrihr"]}); $smarty->display(vtlib_getModuleTemplate("Vtiger", "Settings.tpl")); }
$smarty->assign("CFENTRIES", getCFListEntries($fld_module)); } else { $smarty->assign("CFENTRIES", getCFLeadMapping($fld_module)); } if (isset($_REQUEST["duplicate"]) && $_REQUEST["duplicate"] == "yes") { $error = getTranslatedString('ERR_CUSTOM_FIELD_WITH_NAME', 'Settings') . vtlib_purify($_REQUEST["fldlabel"]) . ' ' . getTranslatedString('ERR_ALREADY_EXISTS', 'Settings') . ' ' . getTranslatedString('ERR_SPECIFY_DIFFERENT_LABEL', 'Settings'); $smarty->assign("DUPLICATE_ERROR", $error); } if ($_REQUEST['mode'] != '') { $mode = vtlib_purify($_REQUEST['mode']); } $smarty->assign("MODE", $mode); if ($_REQUEST['ajax'] != 'true') { $smarty->display(vtlib_getModuleTemplate('Vtiger', 'CustomFieldList.tpl')); } else { $smarty->display(vtlib_getModuleTemplate('Vtiger', 'CustomFieldEntries.tpl')); } /** * Function to get customfield entries * @param string $module - Module name * return array $cflist - customfield entries */ function getCFListEntries($module) { global $adb, $app_strings, $theme, $smarty, $log; $tabid = getTabid($module); if ($module == 'Calendar') { $tabid = array(9, 16); } $theme_path = "themes/" . $theme . "/"; $image_path = "themes/images/";
<?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. *************************************************************************************/ require_once 'Smarty_setup.php'; include_once dirname(__FILE__) . '/SMSNotifier.php'; global $theme, $currentModule, $mod_strings, $app_strings, $current_user; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new vtigerCRM_Smarty(); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("APP", $app_strings); $smarty->assign("MOD", $mod_strings); $idstring = vtlib_purify($_REQUEST['idstring']); $idstring = trim($idstring, ';'); $idlist = explode(';', $idstring); $sourcemodule = vtlib_purify($_REQUEST['sourcemodule']); $phonefields = vtlib_purify($_REQUEST['phonefields']); $phonefields = trim($phonefields, ';'); $smarty->assign('PHONEFIELDS', $phonefields); $smarty->assign('IDSTRING', $idstring); $smarty->assign('SOURCEMODULE', $sourcemodule); $smarty->display(vtlib_getModuleTemplate($currentModule, 'SMSNotifierComposeWizard.tpl'));
* 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. *********************************************************************************/ require_once 'Smarty_setup.php'; global $mod_strings, $app_strings, $theme, $adb; $smarty = new vtigerCRM_Smarty(); $module = vtlib_purify($_REQUEST['formodule']); $menu_array = array(); $menu_array['CustomFields']['location'] = 'index.php?module=Settings&action=CustomFieldList&parenttab=Settings&formodule=' . $module; $menu_array['CustomFields']['image_src'] = vtiger_imageurl('orgshar.gif', $theme); $menu_array['CustomFields']['desc'] = getTranslatedString('LBL_USER_CUSTOMFIELDS_DESCRIPTION', 'Users'); $menu_array['CustomFields']['label'] = getTranslatedString('LBL_USER_CUSTOMFIELDS', 'Users'); //add blanks for 3-column layout $count = count($menu_array) % 3; if ($count > 0) { for ($i = 0; $i < 3 - $count; $i++) { $menu_array[] = array(); } } $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("IMAGE_PATH", "themes/{$theme}/images/"); $smarty->assign('MODULE', $module); $smarty->assign('MODULE_LBL', getTranslatedString($module)); $smarty->assign('MENU_ARRAY', $menu_array); $smarty->display(vtlib_getModuleTemplate('Vtiger', 'Settings.tpl'));
$phoneTypeFieldsResult = $adb->pquery("SELECT fieldid,fieldname,fieldlabel FROM vtiger_field WHERE uitype=11 AND tabid=? AND presence in (0,2)", array(getTabid($sourcemodule))); if ($phoneTypeFieldsResult && $adb->num_rows($phoneTypeFieldsResult)) { while ($resultrow = $adb->fetch_array($phoneTypeFieldsResult)) { $checkFieldPermission = getFieldVisibilityPermission($sourcemodule, $current_user->id, $resultrow['fieldname']); if ($checkFieldPermission == '0') { $fieldlabel = getTranslatedString($resultrow['fieldlabel'], $sourcemodule); $capturedFieldNames[] = $resultrow['fieldname']; $capturedFieldInfo[$resultrow['fieldid']] = array($fieldlabel => $resultrow['fieldname']); } } } // END $capturedFieldValues = array(); // If single record is selected, good to show the numbers also in the wizard. if (count($idlist) === 1) { $focusInstance = CRMEntity::getInstance($sourcemodule); $focusInstance->retrieve_entity_info($idlist[0], $sourcemodule); foreach ($capturedFieldNames as $fieldname) { if (isset($focusInstance->column_fields[$fieldname])) { $capturedFieldValues[$fieldname] = $focusInstance->column_fields[$fieldname]; } } } $smarty->assign('PHONEFIELDS', $capturedFieldInfo); $smarty->assign('FIELDVALUES', $capturedFieldValues); $smarty->assign('IDSTRING', $idstring); $smarty->assign('SOURCEMODULE', $sourcemodule); $smarty->display(vtlib_getModuleTemplate($currentModule, 'SMSNotifierSelectWizard.tpl')); } else { $smarty->display(vtlib_getModuleTemplate($currentModule, 'SMSNotifierServerNotAvailable.tpl')); }