本文整理汇总了PHP中vtigerCRM_Smarty::display方法的典型用法代码示例。如果您正苦于以下问题:PHP vtigerCRM_Smarty::display方法的具体用法?PHP vtigerCRM_Smarty::display怎么用?PHP vtigerCRM_Smarty::display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vtigerCRM_Smarty
的用法示例。
在下文中一共展示了vtigerCRM_Smarty::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_error_import
/** function used to show the error message occured during import process
* @param string $message - Error message to display in the screen, where the passed error message will be displayed in screen using Importerror.tpl file
*/
function show_error_import($message)
{
global $import_mod_strings;
global $theme;
global $log;
global $mod_strings;
global $app_strings;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$log->info("Upload Error");
$smarty = new vtigerCRM_Smarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
if (isset($_REQUEST['return_module'])) {
$smarty->assign("RETURN_MODULE", vtlib_purify($_REQUEST['return_module']));
}
if (isset($_REQUEST['return_action'])) {
$smarty->assign("RETURN_ACTION", vtlib_purify($_REQUEST['return_action']));
}
$smarty->assign("THEME", $theme);
$category = getParenttab();
$smarty->assign("CATEGORY", $category);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("PRINT_URL", "phprint.php?jt=" . session_id() . $GLOBALS['request_string']);
$smarty->assign("MODULE", vtlib_purify($_REQUEST['module']));
$smarty->assign("MESSAGE", $message);
$smarty->display('Importerror.tpl');
}
示例2: vtDisplayTaskList
function vtDisplayTaskList($adb, $requestUrl, $current_language)
{
global $theme, $app_strings;
$image_path = "themes/{$theme}/images/";
$util = new VTWorkflowUtils();
$module = new VTWorkflowApplication("tasklist");
$mod = return_module_language($current_language, $module->name);
if (!$util->checkAdminAccess()) {
$errorUrl = $module->errorPageUrl($mod['LBL_ERROR_NOT_ADMIN']);
$util->redirectTo($errorUrl, $mod['LBL_ERROR_NOT_ADMIN']);
return;
}
$smarty = new vtigerCRM_Smarty();
$tm = new VTTaskManager($adb);
$smarty->assign("tasks", $tm->getTasks());
$smarty->assign("moduleNames", array("Contacts", "Applications"));
$smarty->assign("taskTypes", array("VTEmailTask", "VTDummyTask"));
$smarty->assign("returnUrl", $requestUrl);
$smarty->assign("MOD", return_module_language($current_language, 'Settings'));
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("MODULE_NAME", $module->label);
$smarty->assign("PAGE_NAME", 'Task List');
$smarty->assign("PAGE_TITLE", 'List available tasks');
$smarty->assign("moduleName", $moduleName);
$smarty->display("{$module->name}/ListTasks.tpl");
}
示例3: vtDisplayWorkflowList
function vtDisplayWorkflowList($adb, $request, $requestUrl, $app_strings, $current_language)
{
global $theme;
$image_path = "themes/{$theme}/images/";
$module = new VTWorkflowApplication("workflowlist");
$util = new VTWorkflowUtils();
$mod = return_module_language($current_language, $module->name);
if (!$util->checkAdminAccess()) {
$errorUrl = $module->errorPageUrl($mod['LBL_ERROR_NOT_ADMIN']);
$util->redirectTo($errorUrl, $mod['LBL_ERROR_NOT_ADMIN']);
return;
}
$smarty = new vtigerCRM_Smarty();
$wfs = new VTWorkflowManager($adb);
$smarty->assign("moduleNames", $util->vtGetModules($adb));
$smarty->assign("returnUrl", $requestUrl);
$listModule = $request['list_module'];
$smarty->assign("listModule", $listModule);
if ($listModule == null || strtolower($listModule) == "all") {
$smarty->assign("workflows", $wfs->getWorkflows());
} else {
$smarty->assign("workflows", $wfs->getWorkflowsForModule($listModule));
}
$smarty->assign("MOD", array_merge(return_module_language($current_language, 'Settings'), return_module_language($current_language, $module->name)));
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("MODULE_NAME", $module->label);
$smarty->assign("PAGE_NAME", $mod['LBL_WORKFLOW_LIST']);
$smarty->assign("PAGE_TITLE", $mod['LBL_AVAILABLE_WORKLIST_LIST']);
$smarty->assign("module", $module);
$smarty->assign('MODULE', $module->name);
$smarty->assign("CRON_TASK", Vtiger_Cron::getInstance('Workflow'));
$smarty->display("{$module->name}/ListWorkflows.tpl");
}
示例4: 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'));
}
示例5: vtWorkflowEdit
function vtWorkflowEdit($adb, $request, $requestUrl, $current_language, $app_strings)
{
global $theme;
$util = new VTWorkflowUtils();
$image_path = "themes/{$theme}/images/";
$module = new VTWorkflowApplication("editworkflow");
$mod = return_module_language($current_language, $module->name);
if (!$util->checkAdminAccess()) {
$errorUrl = $module->errorPageUrl($mod['LBL_ERROR_NOT_ADMIN']);
$util->redirectTo($errorUrl, $mod['LBL_ERROR_NOT_ADMIN']);
return;
}
$smarty = new vtigerCRM_Smarty();
if ($request['source'] == 'from_template') {
$tm = new VTWorkflowTemplateManager($adb);
$template = $tm->retrieveTemplate($request['template_id']);
$workflow = $tm->createWorkflow($template);
} else {
$wfs = new VTWorkflowManager($adb);
if (isset($request["workflow_id"])) {
$workflow = $wfs->retrieve($request["workflow_id"]);
} else {
$moduleName = $request["module_name"];
$workflow = $wfs->newWorkflow($moduleName);
}
}
if ($workflow == null) {
$errorUrl = $module->errorPageUrl($mod['LBL_ERROR_NO_WORKFLOW']);
$util->redirectTo($errorUrl, $mod['LBL_ERROR_NO_WORKFLOW']);
return;
}
$workflow->test = addslashes($workflow->test);
$tm = new VTTaskManager($adb);
$tasks = $tm->getTasksForWorkflow($workflow->id);
$smarty->assign("tasks", $tasks);
$taskTypes = $tm->getTaskTypes($workflow->moduleName);
$smarty->assign("taskTypes", $taskTypes);
$smarty->assign("newTaskReturnUrl", vtlib_purify($requestUrl));
$smarty->assign("returnUrl", vtlib_purify($request["return_url"]));
$smarty->assign("APP", $app_strings);
$smarty->assign("MOD", array_merge(return_module_language($current_language, 'Settings'), return_module_language($current_language, $module->name)));
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("MODULE_NAME", $module->label);
$smarty->assign("PAGE_NAME", $mod['LBL_EDIT_WORKFLOW']);
$smarty->assign("PAGE_TITLE", $mod['LBL_EDIT_WORKFLOW_TITLE']);
$smarty->assign("workflow", $workflow);
$smarty->assign("saveType", isset($workflow->id) ? "edit" : "new");
$smarty->assign("module", $module);
$smarty->assign("WORKFLOW_TRIGGER_TYPES_HELP_LINK", WORKFLOW_TRIGGER_TYPES);
$smarty->display("{$module->name}/EditWorkflow.tpl");
}
示例6: getModuleSequenceField
$smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']);
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->assign("DUPLICATE", vtlib_purify($_REQUEST['isDuplicate']));
global $adb;
// Module Sequence Numbering
$mod_seq_field = getModuleSequenceField($currentModule);
if ($focus->mode != 'edit' && $mod_seq_field != null) {
$autostr = getTranslatedString('MSG_AUTO_GEN_ON_SAVE');
$mod_seq_string = $adb->pquery("SELECT prefix, cur_id from vtiger_modentity_num where semodule = ? and active=1", array($currentModule));
$mod_seq_prefix = $adb->query_result($mod_seq_string, 0, 'prefix');
$mod_seq_no = $adb->query_result($mod_seq_string, 0, 'cur_id');
if ($adb->num_rows($mod_seq_string) == 0 || $focus->checkModuleSeqNumber($focus->table_name, $mod_seq_field['column'], $mod_seq_prefix . $mod_seq_no)) {
echo '<br><font color="#FF0000"><b>' . getTranslatedString('LBL_DUPLICATE') . ' ' . getTranslatedString($mod_seq_field['label']) . ' - ' . getTranslatedString('LBL_CLICK') . ' <a href="index.php?module=Settings&action=CustomModEntityNo&parenttab=Settings&selmodule=' . $currentModule . '">' . getTranslatedString('LBL_HERE') . '</a> ' . getTranslatedString('LBL_TO_CONFIGURE') . ' ' . getTranslatedString($mod_seq_field['label']) . '</b></font>';
} else {
$smarty->assign("MOD_SEQ_ID", $autostr);
}
} else {
$smarty->assign("MOD_SEQ_ID", $focus->column_fields[$mod_seq_field['name']]);
}
// END
$picklistDependencyDatasource = Vtiger_DependencyPicklist::getPicklistDependencyDatasource($currentModule);
$smarty->assign("PICKIST_DEPENDENCY_DATASOURCE", Zend_Json::encode($picklistDependencyDatasource));
// Gather the help information associated with fields
$smarty->assign('FIELDHELPINFO', vtlib_getFieldHelpInfo($currentModule));
// END
if ($focus->mode == 'edit') {
$smarty->display('Inventory/InventoryEditView.tpl');
} else {
$smarty->display('Inventory/InventoryCreateView.tpl');
}
示例7: unset
$smarty->assign("MODULESORCES", $ModuleSorces);
}
$smarty->assign("MODULE_BLOCKS", $Convert_ModuleBlocks);
$smarty->assign("RELATED_MODULE_FIELDS", $Convert_RelatedModuleFields);
$smarty->assign("MODULE_FIELDS", $Convert_ModuleFields);
// ITS4YOU-CR VlZa
// Product bloc templates
$sql = "SELECT * FROM vtiger_pdfmaker_productbloc_tpl";
$result = $adb->query($sql);
$Productbloc_tpl[""] = $mod_strings["LBL_PLS_SELECT"];
while ($row = $adb->fetchByAssoc($result)) {
$Productbloc_tpl[$row["body"]] = $row["name"];
}
$smarty->assign("PRODUCT_BLOC_TPL", $Productbloc_tpl);
$smarty->assign("PRODUCTS_FIELDS", $SelectModuleFields["Products"]);
$smarty->assign("SERVICES_FIELDS", $SelectModuleFields["Services"]);
// ITS4YOU-END
if ($templateid != "" || $select_module != "") {
$smarty->assign("SELECT_MODULE_FIELD", $SelectModuleFields[$select_module]);
$smf_filename = $SelectModuleFields[$select_module];
if ($select_module == "Invoice" || $select_module == "Quotes" || $select_module == "SalesOrder" || $select_module == "PurchaseOrder" || $select_module == "Issuecards" || $select_module == "Receiptcards" || $select_module == "Creditnote" || $select_module == "StornoInvoice") {
unset($smf_filename["Details"]);
}
$smarty->assign("SELECT_MODULE_FIELD_FILENAME", $smf_filename);
}
include_once "version.php";
$smarty->assign("VERSION", $version);
$category = getParentTab();
$smarty->assign("CATEGORY", $category);
$smarty->display('modules/PDFMaker/EditPDFTemplate.tpl');
示例8: unset
if (!$_SESSION['rlvs'][$currentModule]) {
unset($_SESSION['rlvs']);
}
// Identify this module as custom module.
$smarty->assign('CUSTOM_MODULE', true);
$smarty->assign('APP', $app_strings);
$smarty->assign('MOD', $mod_strings);
$smarty->assign('MODULE', $currentModule);
// TODO: Update Single Module Instance name here.
$smarty->assign('SINGLE_MOD', getTranslatedString($currentModule));
$smarty->assign('CATEGORY', $category);
$smarty->assign('IMAGE_PATH', "themes/{$theme}/images/");
$smarty->assign('THEME', $theme);
$smarty->assign('ID', $focus->id);
$smarty->assign('MODE', $focus->mode);
$smarty->assign('CHECK', $tool_buttons);
$smarty->assign('NAME', $focus->column_fields[$focus->def_detailview_recname]);
$smarty->assign('UPDATEINFO', updateInfo($focus->id));
// Module Sequence Numbering
$mod_seq_field = getModuleSequenceField($currentModule);
if ($mod_seq_field != null) {
$mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
} else {
$mod_seq_id = $focus->id;
}
$smarty->assign('MOD_SEQ_ID', $mod_seq_id);
// END
$related_array = getRelatedLists($currentModule, $focus);
$smarty->assign('RELATEDLISTS', $related_array);
$smarty->display('RelatedLists.tpl');
}
示例9: getRelatedLists
if ($mod_seq_field != null) {
$mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
} else {
$mod_seq_id = $focus->id;
}
$smarty->assign('MOD_SEQ_ID', $mod_seq_id);
// END
$smarty->assign("ID", $focus->id);
$smarty->assign("NAME", $focus->lastname . ' ' . $focus->firstname);
$smarty->assign("EMAIL", $focus->column_fields['email']);
$smarty->assign("SECONDARY_EMAIL", $focus->column_fields['secondaryemail']);
$related_array = getRelatedLists($currentModule, $focus);
$smarty->assign("RELATEDLISTS", $related_array);
require_once 'include/ListView/RelatedListViewSession.php';
if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
$relationId = vtlib_purify($_REQUEST['relation_id']);
RelatedListViewSession::addRelatedModuleToSession($relationId, vtlib_purify($_REQUEST['selected_header']));
}
$open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();
$smarty->assign("SELECTEDHEADERS", $open_related_modules);
$smarty->assign("SINGLE_MOD", $app_strings['Lead']);
$smarty->assign("MODULE", $currentmodule);
$smarty->assign("UPDATEINFO", updateInfo($focus->id));
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
}
示例10: explode
$mapTemplate->assign("seldelimiter", $seldelimiter);
$mapTemplate->assign('maptype', $maptype);
} else {
$viewmode = "create";
}
$mapTemplate->assign("MOD", $mod_strings);
$mapTemplate->assign("APP", $app_strings);
$mapTemplate->assign("module_list", json_encode($mapInstance->module_list));
$mapTemplate->assign("related_modules", json_encode($mapInstance->related_modules));
$mapTemplate->assign("rel_fields", json_encode($mapInstance->rel_fields));
$mapTemplate->assign("delimiters", $delimiters);
$mapTemplate->assign("mapid", $mapid);
$mapTemplate->assign("mode", $viewmode);
$mapTemplate->assign("module_id", $mapInstance->module_id);
switch (strtolower($maptype)) {
case 'block access':
$blockids = explode(',', $blocks);
$mapTemplate->assign('blocks', json_encode($mapInstance->module_list[$originname]));
$mapTemplate->assign('blockid', $mapInstance->module_list[$originname]);
$mapTemplate->assign("targetID", $blockids[0]);
$mapTemplate->display('modules/cbMap/blockaccess.tpl');
break;
case 'metadata':
$mapTemplate->display('modules/cbMap/metadataWindow.tpl');
break;
case 'search and update':
$mapTemplate->display('modules/cbMap/SearchUpdateMap.tpl');
break;
default:
$mapTemplate->display('modules/cbMap/mapWindow.tpl');
}
示例11: getTranslatedString
} else {
$cron_end = '';
}
$out['cronname'] = getTranslatedString($cron_mod, $cronTask->getModule());
$out['hours'] = str_pad((int) ($cron_freq / (60 * 60)), 2, 0, STR_PAD_LEFT);
$out['mins'] = str_pad((int) ($cron_freq % (60 * 60) / 60), 2, 0, STR_PAD_LEFT);
$out['id'] = $cron_id;
$out['status'] = $cron_st;
$out['laststart'] = $cron_started;
$out['lastend'] = $cron_end;
if ($out['status'] == Vtiger_Cron::$STATUS_DISABLED) {
$out['status'] = $mod_strings['LBL_INACTIVE'];
} elseif ($out['status'] == Vtiger_Cron::$STATUS_ENABLED) {
$out['status'] = $mod_strings['LBL_ACTIVE'];
} else {
$out['status'] = $mod_strings['LBL_RUNNING'];
}
$output[] = $out;
}
$smarty->assign('CRON', $output);
$smarty->assign('MOD', return_module_language($current_language, 'CronTasks'));
$smarty->assign('MIN_CRON_FREQUENCY', getMinimumCronFrequency());
$smarty->assign('THEME', $theme);
$smarty->assign('IMAGE_PATH', $image_path);
$smarty->assign('APP', $app_strings);
$smarty->assign('CMOD', $mod_strings);
if ($_REQUEST['directmode'] != '') {
$smarty->display('modules/CronTasks/CronContents.tpl');
} else {
$smarty->display('modules/CronTasks/Cron.tpl');
}
示例12: InStrCount
$smarty->assign("CFENTRIES", getFieldListEntries($fld_module));
$smarty->assign("RELATEDLIST", getRelatedListInfo($fld_module));
if (isset($_REQUEST["duplicate"]) && $_REQUEST["duplicate"] == "yes" || $duplicate == 'yes') {
echo "ERROR";
exit;
}
if ($duplicate == 'LENGTH_ERROR') {
echo "LENGTH_ERROR";
exit;
}
if ($_REQUEST['mode'] != '') {
$mode = vtlib_purify($_REQUEST['mode']);
}
$smarty->assign("MODE", $mode);
if ($_REQUEST['ajax'] != 'true') {
$smarty->display('Settings/LayoutBlockList.tpl');
} elseif (($subMode == 'getRelatedInfoOrder' || $subMode == 'changeRelatedInfoOrder') && $_REQUEST['ajax'] == 'true') {
$smarty->display('Settings/OrderRelatedList.tpl');
} else {
$smarty->display('Settings/LayoutBlockEntries.tpl');
}
function InStrCount($String, $Find, $CaseSensitive = false)
{
global $log;
$i = 0;
$x = 0;
$substring = '';
while (strlen($String) >= $i) {
unset($substring);
if ($CaseSensitive) {
$Find = strtolower($Find);
示例13: 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'));
示例14: getModuleSequenceField
$smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']);
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']);
$smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']);
$smarty->assign("DUPLICATE", vtlib_purify($_REQUEST['isDuplicate']));
global $adb;
// Module Sequence Numbering
$mod_seq_field = getModuleSequenceField($currentModule);
if ($focus->mode != 'edit' && $mod_seq_field != null) {
$autostr = getTranslatedString('MSG_AUTO_GEN_ON_SAVE');
$mod_seq_string = $adb->pquery("SELECT prefix, cur_id from vtiger_modentity_num where semodule = ? and active=1", array($currentModule));
$mod_seq_prefix = $adb->query_result($mod_seq_string, 0, 'prefix');
$mod_seq_no = $adb->query_result($mod_seq_string, 0, 'cur_id');
if ($adb->num_rows($mod_seq_string) == 0 || $focus->checkModuleSeqNumber($focus->table_name, $mod_seq_field['column'], $mod_seq_prefix . $mod_seq_no)) {
echo '<br><font color="#FF0000"><b>' . getTranslatedString('LBL_DUPLICATE') . ' ' . getTranslatedString($mod_seq_field['label']) . ' - ' . getTranslatedString('LBL_CLICK') . ' <a href="index.php?module=Settings&action=CustomModEntityNo&parenttab=Settings&selmodule=' . $currentModule . '">' . getTranslatedString('LBL_HERE') . '</a> ' . getTranslatedString('LBL_TO_CONFIGURE') . ' ' . getTranslatedString($mod_seq_field['label']) . '</b></font>';
} else {
$smarty->assign("MOD_SEQ_ID", $autostr);
}
} else {
$smarty->assign("MOD_SEQ_ID", $focus->column_fields[$mod_seq_field['name']]);
}
// END
// Gather the help information associated with fields
$smarty->assign('FIELDHELPINFO', vtlib_getFieldHelpInfo($currentModule));
// END
$picklistDependencyDatasource = Vtiger_DependencyPicklist::getPicklistDependencyDatasource($currentModule);
$smarty->assign("PICKIST_DEPENDENCY_DATASOURCE", Zend_Json::encode($picklistDependencyDatasource));
if ($focus->mode == 'edit') {
$smarty->display("salesEditView.tpl");
} else {
$smarty->display("CreateView.tpl");
}
示例15: VARCHAR
global $currentModule, $moduleList, $adb, $vtiger_current_version;
$image_path = "include/images/";
$app_strings = return_application_language('en_us');
$smarty = new vtigerCRM_Smarty();
$smarty->assign("APP", $app_strings);
if (isset($app_strings['LBL_CHARSET'])) {
$smarty->assign("LBL_CHARSET", $app_strings['LBL_CHARSET']);
} else {
$smarty->assign("LBL_CHARSET", $default_charset);
}
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("PRINT_URL", "phprint.php?jt=" . session_id() . (isset($GLOBALS['request_string']) ? $GLOBALS['request_string'] : ''));
$smarty->assign("VTIGER_VERSION", $vtiger_current_version);
// We check if we have the two new logo fields > if not we create them
$cnorg = $adb->getColumnNames('vtiger_organizationdetails');
if (!in_array('faviconlogo', $cnorg)) {
$adb->query('ALTER TABLE `vtiger_organizationdetails` ADD `frontlogo` VARCHAR(150) NOT NULL, ADD `faviconlogo` VARCHAR(150) NOT NULL');
}
$sql = "select * from vtiger_organizationdetails";
$result = $adb->pquery($sql, array());
//Handle for allowed organation logo/logoname likes UTF-8 Character
$companyDetails = array();
$companyDetails['name'] = $adb->query_result($result, 0, 'organizationname');
$companyDetails['website'] = $adb->query_result($result, 0, 'website');
$companyDetails['logo'] = decode_html($adb->query_result($result, 0, 'logoname'));
$smarty->assign("COMPANY_DETAILS", $companyDetails);
if (isset($login_error) && $login_error != "") {
$smarty->assign("LOGIN_ERROR", $login_error);
}
$smarty->display('Login.tpl');