本文整理匯總了PHP中ListView::createXTemplate方法的典型用法代碼示例。如果您正苦於以下問題:PHP ListView::createXTemplate方法的具體用法?PHP ListView::createXTemplate怎麽用?PHP ListView::createXTemplate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ListView
的用法示例。
在下文中一共展示了ListView::createXTemplate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ListView
}
}
$GLOBALS['log']->info("Here is the where clause for the list view: {$where}");
}
$display_title = $mod_strings['LBL_LIST_FORM_TITLE'];
if ($title) {
$display_title = $title;
}
$ListView = new ListView();
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
$header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=ListView&from_module=" . $_REQUEST['module'] . "'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' alt='Edit Layout' align='bottom'") . "</a>";
}
$ListView->initNewXTemplate('modules/EmailTemplates/ListView.html', $mod_strings);
$ListView->setHeaderTitle($display_title . $header_text);
$ListView->setQuery($where, "", "email_templates.date_entered DESC", "EMAIL_TEMPLATE");
if ($db->dbType == 'mysql') {
$ListView->createXTemplate();
$sortURLBase = $ListView->getBaseURL("EMAIL_TEMPLATE") . "&" . $ListView->getSessionVariableName("EMAIL_TEMPLATE", "ORDER_BY") . "=";
$ListView->xTemplate->assign("ET_ORDER_BY", '<a href="' . $sortURLBase . 'description" class="listViewThLinkS1">');
$ListView->xTemplateAssign("et_arrow_start", $ListView->getArrowStart($ListView->local_image_path));
$arrowInfo = $ListView->getOrderByInfo('EMAIL_TEMPLATE');
if ($arrowInfo[0] == 'description') {
$imgArrow = "_down";
if ($arrowInfo[1]) {
$imgArrow = "_up";
}
$ListView->xTemplateAssign('et_description_arrow', $imgArrow);
}
$ListView->xTemplateAssign('et_arrow_end', $ListView->getArrowEnd($ListView->local_image_path) . '</a>');
}
$ListView->processListView($seedEmailTemplate, "main", "EMAIL_TEMPLATE");