当前位置: 首页>>代码示例>>PHP>>正文


PHP js_includes函数代码示例

本文整理汇总了PHP中js_includes函数的典型用法代码示例。如果您正苦于以下问题:PHP js_includes函数的具体用法?PHP js_includes怎么用?PHP js_includes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了js_includes函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PageRenderer

            if (PA::$network_info->type == PRIVATE_NETWORK_TYPE) {
                return 'skip';
            }
            $obj->mode = PRI;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_LOGIN, "Login page", "container_three_column.php", "header.php", PUB, HOMEPAGE, PA::$network_info);
// added by Zoran Hron: JQuery validation & AJAX file upload --
$page->add_header_html(js_includes('jquery.validate.js'));
$page->add_header_html(js_includes('jquery.metadata.js'));
$page->add_header_html(js_includes('ajaxfileupload.js'));
$page->add_header_html(js_includes('user_registration.js'));
// ------------------------------------------------------------
$page->add_header_html(js_includes('common.js'));
$page->add_header_html(js_includes('login.js'));
if (isset($_GET['msg_id'])) {
    $msg = MessagesHandler::get_message($_GET['msg_id']);
}
if (isset($msg)) {
    $msg_tpl = new Template(CURRENT_THEME_FSPATH . "/display_message.php");
    $msg_tpl->set('message', $msg);
    $page->add_module("middle", "top", $msg_tpl->fetch());
}
if (isset($page_settings['body_attributes'])) {
    $page->html_body_attributes = $page_settings['body_attributes'];
} else {
    $page->html_body_attributes .= 'class="hold-transition skin-blue sidebar-collapse sidebar-mini"';
}
$page->header->set('render_text_array', $render_text_array);
uihelper_get_network_style();
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cnuser_login.php

示例2: PageRenderer

    if (!$error) {
        ModuleData::update($data, $id);
        // call the ModuleData to update the data
    }
}
//render the page
$page = new PageRenderer("setup_module", PAGE_MANAGE_EMBLEM, "Manage Emblem", 'container_two_column.tpl', 'header.tpl', PRI, HOMEPAGE, PA::$network_info);
if (!empty($msg)) {
    $msg_tpl = new Template(CURRENT_THEME_FSPATH . "/display_message.tpl");
    $msg_tpl->set('message', $msg);
    $m = $msg_tpl->fetch();
    $page->add_module("middle", "top", $m);
}
$page->html_body_attributes = 'class="no_second_tier network_config"';
$page->add_header_html(js_includes('edit_profile.js'));
$page->add_header_html(js_includes('manage_data.js'));
$css_array = get_network_css();
if (is_array($css_array)) {
    foreach ($css_array as $key => $value) {
        $page->add_header_css($value);
    }
}
$css_data = inline_css_style();
if (!empty($css_data['newcss']['value'])) {
    $css_data = '<style type="text/css">' . $css_data['newcss']['value'] . '</style>';
    $page->add_header_html($css_data);
}
//..end render the page
/*  ---------- FUNCTION DEFINITION ------------------*/
//call back function
function setup_module($column, $module, $obj)
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:31,代码来源:manage_emblem.php

示例3: catch

    } catch (PAException $e) {
        $msg = "{$e->message}";
        $search_error = TRUE;
    }
    if ($error == TRUE || $search_error == TRUE) {
        $msg = 'Sorry: you are unable to search the member.<br> Reason: ' . $msg;
    }
} else {
    // all users for face wall page
    // TO DO:: add paging
    $users = User::allUsers_with_paging();
}
if ($error == TRUE) {
    print $msg;
}
$parameter = js_includes("base");
html_header("users", $parameter);
?>

<?php 
$content =& new Template(CURRENT_THEME_FSPATH . "/facewall.tpl");
if ($error == TRUE) {
    $content->set('msg', $msg);
}
$content->set('user_picture', $user_picture);
$content->set('base_url', $base_url);
$content->set('users', $users);
$header =& new Template(CURRENT_THEME_FSPATH . "/header.tpl");
//$header->set('user_name', $first_name." ".$last_name);
$header->set('user_name', $_SESSION['user']['first_name'] . ' ' . $_SESSION['user']['last_name']);
$content->set('header', $header);
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:facewall.php

示例4: dirname

<?php

$login_required = FALSE;
$use_theme = 'Beta';
include "includes/page.php";
global $number_user;
require_once "{$path_prefix}/api/User/User.php";
require_once "{$path_prefix}/api/Relation/Relation.php";
require_once "{$path_prefix}/web/user_page_functions.php";
// for query count
global $query_count_on_page;
$query_count_on_page = 0;
require dirname(__FILE__) . '/peoples_helper.php';
/*including Js files */
$parameter = js_includes('peoplepage.js');
if (CURRENT_NETWORK_URL_PREFIX != 'www' && CURRENT_NETWORK_URL_PREFIX != '') {
    $params = array('page' => 1, 'show' => 5);
    $users = Network::get_network_members($network_info->network_id, $params);
    $network_id = $network_info->network_id;
} else {
    $users = User::allUsers(10, 'latest', 5);
}
// counting no of relation of each users
for ($i = 0; $i < count($users['users_data']); $i++) {
    $count_relations = Relation::get_relations($users['users_data'][$i]['user_id']);
    $users['users_data'][$i]['no_of_relations'] = count($count_relations);
}
function setup_module($column, $module, $obj)
{
    global $users, $search_data_array, $paging, $network_id, $viewer_uid, $rows, $show_advance_search_options;
    switch ($column) {
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:peoples.php

示例5: showDialog

 public function showDialog($msg = null, $type = 'error', $redirect_url = null, $redirect_delay = 0)
 {
     global $app;
     require_once PA::$blockmodule_path . "/ShowMessageModule/ShowMessageModule.php";
     $obj = new ShowMessageModule();
     $obj->renderer =& $this;
     $this->add_header_html(js_includes('message_dialogs.js'));
     $use_theme = $this->setting_data['page_theme'];
     // temporary hack
     if ($use_theme == 'Beta') {
         $use_theme == 'Default';
     }
     $this->add_header_css("/Themes/{$use_theme}/message_dialogs.css");
     if ($msg) {
         $obj->error_msg = $msg;
     }
     if ($type) {
         $obj->type = $type;
     }
     if ($redirect_url) {
         $obj->redirect_url = $redirect_url;
     }
     if ($redirect_delay) {
         $obj->redirect_delay = $redirect_delay;
     }
     $obj->initializeModule($app->request_method, $app->getRequestData());
     $html = $obj->render();
     $this->module_arrays['middle'] = null;
     $this->module_arrays['left'] = null;
     $this->module_arrays['right'] = null;
     $this->page_template = 'container_one_column_full_width.tpl';
     $this->page = new Template(CURRENT_THEME_FSPATH . "/" . $this->page_template);
     $this->page->set('current_theme_path', PA::$theme_url);
     $this->page->set('current_theme_rel_path', PA::$theme_rel);
     $this->add_module("middle", "top", $html);
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:36,代码来源:PageRenderer.php

示例6: js_includes

$login_required = TRUE;
$use_theme = 'Beta';
//TODO : Remove this when new UI is completely implemented.
include "includes/page.php";
global $path_prefix;
require_once $path_prefix . '/api/Category/Category.php';
require_once $path_prefix . '/ext/Image/Image.php';
require_once $path_prefix . '/ext/Audio/Audio.php';
require_once $path_prefix . '/ext/Video/Video.php';
require_once $path_prefix . '/ext/Album/Album.php';
// for query count
global $query_count_on_page;
$query_count_on_page = 0;
global $current_theme_path;
$parameter = js_includes("all");
html_header("Media Gallery - {$network_info->name}", $parameter);
if (!$_GET['uid']) {
    $uid = $_SESSION['user']['id'];
} else {
    $uid = $_GET['uid'];
}
/*  Check for the content author id */
if (!empty($_REQUEST["cid"])) {
    $cid = $_REQUEST["cid"];
    $params = array('action' => 'edit_content', 'uid' => $login_uid, 'cid' => $cid);
    if (!user_can($params)) {
        header("Location: {$base_url}/homepage.php?&msg=" . urlencode('Error: You are not authorized to access this page.'));
        exit;
    }
    // It will give the content type whether its an SB Content or a Blogpost
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:30,代码来源:edit_media.php

示例7: MessagesHandler

/* To avoding javascript select value function alert */
if(!isset($_GET['msg_rep'])) {
  if (!empty($msg) || !empty($_GET['msg_id'])) {
    $msg_obj = new MessagesHandler();
    $msg_id = ($_GET['msg_id']) ? $_GET['msg_id']: $msg;
    $dynamic_msg = ($msg_id == 2007)?substr ($type,0,5):NULL;
    $msg = $msg_obj->get_message($msg_id,$dynamic_msg);
    if ($msg) {
      $msg_tpl = & new Template(CURRENT_THEME_FSPATH."/display_message.tpl");
      $msg_tpl->set('message', $msg);
      $page->add_module("middle", "top", $msg_tpl->fetch());
    }
  }
}
// Jtip is shown when user watching the image media
if ($type == 'Images') { 
  $parameter = js_includes('jtip.js');
  $page->add_header_html($parameter);
  $css = $current_theme_path.'/jtip.css';
  $page->add_header_css($css);
}
// if user is not log in as well as not viewing any user page 
if (!empty($uid)) {
  uihelper_set_user_heading($page,$do_theme=TRUE, $uid);
}
else {
  uihelper_get_network_style();
}

echo $page->render();
?>
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:media_gallery.php

示例8: PageRenderer

         if ($login_required) {
             exit;
         }
     }
     $use_theme = $page_settings['page_theme'];
     $page = new PageRenderer('setup_module', $page_settings['page_id'], sprintf(__('%s - %s'), __($page_settings['page_name']), PA::$network_info->name), $page_settings['page_template'], $page_settings['header_template'], $page_settings['page_mode'], $page_settings['block_type'], PA::$network_info, NULL, NULL);
     if (isset($page_settings['body_attributes'])) {
         $page->html_body_attributes = $page_settings['body_attributes'];
     }
     if (isset($page_settings['javascripts'])) {
         if (is_array($page_settings['javascripts'])) {
             foreach ($page_settings['javascripts'] as $js_file) {
                 $page->add_header_html(js_includes($js_file));
             }
         } else {
             $page->add_header_html(js_includes($page_settings['javascripts']));
         }
     }
     if (isset($page_settings['page_css'])) {
         if (is_array($page_settings['page_css'])) {
             foreach ($page_settings['page_css'] as $css_file) {
                 $page->add_header_css("/Themes/{$use_theme}/css/{$css_file}");
             }
         } else {
             $page->add_header_css("/Themes/{$use_theme}/css/" . $page_settings['page_css']);
         }
     }
     uihelper_error_msg($error_msg);
     echo $page->render();
 } catch (Exception $e) {
     throw $e;
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cndynamic.php

示例9: PageRenderer

            if ($moduleName == 'EditProfileModule') {
                $obj->array_of_errors = $array_of_errors;
                $obj->login_name = $login_name;
                $obj->first_name = $first_name;
                $obj->last_name = $last_name;
                $obj->email = $email;
                $obj->user_picture = $user_picture;
                $obj->user_data = $user_data_general;
                $obj->user_personal_data = $user_personal_data;
                $obj->user_professional_data = $user_professional_data;
            }
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_EDIT_PROFILE, sprintf(__("%s - Edit your profile - %s"), $login_user->get_name(), $network_info->name), "container_one_column.tpl", "header_user.tpl", NULL, PRI, $network_info);
$page->add_header_html(js_includes('edit_profile.js'));
$theme_details = get_user_theme($login_uid);
if (is_array($theme_details['css_files'])) {
    foreach ($theme_details['css_files'] as $key => $value) {
        $page->add_header_css($value);
    }
}
$css_path = $current_theme_path . '/modal.css';
$page->add_header_css($css_path);
if (@$_GET['updated'] == 1) {
    $uploaded_msg = " Profile updated successfully";
    $msg_tpl =& new Template(CURRENT_THEME_FSPATH . "/display_message.tpl");
    $msg_tpl->set('message', $uploaded_msg);
    $m = $msg_tpl->fetch();
    $page->add_module("middle", "top", $m);
}
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:edit_profile.php

示例10: PageRenderer

            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_NETWORK_MANAGE_USERS, "Manage Registered User", 'container_two_column.tpl', 'header.php', PUB, HOMEPAGE, PA::$network_info);
if (@$_GET['msg']) {
    require_once 'web/languages/english/MessagesHandler.php';
    $msg_obj = new MessagesHandler();
    $message = $msg_obj->get_message($_GET['msg']);
}
if (@$message) {
    $msg_tpl = new Template(CURRENT_THEME_FSPATH . "/display_message.tpl");
    $msg_tpl->set('message', $message);
    $m = $msg_tpl->fetch();
    $page->add_module("middle", "top", $m);
}
$page->html_body_attributes = 'class="hold-transition skin-blue sidebar-collapse sidebar-mini"';
$css_array = get_network_css();
if (is_array($css_array)) {
    foreach ($css_array as $key => $value) {
        $page->add_header_css($value);
    }
}
$page->add_header_html(js_includes('roles.js'));
$page->add_header_html(js_includes('ModalWindow.js'));
$page->add_header_css(PA::$theme_rel . '/invite_modal.css');
$css_data = inline_css_style();
if (!empty($css_data['newcss']['value'])) {
    $css_data = '<style type="text/css">' . $css_data['newcss']['value'] . '</style>';
    $page->add_header_html($css_data);
}
echo $page->render();
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cnnetwork_user_management.php

示例11: PageRenderer

            if (!empty($user)) {
                $obj->page_user = $user->get_name();
            }
            break;
        case 'right':
            $obj->mode = PRI;
            if ($moduleName != 'AdsByGoogleModule') {
                $obj->block_type = HOMEPAGE;
            }
            if (!empty($_GET['gid'])) {
                if ($moduleName == 'RecentPostModule') {
                    $obj->type = 'group';
                    $obj->gid = $_GET['gid'];
                }
            }
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_VIEW_ALL_MEMBERS, $page_name, "container_three_column.php", $header_tpl, PUB, HOMEPAGE, PA::$network_info);
$page->add_header_html(js_includes('common.js'));
if ($_GET['gid']) {
    uihelper_get_group_style($_GET['gid']);
} else {
    if (!empty($_GET['uid'])) {
        //applying the user theme
        uihelper_set_user_heading($page);
    } else {
        uihelper_get_network_style();
    }
}
echo $page->render();
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cnuser_all_members.php

示例12: header

    $back_to_page = $base_url . '/homepage.php';
    header("Location: {$base_url}/generic_error.php?msg={$redirect_msg}&back_to_page={$back_to_page}");
    exit;
}
//..eof Takes care of url manipulation
try {
    $content = Content::load_content((int) $cid, (int) $_SESSION['user']['id']);
} catch (PAException $e) {
    if ($e->code == CONTENT_NOT_FOUND) {
        $redirect_msg = "Content you are looking for does not exist.";
        $back_to_page = $base_url . '/homepage.php';
        header("Location: {$base_url}/generic_error.php?msg={$redirect_msg}&back_to_page={$back_to_page}");
        exit;
    }
}
$parameter = js_includes("generic");
html_header('', $parameter);
if ($_SESSION['user']['id']) {
    $admin = new User();
    $admin->load($_SESSION['user']['id']);
}
if ($_SESSION['user']['id'] == $content->author_id || $admin->role == 2) {
    $editable = TRUE;
}
//tpl for whole page
$page_content =& new Template(CURRENT_THEME_FSPATH . "/view_comments.tpl");
//tpl for header
$header =& new Template(CURRENT_THEME_FSPATH . "/header.tpl");
$header->set('user_name', $first_name . " " . $last_name);
if ($network_info) {
    $header->set_object('network_info', $network_info);
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:view_comments.php

示例13: add_header_js

 public function add_header_js($file, $optimize = true)
 {
     js_includes($file, $optimize);
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:4,代码来源:PageRenderer.php

示例14: PageRenderer

            $obj->super_user_and_mothership = $super_user_and_mothership;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_NETWORK_MANAGE_USERS, "Manage Registered User", 'container_two_column.tpl', 'header.tpl', PUB, HOMEPAGE, $network_info);
if (@$_GET['msg']) {
    require_once $path_prefix . '/web/languages/english/MessagesHandler.php';
    $msg_obj = new MessagesHandler();
    $message = $msg_obj->get_message($_GET['msg']);
}
if (@$message) {
    $msg_tpl =& new Template(CURRENT_THEME_FSPATH . "/display_message.tpl");
    $msg_tpl->set('message', $message);
    $m = $msg_tpl->fetch();
    $page->add_module("middle", "top", $m);
}
$page->html_body_attributes = 'class="no_second_tier network_config"';
$css_array = get_network_css();
if (is_array($css_array)) {
    foreach ($css_array as $key => $value) {
        $page->add_header_css($value);
    }
}
$parameter = js_includes('roles.js');
$page->add_header_html($parameter);
$css_data = inline_css_style();
if (!empty($css_data['newcss']['value'])) {
    $css_data = '<style type="text/css">' . $css_data['newcss']['value'] . '</style>';
    $page->add_header_html($css_data);
}
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:manage_user.php

示例15: get_login_user

// for query count
global $query_count_on_page;
$query_count_on_page = 0;
$user = get_login_user();
function setup_module($column, $module, $obj)
{
    global $user;
    switch ($module) {
        case 'EventCalendarModule':
            $obj->title = __('Personal Events');
            $obj->assoc_type = 'user';
            $obj->assoc_id = (int) $_SESSION['user']['id'];
            $obj->may_edit = true;
            // user may edit own events, right? ;)
            $obj->assoc_title = $user->login_name;
            break;
    }
    $obj->mode = PUB;
}
global $msg;
$page = new PageRenderer("setup_module", PAGE_USER_CALENDAR, __("My Events"), "container_one_column.php", "header_user.php", PRI, NULL, PA::$network_info);
$css_path = PA::$theme_url . '/css/calendar.css';
$page->add_header_css($css_path);
$page->add_header_html(js_includes('calendar.js'));
$page->add_header_html(js_includes('date.js'));
$page->add_header_html(js_includes('jquery.dimensions.min.js'));
$page->add_header_html(js_includes('jquery.datePicker.js'));
$page->add_header_html($parameter);
uihelper_error_msg($msg);
uihelper_set_user_heading($page);
echo $page->render();
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cnuser_calendar.php


注:本文中的js_includes函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。