<?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) {
$log->info("Qunfa detail view"); //客户处理 $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'])) {
********************************************************************************/ require_once 'include/CRMSmarty.php'; require_once "data/Tracker.php"; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/ComboUtil.php'; require_once 'include/utils/utils.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'modules/Memdays/ModuleConfig.php'; require_once 'include/DatabaseUtil.php'; global $app_strings; global $currentModule; global $theme; $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/{$currentModule}/{$currentModule}.php"; $focus = new $currentModule(); $single_module = substr($currentModule, 0, strlen($currentModule) - 1); $smarty->assign("SINGLE_MOD", $single_module);
<?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) {
$_REQUEST['return_id'] = ''; } 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'); ?>
/********************************************************************************* ** 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'); /**
require_once 'include/CRMSmarty.php'; require_once "data/Tracker.php"; require_once 'modules/Maillists/Maillists.php'; require_once 'themes/' . $theme . '/layout_utils.php'; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/utils/utils.php'; require_once 'modules/Maillists/ModuleConfig.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'include/DatabaseUtil.php'; require_once 'modules/Fenzu/Fenzu.php'; global $app_strings, $mod_strings, $list_max_entries_per_page; $log = LoggerManager::getLogger('maillist_list'); global $currentModule, $image_path, $theme; $focus = new Maillists(); $smarty = new CRMSmarty(); 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/";
$focus->retrieve_entity_info($_REQUEST['record'], "Products"); $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') {
<?php require_once 'include/CRMSmarty.php'; require_once "data/Tracker.php"; require_once 'modules/Memdays/Memdays.php'; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/utils/utils.php'; require_once 'modules/Memdays/ModuleConfig.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'include/DatabaseUtil.php'; global $app_strings, $mod_strings, $list_max_entries_per_page; global $currentModule, $image_path, $theme; $focus = new Memdays(); $smarty = new CRMSmarty(); $other_text = array(); //<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>> $sorder = $focus->getSortOrder(); $order_by = $focus->getOrderBy(); $_SESSION['MEMDAYS_ORDER_BY'] = $order_by; $_SESSION['MEMDAYS_SORT_ORDER'] = $sorder; //<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>> $focus->setLastdate(); if ($_REQUEST['parenttab'] != '') { $category = $_REQUEST['parenttab']; } else { $category = getParentTab(); } if (!$_SESSION['lvs'][$currentModule]) { unset($_SESSION['lvs']); $modObj = new ListViewSession();
* Contributor(s): ______________________________________.. ********************************************************************************/ /********************************************************************************* * $Header: /advent/projects/wesat/ec_crm/sugarcrm/modules/Notes/EditView.php,v 1.13 2005/04/18 10:37:49 samk Exp $ * Description: TODO: To be written. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'include/CRMSmarty.php'; require_once 'data/Tracker.php'; require_once 'modules/Notes/Notes.php'; require_once 'include/utils/utils.php'; global $app_strings, $app_list_strings, $mod_strings, $theme, $currentModule; $focus = new Notes(); $smarty = new CRMSmarty(); if (isset($_REQUEST['upload_error']) && $_REQUEST['upload_error'] == true) { echo '<br><b><font color="red"> The selected file has no data or a invalid file.</font></b><br>'; } if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') { $focus->id = $_REQUEST['record']; $focus->mode = 'edit'; $focus->retrieve_entity_info($_REQUEST['record'], "Notes"); $focus->name = $focus->column_fields['notes_title']; $focus->column_fields['notecontent'] = decode_html($focus->column_fields["notecontent"]); } if (isset($_REQUEST['potential_id']) && $_REQUEST['potential_id'] != '') { $potential_id = $_REQUEST['potential_id']; $sql = "select accountid,contact_id from ec_potential where deleted=0 and potentialid='" . $potential_id . "'"; $result = $focus->db->query($sql); $num_rows = $focus->db->num_rows($result);
require_once 'include/CRMSmarty.php'; require_once "data/Tracker.php"; require_once 'modules/Qunfatmps/Qunfatmps.php'; require_once 'themes/' . $theme . '/layout_utils.php'; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/utils/utils.php'; require_once 'modules/Qunfatmps/ModuleConfig.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'include/DatabaseUtil.php'; global $app_strings, $mod_strings, $list_max_entries_per_page; $log = LoggerManager::getLogger('qunfatmp_list'); global $currentModule, $image_path, $theme; $focus = new Qunfatmps(); $smarty = new CRMSmarty(); $other_text = array(); //<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>> $sorder = $focus->getSortOrder(); $order_by = $focus->getOrderBy(); $_SESSION['QUNFATMPS_ORDER_BY'] = $order_by; $_SESSION['QUNFATMPS_SORT_ORDER'] = $sorder; //<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>> if ($_REQUEST['parenttab'] != '') { $category = $_REQUEST['parenttab']; } else { $category = getParentTab(); } if (!$_SESSION['lvs'][$currentModule]) { unset($_SESSION['lvs']); $modObj = new ListViewSession();
<?php require_once 'include/CRMSmarty.php'; 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 $current_language; //Display the mail send status $smarty = new CRMSmarty(); global $adb; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $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'; }
<?php require_once 'include/CRMSmarty.php'; 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)) {
/********************************************************************************* ** 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 {
<?php require_once 'include/database/PearDatabase.php'; require_once 'include/utils/UserInfoUtil.php'; require_once 'include/utils/utils.php'; global $mod_strings; global $app_strings; global $app_list_strings; $smarty = new CRMSmarty(); global $adb; global $theme; global $theme_path; global $image_path; $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');
<?php require_once 'include/CRMSmarty.php'; require_once 'include/utils/utils.php'; require_once 'include/DatabaseUtil.php'; global $mod_strings; 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/"; $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);
global $import_dir; $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) {
/********************************************************************************* ** 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);
$currentmodule = $_REQUEST['module']; $RECORD = $_REQUEST['record']; if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') { $focus->retrieve_entity_info($_REQUEST['record'], "Qunfatmps"); $focus->id = $_REQUEST['record']; $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); }
<?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)) {
global $app_list_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);
<?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");
<?php require_once 'include/CRMSmarty.php'; require_once "data/Tracker.php"; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/ComboUtil.php'; require_once 'include/utils/utils.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'include/DatabaseUtil.php'; global $app_strings; global $currentModule; global $theme; $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'] != '') {
<?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');
** 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 'Sms/SmsLib.php'; global $mod_strings; 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); }
/********************************************************************************* ** 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'];
/********************************************************************************* ** 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));
$return_viewname = $_REQUEST['return_viewname']; } 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);
<?php require_once 'include/CRMSmarty.php'; require_once 'modules/Qunfatmps/Qunfatmps.php'; global $mod_strings; global $current_user; global $adb; $focus = new Qunfatmps(); $smarty = new CRMSmarty(); $datetime = date("Y-m-d H:i:s"); if ($_REQUEST['mode'] == 'save') { $qunfatmpname = $_REQUEST['qunfatmpname']; $description = $_REQUEST['description']; /*$qunfatmpsid = $adb->getUniqueID("ec_crmentity"); $smownerid = $current_user->id; $query = "insert into ec_qunfatmps(qunfatmpsid,qunfatmpname,description,smownerid,smcreatorid,createdtime,modifiedtime) values({$qunfatmpsid},'{$qunfatmpname}','{$description}',{$smownerid},{$smownerid},'{$datetime}','{$datetime}');"; $adb->query($query);*/ require_once 'modules/Qunfatmps/Qunfatmps.php'; $focus = new Qunfatmps(); setObjectValuesFromRequest(&$focus); $focus->save("Qunfatmps"); echo "<script>window.opener.document.getElementById('sendmessageinfo').value='" . $description . "';</script>"; echo "<script>window.close();</script>>"; } $smarty->display("Qunfas/CreateTmps.tpl");
* Description: Contains a variety of utility functions used to display UI * components such as form headers and footers. Intended to be modified on a per * theme basis. ********************************************************************************/ require_once 'include/CRMSmarty.php'; require_once "include/utils/utils.php"; require_once "modules/Synchronous/config.php"; global $currentModule; global $app_strings; global $app_list_strings; global $moduleList; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); $header_array = getHeaderArray(); $smarty->assign("HEADERS", $header_array); $smarty->assign("THEME", $theme); $smarty->assign("IMAGEPATH", $image_path); $smarty->assign("APP", $app_strings); $smarty->assign("MODULE_NAME", $currentModule); $smarty->assign("DATE", getDisplayDate(date("Y-m-d H:i"))); $smarty->assign("CURRENT_USER", $current_user->user_name); $smarty->assign("CURRENT_USER_ID", $current_user->id); $smarty->assign("MODULELISTS", $app_list_strings['moduleList']); $smarty->assign("CATEGORY", getParentTab()); //$smarty->assign("ANNOUNCEMENT",get_announcements()); $module_path = "modules/" . $currentModule . "/"; ///auth $nowdate = date("Ymd");