當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PageRenderer::add_header_js方法代碼示例

本文整理匯總了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();
開發者ID:Cyberspace-Networks,項目名稱:PeopleAggregator,代碼行數:31,代碼來源:comment_management.php

示例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();
}
開發者ID:Cyberspace-Networks,項目名稱:PeopleAggregator,代碼行數:31,代碼來源:addgroup.php

示例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();
開發者ID:CivicCommons,項目名稱:oldBellCaPA,代碼行數:31,代碼來源:roles.php


注:本文中的PageRenderer::add_header_js方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。