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'); }
$focus->popup_type = $popuptype; $url_string .= '&popuptype=' . $popuptype; if (isset($_REQUEST['select']) && $_REQUEST['select'] == 'enable') { $url_string .= '&select=enable'; } if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != '') { $url_string .= '&return_module=' . $_REQUEST['return_module']; } $smarty->assign("URLSTRING", $url_string); if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header_search = getSearchListHeaderValues($focus, $currentModule, $url_string, $sorder, $order_by); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $smarty->assign("ALPHABETICAL", $alphabetical); $listview_header = getSearchListViewHeader($focus, $currentModule, $url_string, $sorder, $order_by); $smarty->assign("LISTHEADER", $listview_header); $listview_entries = getSearchListViewEntries($focus, $currentModule, $list_result, $navigation_array); $smarty->assign("LISTENTITY", $listview_entries); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, $currentModule, "Popup", $viewid); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); $smarty->assign("POPUPTYPE", $popuptype); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("PopupContents.tpl"); } else { $smarty->display("Popup.tpl"); } ?>
} } else { //$smarty->assign("APPROVE_STATUS",0); } $tabid = getTabid("Qunfas"); $data = getSplitDBValidationData($focus->tab_name, $tabid); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']); $smarty->assign("MODULE", $currentModule); if ($module_relatedmodule != "" || isset($module_enable_attachment) && $module_enable_attachment) { if ($singlepane_view == 'true') { $related_array = getRelatedLists($currentModule, $focus); $smarty->assign("RELATEDLISTS", $related_array); } $smarty->assign("SinglePane_View", $singlepane_view); } $smarty->display("Qunfas/DetailView.tpl"); function getAccountNameInfo($id) { global $adb; $query = "select accountname from ec_account where accountid='{$id}' and deleted=0"; $result = $adb->query($query); $num = $adb->num_rows($result); if ($num > 0) { $row = $adb->fetch_array($result); return $row['accountname']; } else { return ''; } }
$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> <table align="center" cellpadding="5" cellspacing="0" width="95%" class="mailClient importLeadUI small"> <tr> <td height="50" valign="middle" align="left" class="mailClientBg genHeaderSmall"> <?php echo $import_mod_strings['LBL_MODULE_NAME']; ?> <?php
$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) { global $adb; global $theme; global $mod_strings; global $app_strings; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; //$dbQuery = "select fieldid,columnname,fieldlabel,uitype,displaytype from ec_field where tabid=".$tabid." and generatedtype=2 order by sequence"; $count = 1;
$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)"; $adb->query($sql); $smarty->assign("sjid", $sjid); $adb->query("insert into ec_crmentity (crmid,setype,smcreatorid,smownerid,createdtime,modifiedtime) values('" . $sjid . "','Maillists'," . $current_user->id . "," . $current_user->id . ",'" . $nowdatetime . "','" . $nowdatetime . "')"); $res = $adb->query("select * from ec_systems where smownerid='" . $current_user->id . "'"); $from_name = $adb->query_result($res, 0, 'from_name'); $from_email = $adb->query_result($res, 0, 'from_email'); $smarty->assign("from_name", $from_name); $smarty->assign("from_email", $from_email); //Retreive the List View Table Header if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("Maillists/ListViewEntries.tpl"); } else { $smarty->display("Maillists/ListView.tpl"); }
$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'); $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("Qunfatmps/RelatedLists.tpl"); }
//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");
//Retreive the List View Table Header if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header = getListViewHeader($focus, "Memdays", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("LISTHEADER", $listview_header); $listview_header_search = getSearchListHeaderValues($focus, "Memdays", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $listview_entries = getListViewEntries($focus, "Memdays", $list_result, $navigation_array, "", "", "EditView", "Delete", $oCustomView); $smarty->assign("LISTENTITY", $listview_entries); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, "Memdays", "index", $viewid); //setup alphabetical search field $alphabetical = AlphabeticalSearch($currentModule, 'index', 'memdayname', 'true', 'basic', "", "", "", "", $viewid, "", $alpbtselectedvalue); $fieldnames = getAdvSearchfields($module); $criteria = getcriteria_options(); $smarty->assign("CRITERIA", $criteria); $smarty->assign("FIELDNAMES", $fieldnames); $smarty->assign("ALPHABETICAL", $alphabetical); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); //changed by dingjianting on 2007-3-1 for security view scope $viewscope = get_viewscope($module); $smarty->assign("VIEWSCOPE_OPTION", getViewScopeFilterHTML($module, $viewscope)); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->assign("ISADMIN", $current_user->is_admin); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("ListViewEntries.tpl"); } else { $smarty->display("Memdays/ListView.tpl"); }
for($i=0;$i<count($tax_details);$i++) { $tax_details[$i]['percentage'] = getProductTaxPercentage($tax_details[$i]['taxname'],$focus->id); } $smarty->assign("TAX_DETAILS", $tax_details); */ $productcangkunums = array(); $productid = $focus->id; //$sec_check=getProductCangkuSeccheck(); $tabid = getTabid("Products"); $data = getSplitDBValidationData($focus->tab_name, $tabid); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']); //Security check for related list $smarty->assign("MODULE", $currentModule); if ($singlepane_view == 'true') { $related_array = getRelatedLists($currentModule, $focus); $smarty->assign("RELATEDLISTS", $related_array); } $smarty->assign("SinglePane_View", $singlepane_view); $smarty->display("Products/DetailView.tpl"); function getProductCangkuSeccheck() { global $adb; global $current_user; $userid = $current_user->id; $sec_check = " and ec_cangkus.cangkusid in (select ec_cangkuserrel.cangkusid from ec_cangkuserrel where ec_cangkuserrel.userid={$userid} ) "; return $sec_check; }
} } if ($start_rec == 0) { $limit_start_rec = 0; } else { $limit_start_rec = $start_rec - 1; } $list_result = $adb->limitQuery2($query, $limit_start_rec, $list_max_entries_per_page, $query_order_by, $sorder); $record_string = $app_strings["LBL_SHOWING"] . " " . $start_rec . " - " . $end_rec . " " . $app_strings["LBL_LIST_OF"] . " " . $noofrows; //Retreive the List View Table Header if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header = getListViewHeader($focus, "Qunfatmps", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("LISTHEADER", $listview_header); $listview_header_search = getSearchListHeaderValues($focus, "Qunfatmps", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $listview_entries = getListViewEntries($focus, "Qunfatmps", $list_result, $navigation_array, "", "", "EditView", "Delete", $oCustomView); $smarty->assign("LISTENTITY", $listview_entries); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, "Qunfatmps", "index", $viewid); $fieldnames = getAdvSearchfields($module); $criteria = getcriteria_options(); $smarty->assign("CRITERIA", $criteria); $smarty->assign("FIELDNAMES", $fieldnames); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("Qunfatmps/ListViewEntries.tpl"); } else { $smarty->display("Qunfatmps/ListView.tpl"); }
} if (isset($_REQUEST['return_viewname'])) { $smarty->assign("RETURN_VIEWNAME", $_REQUEST['return_viewname']); } $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); //$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); $smarty->assign("ID", $focus->id); $smarty->assign("OLD_ID", $old_id); if (empty($focus->filename)) { $smarty->assign("FILENAME_TEXT", ""); $smarty->assign("FILENAME", ""); } else { $smarty->assign("FILENAME_TEXT", "(" . $focus->filename . ")"); $smarty->assign("FILENAME", $focus->filename); } /* if (isset($focus->parent_type) && $focus->parent_type != "") { $change_parent_button = "<input title='".$app_strings['LBL_CHANGE_BUTTON_TITLE']."' accessKey='".$app_strings['LBL_CHANGE_BUTTON_KEY']."' ec_tabindex='3' type='button' class='button' value='".$app_strings['LBL_CHANGE_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='return window.open(\"index.php?module=\"+ document.EditView.parent_type.value + \"&action=Popup&html=Popup_picker&form=TasksEditView\",\"test\",\"width=600,height=400,resizable=1,scrollbars=1\");'>"; $smarty->assign("CHANGE_PARENT_BUTTON", $change_parent_button); } if ($focus->parent_type == "Account") $smarty->assign("DEFAULT_SEARCH", "&query=true&account_id=$focus->parent_id&account_name=".urlencode($focus->parent_name)); */ $tabid = getTabid("Notes"); $data = getSplitDBValidationData($focus->tab_name, $tabid); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']); $smarty->assign("CALENDAR_LANG", $app_strings['LBL_JSCALENDAR_LANG']); $smarty->display("Notes/NewCreateView.tpl");
$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); $smarty->assign("CMOD", $mod_strings); $smarty->display("Relsettings/EditShopapp.tpl");
} else { $limit_start_rec = $start_rec - 1; } $list_result = $adb->limitQuery2($query, $limit_start_rec, $list_max_entries_per_page, $query_order_by, $sorder); //echo $query; $record_string = $app_strings['LBL_SHOWING'] . " " . $start_rec . " - " . $end_rec . " " . $app_strings['LBL_LIST_OF'] . " " . $noofrows; //Retreive the List View Table Header if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header = getListViewHeader($focus, "Accounts", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("LISTHEADER", $listview_header); $listview_header_search = getSearchListHeaderValues($focus, "Accounts", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $listview_entries = getListViewEntries($focus, "Accounts", $list_result, $navigation_array, "", "", "EditView", "Delete", $oCustomView); $smarty->assign("LISTENTITY", $listview_entries); $smarty->assign("SELECT_SCRIPT", $view_script); $smarty->assign("CATEGORY", $category); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, "Accounts", "index", $viewid); $fieldnames = getAdvSearchfields($module); $criteria = getcriteria_options(); $smarty->assign("CRITERIA", $criteria); $smarty->assign("FIELDNAMES", $fieldnames); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); $smarty->assign("RECORD", $_REQUEST['record']); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("Accounts/ListViewEntries.tpl"); } else { $smarty->display("Accounts/ListView.tpl"); }
$smarty->assign("success_product", $success_product); $inventprofiedlarr = array("订单编号" => 'subject', "标题" => 'productname', "价格" => 'listprice', "购买数量" => 'quantity', "商品属性" => 'comment'); $inventprofiedlkeysarr = array_keys($inventprofiedlarr); $success_inventproduct = 0; $fail_inventproduct = 0; $titlearr = array(); foreach ($rows2 as $key => $val) { if ($key > 0) { foreach ($val as $k => $v) { $title = trim($titlearr[$k]); if (in_array($title, $inventprofiedlkeysarr)) { $focus_imppro->column_fields[$inventprofiedlarr[$title]] = preg_replace('/\'/', '', $v); } } $return4 = $focus_imppro->saveInventPro(); if ($return4 == '1') { $success_inventproduct++; } elseif ($return4 == '2') { $fail_inventproduct++; } } else { $titlearr = $val; } } $smarty->assign("success_inventproduct", $success_inventproduct); $smarty->assign("fail_inventproduct", $fail_inventproduct); //require_once ('getBuyNums.php'); $smarty->display("ImportStepXin2.tpl"); ?>
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 * @param string $module - Module name * return array $cflist - customfield entries */ function getModuleListEntries() { global $adb; global $theme; global $app_strings; global $mod_strings; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $count = 1; $modulelist = array();
* ("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');
} $list_result = $adb->limitQuery2($query, $limit_start_rec, $list_max_entries_per_page, $query_order_by, $sorder); //Retreive the List View Table Header $focus->list_mode = "search"; $focus->popup_type = $popuptype; $url_string .= '&popuptype=' . $popuptype; if (isset($_REQUEST['select']) && $_REQUEST['select'] == 'enable') { $url_string .= '&select=enable'; } if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != '') { $url_string .= '&return_module=' . $_REQUEST['return_module']; } $smarty->assign("URLSTRING", $url_string); if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header_search = getSearchListHeaderValues($focus, $currentModule, $url_string, $sorder, $order_by, $oCustomView); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $listview_header = getSearchListViewHeader($focus, $currentModule, $url_string, $sorder, $order_by, $oCustomView); $smarty->assign("LISTHEADER", $listview_header); $listview_entries = getSearchListViewEntries($focus, $currentModule, $list_result, $navigation_array, $oCustomView); $smarty->assign("LISTENTITY", $listview_entries); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, $currentModule, "Popup", $viewid); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); $smarty->assign("POPUPTYPE", $popuptype); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("Accounts/PopupContents.tpl"); } else { $smarty->display("Accounts/Popup.tpl"); }
<?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");
$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); $smarty->assign("relcount", $relcount); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("SinglePane_View", $singlepane_view); $smarty->display("Accounts/Relatelists.tpl");
<?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');
if (isset($_REQUEST['select']) && $_REQUEST['select'] == 'enable') { $url_string .= '&select=enable'; } if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != '') { $url_string .= '&return_module=' . $_REQUEST['return_module']; } $smarty->assign("URLSTRING", $url_string); if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header_search = getSearchListHeaderValues($focus, $currentModule, $url_string, $sorder, $order_by, $oCustomView); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $listview_header = getSearchListViewHeader($focus, $currentModule, $url_string, $sorder, $order_by, $oCustomView); $smarty->assign("LISTHEADER", $listview_header); $listview_entries = getSearchListViewEntries($focus, $currentModule, $list_result, $navigation_array, $oCustomView); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, $currentModule, "Popup", $viewid); $smarty->assign("LISTENTITY", $listview_entries); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); $smarty->assign("POPUPTYPE", $popuptype); if (isset($_REQUEST['idlist'])) { $smarty->assign("IDLIST", $_REQUEST['idlist']); } if (isset($_REQUEST['productlist'])) { $smarty->assign("PRODUCTLIST", $_REQUEST['productlist']); } if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("Products/PopupContentsForSO.tpl"); } else { $smarty->display("Products/PopupForSO.tpl"); }
$fld_module = $_REQUEST['fld_module']; } else { $fld_module = 'Accounts'; } $smarty->assign("MODULE", $fld_module); $smarty->assign("CFENTRIES", getCFListEntries($fld_module)); if (isset($_REQUEST["duplicate"]) && $_REQUEST["duplicate"] == "yes") { $error = $mod_strings['custom_field_exists']; $smarty->assign("DUPLICATE_ERROR", $error); } if ($_REQUEST['mode'] != '') { $mode = $_REQUEST['mode']; } $smarty->assign("MODE", $mode); if ($_REQUEST['ajax'] != 'true') { $smarty->display('CustomFieldList.tpl'); } else { $smarty->display('CustomFieldEntries.tpl'); } /** * Function to get customfield entries * @param string $module - Module name * return array $cflist - customfield entries */ function getCFListEntries($module) { $tabid = getTabid($module); global $adb; global $theme; global $mod_strings; global $app_strings;
$errid = substr($result,strpos($result,"=")+1); break; } $i ++; } if($id != 0) { $smarty->assign("SMS_MONEY", $id/10); } else { $smarty->assign("SMS_MONEY", iconv_ec("GB2312","UTF-8",$err)); } fclose($fp); } */ //$result = logout(); //echo "logout:".print_r($result,true)."<br>"; //$result = loginSMS(); //echo "login:"******"<br>"; $info = getBalance($current_user->id); //$result = logout(); //echo "logout:".print_r($result,true)."<br>"; if ($info["error"] == 1) { $smarty->assign("SMS_MONEY", $info["message"]); } else { $smarty->assign("SMS_MONEY", $info["balance"] * 10); } $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("Relsettings/MessageConfig.tpl");
$smarty->assign("CANCELACTION", "index"); } if (isset($_REQUEST['return_viewname'])) { $smarty->assign("RETURN_VIEWNAME", $_REQUEST['return_viewname']); } $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign("ID", $focus->id); $smarty->assign("OLD_ID", $old_id); $datestr = $focus->column_fields["memday940"]; $datearr = explode(" ", $datestr); $smarty->assign("curryear", $datearr[0]); $smarty->assign("currmonth", $datearr[1]); $smarty->assign("currdays", $datearr[2]); $tabid = getTabid("Memdays"); $data = getSplitDBValidationData($focus->tab_name, $tabid); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']); $smarty->assign("CALENDAR_LANG", $app_strings['LBL_JSCALENDAR_LANG']); if (isset($module_enable_product) && $module_enable_product) { $fieldnamelist = getProductFieldList("Memdays"); $smarty->assign("PRODUCTNAMELIST", $fieldnamelist); $fieldlabellist = getProductFieldLabelList("Memdays"); $smarty->assign("PRODUCTLABELLIST", $fieldlabellist); } if ($focus->mode == 'edit') { $smarty->display("Memdays/EditView.tpl"); } else { $smarty->display("Memdays/CreateView.tpl"); }
$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'] != '') { $mode = $_REQUEST['mode']; } $smarty->assign("MODE", $mode); if ($_REQUEST['ajax'] != 'true') { $smarty->display('Settings/RelatedList.tpl'); } else { $smarty->display('Settings/RelatedEntries.tpl'); } /** * Function to get customfield entries * @param string $module - Module name * return array $cflist - customfield entries */ function getRelatedListEntries($module) { $tabid = getTabid($module); global $adb; global $theme; global $current_language; global $mod_strings;
if ($adb->query_result($result, $i, "fieldname") != '') { $visible = "checked"; if ($fieldwidth != null) { $width = $fieldwidth; $width = (int) $width; } else { $width = '0'; } } else { $visible = ""; $width = '0'; } $fieldid = $adb->query_result($result, $i, "fieldid"); $nameid = $fieldid . '' . $fld_module; $widthid = text . '' . $fieldid . '' . $fld_module; $standCustFld[] = '<input type="checkbox" name="' . $nameid . '" ' . $visible . '>'; $standCustFld[] = '<input type="text" name ="' . $widthid . '" value="' . $width . '" style="width:25px" maxlength="2">'; } $standCustFld = array_chunk($standCustFld, 3); $standCustFld = array_chunk($standCustFld, 4); return $standCustFld; } $smarty->assign("FIELD_INFO", $field_module); $smarty->assign("FIELD_LISTS", $allfields); $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->assign("MODE", 'edit'); $smarty->display("Settings/RelmodFieldAccess.tpl");
<?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");
$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 (isset($_SESSION['rlvs']) && !$_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("Notes", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Note'); $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"); }