本文整理汇总了PHP中PageRenderer::add_header_js方法的典型用法代码示例。如果您正苦于以下问题:PHP PageRenderer::add_header_js方法的具体用法?PHP PageRenderer::add_header_js怎么用?PHP PageRenderer::add_header_js使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageRenderer
的用法示例。
在下文中一共展示了PageRenderer::add_header_js方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: User
{$your_permissions}
<p>{$paging}</p>
<table class="bulk_comment_summary"><tr>
<td>ID</td>
<td>Post</td>
<td>Name</td>
<td>Email</td>
<td>Website</td>
<td>Subject</td>
<td>Comment</td>
<td>IP</td>
<td>X</td>
</tr>
{$comments}
</table>
</div><!-- comment_manage_pane -->
EOS;
return $page_html;
}
// ---
$user = new User();
$user->load($login_uid);
$page = new PageRenderer(NULL, PAGE_COMMENT_MANAGEMENT, "Manage comments", "container_one_column.tpl", "header.tpl");
$page->add_header_js("fat.js");
$page->add_header_css(PA::$theme_url . "/comment_management.css");
$page->add_module("middle", "top", render_main_page_area($user));
uihelper_set_user_heading($page);
echo $page->render();
示例2: setup_module
$group_type = $groups->group_type;
}
function setup_module($column, $module, $obj)
{
global $login_uid, $paging, $page_uid, $super_groups_available, $user_type, $group_type;
switch ($module) {
case 'AddGroupModule':
if (!empty($_REQUEST['gid'])) {
$obj->id = $_REQUEST['gid'];
}
break;
}
}
$setting_data = ModuleSetting::load_setting(PAGE_ADDGROUP, PA::$login_uid);
$page = new PageRenderer("setup_module", PAGE_ADDGROUP, "{$title} - " . PA::$network_info->name, 'container_three_column.tpl', $header, PRI, HOMEPAGE, PA::$network_info, NULL, $setting_data);
$page->add_header_js('addgroup.js');
if (!empty($_REQUEST['msg'])) {
$message = null;
} else {
if (!empty($_REQUEST['error_msg'])) {
$message = null;
} else {
$message = null;
}
}
uihelper_error_msg($message);
if ($edit) {
uihelper_get_group_style($_REQUEST['gid']);
} else {
uihelper_get_network_style();
}
示例3: setup_module
$msg = "{$e->message}";
$error = TRUE;
}
}
//$configure_permission = current_user_can('configure_network');
$permission_denied_msg = '';
if (!$configure_permission) {
$error = TRUE;
$permission_denied_msg = "Sorry! you are not authorized to view the content of this page";
}
$page = new PageRenderer("setup_module", PAGE_ROLE_MANAGE, "", 'container_two_column.tpl', 'header.tpl', PRI, HOMEPAGE, $network_info);
$page->html_body_attributes = 'class="no_second_tier network_config"';
$msg = !empty($msg) ? $msg : $permission_denied_msg;
function setup_module($column, $module, $obj)
{
global $permission_denied_msg, $error;
if ($permission_denied_msg) {
return 'skip';
}
switch ($module) {
case 'RoleManageModule':
if ($error) {
$obj->display = true;
}
break;
}
}
$page->add_header_js("rolesedit.js");
uihelper_error_msg($msg);
uihelper_get_network_style();
echo $page->render();