• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vtigerCRM_Smarty类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: viewController

 function viewController()
 {
     $smarty = new vtigerCRM_Smarty();
     foreach ($this->parameters as $k => $v) {
         $smarty->assign($k, $v);
     }
     $smarty->assign("IS_SAFARI", Mobile::isSafari());
     $smarty->assign("SKIN", Mobile::config('Default.Skin'));
     return $smarty;
 }
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:10,代码来源:Viewer.php


示例2: getViewer

 function getViewer()
 {
     global $theme, $app_strings, $current_language;
     $smarty = new vtigerCRM_Smarty();
     $smarty->assign('APP', $app_strings);
     $smarty->assign('MOD', return_module_language($current_language, 'ModComments'));
     $smarty->assign('THEME', $theme);
     $smarty->assign('IMAGE_PATH', "themes/{$theme}/images/");
     $smarty->assign('UIKEY', $this->uikey());
     $smarty->assign('WIDGET_TITLE', $this->title());
     $smarty->assign('WIDGET_NAME', $this->name());
     return $smarty;
 }
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:13,代码来源:DetailViewBlockComment.php


示例3: ConfigEditor_Viewer

 function ConfigEditor_Viewer()
 {
     parent::vtigerCRM_Smarty();
     global $app_strings, $mod_strings, $currentModule, $theme;
     $this->assign('CUSTOM_MODULE', true);
     $this->assign('APP', $app_strings);
     $this->assign('MOD', $mod_strings);
     $this->assign('MODULE', $currentModule);
     // TODO: Update Single Module Instance name here.
     $this->assign('SINGLE_MOD', 'SINGLE_' . $currentModule);
     $this->assign('CATEGORY', 'Settings');
     $this->assign('IMAGE_PATH', "themes/{$theme}/images/");
     $this->assign('THEME', $theme);
 }
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:14,代码来源:Viewer.php


示例4: getDetailViewForTooltip

/**
 * this function returns the detailview for tooltip
 * @param integer $fieldid - the fieldid of the field for which you want the detailview
 * @param array $checkedFields - the fields which are selected to be displayed in quickview
 * @return string $data - the formatted quickview data
 */
function getDetailViewForTooltip($fieldid, $checkedFields)
{
    global $app_strings;
    $labels = array();
    if (!empty($checkedFields)) {
        $labels = getFieldLabels($checkedFields);
    }
    $smarty = new vtigerCRM_Smarty();
    $smarty->assign("FIELDID", $fieldid);
    $smarty->assign("APP", $app_strings);
    $smarty->assign("IMAGES", "themes/images/");
    $smarty->assign("LABELS", $labels);
    $smarty->assign("COUNT", count($labels));
    $data = $smarty->fetch("modules/Tooltip/DetailQuickView.tpl");
    return $data;
}
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:22,代码来源:SaveTooltipInformation.php


示例5: viewController

 function viewController()
 {
     global $theme;
     $themePath = "themes/" . $theme . "/";
     $imagePath = $themePath . "images/";
     $smarty = new vtigerCRM_Smarty();
     foreach ($this->parameters as $k => $v) {
         $smarty->assign($k, $v);
     }
     $smarty->assign('MODULE', 'Import');
     $smarty->assign('THEME', $theme);
     $smarty->assign('IMAGE_PATH', $imagePath);
     return $smarty;
 }
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:14,代码来源:Viewer.php


示例6: vtigerCRM_Smarty

 * and share improvements. However, for proper details please read the full License, available at
 * http://vizsage.com/license/Vizsage-License-BY-NC-SA.html and the handy reference for understanding
 * the full license at http://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html. Unless required by
 * applicable law or agreed to in writing, any software distributed under the License is distributed
 * on an  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the
 * License terms of Creative Commons Attribution-NonCommercial-ShareAlike 3.0 (the License).
 *************************************************************************************************
 *  Module       : cbMap
 *  Version      : 5.5.0
 *  Author       : OpenCubed.
 *************************************************************************************************/
