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


PHP Form::global_icon方法代码示例

本文整理汇总了PHP中Form::global_icon方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::global_icon方法的具体用法?PHP Form::global_icon怎么用?PHP Form::global_icon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Form的用法示例。


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

示例1: die

 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
 * @author efy-maxim: Evo Factory / Maxim.
 * @author fplanque: Francois Planque.
 *
 * @version $Id: _currency.form.php 3328 2013-03-26 11:44:11Z yura $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @var Currency
 */
global $edited_Currency;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'currency_checkchanges', 'post', 'compact');
$Form->global_icon(T_('Delete this currency!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('currency')));
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action'));
$Form->begin_form('fform', $creating ? T_('New currency') : T_('Currency'));
$Form->add_crumb('currency');
$Form->hiddens_by_key(get_memorized('action' . ($creating ? ',curr_ID' : '')));
// (this allows to come back to the right list order & page)
$Form->text_input('curr_code', $edited_Currency->code, 3, T_('Code'), '', array('maxlength' => 3, 'required' => true));
$Form->text_input('curr_shortcut', $edited_Currency->shortcut, 8, T_('Shortcut'), '', array('maxlength' => 8, 'required' => true));
$Form->text_input('curr_name', $edited_Currency->name, 40, T_('Name'), '', array('maxlength' => 40, 'required' => true));
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'), array('reset', '', T_('Reset'), 'ResetButton')));
} else {
    $Form->end_form(array(array('submit', 'actionArray[update]', T_('Update'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_currency.form.php

示例2: die

 * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}.
 * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @var Slug
 */
global $edited_IPRange;
// Determine if we are creating or updating...
global $action;
$creating = $action == 'iprange_new';
$Form = new Form(NULL, 'iprange_checkchanges', 'post', 'compact');
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,iprange_ID'));
$Form->begin_form('fform', ($creating ? T_('New IP Range') : T_('IP Range')) . get_manual_link('ip-range-editing'));
$Form->add_crumb('iprange');
$Form->hidden('action', $creating ? 'iprange_create' : 'iprange_update');
$Form->hidden_ctrl();
$Form->hidden('tab', get_param('tab'));
$Form->hidden('tab3', get_param('tab3'));
$Form->hidden('iprange_ID', param('iprange_ID', 'integer', 0));
$Form->select_input_array('aipr_status', $edited_IPRange->get('status'), aipr_status_titles(), T_('Status'), '', array('force_keys_as_values' => true, 'background_color' => aipr_status_colors(), 'required' => true));
$Form->text_input('aipr_IPv4start', int2ip($edited_IPRange->get('IPv4start')), 50, T_('IP Range Start'), '', array('maxlength' => 15, 'required' => true));
$Form->text_input('aipr_IPv4end', int2ip($edited_IPRange->get('IPv4end')), 50, T_('IP Range End'), '', array('maxlength' => 15, 'required' => true));
$Form->date_input('aipr_IP_timestamp', date2mysql($edited_IPRange->IP_timestamp), T_('Date'), array('required' => true));
$Form->info(T_('User count'), (int) $edited_IPRange->get('user_count'));
$Form->info(T_('Block count'), (int) $edited_IPRange->get('block_count'));
$Form->end_form(array(array('submit', 'submit', $creating ? T_('Record') : T_('Save Changes!'), 'SaveButton')));
开发者ID:Edind304,项目名称:b2evolution,代码行数:31,代码来源:_antispam_ipranges.form.php

示例3: Form

 */
global $edited_GenericCategory;
/**
 * @var Chapter
 */
$edited_Chapter =& $edited_GenericCategory;
/**
 * @var GenericCategoryCache
 */
global $GenericCategoryCache;
global $Settings, $action, $subset_ID;
// Determine if we are creating or updating...
$creating = is_create_action($action);
$Form = new Form(NULL, 'form');
$close_url = get_chapter_redirect_url(get_param('redirect_page'), $edited_Chapter->parent_ID, $edited_Chapter->ID);
$Form->global_icon(T_('Cancel editing!'), 'close', $close_url);
$Form->begin_form('fform', $creating ? T_('New category') : T_('Category'));
$Form->add_crumb('element');
$Form->hidden('action', $creating ? 'create' : 'update');
$Form->hiddens_by_key(get_memorized('action'));
$Form->begin_fieldset(T_('Properties'));
// We're essentially double checking here...
$edited_Blog =& $edited_Chapter->get_Blog();
$move = '';
if ($Settings->get('allow_moving_chapters') && !$creating) {
    // If moving cats between blogs is allowed:
    $move = ' ' . action_icon(T_('Move to a different blog...'), 'file_move', regenerate_url('action,cat_ID', 'cat_ID=' . $edited_Chapter->ID . '&action=move'), T_('Move'));
}
$Form->info(T_('Blog'), $edited_Blog->get_maxlen_name() . $move);
$Form->select_input_options('cat_parent_ID', $GenericCategoryCache->recurse_select($edited_Chapter->parent_ID, $subset_ID, true, NULL, 0, array($edited_Chapter->ID)), T_('Parent category'));
$Form->text_input('cat_name', $edited_Chapter->name, 40, T_('Name'), '', array('required' => true, 'maxlength' => 255));
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_chapter.form.php

示例4: die

 * 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.');
}
global $cjob_row, $current_User, $admin_url;
$Form = new Form(NULL, 'cronlog');
if (empty($cjob_row->clog_status) && $current_User->check_perm('options', 'edit', false, NULL)) {
    // User can edit this job:
    $Form->global_icon(T_('Edit this job'), 'edit', $admin_url . '?ctrl=crontab&action=edit&ctsk_ID=' . $cjob_row->ctsk_ID, T_('Edit this job...'), 3, 3);
}
$Form->global_icon(T_('Close sheet'), 'close', regenerate_url('action,cjob_ID'));
$manual_link = cron_job_manual_link($cjob_row->ctsk_key);
$Form->begin_form('fform', T_('Scheduled job'));
$Form->begin_fieldset(T_('Job details') . $manual_link);
$Form->info(T_('Job #'), $cjob_row->ctsk_ID);
$Form->info(T_('Job name'), cron_job_name($cjob_row->ctsk_key, $cjob_row->ctsk_name, $cjob_row->ctsk_params) . $manual_link);
$Form->info(T_('Scheduled at'), mysql2localedatetime($cjob_row->ctsk_start_datetime));
$cjob_repeat_after = '';
if ($cjob_repeat_after_days = floor($cjob_row->ctsk_repeat_after / 86400)) {
    $cjob_repeat_after .= $cjob_repeat_after_days . ' ' . T_('days') . ' ';
}
if ($cjob_repeat_after_hours = floor($cjob_row->ctsk_repeat_after % 86400 / 3600)) {
    $cjob_repeat_after .= $cjob_repeat_after_hours . ' ' . T_('hours') . ' ';
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_cronjob.view.php

示例5: die

 * @copyright (c)2009-2015 by Francois Planque - {@link http://fplanque.com/}
 * Parts of this file are copyright (c)2009 by The Evo Factory - {@link http://www.evofactory.com/}.
 *
 * @package evocore
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
load_class('users/model/_userfieldgroup.class.php', 'UserfieldGroup');
/**
 * @var Userfield
 */
global $edited_UserfieldGroup;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'userfieldgroup_checkchanges', 'post', 'compact');
$Form->global_icon(T_('Delete this user field group!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('userfieldgroup')));
$Form->global_icon(T_('Cancel editing!'), 'close', '?ctrl=userfields');
$Form->begin_form('fform', $creating ? T_('New user field group') : T_('User field group'));
$Form->add_crumb('userfieldgroup');
$Form->hiddens_by_key(get_memorized('action' . ($creating ? ',ufgp_ID' : '')));
// (this allows to come back to the right list order & page)
$Form->hidden('ufgp_ID', $edited_UserfieldGroup->ID);
$Form->text_input('ufgp_name', $edited_UserfieldGroup->name, 50, T_('Name'), '', array('maxlength' => 255, 'required' => true));
$Form->text_input('ufgp_order', $edited_UserfieldGroup->order, 50, T_('Order number'), '', array('maxlength' => 11, 'required' => true));
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')));
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_userfieldsgroup.form.php

示例6: array

                            $Form->radio('edited_grp_' . $perm_name, $GroupSettings->permission_values[$perm_name], $perm['options'], $perm['label'], $perm['field_lines'], $perm['field_note']);
                            break;
                        case 'info':
                            $Form->info($perm['label'], $perm['info']);
                            break;
                        case 'text_input':
                            $Form->text_input('edited_grp_' . $perm_name, $GroupSettings->permission_values[$perm_name], 5, $perm['label'], $perm['note'], array('maxlength' => $perm['maxlength']));
                            break;
                    }
                }
            }
        }
    }
}
$Form = new Form(NULL, 'group_checkchanges');
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('ctrl,grp_ID,action', 'ctrl=groups'));
if ($edited_Group->ID == 0) {
    $Form->begin_form('fform', T_('Creating new group'));
} else {
    $title = ($action == 'edit' ? T_('Editing group:') : T_('Viewing group:')) . ' ' . (isset($edited_grp_oldname) ? $edited_grp_oldname : $edited_Group->dget('name')) . ' (' . T_('ID') . ' ' . $edited_Group->ID . ')';
    $Form->begin_form('fform', $title);
}
$Form->add_crumb('group');
$Form->hidden_ctrl();
$Form->hidden('action', 'update');
$Form->hidden('grp_ID', $edited_Group->ID);
$perm_none_option = array('none', T_('No Access'));
$perm_view_option = array('view', T_('View details'));
$perm_edit_option = array('edit', T_('Edit/delete all'));
$Form->begin_fieldset(T_('General') . get_manual_link('group_properties_general'));
$Form->text('edited_grp_name', $edited_Group->name, 50, T_('Name'), '', 50, 'large');
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_group.form.php

示例7: die

 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    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
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_organization.form.php

示例8: die

 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @var Invitation
 */
global $edited_Invitation;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'invitation_checkchanges', 'post', 'compact');
if (!$creating) {
    $Form->global_icon(T_('Delete this invitation code!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('invitation')));
}
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action'));
$Form->begin_form('fform', ($creating ? T_('New invitation code') : T_('Invitation code')) . get_manual_link('invitation-code-form'));
$Form->add_crumb('invitation');
$Form->hiddens_by_key(get_memorized('action'));
// (this allows to come back to the right list order & page)
$GroupCache =& get_GroupCache();
$Form->select_input_object('ivc_grp_ID', $edited_Invitation->grp_ID, $GroupCache, T_('Group'), array('required' => true));
$Form->text_input('ivc_code', $edited_Invitation->code, 32, T_('Code'), T_('Must be from 3 to 32 letters, digits or signs "-", "_".'), array('required' => true));
$Form->date_input('ivc_expire_date', date2mysql($edited_Invitation->expire_ts), T_('Expire date'), array('required' => true));
$Form->time_input('ivc_expire_time', date2mysql($edited_Invitation->expire_ts), T_('Expire time'), array('required' => true));
$Form->text_input('ivc_source', $edited_Invitation->source, 32, T_('Source'), '', array('maxlength' => 30));
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 {
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_invitation.form.php

示例9: die

if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @var Blog
 */
global $Blog;
/**
 * @var ItemList2
 */
global $ItemList;
global $redirect_to, $current_User, $admin_url;
$perm_slugs_view = $current_User->check_perm('slugs', 'view');
$Form = new Form();
$redirect_to = regenerate_url('action', '', '', '&');
$Form->global_icon(T_('Cancel editing!'), 'close', $redirect_to, 4, 2);
$Form->begin_form('fform', T_('Mass edit the current post list') . get_manual_link('mass-edit-screen'));
// hidden params
$Form->add_crumb('item');
$Form->hidden('ctrl', 'items');
$Form->hidden('blog', $Blog->ID);
$Form->hidden('redirect_to', $redirect_to);
$Form->hidden('filter', 'restore');
// Run the query:
$ItemList->query();
if ($ItemList->get_num_rows() > 100) {
    $Form->info('', sprintf(T_('There are %d posts in your selection, only the first 100 are displayed'), $ItemList->get_num_rows()));
}
/*
 * Display posts:
 */
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_item_mass_edit.view.php

示例10: die

    die('Please, do not access this page directly.');
}
/**
 * @global Plugin
 */
global $edit_Plugin;
/**
 * @global Plugins_admin
 */
global $admin_Plugins;
global $edited_plugin_name, $edited_plugin_shortdesc, $edited_plugin_priority, $edited_plugin_code;
global $admin_url;
load_funcs('plugins/_plugin.funcs.php');
$Form = new Form(NULL, 'pluginsettings_checkchanges');
// Restore defaults button:
$Form->global_icon(T_('Restore defaults'), 'reload', regenerate_url('action,plugin_class', 'action=default_settings&plugin_ID=' . $edit_Plugin->ID . '&crumb_plugin=' . get_crumb('plugin')), T_('Restore defaults'), 5, 4, array('onclick' => 'if (!confirm(\'' . TS_('Are you sure you want to restore the default settings? This cannot be undone!') . '\')) { cancelClick(event); }'));
// Info button:
$Form->global_icon(T_('Display info'), 'info', regenerate_url('action,plugin_class', 'action=info&plugin_class=' . $edit_Plugin->classname));
// Close button:
$Form->global_icon(T_('Cancel edit!'), 'close', regenerate_url());
$Form->begin_form('fform', '', array('onsubmit' => 'var es=this.elements; for( var i=0; i < es.length; i++ ) { es[i].disabled=false; };'));
$Form->add_crumb('plugin');
$Form->hidden_ctrl();
$Form->hidden('plugin_ID', $edit_Plugin->ID);
// --------------------------- INFO ---------------------------
$Form->begin_fieldset(T_('Plugin info'), array('class' => 'clear'));
// Name:
$Form->text_input('edited_plugin_name', $edited_plugin_name, 25, T_('Name'), '', array('maxlength' => 255));
// Desc:
$Form->text_input('edited_plugin_shortdesc', $edited_plugin_shortdesc, 50, T_('Short desc'), '', array('maxlength' => 255));
// Links to external manual (dh> has been removed from form's global_icons before by fp, but is very useful IMHO):
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_plugin_settings.form.php

示例11: die

    die('Please, do not access this page directly.');
}
load_class('items/model/_itemtype.class.php', 'ItemType');
/**
 * @var Itemtype
 */
global $edited_Itemtype;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'itemtype_checkchanges');
if ($edited_Itemtype->ID > 0) {
    $default_ids = ItemType::get_default_ids();
    if (!$edited_Itemtype->is_special() && !in_array($edited_Itemtype->ID, $default_ids)) {
        // Allow delete post type only if it is not default of blogs
        $Form->global_icon(T_('Delete this Post Type!'), 'delete', regenerate_url('action', 'action=delete&amp;crumb_itemtype=' . get_crumb('itemtype')));
    }
}
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,ityp_ID'));
$Form->begin_form('fform', $edited_Itemtype->ID > 0 ? T_('Edit post type') : T_('New post type'));
$Form->add_crumb('itemtype');
$Form->hiddens_by_key(get_memorized('action' . ($creating ? ',ityp_ID' : '')));
// (this allows to come back to the right list order & page)
$Form->begin_fieldset($creating ? T_('New Post Type') . get_manual_link('item-type-form') : T_('Post type') . get_manual_link('item-type-form'));
if ($creating) {
    $Form->text_input('new_ityp_ID', get_param('new_ityp_ID'), 8, T_('ID'), '', array('maxlength' => 10, 'required' => true));
} else {
    $Form->hidden('ityp_ID', $edited_Itemtype->ID);
}
if ($edited_Itemtype->is_special()) {
    // Don't edit a name of special post types
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_itemtype.form.php

示例12: die

 *
 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
 * @author fplanque: Francois PLANQUE
 * @author blueyed: Daniel HAHLER
 *
 * @version $Id: _file_delete.form.php 3328 2013-03-26 11:44:11Z yura $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @global Filelist
 */
global $selected_Filelist;
$Form = new Form(NULL);
$Form->global_icon(T_('Cancel delete!'), 'close', regenerate_url());
$Form->begin_form('fform', T_('Delete'));
$Form->add_crumb('file');
$Form->hidden_ctrl();
$Form->hiddens_by_key(get_memorized());
$Form->hidden('action', 'delete');
$Form->hidden('confirmed', 1);
$Form->begin_fieldset(T_('Confirm delete'));
echo $selected_Filelist->count() > 1 ? T_('Do you really want to delete the following files?') : T_('Do you really want to delete the following file?');
$selected_Filelist->restart();
echo '<ul>';
while ($l_File =& $selected_Filelist->get_next()) {
    echo '<li>' . $l_File->get_prefixed_name() . '</li>';
}
echo '</ul>';
$Form->end_fieldset();
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_file_delete.form.php

示例13: die

 * @package admin
 *
 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
 * @author fplanque: Francois PLANQUE.
 *
 * @version $Id: _file_browse_set.form.php 4680 2013-09-11 03:00:20Z marc $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
/**
 * @var UserSettings
 */
global $UserSettings;
$Form = new Form(NULL, 'file_displaysettings_checkchanges');
$Form->global_icon(T_('Close settings!'), 'close', regenerate_url());
$Form->begin_form('fform', T_('Display settings') . get_manual_link('file-manager-display-settings'));
$Form->add_crumb('file');
$Form->hidden_ctrl();
$Form->hiddens_by_key(get_memorized());
$Form->begin_fieldset(T_('Images'));
$Form->checkbox('option_imglistpreview', $UserSettings->get('fm_imglistpreview'), T_('Thumbnails'), T_('Check to display thumbnails instead of icons for image files'));
$Form->checkbox('option_getimagesizes', $UserSettings->get('fm_getimagesizes'), T_('Dimensions'), T_('Check to display the pixel dimensions of image files'));
$Form->end_fieldset();
$Form->begin_fieldset(T_('Columns'));
$Form->checkbox('option_showtypes', $UserSettings->get('fm_showtypes'), T_('File type'), T_('Based on file extension'));
$Form->radio_input('option_showdate', $UserSettings->get('fm_showdate'), array(array('value' => 'no', 'label' => T_('No')), array('value' => 'compact', 'label' => T_('Compact format')), array('value' => 'long', 'label' => T_('Long format'))), T_('Last change'));
$Form->checkbox('option_showfsperms', $UserSettings->get('fm_showfsperms'), T_('File permissions'), T_('Unix file permissions'));
$Form->checkbox('option_permlikelsl', $UserSettings->get('fm_permlikelsl'), '', T_('Check to display file permissions like "rwxr-xr-x" rather than short form'));
$Form->checkbox('option_showfsowner', $UserSettings->get('fm_showfsowner'), T_('File Owner'), T_('Unix file owner'));
$Form->checkbox('option_showfsgroup', $UserSettings->get('fm_showfsgroup'), T_('File Group'), T_('Unix file group'));
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_file_browse_set.form.php

示例14: die

 *
 * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
 *
 * @package admin
 *
 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
 * @author fplanque: Francois PLANQUE
 *
 * @version $Id: _comment_mass.form.php 1273 2012-04-20 13:23:46Z yura $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $Blog, $tab3;
$Form = new Form(regenerate_url('action', '', '', '&'), 'comment_massdelete');
$Form->global_icon(T_('Cancel deleting!'), 'close', '?ctrl=comments&blog=' . $Blog->ID . '&tab3=' . $tab3, T_('cancel'), 4, 1);
$Form->begin_form('fform');
$Form->add_crumb('comment');
$Form->hidden('ctrl', 'comments');
$Form->begin_fieldset(T_('Mass deleting'));
$mass_type_value = 'delete';
$mass_types = array();
if (!$CommentList->is_trashfilter(false)) {
    // Don't display this option if trashed comments are also displayed
    $mass_types[] = array('value' => 'recycle', 'label' => T_('Move to Recycle bin'));
    $mass_type_value = 'recycle';
}
$mass_types[] = array('value' => 'delete', 'label' => T_('Delete permanently'));
$Form->labelstart = '<b>';
$Form->labelend = '</b>';
$Form->radio_input('mass_type', $mass_type_value, $mass_types, sprintf(T_('Are you sure you want to mass delete %s comments?'), $CommentList->total_rows), array('lines' => true));
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_comment_mass.form.php

示例15: die

 *
 * @package evocore
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
load_class('regional/model/_country.class.php', 'Country');
/**
 * @var Sub-region
 */
global $edited_Subregion;
// Determine if we are creating or updating...
global $action;
$creating = is_create_action($action);
$Form = new Form(NULL, 'subregion_checkchanges', 'post', 'compact');
$Form->global_icon(T_('Delete this sub-region!'), 'delete', regenerate_url('action', 'action=delete&amp;' . url_crumb('subregion')));
$Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action'));
$Form->begin_form('fform', ($creating ? T_('New sub-region') : T_('Sub-region')) . get_manual_link('subregions-editing'));
$Form->add_crumb('subregion');
$Form->hiddens_by_key(get_memorized('action' . ($creating ? ',subrg_ID' : '')));
// (this allows to come back to the right list order & page)
$CountryCache =& get_CountryCache();
$Form->select_country('subrg_ctry_ID', $edited_Subregion->ctry_ID, $CountryCache, T_('Country'), array('allow_none' => true, 'required' => true));
$Form->select_input_options('subrg_rgn_ID', get_regions_option_list($edited_Subregion->ctry_ID, $edited_Subregion->rgn_ID, array('none_option_text' => T_('Unknown'))), T_('Region'), '', array('required' => true));
$Form->text_input('subrg_code', $edited_Subregion->code, 6, T_('Code'), '', array('maxlength' => 6, 'required' => true));
$Form->text_input('subrg_name', $edited_Subregion->name, 40, T_('Name'), '', array('maxlength' => 40, 'required' => true));
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')));
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_subregion.form.php


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