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


PHP Results::display方法代码示例

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


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

示例1: get_samedomain_htsrv_url

    if ($city_enabled == true) {
        $r .= action_icon(T_('Disable the city!'), 'deactivate', regenerate_url('action', 'action=disable_city&city_ID=' . $city_ID . '&' . url_crumb('city')));
    } else {
        $r .= action_icon(T_('Enable the city!'), 'activate', regenerate_url('action', 'action=enable_city&city_ID=' . $city_ID . '&' . url_crumb('city')));
    }
    $r .= action_icon(T_('Edit this city...'), 'edit', regenerate_url('action', 'city_ID=' . $city_ID . '&action=edit'));
    $r .= action_icon(T_('Duplicate this city...'), 'copy', regenerate_url('action', 'city_ID=' . $city_ID . '&action=new'));
    $r .= action_icon(T_('Delete this city!'), 'delete', regenerate_url('action', 'city_ID=' . $city_ID . '&action=delete&' . url_crumb('city')));
    return $r;
}
if ($current_User->check_perm('options', 'edit', false)) {
    $Results->cols[] = array('th' => T_('Actions'), 'td' => '%city_td_actions( #city_enabled#, #city_ID# )%', 'td_class' => 'shrinkwrap');
    $Results->global_icon(T_('Create a new city ...'), 'new', regenerate_url('action', 'action=new'), T_('New city') . ' »', 3, 4);
    $Results->global_icon(T_('Import cities from CSV file ...'), 'new', regenerate_url('action', 'action=csv'), T_('Import CSV') . ' »', 3, 4);
}
$Results->display();
?>
<script type="text/javascript">
jQuery( '#c' ).change( function ()
{	// Load option list with regions for seleted country
	jQuery.ajax( {
	type: 'POST',
	url: '<?php 
echo get_samedomain_htsrv_url();
?>
anon_async.php',
	data: 'action=get_regions_option_list&mode=load_subregions&ctry_id=' + jQuery( this ).val(),
	success: function( result )
		{
			result = ajax_debug_clear( result );
			var options = result.split( '-##-' );
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_city_list.view.php

示例2: SQL

// Create result set:
$SQL = new SQL();
$SQL->SELECT('T_skins__skin.*, COUNT( DISTINCT( cset_coll_ID ) ) AS nb_blogs');
$SQL->FROM('T_skins__skin LEFT JOIN T_coll_settings ON skin_ID = cset_value AND
			( cset_name = "normal_skin_ID" OR cset_name = "mobile_skin_ID" OR cset_name = "tablet_skin_ID" )');
$SQL->GROUP_BY('skin_ID');
$CountSQL = new SQL();
$CountSQL->SELECT('COUNT( * )');
$CountSQL->FROM('T_skins__skin');
$Results = new Results($SQL->get(), 'skin_', '', NULL, $CountSQL->get());
$Results->Cache =& get_SkinCache();
$Results->title = T_('Installed skins') . get_manual_link('installed_skins');
if ($current_User->check_perm('options', 'edit', false)) {
    // We have permission to modify:
    $Results->cols[] = array('th' => T_('Name'), 'order' => 'skin_name', 'td' => '<strong><a href="' . regenerate_url('', 'skin_ID=$skin_ID$&amp;action=edit') . '" title="' . TS_('Edit skin properties...') . '">$skin_name$</a></strong>');
} else {
    // We have NO permission to modify:
    $Results->cols[] = array('th' => T_('Name'), 'order' => 'skin_name', 'td' => '<strong>$skin_name$</strong>');
}
$Results->cols[] = array('th' => T_('Skin type'), 'order' => 'skin_type', 'td_class' => 'center', 'td' => '$skin_type$');
$Results->cols[] = array('th' => T_('Blogs'), 'order' => 'nb_blogs', 'th_class' => 'shrinkwrap', 'td_class' => 'center', 'td' => '~conditional( (#nb_blogs# > 0), #nb_blogs#, \'&nbsp;\' )~');
$Results->cols[] = array('th' => T_('Skin Folder'), 'order' => 'skin_folder', 'td' => '$skin_folder$');
if ($current_User->check_perm('options', 'edit', false)) {
    // We have permission to modify:
    $Results->cols[] = array('th' => T_('Actions'), 'th_class' => 'shrinkwrap', 'td_class' => 'shrinkwrap', 'td' => action_icon(TS_('Edit skin properties...'), 'properties', '%regenerate_url( \'\', \'skin_ID=$skin_ID$&amp;action=edit\')%') . action_icon(TS_('Reload containers!'), 'reload', '%regenerate_url( \'\', \'skin_ID=$skin_ID$&amp;action=reload&amp;' . url_crumb('skin') . '\')%') . '~conditional( #nb_blogs# < 1, \'' . action_icon(TS_('Uninstall this skin!'), 'delete', '%regenerate_url( \'\', \'skin_ID=$skin_ID$&amp;action=delete&amp;' . url_crumb('skin') . '\')%') . '\', \'' . get_icon('delete', 'noimg') . '\' )~');
    $Results->global_icon(T_('Install new skin...'), 'new', regenerate_url('action,blog', 'action=new'), T_('Install new'), 3, 4);
}
// $fadeout_array = array( 'skin_ID' => array(6) );
$fadeout_array = NULL;
$Results->display(NULL, 'session');
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:30,代码来源:_skin_list.view.php

示例3: array

        global $current_File;
        $r = '';
        // File relative path & name:
        if ($current_File->is_dir()) {
            // Directory
            $r .= $current_File->dget('_name');
        } else {
            // File
            if ($view_link = $current_File->get_view_link()) {
                $r .= $view_link;
            } else {
                // File extension unrecognized
                $r .= $current_File->dget('_name');
            }
        }
        $title = $current_File->dget('title');
        if ($title !== '') {
            $r .= '<span class="filemeta"> - ' . $title . '</span>';
        }
        return $r;
    }
    return '?';
}
$Results->cols[] = array('th' => T_('Destination'), 'td' => '%display_link( {row} )%');
$Results->cols[] = array('th' => T_('Link ID'), 'td' => '$link_ID$', 'th_class' => 'shrinkwrap', 'td_class' => 'shrinkwrap');
if ($current_User->check_perm('files', 'view', false, $Blog->ID)) {
    $Results->cols[] = array('th' => T_('Actions'), 'td_class' => 'shrinkwrap', 'td' => '%link_actions( #link_ID#, {CUR_IDX}, {TOTAL_ROWS} )%');
}
$Results->cols[] = array('th' => T_('Position'), 'td_class' => 'shrinkwrap', 'td' => '%display_link_position( {row} )%');
$Results->display($AdminUI->get_template('compact_results'));
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:30,代码来源:_link_list.view.php

示例4: array

            if (isset($cache_user_contacts_groups[$group->user_ID])) {
                // nth group of this user
                $cache_user_contacts_groups[$group->user_ID] .= '<br />' . $group_name;
            } else {
                // first group of this user
                $cache_user_contacts_groups[$group->user_ID] = $group_name;
            }
        }
    }
    if (isset($cache_user_contacts_groups[$user_ID])) {
        // user has groups
        echo $cache_user_contacts_groups[$user_ID];
    }
}
$Results->cols[] = array('th' => T_('Groups'), 'th_class' => 'shrinkwrap', 'td_class' => 'left nowrap', 'td' => '%contacts_groups( #mct_to_user_ID# )%');
$Results->display($display_params);
if (count($Results->rows) > 0) {
    // Display actions buttons
    global $module_contacts_list_params;
    modules_call_method('get_contacts_list_params');
    $Form = new Form(get_dispctrl_url('contacts'), 'add_group_contacts');
    echo '<div class="form_send_contacts">';
    $multi_action_icon = get_icon('multi_action', 'imgtag', array('style' => 'margin:0 2px 0 14px;position:relative;top:-5px;'));
    $Form->button_input(array('type' => 'button', 'value' => $module_contacts_list_params['title_selected'], 'onclick' => 'location.href=\'' . $module_contacts_list_params['recipients_link'] . '\'', 'id' => 'send_selected_recipients', 'input_prefix' => $multi_action_icon));
    echo '</div>';
    $Form->switch_layout('none');
    $Form->switch_template_parts(array('formstart' => '<div class="form_add_contacts">', 'labelstart' => '<span class="label">', 'labelend' => '</span> <span class="controls">', 'formend' => '</div>'));
    $Form->begin_form();
    $Form->add_crumb('messaging_contacts');
    $Form->hidden('users', '');
    if (isset($module_contacts_list_params['form_hiddens']) && !empty($module_contacts_list_params['form_hiddens'])) {
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_contact_list.view.php

示例5: die

 * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
 *
 * @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 efy-asimo: Attila Simo.
 *
 * @version $Id: _broken_posts.view.php 3328 2013-03-26 11:44:11Z yura $
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
$SQL = new SQL();
$SQL->SELECT('post_ID, post_title, post_main_cat_ID, post_canonical_slug_ID');
$SQL->FROM('T_items__item');
$SQL->WHERE('post_main_cat_ID NOT IN (SELECT cat_ID FROM T_categories )');
$Results = new Results($SQL->get(), 'broken_posts_');
$Results->title = T_('Broken items with no matching category');
$Results->global_icon(T_('Cancel!'), 'close', regenerate_url('action'));
$Results->cols[] = array('th' => T_('Item ID'), 'th_class' => 'shrinkwrap', 'td_class' => 'small center', 'order' => 'post_ID', 'td' => '$post_ID$');
$Results->cols[] = array('th' => T_('Title'), 'th_class' => 'nowrap', 'order' => 'post_title', 'td' => '$post_title$', 'td_class' => 'small');
$Results->cols[] = array('th' => T_('Main Cat ID'), 'th_class' => 'shrinkwrap', 'order' => 'post_main_cat_ID', 'td' => '$post_main_cat_ID$', 'td_class' => 'small center');
$Results->cols[] = array('th' => T_('Canoncical Slug ID'), 'th_class' => 'shrinkwrap', 'order' => 'post_canonical_slug_ID', 'td' => '$post_canonical_slug_ID$', 'td_class' => 'small center');
$Results->display(array('page_url' => regenerate_url('blog,ctrl,action,results_' . $Results->param_prefix . 'page', 'action=' . param_action() . '&amp;' . url_crumb('tools'))));
if ($current_User->check_perm('options', 'edit', true) && $Results->get_num_rows()) {
    // display Delete link
    $redirect_to = regenerate_url('action', 'action=del_broken_posts&' . url_crumb('tools'));
    echo '<p>[<a href="' . $redirect_to . '">' . T_('Delete these posts') . '</a>]</p>';
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_broken_posts.view.php

示例6: array

            return T_('Women');
            break;
        case 'M':
            return T_('Men');
            break;
        default:
            return T_('Unknown');
            break;
    }
}
$Results->cols[] = array('th' => T_('Gender'), 'td' => '%stats_gender_name( #gender_sign# )%', 'order' => 'gender_sign', 'th_class' => 'shrinkwrap', 'td_class' => 'shrinkwrap', 'total' => '<strong>' . T_('Total') . '</strong>');
$Results->cols[] = array('th' => T_('# Active'), 'td' => '%stats_gender_value( #cnt_active#, ' . $total_cnt_active . ' )%', 'order' => 'cnt_active', 'default_dir' => 'D', 'total' => $total_cnt_active);
$Results->cols[] = array('th' => T_('# Not active'), 'td' => '%stats_gender_value( #cnt_notactive#, ' . $total_cnt_notactive . ' )%', 'order' => 'cnt_notactive', 'default_dir' => 'D', 'total' => $total_cnt_notactive);
$Results->cols[] = array('th' => T_('# With profile picture'), 'td' => '%stats_gender_value( #cnt_pictured#, ' . $total_cnt_pictured . ' )%', 'order' => 'cnt_pictured', 'default_dir' => 'D', 'total' => $total_cnt_pictured);
echo '<br />';
$Results->display(array('page_url' => $dispatcher . '?ctrl=users&amp;tab=stats'));
/*** Graph of registrations per day ***/
echo '<h2>' . T_('# registrations per day') . '</h2>';
global $AdminUI, $user_gender_color;
$SQL = new SQL();
$SQL->SELECT('SQL_NO_CACHE COUNT(*) AS users,
		CONCAT( IF( user_gender IN ( "M", "F" ), user_gender, "G" ), "_", IF( user_status IN ( "activated", "autoactivated" ), "active", "notactive" ) ) AS user_gender_status,
		EXTRACT(YEAR FROM user_created_datetime) AS year,
		EXTRACT(MONTH FROM user_created_datetime) AS month,
		EXTRACT(DAY FROM user_created_datetime) AS day');
$SQL->FROM('T_users');
$SQL->WHERE('user_created_datetime >= ' . $DB->quote(date('Y-m-d H:i:s', mktime(date('H'), date('i'), date('s'), date('m') - 1, date('d'), date('Y')))));
$SQL->GROUP_BY('year, month, day, user_gender_status');
$SQL->ORDER_BY('year DESC, month DESC, day DESC, user_gender_status');
$res_users = $DB->get_results($SQL->get(), ARRAY_A, 'Get user summary');
/*
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_user_stats.view.php

示例7: plugin_results_td_actions

}
$Results->cols[] = array('th' => T_('Help'), 'td_class' => 'nowrap', 'td' => '% plugin_results_td_help( {Obj} ) %');
/*
 * ACTIONS TD:
 */
function plugin_results_td_actions($Plugin)
{
    $r = '';
    if ($Plugin->status == 'enabled') {
        $r .= action_icon(T_('Disable the plugin!'), 'deactivate', 'admin.php?ctrl=plugins&amp;action=disable_plugin&amp;plugin_ID=' . $Plugin->ID);
    } elseif ($Plugin->status != 'broken') {
        $r .= action_icon(T_('Enable the plugin!'), 'activate', 'admin.php?ctrl=plugins&amp;action=enable_plugin&amp;plugin_ID=' . $Plugin->ID);
    }
    $r .= $Plugin->get_edit_settings_link();
    $r .= action_icon(T_('Un-install this plugin!'), 'delete', 'admin.php?ctrl=plugins&amp;action=uninstall&amp;plugin_ID=' . $Plugin->ID);
    return $r;
}
if ($current_User->check_perm('options', 'edit', false)) {
    $Results->cols[] = array('th' => T_('Actions'), 'td' => '% plugin_results_td_actions( {Obj} ) %', 'td_class' => 'shrinkwrap');
}
// Action icons:
if ($current_User->check_perm('options', 'edit')) {
    // Display action link to reload plugins:
    $Results->global_icon(T_('Reload events and codes for installed plugins.'), 'reload', regenerate_url('action', 'action=reload_plugins'), T_('Reload plugins'), 3, 4);
}
$Results->global_icon(T_('Install new plugin...'), 'new', regenerate_url('action', 'action=list_available'), T_('Install new'), 3, 4);
// if there happened something with a plugin_ID, apply fadeout to the row:
$highlight_fadeout = empty($edit_Plugin) || !is_object($edit_Plugin) ? array() : array('plug_ID' => array($edit_Plugin->ID));
$Results->display(NULL, $highlight_fadeout);
unset($Results);
// free memory
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_plugin_list.view.php

示例8: array

    if (!in_array($ID, $locked_IDs) && (!isset($perm_name) || $current_User->check_perm($perm_name, $perm_level, false))) {
        // The element is not locked and we have permission permission to edit:
        return '<strong><a href="' . regenerate_url('action,ID', $GenericElementCache->dbIDname . '=' . $ID . '&amp;action=edit') . '">' . $title . '</a></strong>';
    } else {
        return '<strong>' . $title . '</strong>';
    }
}
$Results->cols[] = array('th' => T_('Name'), 'order' => $GenericElementCache->dbprefix . 'name', 'td' => '%link_name( #' . $GenericElementCache->dbprefix . 'name#, #' . $GenericElementCache->dbIDname . '# )%');
if (!isset($perm_name) || $current_User->check_perm($perm_name, $perm_level, false)) {
    // We have permission permission to edit:
    $Results->cols[] = array('th' => T_('Move'), 'th_class' => 'shrinkwrap', 'order' => $GenericElementCache->dbprefix . 'order', 'td_class' => 'shrinkwrap', 'td' => '{move}');
    function edit_actions($ID)
    {
        global $locked_IDs, $GenericElementCache;
        $r = action_icon(T_('Duplicate...'), 'copy', regenerate_url('action,' . $GenericElementCache->dbIDname, $GenericElementCache->dbIDname . '=' . $ID . '&amp;action=copy'));
        if (empty($locked_IDs) || !in_array($ID, $locked_IDs)) {
            // This element is NOT locked:
            $r = action_icon(T_('Edit...'), 'edit', regenerate_url('action,' . $GenericElementCache->dbIDname, $GenericElementCache->dbIDname . '=' . $ID . '&amp;action=edit')) . $r . action_icon(T_('Delete!'), 'delete', regenerate_url('action,' . $GenericElementCache->dbIDname, $GenericElementCache->dbIDname . '=' . $ID . '&amp;action=delete&amp;' . url_crumb('element')));
        }
        return $r;
    }
    $Results->cols[] = array('th' => T_('Actions'), 'td_class' => 'shrinkwrap', 'td' => '%edit_actions( #' . $GenericElementCache->dbIDname . '# )%');
}
if (!isset($perm_name) || $current_User->check_perm($perm_name, $perm_level, false)) {
    // We have permission permission to edit:
    $Results->global_icon(T_('Create a new element...'), 'new', regenerate_url('action,' . $GenericElementCache->dbIDname, 'action=new'), T_('New element') . ' &raquo;', 3, 4);
}
// EXPERIMENTAL
// $Results->display();
$Results->display(NULL, $result_fadeout);
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:30,代码来源:_generic_ordered_list.inc.php

示例9: array

    }
    $title = $current_File->dget('title');
    if ($title !== '') {
        $r .= '<span class="filemeta"> - ' . $title . '</span>';
    }
    return $r;
}
$Results->cols[] = array('th' => T_('Destination'), 'td' => '%display_link()%', 'td_class' => 'fm_filename');
$Results->cols[] = array('th' => T_('Link ID'), 'td' => '$link_ID$', 'th_class' => 'shrinkwrap', 'td_class' => 'shrinkwrap');
if ($current_User->check_perm('files', 'view', false, $Blog->ID)) {
    $Results->cols[] = array('th' => T_('Actions'), 'td_class' => 'shrinkwrap', 'td' => '%link_actions( #link_ID#, {ROW_IDX_TYPE}, "' . $LinkOwner->type . '" )%');
}
$Results->cols[] = array('th' => T_('Position'), 'td_class' => 'shrinkwrap', 'td' => '%display_link_position( {row} )%');
// Add attr "id" to handle quick uploader
$compact_results_params = $AdminUI->get_template('compact_results');
$compact_results_params['body_start'] = str_replace('<tbody', '<tbody id="filelist_tbody"', $compact_results_params['body_start']);
$compact_results_params['no_results_start'] = str_replace('<tbody', '<tbody id="filelist_tbody"', $compact_results_params['no_results_start']);
$Results->display($compact_results_params);
// Print out JavaScript to change a link position
echo_link_position_js();
if ($Results->total_pages == 0) {
    // If no results we should get a template of headers in order to add it on first quick upload
    ob_start();
    $Results->display_col_headers();
    $table_headers = ob_get_clean();
} else {
    // Headers are already on the page
    $table_headers = '';
}
// Display a button to quick upload the files by drag&drop method
display_dragdrop_upload_button(array('before' => '<div id="fileuploader_form">', 'after' => '</div>', 'fileroot_ID' => FileRoot::gen_ID('collection', $Blog->ID), 'path' => '/quick-uploads/' . ($LinkOwner->type == 'item' ? 'p' : 'c') . $LinkOwner->link_Object->ID . '/', 'list_style' => 'table', 'template_filerow' => '<table><tr>' . '<td class="firstcol shrinkwrap qq-upload-image"><span class="qq-upload-spinner">&nbsp;</span></td>' . '<td class="qq-upload-file fm_filename">&nbsp;</td>' . '<td class="qq-upload-link-id shrinkwrap">&nbsp;</td>' . '<td class="qq-upload-link-actions shrinkwrap">' . '<div class="qq-upload-status">' . TS_('Uploading...') . '<span class="qq-upload-spinner"></span>' . '<span class="qq-upload-size"></span>' . '<a class="qq-upload-cancel" href="#">' . TS_('Cancel') . '</a>' . '</div>' . '</td>' . '<td class="qq-upload-link-position lastcol shrinkwrap"></td>' . '</tr></table>', 'display_support_msg' => false, 'additional_dropzone' => '#filelist_tbody', 'filename_before' => '', 'LinkOwner' => $LinkOwner, 'display_status_success' => false, 'status_conflict_place' => 'before_button', 'conflict_file_format' => 'full_path_link', 'resize_frame' => true, 'table_headers' => $table_headers));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_link_list.view.php


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