本文整理汇总了PHP中vtlib_getModuleTemplate函数的典型用法代码示例。如果您正苦于以下问题:PHP vtlib_getModuleTemplate函数的具体用法?PHP vtlib_getModuleTemplate怎么用?PHP vtlib_getModuleTemplate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vtlib_getModuleTemplate函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: vtEditExpressions
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'));
}
示例2: process
function process($templateName)
{
$smarty = $this->viewController();
$response = new Mobile_API_Response();
$response->setResult($smarty->fetch(vtlib_getModuleTemplate('Mobile', $templateName)));
return $response;
}
示例3: process
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'));
}
示例4: fetch
function fetch($templateName, $moduleName = '')
{
$smarty = $this->viewController();
if (empty($moduleName)) {
$moduleName = 'Import';
}
return $smarty->fetch(vtlib_getModuleTemplate($moduleName, $templateName));
}
示例5: processDefault
/**
* 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'));
}
示例6: its4you_calendar4you_profilespermissions
$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'));
}
示例7: array
$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'));
示例8: vtlib_purify
} 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'));
}
示例9: htmlspecialchars
//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'));
示例10: vtigerCRM_Smarty
<?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'));
示例11: vtlib_purify
$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"));
示例12: vtigerCRM_Smarty
<?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'));
示例13: AlphabeticalSearch
}
$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'));
}
示例14: return_module_language
/*+********************************************************************************
* 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'));
示例15: return_chart_language
<?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'));