本文整理汇总了PHP中fetchWordTemplateList函数的典型用法代码示例。如果您正苦于以下问题:PHP fetchWordTemplateList函数的具体用法?PHP fetchWordTemplateList怎么用?PHP fetchWordTemplateList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fetchWordTemplateList函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
if ($adb->dbType == "pgsql") {
$list_result = $adb->pquery($query . " OFFSET {$limit_start_rec} LIMIT {$list_max_entries_per_page}", array());
} else {
$list_result = $adb->pquery($query . " LIMIT {$limit_start_rec}, {$list_max_entries_per_page}", array());
}
$recordListRangeMsg = getRecordRangeMessage($list_result, $limit_start_rec);
$smarty->assign('recordListRange', $recordListRangeMsg);
//mass merge for word templates -- *Raj*17/11
while ($row = $adb->fetch_array($list_result)) {
$ids[] = $row["crmid"];
}
if (isset($ids)) {
$smarty->assign("ALLIDS", implode($ids, ";"));
}
if (isPermitted("Accounts", "Merge") == 'yes') {
$wordTemplateResult = fetchWordTemplateList("Accounts");
$tempCount = $adb->num_rows($wordTemplateResult);
$tempVal = $adb->fetch_array($wordTemplateResult);
for ($templateCount = 0; $templateCount < $tempCount; $templateCount++) {
$optionString .= "<option value=\"" . $tempVal["templateid"] . "\">" . $tempVal["filename"] . "</option>";
$tempVal = $adb->fetch_array($wordTemplateResult);
}
if ($tempCount > 0) {
$smarty->assign("WORDTEMPLATEOPTIONS", "<td>" . $app_strings['LBL_SELECT_TEMPLATE_TO_MAIL_MERGE'] . "</td><td style=\"padding-left:5px;padding-right:5px\"><select class=\"small\" name=\"mergefile\">" . $optionString . "</select></td>");
$smarty->assign("MERGEBUTTON", "<td><input title=\"{$app_strings['LBL_MERGE_BUTTON_TITLE']}\" accessKey=\"{$app_strings['LBL_MERGE_BUTTON_KEY']}\" class=\"crmbutton small create\" onclick=\"return massMerge('Accounts')\" type=\"submit\" name=\"Merge\" value=\" {$app_strings['LBL_MERGE_BUTTON_LABEL']}\"></td>");
} else {
global $current_user;
require "user_privileges/user_privileges_" . $current_user->id . ".php";
if ($is_admin == true) {
$smarty->assign("MERGEBUTTON", '<td><a href=index.php?module=Settings&action=upload&tempModule=' . $currentModule . '&parenttab=Settings>' . $app_strings["LBL_CREATE_MERGE_TEMPLATE"] . '</td>');
}
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:ListView.php
示例2: array
$emails[] = $value;
}
$smarty->assign("EMAILS", $emails);
$cond = "LTrim('%s') !=''";
$condition = array();
foreach ($emails as $key => $value) {
$condition[] = sprintf($cond, $value);
}
$condition_str = implode("||", $condition);
$js = "if(" . $condition_str . "){fnvshobj(this,'sendmail_cont');sendmail('" . $currentModule . "'," . $_REQUEST['record'] . ");}else{OpenCompose('','create');}";
$smarty->assign('JS', $js);
}
if (isPermitted("Leads", "Merge", '') == 'yes') {
global $current_user;
require "user_privileges/user_privileges_" . $current_user->id . ".php";
$wordTemplateResult = fetchWordTemplateList("Leads");
$tempCount = $adb->num_rows($wordTemplateResult);
$tempVal = $adb->fetch_array($wordTemplateResult);
for ($templateCount = 0; $templateCount < $tempCount; $templateCount++) {
$optionString[$tempVal["templateid"]] = $tempVal["filename"];
$tempVal = $adb->fetch_array($wordTemplateResult);
}
if ($is_admin) {
$smarty->assign("MERGEBUTTON", "permitted");
} elseif ($tempCount > 0) {
$smarty->assign("MERGEBUTTON", "permitted");
}
$smarty->assign("TEMPLATECOUNT", $tempCount);
$smarty->assign("WORDTEMPLATEOPTIONS", $app_strings['LBL_SELECT_TEMPLATE_TO_MAIL_MERGE']);
$smarty->assign("TOPTIONS", $optionString);
}
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:31,代码来源:DetailView.php
示例3: getMergeFields
$smarty->assign("CRITERIA", $criteria);
$smarty->assign("AVALABLE_FIELDS", getMergeFields($currentModule, "available_fields"));
$smarty->assign("FIELDS_TO_MERGE", getMergeFields($currentModule, "fileds_to_merge"));
//Added to select Multiple records in multiple pages
$smarty->assign("SELECTEDIDS", vtlib_purify($_REQUEST['selobjs']));
$smarty->assign("ALLSELECTEDIDS", vtlib_purify($_REQUEST['allselobjs']));
$smarty->assign("CURRENT_PAGE_BOXES", implode(array_keys($listview_entries), ";"));
ListViewSession::setSessionQuery($currentModule, $list_query, $viewid);
// Gather the custom link information to display
include_once 'vtlib/Vtiger/Link.php';
$customlink_params = array('MODULE' => $currentModule, 'ACTION' => vtlib_purify($_REQUEST['action']), 'CATEGORY' => $category);
$smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid($currentModule), array('LISTVIEWBASIC', 'LISTVIEW'), $customlink_params));
// END
if (isPermitted($currentModule, "Merge") == 'yes' && file_exists("modules/{$currentModule}/Merge.php")) {
$wordTemplates = array();
$wordTemplateResult = fetchWordTemplateList($currentModule);
$tempCount = $adb->num_rows($wordTemplateResult);
$tempVal = $adb->fetch_array($wordTemplateResult);
for ($templateCount = 0; $templateCount < $tempCount; $templateCount++) {
$wordTemplates[$tempVal["templateid"]] = $tempVal["filename"];
$tempVal = $adb->fetch_array($wordTemplateResult);
}
$smarty->assign('WORDTEMPLATES', $wordTemplates);
}
}
$smarty->assign('IS_ADMIN', is_admin($current_user));
if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') {
$smarty->display("ListViewEntries.tpl");
} else {
$smarty->display('ListView.tpl');
}
开发者ID:jaimeaga84,项目名称:corebos,代码行数:31,代码来源:ListView.php
示例4: session_id
$smarty->assign("PRINT_URL", "phprint.php?jt=" . session_id() . $GLOBALS['request_string']);
// Module Sequence Numbering
$mod_seq_field = getModuleSequenceField($currentModule);
if ($mod_seq_field != null) {
$mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
} else {
$mod_seq_id = $focus->id;
}
$smarty->assign('MOD_SEQ_ID', $mod_seq_id);
// END
$smarty->assign("ID", vtlib_purify($_REQUEST['record']));
if (isPermitted("HelpDesk", "Merge", '') == 'yes') {
global $current_user;
require "user_privileges/user_privileges_" . $current_user->id . ".php";
require_once 'include/utils/UserInfoUtil.php';
$wordTemplateResult = fetchWordTemplateList("HelpDesk");
$tempCount = $adb->num_rows($wordTemplateResult);
$tempVal = $adb->fetch_array($wordTemplateResult);
for ($templateCount = 0; $templateCount < $tempCount; $templateCount++) {
$optionString[$tempVal["templateid"]] = $tempVal["filename"];
$tempVal = $adb->fetch_array($wordTemplateResult);
}
if ($is_admin) {
$smarty->assign("MERGEBUTTON", "permitted");
} elseif ($tempCount > 0) {
$smarty->assign("MERGEBUTTON", "permitted");
}
$smarty->assign("TEMPLATECOUNT", $tempCount);
$smarty->assign("WORDTEMPLATEOPTIONS", $app_strings['LBL_SELECT_TEMPLATE_TO_MAIL_MERGE']);
$smarty->assign("TOPTIONS", $optionString);
}
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:DetailView.php
注:本文中的fetchWordTemplateList函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论