require_once 'Smarty_setup.php';
include_once 'modules/cbMap/cbMap.php';
global $mod_strings, $app_strings, $adb, $log;
$mapTemplate = new vtigerCRM_Smarty();
$allModules = array();
$mapid = $_REQUEST["mapid"];
$mapInstance = CRMEntity::getInstance("cbMap");
$allModules = $mapInstance->initListOfModules();
$delimiters = array("", ",", ";", "_", "-");
$getMapQuery = $adb->pquery("Select * from vtiger_cbmap where cbmapid=?", array($mapid));
$nr_row = $adb->num_rows($getMapQuery);
if ($nr_row != 0) {
    $viewmode = "edit";
    $origin = $adb->query_result($getMapQuery, 0, 'origin');
    $originname = $adb->query_result($getMapQuery, 0, 'originname');
    $target = $adb->query_result($getMapQuery, 0, 'target');
    $targetname = $adb->query_result($getMapQuery, 0, 'targetname');
    $field1 = $adb->query_result($getMapQuery, 0, 'field1');
    $field2 = $adb->query_result($getMapQuery, 0, 'field2');
开发者ID:kduqi,项目名称:corebos,代码行数:31,代码来源:getMap.php


示例7: vtigerCRM_Smarty

<?php

/*+********************************************************************************
 * 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 'Smarty_setup.php';
require_once 'include/database/PearDatabase.php';
require_once 'include/CustomFieldUtil.php';
global $mod_strings, $app_strings, $theme;
$smarty = new vtigerCRM_Smarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$theme_path = "themes/" . $theme . "/";
$image_path = "themes/images/";
$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 = vtlib_purify($_REQUEST['fld_module']);
} elseif ($_REQUEST['formodule'] != '') {
    $fld_module = vtlib_purify($_REQUEST['formodule']);
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:31,代码来源:CustomFieldList.php


示例8: die

global $currentModule, $current_user;
if ($current_user->is_admin != 'on') {
    die("<br><br><center>" . $app_strings['LBL_PERMISSION'] . " <a href='javascript:window.history.back()'>" . $app_strings['LBL_GO_BACK'] . ".</a></center>");
}
$log = LoggerManager::getLogger('user_list');
global $mod_strings, $adb;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
global $current_language;
$mod_strings = return_module_language($current_language, 'Users');
$category = getParentTab();
$focus = new Users();
$no_of_users = UserCount();
//Display the mail send status
$smarty = new vtigerCRM_Smarty();
if ($_REQUEST['mail_error'] != '') {
    require_once "modules/Emails/mail.php";
    $error_msg = strip_tags(parseEmailErrorString($_REQUEST['mail_error']));
    $error_msg = $app_strings['LBL_MAIL_NOT_SENT_TO_USER'] . ' ' . vtlib_purify($_REQUEST['user']) . '. ' . $app_strings['LBL_PLS_CHECK_EMAIL_N_SERVER'];
    $smarty->assign("ERROR_MSG", $mod_strings['LBL_MAIL_SEND_STATUS'] . ' <b><font class="warning">' . $error_msg . '</font></b>');
}
//Retreiving the start value from request
if (isset($_REQUEST['start']) && $_REQUEST['start'] != '') {
    $start = vtlib_purify($_REQUEST['start']);
} elseif ($_SESSION['user_pagestart'] != '') {
    $start = $_SESSION['user_pagestart'];
} else {
    $start = 1;
}
$list_query = getListQuery("Users");
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:ListView.php


示例9: vtigerCRM_Smarty

 * 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 'Smarty_setup.php';
require_once 'modules/SalesOrder/SalesOrder.php';
require_once 'include/ListView/ListView.php';
require_once 'include/utils/utils.php';
require_once 'modules/CustomView/CustomView.php';
require_once 'include/database/Postgres8.php';
global $app_strings, $mod_strings, $list_max_entries_per_page, $currentModule, $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$smarty = new vtigerCRM_Smarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("MODULE", $currentModule);
$smarty->assign("SINGLE_MOD", 'SalesOrder');
$category = getParentTab();
$smarty->assign("CATEGORY", $category);
$focus = new SalesOrder();
// Initialize sort by fields
$focus->initSortbyField('SalesOrder');
// END
$other_text = array();
$url_string = '';
// assigning http url string
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:ListView.php


示例10: vtigerCRM_Smarty

/*+**********************************************************************************
 * 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.
 ************************************************************************************/
global $app_strings, $mod_strings, $current_language, $currentModule, $theme, $adb, $log, $current_user;
require_once 'Smarty_setup.php';
require_once 'data/Tracker.php';
require_once 'include/CustomFieldUtil.php';
require_once 'include/utils/utils.php';
$focus = CRMEntity::getInstance($currentModule);
$smarty = new vtigerCRM_Smarty();
$category = getParentTab($currentModule);
$record = vtlib_purify($_REQUEST['record']);
$isduplicate = vtlib_purify($_REQUEST['isDuplicate']);
//added to fix the issue4600
$searchurl = getBasic_Advance_SearchURL();
$smarty->assign("SEARCH", $searchurl);
//4600 ends
$currencyid = fetchCurrency($current_user->id);
$rate_symbol = getCurrencySymbolandCRate($currencyid);
$rate = $rate_symbol['rate'];
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $record;
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($record, 'PurchaseOrder');
    $focus->name = $focus->column_fields['subject'];
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:30,代码来源:EditView.php


示例11: vtigerCRM_Smarty

<?php

/*+********************************************************************************
 * 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 'Smarty_setup.php';
require_once 'include/utils/utils.php';
global $app_strings, $mod_strings, $theme, $currentModule;
$focus = CRMEntity::getInstance($currentModule);
$smarty = new vtigerCRM_Smarty();
//added to fix the issue4600
$searchurl = getBasic_Advance_SearchURL();
$smarty->assign("SEARCH", $searchurl);
//4600 ends
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $_REQUEST['record'];
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($_REQUEST['record'], "Vendors");
    $focus->name = $focus->column_fields['vendorname'];
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
    $focus->mode = '';
}
if (empty($_REQUEST['record']) && $focus->mode != 'edit') {
    setObjectValuesFromRequest($focus);
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:31,代码来源:EditView.php


示例12: vtigerCRM_Smarty

 * The Original Code is:  SugarCRM Open Source
 * The Initial Developer of the Original Code is SugarCRM, Inc.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
 * All Rights Reserved.
 * Contributor(s): ______________________________________.
 ********************************************************************************/
require_once 'Smarty_setup.php';
require_once "data/Tracker.php";
require_once 'include/logging.php';
require_once 'include/ListView/ListView.php';
require_once 'include/utils/utils.php';
global $app_strings, $default_charset;
global $currentModule, $current_user;
global $theme, $adb;
$url_string = '';
$smarty = new vtigerCRM_Smarty();
if (!isset($where)) {
    $where = "";
}
$parent_tab = getParentTab();
$smarty->assign("CATEGORY", $parent_tab);
$url = '';
$popuptype = '';
$popuptype = vtlib_purify($_REQUEST["popuptype"]);
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("THEME_PATH", $theme_path);
$smarty->assign("MODULE", $currentModule);
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:Popup.php


示例13: vtEditExpressions

function vtEditExpressions($adb, $appStrings, $current_language, $theme, $formodule = '')
{
    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    $smarty = new vtigerCRM_Smarty();
    $smarty->assign('APP', $appStrings);
    $mod = array_merge(return_module_language($current_language, 'FieldFormulas'), return_module_language($current_language, 'Settings'));
    $jsStrings = array('NEED_TO_ADD_A' => $mod['NEED_TO_ADD_A'], 'CUSTOM_FIELD' => $mod['LBL_CUSTOM_FIELD'], 'LBL_USE_FUNCTION_DASHDASH' => $mod['LBL_USE_FUNCTION_DASHDASH'], 'LBL_USE_FIELD_VALUE_DASHDASH' => $mod['LBL_USE_FIELD_VALUE_DASHDASH'], 'LBL_DELETE_EXPRESSION_CONFIRM' => $mod['LBL_DELETE_EXPRESSION_CONFIRM']);
    $smarty->assign("JS_STRINGS", Zend_Json::encode($jsStrings));
    $smarty->assign("MOD", $mod);
    $smarty->assign("THEME", $theme);
    $smarty->assign("IMAGE_PATH", $image_path);
    $smarty->assign("MODULE_NAME", 'FieldFormulas');
    $smarty->assign("PAGE_NAME", 'LBL_FIELDFORMULAS');
    $smarty->assign("PAGE_TITLE", 'LBL_FIELDFORMULAS');
    $smarty->assign("PAGE_DESC", 'LBL_FIELDFORMULAS_DESCRIPTION');
    $smarty->assign("FORMODULE", $formodule);
    if (file_exists("modules/{$formodule}/{$formodule}.php")) {
        $focus = CRMEntity::getInstance($formodule);
        $validationArray = split_validationdataArray(getDBValidationData($focus->tab_name, getTabid($formodule)));
        $smarty->assign('VALIDATION_DATA_FIELDNAME', $validationArray['fieldname']);
        $smarty->assign('VALIDATION_DATA_FIELDDATATYPE', $validationArray['datatype']);
        $smarty->assign('VALIDATION_DATA_FIELDLABEL', $validationArray['fieldlabel']);
    }
    $smarty->display(vtlib_getModuleTemplate('FieldFormulas', 'EditExpressions.tpl'));
}
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:26,代码来源:editexpressions.php


示例14: vtlib_purify

/*+**********************************************************************************
 * 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 'Smarty_setup.php';
require_once 'data/Tracker.php';
require_once 'include/utils/utils.php';
global $app_strings, $app_list_strings, $mod_strings, $theme, $currentModule;
$module = vtlib_purify($_REQUEST['module']);
$focus = CRMEntity::getInstance($currentModule);
$smarty = new vtigerCRM_Smarty();
//added to fix the issue4600
$searchurl = getBasic_Advance_SearchURL();
$smarty->assign("SEARCH", $searchurl);
//4600 ends
$smarty->assign("UPLOADSIZE", $upload_maxsize / 1000000);
//Convert to MB
$smarty->assign("UPLOAD_MAXSIZE", $upload_maxsize);
if ($_REQUEST['upload_error'] == true) {
    echo '<br><b><font color="red"> ' . $mod_strings['FILE_HAS_NO_DATA'] . '.</font></b><br>';
}
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $_REQUEST['record'];
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($_REQUEST['record'], "Documents");
    $focus->name = $focus->column_fields['notes_title'];
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:30,代码来源:EditView.php


示例15: vtigerCRM_Smarty

 if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
     $focus->retrieve_entity_info($RECORD, $currentmodule);
     $focus->id = $RECORD;
     $focus->firstname = $focus->column_fields['firstname'];
     $focus->lastname = $focus->column_fields['lastname'];
     $log->debug("id is " . $focus->id);
     $log->debug("name is " . $focus->name);
 }
 global $mod_strings;
 global $app_strings;
 global $theme;
 global $currentModule;
 global $current_user;
 $theme_path = "themes/" . $theme . "/";
 $image_path = $theme_path . "images/";
 $smarty = new vtigerCRM_Smarty();
 if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
     $focus->id = "";
 }
 if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
     $smarty->assign("OP_MODE", vtlib_purify($_REQUEST['mode']));
 }
 if (!$_SESSION['rlvs'][$module]) {
     unset($_SESSION['rlvs']);
 }
 if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
     $userid = $current_user->id;
     $sql = "select fieldname from vtiger_field where uitype = '13' and tabid = 7 and vtiger_field.presence in (0,2)";
     $result = $adb->pquery($sql, array());
     $num_fieldnames = $adb->num_rows($result);
     for ($i = 0; $i < $num_fieldnames; $i++) {
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:31,代码来源:CallRelatedList.php


示例16: vtigerCRM_Smarty

<?php

/*+**********************************************************************************
 * 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.
 ************************************************************************************/
global $app_strings, $mod_strings, $current_language, $currentModule, $theme;
require_once 'Smarty_setup.php';
$focus = CRMEntity::getInstance($currentModule);
$smarty = new vtigerCRM_Smarty();
$category = getParentTab($currentModule);
$record = vtlib_purify($_REQUEST['record']);
$isduplicate = vtlib_purify($_REQUEST['isDuplicate']);
//added to fix the issue4600
$searchurl = getBasic_Advance_SearchURL();
$smarty->assign("SEARCH", $searchurl);
//4600 ends
if ($record) {
    $focus->id = $record;
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($record, $currentModule);
}
if ($isduplicate == 'true') {
    $focus->id = '';
    $focus->mode = '';
}
if (empty($_REQUEST['record']) && $focus->mode != 'edit') {
开发者ID:shamimhasan,项目名称:Vtiger-CRM-5.4.0,代码行数:31,代码来源:EditView.php


示例17: vtigerCRM_Smarty

 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 * 
 ********************************************************************************/
require_once 'Smarty_setup.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $app_list_strings;
global $adb;
global $upload_maxsize;
global $theme, $default_charset;
global $current_language, $default_language, $current_user;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$smarty = new vtigerCRM_Smarty();
if (isset($_REQUEST['templateid']) && $_REQUEST['templateid'] != '') {
    $templateid = $_REQUEST['templateid'];
    $sql = "SELECT vtiger_pdfmaker.*, vtiger_pdfmaker_settings.*\n              FROM vtiger_pdfmaker \n              LEFT JOIN vtiger_pdfmaker_settings\n                ON vtiger_pdfmaker_settings.templateid = vtiger_pdfmaker.templateid\n             WHERE vtiger_pdfmaker.templateid=?";
    $result = $adb->pquery($sql, array($templateid));
    $pdftemplateResult = $adb->fetch_array($result);
    $select_module = $pdftemplateResult["module"];
    // $pdf_language = $pdftemplateResult["pdf_language"];
    $select_format = $pdftemplateResult["format"];
    $select_orientation = $pdftemplateResult["orientation"];
    //$select_encoding = $pdftemplateResult["encoding"];
} else {
    $templateid = "";
    if (isset($_REQUEST["return_module"]) && $_REQUEST["return_module"] != "") {
        $select_module = $_REQUEST["return_module"];
    } else {
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:31,代码来源:EditPDFTemplate.php


示例18: vtlib_purify

 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ********************************************************************************/
global $theme, $mod_strings, $current_language, $currentModule, $current_user, $app_strings;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once "modules/Calendar/calendarLayout.php";
require_once 'include/utils/utils.php';
require_once "modules/Calendar/Calendar.php";
require_once 'include/logging.php';
$cal_log =& LoggerManager::getLogger('calendar');
$cal_log->debug("In CalendarAjax file");
$mysel = vtlib_purify($_REQUEST['view']);
if ($_REQUEST['file'] == 'OpenListView') {
    require_once 'Smarty_setup.php';
    $smarty = new vtigerCRM_Smarty();
    require_once "modules/Calendar/OpenListView.php";
    $smarty->assign("APP", $app_strings);
    $smarty->assign("IMAGE_PATH", $image_path);
    if ($_REQUEST['mode'] == '0') {
        $activities[0] = getPendingActivities(0);
        $smarty->assign("ACTIVITIES", $activities);
        $smarty->display("upcomingActivities.tpl");
    } else {
        if ($_REQUEST['mode'] == '1') {
            $activities[1] = getPendingActivities(1);
            $smarty->assign("ACTIVITIES", $activities);
            $smarty->display("pendingActivities.tpl");
        }
    }
    die;
开发者ID:latechdirect,项目名称:vtiger,代码行数:31,代码来源:ActivityAjax.php


示例19: vtigerCRM_Smarty

<?php

/*********************************************************************************
 * 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 'modules/Settings/MailScanner/core/MailScannerInfo.php';
require_once 'Smarty_setup.php';
require_once 'vtlib/Vtiger/Cron.php';
global $app_strings, $mod_strings, $currentModule, $theme, $current_language;
global $application_unique_key;
// defined in config.inc.php
$smarty = new vtigerCRM_Smarty();
$smarty->assign("MOD", return_module_language($current_language, 'Settings'));
$smarty->assign("CMOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", "themes/{$theme}/images/");
$scanners = Vtiger_MailScannerInfo::listAll();
$smarty->assign("SCANNERS", $scanners);
$smarty->assign("APP_KEY", $application_unique_key);
$smarty->assign("CRON_TASK", Vtiger_Cron::getInstance('MailScanner'));
$smarty->display('MailScanner/MailScannerInfo.tpl');
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:28,代码来源:MailScannerInfo.php


示例20: vtigerCRM_Smarty

require_once 'include/utils/utils.php';
require_once 'user_privileges/default_module_view.php';
global $mod_strings, $app_strings, $theme, $currentModule, $singlepane_view;
$focus = CRMEntity::getInstance($currentModule);
if (isset($_REQUEST['record']) && isset($_REQUEST['record'])) {
    $focus->retrieve_entity_info($_REQUEST['record'], "SalesOrder");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['subject'];
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$log->info("SalesOrder detail view");
$smarty = new vtigerCRM_Smarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("PRINT_URL", "phprint.php?jt=" . session_id() . $GLOBALS['request_string']);
if (isset($focus->name)) {
    $smarty->assign("NAME", $focus->name);
} else {
    $smarty->assign("NAME", "");
}
$smarty->assign("BLOCKS", getBlocks($currentModule, "detail_view", '', $focus->column_fields));
$smarty->assign("UPDATEINFO", updateInfo($focus->id));
$smarty->assign("CUSTOMFIELD", $cust_fld);
$smarty->assign("ID", vtlib_purify($_REQUEST['record']));
$salesorder_no = getModuleSequenceNumber($currentModule, vtlib_purify($_REQUEST['record']));
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:31,代码来源:DetailView.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP w2p_Database_Query类代码示例发布时间:2022-05-23
下一篇:
PHP vmc类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap