コード例 #1
0
ファイル: _users.disp.php プロジェクト: Ariflaw/b2evolution
/**
 * This is the template that displays users
 *
 * This file is not meant to be called directly.
 * It is meant to be called by an include in the main.page.php template.
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package evoskins
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
// Load classes
load_class('users/model/_user.class.php', 'User');
global $Blog, $Skin, $Settings;
if (!empty($Skin)) {
    $display_params = array_merge($Skin->get_template('Results'), $Skin->get_template('users'));
} else {
    $display_params = array();
}
if (!isset($params)) {
    // Init template params
    $params = array();
}
$params = array_merge(array('filterset_name' => '', 'results_param_prefix' => 'u_', 'results_title' => T_('Users'), 'results_order' => $Settings->get('allow_avatars') ? 'D' : 'A', 'join_group' => is_logged_in() ? false : true, 'join_city' => true, 'join_country' => false, 'keywords_fields' => 'user_login, user_firstname, user_lastname, user_nickname', 'where_status_closed' => false, 'display_params' => $display_params, 'display_btn_refresh' => true, 'display_btn_adduser' => false, 'display_btn_addgroup' => false, 'display_ID' => false, 'display_avatar' => true, 'display_login' => true, 'display_nickname' => false, 'display_name' => false, 'display_gender' => false, 'display_country' => false, 'display_city' => true, 'display_blogs' => false, 'display_source' => false, 'display_regdate' => false, 'display_regcountry' => false, 'display_update' => false, 'display_lastvisit' => false, 'display_contact' => false, 'display_reported' => false, 'display_group' => false, 'display_level' => false, 'display_status' => false, 'display_actions' => false, 'display_newsletter' => false, 'force_check_user' => true, 'th_class_avatar' => 'shrinkwrap', 'td_class_avatar' => 'shrinkwrap center', 'avatar_size' => $Blog->get_setting('image_size_user_list'), 'th_class_login' => '', 'td_class_login' => '', 'th_class_city' => 'shrinkwrap', 'td_class_city' => 'shrinkwrap'), $params);
users_results_block($params);
load_funcs('users/model/_user_js.funcs.php');
コード例 #2
0
    die('Please, do not access this page directly.');
}
/**
 * @var Organization
 */
global $edited_Organization;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'organization_checkchanges', 'post', 'compact');
if (!$creating) {
    $Form->global_icon(T_('Delete this organization!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('organization')));
}
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,org_ID'));
$Form->begin_form('fform', ($creating ? T_('New organization') : T_('Organization')) . get_manual_link('organization-form'));
$Form->add_crumb('organization');
$Form->hiddens_by_key(get_memorized('action'));
// (this allows to come back to the right list order & page)
$Form->text_input('org_name', $edited_Organization->name, 32, T_('Name'), '', array('maxlength' => 255, 'required' => true));
$Form->text_input('org_url', $edited_Organization->url, 32, T_('Url'), '', array('maxlength' => 2000));
if ($creating) {
    $Form->end_form(array(array('submit', 'actionArray[create]', T_('Record'), 'SaveButton'), array('submit', 'actionArray[create_new]', T_('Record, then Create New'), 'SaveButton'), array('submit', 'actionArray[create_copy]', T_('Record, then Create Similar'), 'SaveButton')));
} else {
    $Form->end_form(array(array('submit', 'actionArray[update]', T_('Save Changes!'), 'SaveButton')));
}
if ($edited_Organization->ID > 0) {
    // Display users of this organization
    users_results_block(array('org_ID' => $edited_Organization->ID, 'filterset_name' => 'orgusr_' . $edited_Organization->ID, 'results_param_prefix' => 'orgusr_', 'results_title' => T_('Users of this organization') . get_manual_link('users_and_groups'), 'results_order' => '/uorg_accepted/D', 'page_url' => get_dispctrl_url('organizations', 'action=edit&org_ID=' . $edited_Organization->ID), 'display_orgstatus' => true, 'display_ID' => false, 'display_btn_adduser' => false, 'display_btn_addgroup' => false, 'display_blogs' => false, 'display_source' => false, 'display_regdate' => false, 'display_regcountry' => false, 'display_update' => false, 'display_lastvisit' => false, 'display_contact' => false, 'display_reported' => false, 'display_group' => false, 'display_level' => false, 'display_status' => false, 'display_actions' => false, 'display_newsletter' => false));
}
// AJAX changing of an accept status of organizations for each user
echo_user_organization_js();
コード例 #3
0
<?php

/**
 * This file implements the UI view for the user/group list for user/group editing.
 *
 * This file is part of the evoCore framework - {@link http://evocore.net/}
 * See also {@link https://github.com/b2evolution/b2evolution}.
 *
 * @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license}
 *
 * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
if (!isset($display_params)) {
    // init display_params
    $display_params = array();
}
users_results_block(array('display_params' => $display_params));
load_funcs('users/model/_user_js.funcs.php');