function show_error_import($message) { global $current_language; $import_mod_strings = return_module_language($current_language, "Import"); global $theme; global $log; global $mod_strings; global $app_strings; global $current_user; include 'themes/' . $theme . '/header.php'; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $log->info("Upload Error"); $smarty = new CRMSmarty(); $smarty->assign("MOD", $import_mod_strings); $smarty->assign("APP", $app_strings); if (isset($_REQUEST['return_module'])) { $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); } if (isset($_REQUEST['return_action'])) { $smarty->assign("RETURN_ACTION", $_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", "SalesOrder"); $smarty->assign("MESSAGE", $message); $smarty->display('SalesOrder/Importerror.tpl'); }
/** 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/"; require_once $theme_path . 'layout_utils.php'; $log->info("Upload Error"); $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); if (isset($_REQUEST['return_module'])) { $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); } if (isset($_REQUEST['return_action'])) { $smarty->assign("RETURN_ACTION", $_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", $_REQUEST['module']); $smarty->assign("MESSAGE", $message); $smarty->display('Importerror.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 'include/CRMSmarty.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/CustomFieldUtil.php'; global $mod_strings; global $app_strings; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty->assign("IMAGE_PATH", $image_path); $module_array = getCustomFieldSupportedModules(); $smarty->assign("MODULES", $module_array); if ($_REQUEST['fld_module'] != '') { $fld_module = $_REQUEST['fld_module']; } else { $fld_module = 'Accounts'; } $smarty->assign("MODULE", $fld_module); $smarty->assign("RELATEDENTRY", getRelatedListEntries($fld_module)); if ($_REQUEST['mode'] != '') {
global $app_strings; global $app_list_strings; global $current_user; //Display the mail send status $smarty = new CRMSmarty(); global $adb; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $sql = "select * from ec_messageaccount where smownerid='" . $current_user->id . "'"; $result = $adb->query($sql); $username = $adb->query_result($result, 0, 'username'); $password = $adb->query_result($result, 0, 'password'); if (isset($username)) { $smarty->assign("USERNAME", $username); } if (isset($password)) { $smarty->assign("PASSWORD", $password); } if (isset($_REQUEST['messageconfig_mode']) && $_REQUEST['messageconfig_mode'] != '') { $smarty->assign("MESSAGECONFIG_MODE", $_REQUEST['messageconfig_mode']); } else { $smarty->assign("MESSAGECONFIG_MODE", 'view'); } /* //get sms money //$host_name = "http://www.c3crm.com/getFee.php?name=$username&pwd=$password"; $host_name = "http://www.china-sms.com/send/getfee.asp?name=$username&pwd=$password"; if (gethostbyname($host_name) == $host_name) { // network error // notify user network baybe has error
$url_string = ''; $smarty = new CRMSmarty(); if (!isset($where)) { $where = ""; } //<<<<cutomview>>>>>>> $oCustomView = new CustomView($currentModule); $viewid = $oCustomView->getViewId($currentModule); $customviewcombo_html = $oCustomView->getCustomViewCombo($viewid); $viewnamedesc = $oCustomView->getCustomViewByCvid($viewid); //<<<<<customview>>>>> $popuptype = ''; $popuptype = $_REQUEST["popuptype"]; require_once "modules/Products/Products.php"; $focus = new Products(); $smarty->assign("SINGLE_MOD", 'Product'); if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != '') { $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); } else { $smarty->assign("RETURN_MODULE", 'Products'); } if (isset($_REQUEST['select'])) { $smarty->assign("SELECT", 'enable'); } if (isset($_REQUEST['return_action'])) { $return_action = $_REQUEST['return_action']; $smarty->assign("RETURN_ACTION", $return_action); } $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty->assign("MOD", $mod_strings);
global $log, $currentModule, $singlepane_view; global $current_user; $focus = new Accounts(); if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') { $focus->retrieve_entity_info($_REQUEST['record'], "Accounts"); $focus->id = $_REQUEST['record']; $focus->name = $focus->column_fields['accountname']; } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); //$smarty->assign("CUSTOMFIELD", $cust_fld); $smarty->assign("ID", $_REQUEST['record']); $category = getParentTab(); $smarty->assign("CATEGORY", $category); $moduletype = $_REQUEST['moduletype']; $smarty->assign("type", $moduletype); $smarty->assign("SINGLE_MOD", "Account"); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->assign("MODULE", $currentModule); $related_array = getRelatedLists($currentModule, $focus); $relcount = count($related_array);
$focus->qunfatmpname = $focus->column_fields['qunfatmpname']; $log->debug("id is " . $focus->id); $log->debug("name is " . $focus->name); } global $mod_strings; global $app_strings; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { $smarty->assign("OP_MODE", $_REQUEST['mode']); } if (!$_SESSION['rlvs'][$module]) { unset($_SESSION['rlvs']); } $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Qunfatmps", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Qunfatmp');
$focus_impacc = new ImportAccount(); $focus_imppro = new ImportProduct(); $focus_impso = new ImportSalesorder(); $focus = 0; $delimiter = ','; $max_lines = 3; $has_header1 = 1; $overwrite1 = 1; $has_header2 = 1; $overwrite2 = 1; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("IMP", $import_mod_strings); $smarty->assign("MODULE", $_REQUEST['module']); $filename1 = $_REQUEST['filename1']; $filename2 = $_REQUEST['filename2']; if (empty($filename1)) { show_error_import2("The order list file is empty!"); exit; } if (empty($filename2)) { show_error_import2("The order detail file is empty!"); exit; } if (strpos($filename1, ".csv") == false) { show_error_import2("The order list file is not a csv file!");
$focus->id = $_REQUEST['record']; $focus->name = $focus->column_fields['productname']; $focus->column_fields['product_description'] = decode_html($focus->column_fields["product_description"]); //描述 } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } global $app_strings, $currentModule, $singlepane_view; global $mod_strings; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } else { $smarty->assign("NAME", ""); } $focus->column_fields['description'] = html_entity_decode($focus->column_fields['description']); $smarty->assign("BLOCKS", getBlocks($currentModule, "detail_view", '', $focus->column_fields)); $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); //$smarty->assign("CUSTOMFIELD", $cust_fld); $smarty->assign("SINGLE_MOD", 'Product'); if (isPermitted($module, "EditView", $_REQUEST['record']) == 'yes') { $smarty->assign("EDIT", "permitted");
$_SESSION['lvs'][$currentModule] = get_object_vars($modObj); } //<<<<cutomview>>>>>>> $oCustomView = new CustomView("Qunfatmps"); $viewid = $oCustomView->getViewId($currentModule); $customviewcombo_html = $oCustomView->getCustomViewCombo($viewid); $viewnamedesc = $oCustomView->getCustomViewByCvid($viewid); //<<<<<customview>>>>> if (!isset($where)) { $where = ""; } $url_string = ''; // assigning http url string if (isset($_REQUEST['errormsg']) && $_REQUEST['errormsg'] != '') { $errormsg = $_REQUEST['errormsg']; $smarty->assign("ERROR", "The User does not have permission to delete " . $errormsg . " " . $currentModule); } else { $smarty->assign("ERROR", ""); } //change by renzhen for save the search information if (isset($_REQUEST['clearquery']) && $_REQUEST['clearquery'] == 'true') { unset($_SESSION['LiveViewSearch'][$currentModule]); if (isset($_REQUEST['query'])) { $_REQUEST['query'] = ''; } } if (isset($_REQUEST['query']) && $_REQUEST['query'] == 'true') { list($where, $ustring) = split("#@@#", getWhereCondition($currentModule)); // we have a query $url_string .= "&query=true" . $ustring; $log->info("Here is the where clause for the list view: {$where}");
//needed when creating a new case with default values passed in if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { $focus->contact_name = $_REQUEST['contact_name']; } if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) { $focus->contact_id = $_REQUEST['contact_id']; } if (isset($_REQUEST['filename']) && $_REQUEST['isDuplicate'] != 'true') { $focus->filename = $_REQUEST['filename']; } $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $disp_view = getView($focus->mode); if ($disp_view == 'edit_view') { $smarty->assign("BLOCKS", getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields)); } else { $smarty->assign("BASBLOCKS", getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields, 'BAS')); } $smarty->assign("OP_MODE", $disp_view); $category = getParentTab(); $smarty->assign("CATEGORY", $category); $log->info("Note detail view"); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("MODULE", $currentModule); $smarty->assign("SINGLE_MOD", 'Note'); //Display the FCKEditor or not? -- configure $FCKEDITOR_DISPLAY in config.php //$smarty->assign("FCKEDITOR_DISPLAY",$FCKEDITOR_DISPLAY); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name);
$mode = ''; $record = $_REQUEST['record']; if (!empty($record)) { $query = "select * from ec_appkey where id={$record}"; $row = $adb->getFirstLine($query); if (!empty($row)) { $shopname = $row['shopname']; $appkey = $row['appkey']; $appsecret = $row['appsecret']; $nick = $row['nick']; $topsession = $row['topsession']; $status = $row['status']; } $mode = 'edit'; } $smarty->assign("shopname", $shopname); $smarty->assign("appkey", $appkey); $smarty->assign("appsecret", $appsecret); $smarty->assign("topsession", $topsession); $smarty->assign("nick", $nick); $smarty->assign("status", $status); if ($mode == 'edit') { $edittype = "编辑"; } else { $edittype = "新增"; } $smarty->assign("record", $record); $smarty->assign("EDITTYPE", $edittype); $smarty->assign("MOD", return_module_language($current_language, 'Settings')); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("APP", $app_strings);
require_once 'include/utils/utils.php'; require_once 'include/DatabaseUtil.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_user; global $list_max_entries_per_page; //Display the mail send status $smarty = new CRMSmarty(); global $adb; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $listview_header = array("maillistsid" => "序号", "maillistname" => "编号", "subject" => "邮件主题", "from_name" => "发件人", "from_email" => "发件人邮箱", "totalnum" => "邮件总数(条)", "successrate" => "成功发送(条)", "createdtime" => "发送时间"); //"mailcontent"=>"邮件内容","receiverinfo"=>"接收人及邮箱", $smarty->assign("LISTHEADER", $listview_header); $smarty->assign("countheader", count($listview_header)); $where = ''; $search_url = ''; //排序 $ordercol = array("maillistname" => "ec_maillists.maillistname", "subject" => "ec_maillists.subject", "mailcontent" => "ec_maillists.mailcontent", "receiverinfo" => "ec_maillists.receiverinfo", "from_name" => "ec_maillists.from_name", "from_email" => "ec_maillists.from_email", "successrate" => "ec_maillists.successrate", "totalnum" => "ec_maillists.totalnum", "createdtime" => "ec_maillists.createdtime"); $orderkeycol = array_keys($ordercol); $order_by = $_REQUEST['order_by']; $sorder = $_REQUEST['sorder']; if (empty($order_by)) { $order_by = 'createdtime'; } if (empty($sorder)) { $sorder = 'desc'; } $order_url = "&order_by=" . $order_by . "&sorder=" . $sorder;
/********************************************************************************* ** 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 'include/CRMSmarty.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/CustomFieldUtil.php'; global $mod_strings; global $app_strings; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty->assign("IMAGE_PATH", $image_path); $module_array = getCustomFieldSupportedModules(); $smarty->assign("MODULES", $module_array); if ($_REQUEST['fld_module'] != '') { $fld_module = $_REQUEST['fld_module']; if ($fld_module == "Calendar") { $fld_module = "Events"; } } else { $fld_module = 'Accounts';
<?php require_once 'include/CRMSmarty.php'; require_once 'modules/Memdays/Memdays.php'; require_once 'include/utils/utils.php'; global $mod_strings, $app_strings, $theme, $currentModule, $current_user; $focus = new Memdays(); $focus->mode = ''; $disp_view = getView($focus->mode); $display_type_check = "ec_field.displaytype in (1,4) and ec_field.uitype not in(53,51,1004,10) and ec_field.fieldname not in('account_id','contact_id') "; $smarty = new CRMSmarty(); $smarty->assign("IMAGE_PATH", "themes/{$theme}/images/"); $smarty->assign("THEME", $theme); $smarty->assign('APP', $app_strings); $smarty->assign('MOD', $mod_strings); $smarty->assign('SELECT', $app_strings["--Select--"]); $smarty->assign("BLOCKS", getBlocksForQuickEdit($currentModule, $disp_view, $mode, $focus->column_fields, $display_type_check)); // Field Validation Information $tabid = getTabid($currentModule); $data = getQuickValidationData($tabid, $display_type_check); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']); $smarty->display('QuickEditForm.tpl'); /** * This function returns the ec_blocks and its related information for given module. * Input Parameter are $module - module name, $disp_view = display view (edit,detail or create),$mode - edit, $col_fields - * column ec_fields/ * This function returns an array */ function getBlocksForQuickEdit($module, $disp_view, $mode, $col_fields = '', $display_type_check) {
if ((!isset($is_disable_approve) || isset($is_disable_approve) && !$is_disable_approve) && (isset($module_enable_approve) && $module_enable_approve)) { $sql = "select approved from ec_memdays where deleted=0 and memdaysid='" . $_REQUEST['record'] . "'"; $result = $adb->query($sql); $approved = $adb->query_result($result, 0, "approved"); if ($approved == 1) { echo "<script language='javascript'>alert('" . $app_strings["already_approved_noedit"] . "');"; $url = "index.php?module=" . $return_module . "&action=" . $return_action . "&record=" . $return_id . "&return_viewname=" . $return_viewname . "&parenttab=" . $category; echo "document.location.href='" . $url . "';"; echo "</script>"; die; } } $focus = new Memdays(); $smarty = new CRMSmarty(); if (isset($module_enable_product) && $module_enable_product) { $smarty->assign("MODULE_ENABLE_PRODUCT", "true"); } if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') { $focus->id = $_REQUEST['record']; $focus->mode = 'edit'; $focus->retrieve_entity_info($_REQUEST['record'], "Memdays"); $focus->name = $focus->column_fields['memdayname']; if (isset($module_enable_product) && $module_enable_product) { $associated_prod = $focus->getAssociatedProducts(); $smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod); $smarty->assign("AVAILABLE_PRODUCTS", 'true'); } if (isset($module_enable_approve) && $module_enable_approve) { $approveProcess = getApproveStatus($focus->id); if ($approveProcess == $app_strings['CONSTANTS_APPIN']) { $smarty->assign("APPIN_PROCESS", $approveProcess);
$theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $field_module = array(); $result = $adb->query("select name from ec_tab where reportable=1 order by tabid"); $num_rows = $adb->num_rows($result); for ($i = 0; $i < $num_rows; $i++) { $modulename = $adb->query_result($result, $i, 'name'); $field_module[] = $modulename; } $allfields = array(); foreach ($field_module as $fld_module) { $language_strings = return_module_language($current_language, $fld_module); $allfields[$fld_module] = getStdOutput($fld_module, $language_strings); } if ($_REQUEST['fld_module'] != '') { $smarty->assign("DEF_MODULE", $_REQUEST['fld_module']); } else { $smarty->assign("DEF_MODULE", 'Quotes'); } /** Function to get the field label/permission array to construct the default orgnization field UI for the specified profile * @param $fieldListResult -- mysql query result that contains the field label and uitype:: Type array * @param $lang_strings -- i18n language mod strings array:: Type array * @param $profileid -- profile id:: Type integer * @returns $standCustFld -- field label/permission array :: Type varchar * */ function getStdOutput($fld_module, $lang_strings) { global $adb; global $image_path; $standCustFld = array();
$_SESSION['lvs'][$currentModule] = get_object_vars($modObj); } //<<<<cutomview>>>>>>> $oCustomView = new CustomView("Memdays"); $viewid = $oCustomView->getViewId($currentModule); $customviewcombo_html = $oCustomView->getCustomViewCombo($viewid); $viewnamedesc = $oCustomView->getCustomViewByCvid($viewid); //<<<<<customview>>>>> if (!isset($where)) { $where = ""; } $url_string = ''; // assigning http url string if (isset($_REQUEST['errormsg']) && $_REQUEST['errormsg'] != '') { $errormsg = $_REQUEST['errormsg']; $smarty->assign("ERROR", "The User does not have permission to delete " . $errormsg . " " . $currentModule); } else { $smarty->assign("ERROR", ""); } //change by renzhen for save the search information if (isset($_REQUEST['clearquery']) && $_REQUEST['clearquery'] == 'true') { unset($_SESSION['LiveViewSearch'][$currentModule]); if (isset($_REQUEST['query'])) { $_REQUEST['query'] = ''; } } if (isset($_REQUEST['query']) && $_REQUEST['query'] == 'true') { list($where, $ustring) = explode("#@@#", getWhereCondition($currentModule)); // we have a query $url_string .= "&query=true" . $ustring; $smarty->assign("SEARCH_URL", $url_string);
/********************************************************************************* ** 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 'include/CRMSmarty.php'; require_once 'include/database/PearDatabase.php'; global $mod_strings; global $app_strings; global $adb; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty->assign("IMAGE_PATH", $image_path); $custommodulelist = getModuleListEntries(); $smarty->assign("MODULEENTRIES", $custommodulelist); if ($_REQUEST['mode'] != '') { $mode = $_REQUEST['mode']; } $smarty->assign("MODE", $mode); $smarty->display('Settings/CustomModuleList.tpl'); /** * Function to get customfield entries
global $current_user; //Display the mail send status $smarty = new CRMSmarty(); global $adb; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $record = $_REQUEST['record']; if (!empty($record)) { $query = "select * from ec_smstc where id='" . $record . "' "; $row = $adb->getFirstLine($query); $num_rows = $adb->num_rows($row); if ($num_rows > 0) { $tc = $row['tc']; $price = $row['price']; $num = $row['num']; } } else { $tc = ''; $price = ''; $num = ''; } $smarty->assign("record", $record); $smarty->assign("tc", $tc); $smarty->assign("price", $price); $smarty->assign("num", $num); $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); $smarty->display("Settings/SmsTcManageEdit.tpl");
if ($_REQUEST['parenttab'] != '') { $category = $_REQUEST['parenttab']; } else { $category = getParentTab(); } $nowdatetime = date("Y-m-d H:i:s"); //<<<<cutomview>>>>>>> $oFenzu = new Fenzu("Maillists"); $viewid = $_REQUEST['viewname']; $customviewcombo_html = $oFenzu->getFenzuCombo($viewid); //$viewnamedesc = $oFenzu->getCustomViewByCvid($viewid); //<<<<<customview>>>>> global $current_user; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty->assign("CUSTOMVIEW_OPTION", $customviewcombo_html); $smarty->assign("VIEWID", $viewid); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("MODULE", $currentModule); $smarty->assign("SINGLE_MOD", 'Qunfa'); $smarty->assign("BUTTONS", $other_text); $smarty->assign("CATEGORY", $category); $smarty->assign("CHANGE_OWNER", getUserslist()); //$sjid = rand(10000000,99999999); //删除多余 $adb->query("delete from ec_maillists where deleted=1"); //生成事件id $sjid = $adb->getUniqueID("ec_crmentity"); $sql = "insert into ec_maillists(maillistsid,deleted) values(" . $sjid . ",1)";
** 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 'include/database/PearDatabase.php'; require_once 'data/CRMEntity.php'; require_once 'include/CRMSmarty.php'; require_once 'include/utils/utils.php'; require_once 'modules/CustomView/CustomView.php'; global $app_strings, $mod_strings, $list_max_entries_per_page, $currentModule, $theme, $current_language; $smarty = new CRMSmarty(); $category = getParentTab(); $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $idstring = rtrim($_REQUEST['idstring'], ","); $smarty->assign("SESSION_WHERE", $_SESSION['export_where']); $oCustomView = new CustomView($currentModule); $viewid = $oCustomView->getViewId($currentModule); $smarty->assign('APP', $app_strings); $smarty->assign('MOD', $mod_strings); $smarty->assign("THEME", $theme_path); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("CATEGORY", $category); $smarty->assign("MODULE", $currentModule); $smarty->assign("IDSTRING", $idstring); $smarty->assign("PERPAGE", $list_max_entries_per_page); $smarty->assign("VIEWNAME", $viewid); $smarty->display('ExportRecords.tpl');
<?php require_once 'include/CRMSmarty.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/CustomFieldUtil.php'; require_once 'include/utils/MultiFieldUtils.php'; global $mod_strings; global $app_strings; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty->assign("IMAGE_PATH", $image_path); $multifieldid = $_REQUEST["multifieldid"]; $fieldinfo = getMultiFieldInfo($multifieldid, false); $smarty->assign("FieldInfo", $fieldinfo); $tab_mod_strings = return_module_language($current_language, $fieldinfo['modulename']); $smarty->assign("CMOD", $tab_mod_strings); $smarty->assign("FieldInfo", $fieldinfo); $smarty->assign("CFENTRIES", getCFListEntries($fieldinfo["fields"], $multifieldid, $tab_mod_strings)); $smarty->display('Settings/EditMultiCustomField.tpl'); /** * Function to get customfield entries * @param string $module - Module name * return array $cflist - customfield entries */ function getCFListEntries($fields, $multifieldid, $tab_mod_strings) {
<?php require_once 'include/CRMSmarty.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_user; //Display the mail send status $smarty = new CRMSmarty(); if ($_REQUEST['mail_error'] != '') { $error_msg = strip_tags($_REQUEST['mail_error']); $smarty->assign("ERROR_MSG", '<b><font color="red">' . $mod_strings['Test_Mail_status'] . ' : ' . $error_msg . '</font></b>'); } global $adb; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $sql = "select * from ec_systems where server_type = 'email' and smownerid='" . $current_user->id . "'"; $result = $adb->query($sql); $mail_server = $adb->query_result($result, 0, 'server'); $mail_server_port = $adb->query_result($result, 0, 'server_port'); $mail_server_username = $adb->query_result($result, 0, 'server_username'); $mail_server_password = $adb->query_result($result, 0, 'server_password'); $smtp_auth = $adb->query_result($result, 0, 'smtp_auth'); $from_name = $adb->query_result($result, 0, 'from_name'); $from_email = $adb->query_result($result, 0, 'from_email'); $interval = $adb->query_result($result, 0, 'interval'); if (isset($mail_server)) { $smarty->assign("MAILSERVER", $mail_server); } if (isset($mail_server_port)) {
} if (!isset($_REQUEST['return_module'])) { $_REQUEST['return_module'] = ''; } if (!isset($_REQUEST['return_action'])) { $_REQUEST['return_action'] = ''; } global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $log->info("Import Step last"); $parenttab = getParenttab(); //This Buttons_List1.tpl is is called to display the add, search, import and export buttons ie., second level tabs $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("IMP", $import_mod_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("MODULE", 'SalesOrder'); $smarty->assign("SINGLE_MOD", 'SalesOrder'); $smarty->assign("CATEGORY", 'Accounts'); $smarty->display("Buttons_List1.tpl"); $skipped_record_count = $_SESSION['import_skipped_record_count']; $import_mod_strings = return_module_language($current_language, "Import"); if (isset($_SESSION['import_message'])) { $themessage = $_SESSION['import_message']; @session_unregister('import_message'); ?> <br>
<?php require_once 'include/CRMSmarty.php'; global $app_strings; global $app_list_strings; $mod_strings = return_specified_module_language("zh_cn", "Settings"); global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); $smarty->assign("APP", $app_strings); $smarty->assign("MODULE", 'Relsettings'); $smarty->assign("CATEGORY", 'Settings'); $smarty->assign("MOD", $mod_strings); $smarty->assign("IMAGE_PATH", $image_path); $smarty->display("Relsettings/Settings.tpl");
//客户处理 $acc_arr = array(); $accountidstr = $focus->column_fields['accountid']; $accountidarr = explode(",", $accountidstr); if (is_array($accountidarr)) { foreach ($accountidarr as $accountid) { if (!empty($accountid)) { $accountname = getAccountNameInfo($accountid); $acc_arr[] = $accountname; } } } $acc_arr_srt = implode(",", $acc_arr); $focus->column_fields['accountid'] = $acc_arr_srt; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $blocks2 = getBlocks($currentModule, "detail_view", '', $focus->column_fields); $smarty->assign("BLOCKS", $blocks2); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($module_enable_product) && $module_enable_product) { $smarty->assign("MODULE_ENABLE_PRODUCT", "true"); $smarty->assign("ASSOCIATED_PRODUCTS", $focus->getDetailAssociatedProducts()); } if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } else { $smarty->assign("NAME", ""); } if (isset($_REQUEST['return_module'])) { $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']);
<?php require_once 'include/CRMSmarty.php'; require_once 'modules/Accounts/Accounts.php'; require_once 'include/utils/utils.php'; global $mod_strings, $app_strings, $theme, $currentModule, $current_user; $focus = new Accounts(); $focus->mode = ''; $smarty = new CRMSmarty(); $selectsql = "select * from ec_sfasettings where sfastatus='已启用' and deleted=0 and smownerid='" . $current_user->id . "' "; $selectrow = $adb->getList($selectsql); if (!empty($selectrow)) { foreach ($selectrow as $row) { $id = $row['sfasettingsid']; $name = $row['sfasettingname']; $sfa_entries[$id] = $name; } } $sfasettingshtml = ''; if (!empty($sfa_entries)) { foreach ($sfa_entries as $sfa_id => $sfa_name) { $sfasettingshtml .= '<option value="' . $sfa_id . '">' . $sfa_name . '</option>'; } } $smarty->assign("sfasettingshtml", $sfasettingshtml); $smarty->display('CreateSettingForm.tpl');
$smarty = new CRMSmarty(); if (!isset($where)) { $where = ""; } //<<<<cutomview>>>>>>> $oCustomView = new CustomView($currentModule); $viewid = $oCustomView->getViewId($currentModule); $customviewcombo_html = $oCustomView->getCustomViewCombo($viewid); $viewnamedesc = $oCustomView->getCustomViewByCvid($viewid); //<<<<<customview>>>>> $popuptype = ''; $popuptype = $_REQUEST["popuptype"]; require_once "modules/{$currentModule}/{$currentModule}.php"; $focus = new $currentModule(); $single_module = substr($currentModule, 0, strlen($currentModule) - 1); $smarty->assign("SINGLE_MOD", $single_module); if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != '') { $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); } $alphabetical = AlphabeticalSearch($currentModule, 'Popup', strtolower($single_module) . 'name', 'true', 'basic', $popuptype, "", "", "", $viewid); if (isset($_REQUEST['select'])) { $smarty->assign("SELECT", 'enable'); } if (isset($_REQUEST['return_action'])) { $return_action = $_REQUEST['return_action']; $smarty->assign("RETURN_ACTION", $return_action); } $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings);
/********************************************************************************* ** 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 'include/CRMSmarty.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/CustomFieldUtil.php'; global $mod_strings; global $app_strings; $smarty = new CRMSmarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty->assign("IMAGE_PATH", $image_path); $module_array = getCustomFieldSupportedModules(); $cfimagecombo = array($image_path . "text.gif", $image_path . "number.gif", $image_path . "percent.gif", $image_path . "currency.gif", $image_path . "date.gif", $image_path . "email.gif", $image_path . "phone.gif", $image_path . "picklist.gif", $image_path . "url.gif", $image_path . "checkbox.gif", $image_path . "text.gif", $image_path . "picklist.gif"); $cftextcombo = array($mod_strings['Text'], $mod_strings['Number'], $mod_strings['Percent'], $mod_strings['Currency'], $mod_strings['Date'], $mod_strings['Email'], $mod_strings['Phone'], $mod_strings['PickList'], $mod_strings['LBL_URL'], $mod_strings['LBL_CHECK_BOX'], $mod_strings['LBL_TEXT_AREA'], $mod_strings['LBL_MULTISELECT_COMBO']); $smarty->assign("MODULES", $module_array); $smarty->assign("CFTEXTCOMBO", $cftextcombo); $smarty->assign("CFIMAGECOMBO", $cfimagecombo); if ($_REQUEST['fld_module'] != '') { $fld_module = $_REQUEST['fld_module']; } else {