当前位置: 首页>>代码示例>>PHP>>正文


PHP CRMSmarty::assign方法代码示例

本文整理汇总了PHP中CRMSmarty::assign方法的典型用法代码示例。如果您正苦于以下问题:PHP CRMSmarty::assign方法的具体用法?PHP CRMSmarty::assign怎么用?PHP CRMSmarty::assign使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CRMSmarty的用法示例。


在下文中一共展示了CRMSmarty::assign方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_error_import

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');
}
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:ImportSave.php

示例2: show_error_import

/**	function used to show the error message occured during import process
 *	@param	string	$message - Error message to display in the screen, where the passed error message will be displayed in screen using Importerror.tpl file
 */
function show_error_import($message)
{
    global $import_mod_strings;
    global $theme;
    global $log;
    global $mod_strings;
    global $app_strings;
    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    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');
}
开发者ID:honj51,项目名称:taobaocrm,代码行数:32,代码来源:error.php

示例3: 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/";
$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'] != '') {
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:RelatedList.php

示例4: CRMSmarty

global $app_strings;
global $app_list_strings;
global $current_user;
//Display the mail send status
$smarty = new CRMSmarty();
global $adb;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$sql = "select * from ec_messageaccount where  smownerid='" . $current_user->id . "'";
$result = $adb->query($sql);
$username = $adb->query_result($result, 0, 'username');
$password = $adb->query_result($result, 0, 'password');
if (isset($username)) {
    $smarty->assign("USERNAME", $username);
}
if (isset($password)) {
    $smarty->assign("PASSWORD", $password);
}
if (isset($_REQUEST['messageconfig_mode']) && $_REQUEST['messageconfig_mode'] != '') {
    $smarty->assign("MESSAGECONFIG_MODE", $_REQUEST['messageconfig_mode']);
} else {
    $smarty->assign("MESSAGECONFIG_MODE", 'view');
}
/*
//get sms money
//$host_name = "http://www.c3crm.com/getFee.php?name=$username&pwd=$password";
$host_name = "http://www.china-sms.com/send/getfee.asp?name=$username&pwd=$password";
if (gethostbyname($host_name) == $host_name) {	// network error
    // notify user network baybe has error	
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:MessageConfig.php

示例5: CRMSmarty

$url_string = '';
$smarty = new CRMSmarty();
if (!isset($where)) {
    $where = "";
}
//<<<<cutomview>>>>>>>
$oCustomView = new CustomView($currentModule);
$viewid = $oCustomView->getViewId($currentModule);
$customviewcombo_html = $oCustomView->getCustomViewCombo($viewid);
$viewnamedesc = $oCustomView->getCustomViewByCvid($viewid);
//<<<<<customview>>>>>
$popuptype = '';
$popuptype = $_REQUEST["popuptype"];
require_once "modules/Products/Products.php";
$focus = new Products();
$smarty->assign("SINGLE_MOD", 'Product');
if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != '') {
    $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']);
} else {
    $smarty->assign("RETURN_MODULE", 'Products');
}
if (isset($_REQUEST['select'])) {
    $smarty->assign("SELECT", 'enable');
}
if (isset($_REQUEST['return_action'])) {
    $return_action = $_REQUEST['return_action'];
    $smarty->assign("RETURN_ACTION", $return_action);
}
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$smarty->assign("MOD", $mod_strings);
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:PopupForSO.php

示例6: Accounts

global $log, $currentModule, $singlepane_view;
global $current_user;
$focus = new Accounts();
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->retrieve_entity_info($_REQUEST['record'], "Accounts");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['accountname'];
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$smarty = new CRMSmarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
//$smarty->assign("CUSTOMFIELD", $cust_fld);
$smarty->assign("ID", $_REQUEST['record']);
$category = getParentTab();
$smarty->assign("CATEGORY", $category);
$moduletype = $_REQUEST['moduletype'];
$smarty->assign("type", $moduletype);
$smarty->assign("SINGLE_MOD", "Account");
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->assign("MODULE", $currentModule);
$related_array = getRelatedLists($currentModule, $focus);
$relcount = count($related_array);
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:RelateLists.php

示例7: CRMSmarty

     $focus->qunfatmpname = $focus->column_fields['qunfatmpname'];
     $log->debug("id is " . $focus->id);
     $log->debug("name is " . $focus->name);
 }
 global $mod_strings;
 global $app_strings;
 global $theme;
 $theme_path = "themes/" . $theme . "/";
 $image_path = $theme_path . "images/";
 require_once $theme_path . 'layout_utils.php';
 $smarty = new CRMSmarty();
 if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
     $focus->id = "";
 }
 if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
     $smarty->assign("OP_MODE", $_REQUEST['mode']);
 }
 if (!$_SESSION['rlvs'][$module]) {
     unset($_SESSION['rlvs']);
 }
 $category = getParentTab();
 $smarty->assign("CATEGORY", $category);
 $smarty->assign("UPDATEINFO", updateInfo($focus->id));
 if (isset($focus->name)) {
     $smarty->assign("NAME", $focus->name);
 }
 $related_array = getRelatedLists("Qunfatmps", $focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 $smarty->assign("ID", $focus->id);
 $smarty->assign("MODULE", $currentmodule);
 $smarty->assign("SINGLE_MOD", 'Qunfatmp');
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:CallRelatedList.php

示例8: ImportAccount

$focus_impacc = new ImportAccount();
$focus_imppro = new ImportProduct();
$focus_impso = new ImportSalesorder();
$focus = 0;
$delimiter = ',';
$max_lines = 3;
$has_header1 = 1;
$overwrite1 = 1;
$has_header2 = 1;
$overwrite2 = 1;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$smarty = new CRMSmarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("IMP", $import_mod_strings);
$smarty->assign("MODULE", $_REQUEST['module']);
$filename1 = $_REQUEST['filename1'];
$filename2 = $_REQUEST['filename2'];
if (empty($filename1)) {
    show_error_import2("The order list file is empty!");
    exit;
}
if (empty($filename2)) {
    show_error_import2("The order detail file is empty!");
    exit;
}
if (strpos($filename1, ".csv") == false) {
    show_error_import2("The order list file is not a csv file!");
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:ImportStepXin2.php

示例9: CRMSmarty

    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['productname'];
    $focus->column_fields['product_description'] = decode_html($focus->column_fields["product_description"]);
    //描述
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $app_strings, $currentModule, $singlepane_view;
global $mod_strings;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$smarty = new CRMSmarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
if (isset($focus->name)) {
    $smarty->assign("NAME", $focus->name);
} else {
    $smarty->assign("NAME", "");
}
$focus->column_fields['description'] = html_entity_decode($focus->column_fields['description']);
$smarty->assign("BLOCKS", getBlocks($currentModule, "detail_view", '', $focus->column_fields));
$category = getParentTab();
$smarty->assign("CATEGORY", $category);
$smarty->assign("UPDATEINFO", updateInfo($focus->id));
//$smarty->assign("CUSTOMFIELD", $cust_fld);
$smarty->assign("SINGLE_MOD", 'Product');
if (isPermitted($module, "EditView", $_REQUEST['record']) == 'yes') {
    $smarty->assign("EDIT", "permitted");
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:DetailView.php

示例10: CustomView

    $_SESSION['lvs'][$currentModule] = get_object_vars($modObj);
}
//<<<<cutomview>>>>>>>
$oCustomView = new CustomView("Qunfatmps");
$viewid = $oCustomView->getViewId($currentModule);
$customviewcombo_html = $oCustomView->getCustomViewCombo($viewid);
$viewnamedesc = $oCustomView->getCustomViewByCvid($viewid);
//<<<<<customview>>>>>
if (!isset($where)) {
    $where = "";
}
$url_string = '';
// assigning http url string
if (isset($_REQUEST['errormsg']) && $_REQUEST['errormsg'] != '') {
    $errormsg = $_REQUEST['errormsg'];
    $smarty->assign("ERROR", "The User does not have permission to delete " . $errormsg . " " . $currentModule);
} else {
    $smarty->assign("ERROR", "");
}
//change by renzhen for save the search information
if (isset($_REQUEST['clearquery']) && $_REQUEST['clearquery'] == 'true') {
    unset($_SESSION['LiveViewSearch'][$currentModule]);
    if (isset($_REQUEST['query'])) {
        $_REQUEST['query'] = '';
    }
}
if (isset($_REQUEST['query']) && $_REQUEST['query'] == 'true') {
    list($where, $ustring) = split("#@@#", getWhereCondition($currentModule));
    // we have a query
    $url_string .= "&query=true" . $ustring;
    $log->info("Here is the where clause for the list view: {$where}");
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:ListView.php

示例11: getView

//needed when creating a new case with default values passed in
if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) {
    $focus->contact_name = $_REQUEST['contact_name'];
}
if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
    $focus->contact_id = $_REQUEST['contact_id'];
}
if (isset($_REQUEST['filename']) && $_REQUEST['isDuplicate'] != 'true') {
    $focus->filename = $_REQUEST['filename'];
}
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$disp_view = getView($focus->mode);
if ($disp_view == 'edit_view') {
    $smarty->assign("BLOCKS", getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields));
} else {
    $smarty->assign("BASBLOCKS", getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields, 'BAS'));
}
$smarty->assign("OP_MODE", $disp_view);
$category = getParentTab();
$smarty->assign("CATEGORY", $category);
$log->info("Note detail view");
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("MODULE", $currentModule);
$smarty->assign("SINGLE_MOD", 'Note');
//Display the FCKEditor or not? -- configure $FCKEDITOR_DISPLAY in config.php
//$smarty->assign("FCKEDITOR_DISPLAY",$FCKEDITOR_DISPLAY);
if (isset($focus->name)) {
    $smarty->assign("NAME", $focus->name);
开发者ID:ruckfull,项目名称:taobaocrm,代码行数:31,代码来源:NewEditView.php

示例12:

$mode = '';
$record = $_REQUEST['record'];
if (!empty($record)) {
    $query = "select * from ec_appkey where id={$record}";
    $row = $adb->getFirstLine($query);
    if (!empty($row)) {
        $shopname = $row['shopname'];
        $appkey = $row['appkey'];
        $appsecret = $row['appsecret'];
        $nick = $row['nick'];
        $topsession = $row['topsession'];
        $status = $row['status'];
    }
    $mode = 'edit';
}
$smarty->assign("shopname", $shopname);
$smarty->assign("appkey", $appkey);
$smarty->assign("appsecret", $appsecret);
$smarty->assign("topsession", $topsession);
$smarty->assign("nick", $nick);
$smarty->assign("status", $status);
if ($mode == 'edit') {
    $edittype = "编辑";
} else {
    $edittype = "新增";
}
$smarty->assign("record", $record);
$smarty->assign("EDITTYPE", $edittype);
$smarty->assign("MOD", return_module_language($current_language, 'Settings'));
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("APP", $app_strings);
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:EditShopapp.php

示例13: CRMSmarty

require_once 'include/utils/utils.php';
require_once 'include/DatabaseUtil.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $current_user;
global $list_max_entries_per_page;
//Display the mail send status
$smarty = new CRMSmarty();
global $adb;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$listview_header = array("maillistsid" => "序号", "maillistname" => "编号", "subject" => "邮件主题", "from_name" => "发件人", "from_email" => "发件人邮箱", "totalnum" => "邮件总数(条)", "successrate" => "成功发送(条)", "createdtime" => "发送时间");
//"mailcontent"=>"邮件内容","receiverinfo"=>"接收人及邮箱",
$smarty->assign("LISTHEADER", $listview_header);
$smarty->assign("countheader", count($listview_header));
$where = '';
$search_url = '';
//排序
$ordercol = array("maillistname" => "ec_maillists.maillistname", "subject" => "ec_maillists.subject", "mailcontent" => "ec_maillists.mailcontent", "receiverinfo" => "ec_maillists.receiverinfo", "from_name" => "ec_maillists.from_name", "from_email" => "ec_maillists.from_email", "successrate" => "ec_maillists.successrate", "totalnum" => "ec_maillists.totalnum", "createdtime" => "ec_maillists.createdtime");
$orderkeycol = array_keys($ordercol);
$order_by = $_REQUEST['order_by'];
$sorder = $_REQUEST['sorder'];
if (empty($order_by)) {
    $order_by = 'createdtime';
}
if (empty($sorder)) {
    $sorder = 'desc';
}
$order_url = "&order_by=" . $order_by . "&sorder=" . $sorder;
开发者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 {
    $fld_module = 'Accounts';
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:LayoutList.php

示例15: getBlocksForQuickEdit

<?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


注:本文中的CRMSmarty::assign方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。