本文整理汇总了PHP中HtmlPage::enableModal方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlPage::enableModal方法的具体用法?PHP HtmlPage::enableModal怎么用?PHP HtmlPage::enableModal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlPage
的用法示例。
在下文中一共展示了HtmlPage::enableModal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HtmlPage
ON country.usd_usr_id = usr_id
AND country.usd_usf_id = ' . $gProfileFields->getProperty('COUNTRY', 'usf_id') . '
LEFT JOIN ' . TBL_ROLES . ' rol
ON rol.rol_valid = 1
AND rol.rol_id = ' . $getRoleId . '
LEFT JOIN ' . TBL_MEMBERS . ' mem
ON mem.mem_rol_id = rol.rol_id
AND mem.mem_begin <= \'' . DATE_NOW . '\'
AND mem.mem_end > \'' . DATE_NOW . '\'
AND mem.mem_usr_id = usr_id
WHERE ' . $memberCondition . '
ORDER BY last_name, first_name ';
$userStatement = $gDb->query($sql);
// create html page object
$page = new HtmlPage($headline);
$page->enableModal();
$javascriptCode = '';
if ($getMembersShowAll == 1) {
$javascriptCode .= '$("#mem_show_all").prop("checked", true);';
}
$javascriptCode .= '
$("#menu_item_create_user").attr("data-toggle", "modal");
$("#menu_item_create_user").attr("data-target", "#admidio_modal");
// change mode of users that should be shown
$("#filter_rol_id").change(function() {
window.location.replace("' . $g_root_path . '/adm_program/modules/lists/members_assignment.php?rol_id=' . $getRoleId . '&filter_rol_id=" + $("#filter_rol_id").val() + "&mem_show_all=0");
});
// change mode of users that should be shown
$("#mem_show_all").click(function() {