• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vtlib_getModuleTemplate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中vtlib_getModuleTemplate函数的典型用法代码示例。如果您正苦于以下问题:PHP vtlib_getModuleTemplate函数的具体用法?PHP vtlib_getModuleTemplate怎么用?PHP vtlib_getModuleTemplate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了vtlib_getModuleTemplate函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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'));
}
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:26,代码来源:editexpressions.php


示例2: process

 function process($templateName)
 {
     $smarty = $this->viewController();
     $response = new Mobile_API_Response();
     $response->setResult($smarty->fetch(vtlib_getModuleTemplate('Mobile', $templateName)));
     return $response;
 }
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:7,代码来源:Viewer.php


示例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'));
 }
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:8,代码来源:index.php


示例4: fetch

 function fetch($templateName, $moduleName = '')
 {
     $smarty = $this->viewController();
     if (empty($moduleName)) {
         $moduleName = 'Import';
     }
     return $smarty->fetch(vtlib_getModuleTemplate($moduleName, $templateName));
 }
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:8,代码来源:Viewer.php


示例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'));
 }
开发者ID:kduqi,项目名称:corebos,代码行数:19,代码来源:index.php


示例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'));
}
开发者ID:mslokhat,项目名称:corebos,代码行数:31,代码来源:ProfilesPrivilegies.php


示例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'));
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:30,代码来源:AccountingSettings.php


示例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'));
}
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:31,代码来源:Save.php


示例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'));
开发者ID:cin-system,项目名称:cinrepo,代码行数:30,代码来源:Reports4YouHeader.php


示例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'));
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:24,代码来源:WebformsHTMLView.php


示例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"));
开发者ID:cin-system,项目名称:cinrepo,代码行数:30,代码来源:EditReports4You.php


示例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'));
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:25,代码来源:EditView.php


示例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'));
}
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:31,代码来源:ListView.php


示例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'));
开发者ID:cin-system,项目名称:cinrepo,代码行数:29,代码来源:ReportColumnsTotal.php


示例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'));
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:18,代码来源:SelectCharts.php


示例16: rgb

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'));
}
开发者ID:mslokhat,项目名称:corebos,代码行数:31,代码来源:BasicSettings.php


示例17: process

 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"));
 }
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:11,代码来源:DetailViewBlockComment.php


示例18: 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 "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'));
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:19,代码来源:QuickCreate.php


示例19: array

            }
            $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'));
                }
            }
        }
    }
}
开发者ID:hardikk,项目名称:HNH,代码行数:31,代码来源:SMSConfigServer.php


示例20: templatePath

 static function templatePath($filename)
 {
     return vtlib_getModuleTemplate('Mobile', "generic/{$filename}");
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:4,代码来源:Mobile.php



注:本文中的vtlib_getModuleTemplate函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vtlib_isModuleActive函数代码示例发布时间:2022-05-23
下一篇:
PHP vtlib_getModuleNameById函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap