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


PHP uihelper_error_msg函数代码示例

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


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

示例1: User

                $access_type = ' Moderated';
            }
            $obj->group_details['access_type'] = $access_type;
            $obj->group_details['author_id'] = $group_data->author_id;
            $user = new User();
            $user->load((int) $group_data->author_id);
            $obj->group_details['author_picture'] = $user->picture;
            $obj->group_details['author_name'] = $user->login_name;
            break;
        case 'GroupsCategoryModule':
            $obj->total_groups = $total_groups;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_GROUP_THEME, "Group Themes", 'container_three_column.tpl', 'header_group.tpl', PRI, HOMEPAGE, $network_info, '', $setting_data);
$page->add_header_html($parameter);
if ($type == 'style') {
    // adding some New Css files require for this page only
    $css_path = $current_theme_path . '/configurator.css';
    $page->add_header_css($css_path);
    $css_path = $current_theme_path . '/farbtastic.css';
    $page->add_header_css($css_path);
}
if ($type == 'module') {
    $parameter .= js_includes('messages.js');
    //added for checking and unchecking all the checkboxes for modules.
    $page->add_header_html($parameter);
}
uihelper_error_msg($msg_id);
uihelper_get_group_style($gid);
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:group_customize_ui.php

示例2: setup_module

    }
}
//error displaying
function setup_module($column, $moduleName, $obj)
{
    global $content_type, $users, $uid, $group_ids, $user;
    switch ($column) {
        case 'middle':
            $obj->orientation = CENTER;
            $obj->get_link_categories();
            $obj->uid = $uid;
            break;
    }
    $obj->mode = PUB;
}
$page = new PageRenderer("setup_module", PAGE_LINKS_MANAGEMENT, sprintf(__("%s - My Links - %s"), $login_user->get_name(), $network_info->name), "container_three_column.tpl", "header.tpl", PUB, HOMEPAGE, $network_info);
$page->add_header_html('<script type="text/javascript" language="javascript" src="' . $current_theme_path . '/javascript/links.js"></script>');
$updated_category_id = null;
if (!empty($_POST['updated_category_id'])) {
    $updated_category_id = $_POST['updated_category_id'];
}
$page->add_header_html('<script type="text/javascript" language="javascript">var cat_id = "' . $updated_category_id . '";</script>');
$message = NULL;
if (count($error_array) > 0) {
    for ($counter = 0; $counter < count($error_array); $counter++) {
        $message .= $error_array[$counter] . "<br>";
    }
}
uihelper_error_msg($message);
uihelper_set_user_heading($page);
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:links_management.php

示例3: Template

            $subject = $_POST['subject'];
            $message = $_POST['email_message'];
            // say $container_html is '/default_email_container.tpl'
            $container_html = 'default_email_container.tpl';
            $email_container =& new Template($path_prefix . '/web/Themes/Beta/email_container/' . $container_html);
            $email_container->set('subject', $subject);
            $email_container->set('message', $message);
            $preview_msg = $email_container->fetch();
        }
    }
}
function setup_module($column, $module, $obj)
{
    global $subject, $message, $configurable_variables, $preview_msg;
    switch ($module) {
        case 'ConfigureEmailModule':
            $obj->subject = $subject;
            $obj->message = $message;
            $obj->configurable_variables = $configurable_variables;
            $obj->preview_msg = $preview_msg;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_CONFIGURE_EMAIL, "Configure Email", "container_two_column.tpl", "header.tpl", NULL, PRI, $network_info);
if (!empty($_GET['msg'])) {
    $msg[] = MessagesHandler::get_message($_GET['msg']);
    uihelper_error_msg($msg);
}
uihelper_get_network_style($page);
$page->html_body_attributes = 'class="no_second_tier network_config"';
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:configure_email.php

示例4: header

    $location = $base_url . '/' . FILE_GROUPS_HOME . '?msg_id=6005';
    header("Location: {$location}");
    exit;
}
function setup_module($column, $module, $obj)
{
    global $login_uid, $entered_people;
    switch ($column) {
        case 'middle':
            $obj->mode = PUB;
            $obj->uid = $login_uid;
            $obj->block_type = 'media_management';
            if ($module == 'InvitationStatusModule') {
                $groups = Group::get_user_groups($login_uid, FALSE, 'ALL');
                $user_groups = array();
                for ($i = 0; $i < count($groups); $i++) {
                    $user_groups[] = $groups[$i]['gid'];
                }
                if (!empty($_REQUEST['gid'])) {
                    $obj->collection_id_array = array($_REQUEST['gid']);
                } else {
                    $obj->collection_id_array = array($user_groups[0]);
                }
            }
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_GROUP_INVITE, "Invite people into a group", "container_three_column.tpl", 'header.tpl', PRI, HOMEPAGE, $network_info);
uihelper_error_msg(@$_GET['msg_id']);
uihelper_get_network_style();
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:group_invitation.php

示例5: current_user_can

    $configure_permission = $task_perm;
    //set from authorize.inc.php
} else {
    //old method for spawned networks
    $configure_permission = current_user_can('manage_content');
}
/********/
//$configure_permission = current_user_can('manage_content');
$permission_denied_msg = '';
if (!$configure_permission) {
    $permission_denied_msg = "Sorry! you are not authorized to view the content of this page";
}
function setup_module($column, $module, $obj)
{
    global $paging, $configure_permission;
    if (!$configure_permission) {
        return 'skip';
    }
    switch ($module) {
        case 'CommentsManagementModule':
            $obj->Paging["page"] = $paging["page"];
            $obj->Paging["show"] = 50;
            break;
    }
}
// end function
$page = new PageRenderer("setup_module", PAGE_MANAGE_COMMENTS, "Manage Comments", 'container_two_column.tpl', 'header.tpl', PRI, HOMEPAGE, $network_info);
uihelper_error_msg($permission_denied_msg);
$page->html_body_attributes = 'class="no_second_tier network_config"';
uihelper_get_network_style();
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:manage_comments.php

示例6: get_user

            }
            if ($page_uid && $page_uid != $login_uid) {
                $obj->uid = $page_uid;
                $page_user = get_user();
                $obj->title = ucfirst($page_user->first_name) . '\'s Networks';
                $obj->user_name = $page_user->login_name;
            } else {
                $obj->uid = $login_uid;
            }
            break;
    }
    //$obj->type = $_GET['type'];
}
$page = new PageRenderer("setup_module", PAGE_NETWORK_THEMES, "Network Themes", 'container_three_column.tpl', 'header.tpl', PRI, HOMEPAGE, $network_info, '', $setting_data);
$msg_string = !empty($msg) ? $msg : @$_GET['msg_id'];
uihelper_error_msg($msg_string);
$page->html_body_attributes = 'class="no_second_tier"';
$page->add_header_html($parameter);
if ($type == 'style') {
    // adding some New Css files require for this page only
    $css_path = $current_theme_path . '/configurator.css';
    $page->add_header_css($css_path);
    $css_path = $current_theme_path . '/farbtastic.css';
    $page->add_header_css($css_path);
}
if ($type == 'module') {
    $parameter .= js_includes('messages.js');
    //added for checking and unchecking all the checkboxes for modules.
    $page->add_header_html($parameter);
}
uihelper_get_network_style();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:network_customize_ui.php

示例7: PageRenderer

        case 'middle':
            $obj->get_user_albums();
            $obj->author_id = $_SESSION['user']['id'];
            $content_type = 'BlogPost';
            require_once "web/includes/blocks/createcontent.php";
            if (!empty($cid)) {
                $obj->set_id($cid);
            }
            if (strlen($error) > 0) {
                $obj->set_error_msg($error, $data_array);
            }
            $obj->display = 'blog';
            $obj->targets = $targets;
            $obj->show_external_blogs = $show_external_blogs;
            $obj->is_edit = $is_edit;
            $obj->permission_to_post = $permission_to_post;
            $obj->parent_collection_id = @$obj_content_type->parent_collection_id;
            $obj->ccid = $obj->parent_collection_id ? $obj->parent_collection_id : $ccid;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_POSTCONTENT, "Create content", "container_one_column_postcontent.tpl", "header.tpl", PRI, HOMEPAGE, PA::$network_info);
// load JQuery forms Plugin
$page->add_header_html(js_includes('forms.js'));
// and the modal overlay functions
$page->add_header_html(js_includes('attach_media_modal.js'));
$css_path = PA::$theme_url . '/modal.css';
$page->add_header_css($css_path);
uihelper_error_msg($post_err);
uihelper_get_network_style();
echo $page->render();
开发者ID:CivicCommons,项目名称:people-aggregator,代码行数:31,代码来源:post_content.php

示例8: js_includes

 *
 */
$login_required = TRUE;
//for session protection pages
$use_theme = 'Beta';
include_once "web/includes/page.php";
$parameter = '';
$parameter .= js_includes('common.js');
global $query_count_on_page, $page_uid, $global_form_error;
$query_count_on_page = 0;
/**
 *  Function : setup_module()
 *  Purpose  : call back function to set up variables 
 *             used in PageRenderer class
 *             To see how it is used see api/PageRenderer/PageRenderer.php 
 *  @param    $column - string - contains left, middle, right
 *            position of the block module 
 *  @param    $moduleName - string - contains name of the block module
 *  @param    $obj - object - object reference of the block module
 *  @return   type string - returns skip means skip the block module
 *            returns rendered html code of block module
 */
function setup_module($column, $moduleName, $obj)
{
}
$page = new PageRenderer("setup_module", PAGE_WRITE_TESTIMONIAL, 'Write testimonial', "container_three_column.tpl", "header.tpl", PUB, HOMEPAGE, PA::$network_info);
uihelper_error_msg(@$global_form_error);
$page->add_header_html($parameter);
$page->html_body_attributes = 'class="no_second_tier" id="pg_homepage"';
uihelper_set_user_heading($page);
echo $page->render();
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:31,代码来源:write_testimonial.php


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