本文整理汇总了PHP中CRMSmarty类的典型用法代码示例。如果您正苦于以下问题:PHP CRMSmarty类的具体用法?PHP CRMSmarty怎么用?PHP CRMSmarty使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CRMSmarty类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Memdays
<?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)
{
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:QuickEdit.php
示例2: array
$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'])) {
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:DetailView.php
示例3: CRMSmarty
********************************************************************************/
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);
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:Popup.php
示例4: CRMSmarty
<?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)
{
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:EditMultiCustomField.php
示例5: getParenttab
$_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');
?>
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:ImportSteplast.php
示例6: CRMSmarty
/*********************************************************************************
** 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');
/**
开发者ID:ruckfull,项目名称:taobaocrm,代码行数:30,代码来源:CustomModuleList.php
示例7: Maillists
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/";
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:ListView.php
示例8: decode_html
$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') {
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:DetailView.php
示例9: Memdays
<?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();
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:ListView.php
示例10: Notes
* 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);
开发者ID:ruckfull,项目名称:taobaocrm,代码行数:31,代码来源:NewEditView.php
示例11: Qunfatmps
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();
开发者ID:honj51,项目名称:taobaocrm,代码行数:30,代码来源:ListView.php
示例12: CRMSmarty
<?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';
}
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:EditShopapp.php
示例13: CRMSmarty
<?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)) {
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:Maillists.php
示例14: CRMSmarty
/*********************************************************************************
** 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 {
开发者ID:honj51,项目名称:taobaocrm,代码行数:30,代码来源:LayoutList.php
示例15: CRMSmarty
<?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');
开发者ID:ruckfull,项目名称:taobaocrm,代码行数:31,代码来源:EditRelmodField.php
示例16: CRMSmarty
<?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);
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:SmsTcManageEdit.php
示例17: ImportAccount
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) {
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:ImportStepXin2.php
示例18: CRMSmarty
/*********************************************************************************
** 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);
开发者ID:Pengzw,项目名称:c3crm,代码行数:30,代码来源:ExportRecords.php
示例19: CRMSmarty
$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);
}
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:CallRelatedList.php
示例20: CRMSmarty
<?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)) {
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:EmailConfig.php
注:本文中的CRMSmarty类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论