本文整理汇总了PHP中get_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP get_icon函数的具体用法?PHP get_icon怎么用?PHP get_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_icon函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_title
function get_title()
{
global $rsc_uri;
$title = str_replace('$icon$', get_icon('feed'), $this->disp_params['title']);
// fp> TODO: support for different icon sizes and backgrounds (at least black and white; mid grey would be cool also)
return $title;
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:7,代码来源:_coll_xml_feeds.widget.php
示例2: build_content
function build_content($ftp, $dir)
{
$content_array = array();
$dirs_array = array();
$files_array = array();
$files = ftp_nlist($ftp, $dir);
foreach ($files as $filename) {
$filename = explode('/', $filename);
$filename = $filename[count($filename) - 1];
if ($filename == '.' || $filename == '..') {
continue;
}
$fullname = $filename;
if ($dir != '') {
$fullname = $dir . '/' . $fullname;
}
$filename = utf8_encode($filename);
if (ftp_size($ftp, $fullname) == -1) {
$fullname = utf8_encode($fullname);
$dirs_array[] = array('name' => $filename, 'file' => $fullname, 'is_folder' => 'true');
} else {
$fullname = utf8_encode($fullname);
$files_array[] = array('name' => $filename, 'file' => $fullname, 'icon' => get_icon($filename));
}
}
usort($dirs_array, 'cmp');
usort($files_array, 'cmp');
$content_array = array_merge($dirs_array, $files_array);
return $content_array;
}
开发者ID:hoksi,项目名称:mangolight-editor,代码行数:30,代码来源:list.php
示例3: display_legend
/**
* Display the icon legend
*/
function display_legend()
{
if (empty($this->icons)) {
return;
}
// There are some icons to display:
echo '<div id="icon_legend">' . T_('Legend') . ': ';
// Loop on all map array of filenames for icons to display icons list in the same order:
foreach ($this->icons as $icon) {
$icon_info = get_icon_info($icon);
if (!$icon_info) {
continue;
}
echo '<span class="legend_element">' . get_icon($icon) . ' ';
if (isset($icon_info['legend'])) {
// Icon has a legend:
echo $icon_info['legend'] . ' ';
} else {
// Icon has no legend so we use the alt:
echo $icon_info['alt'] . ' ';
}
echo '</span>';
}
echo '</div>';
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:28,代码来源:_iconlegend.class.php
示例4: display_perm
/**
* Display the permissions for the type file
*/
function display_perm($perm)
{
if ($perm) {
$r = get_icon('file_allowed');
} else {
$r = get_icon('file_not_allowed');
}
return $r;
}
开发者ID:LFSF,项目名称:oras,代码行数:12,代码来源:_filetype_list.view.php
示例5: tagitem_edit_actions
function tagitem_edit_actions($Item)
{
global $current_User, $edited_ItemTag;
// Display the edit icon if current user has the rights:
$r = $Item->get_edit_link(array('before' => '', 'after' => ' ', 'text' => get_icon('edit'), 'title' => '#', 'class' => ''));
if ($current_User->check_perm('item_post!CURSTATUS', 'edit', false, $Item)) {
// Display the unlink icon if current user has the rights:
$r .= action_icon(T_('Unlink this tag from post!'), 'unlink', regenerate_url('tag_ID,action,tag_filter', 'tag_ID=' . $edited_ItemTag->ID . '&item_ID=' . $Item->ID . '&action=unlink&' . url_crumb('tag')), NULL, NULL, NULL, array('onclick' => 'return confirm(\'' . format_to_output(sprintf(TS_('Are you sure you want to remove the tag "%s" from "%s"?'), $edited_ItemTag->dget('name'), $Item->dget('title')) . '\');', 'htmlattr')));
}
return $r;
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:11,代码来源:_itemtag.form.php
示例6: file_actions
function file_actions($link_ID)
{
global $current_File, $edited_Item, $current_User;
$title = T_('Locate this file!');
$r = $current_File->get_linkedit_link('&fm_mode=link_item&item_ID=' . $edited_Item->ID, get_icon('locate', 'imgtag', array('title' => $title)), $title);
if ($current_User->check_perm('item', 'edit', false, $edited_Item)) {
// Check that we have permission to edit item:
$r .= action_icon(T_('Delete this link!'), 'unlink', regenerate_url('action', 'link_ID=' . $link_ID . '&action=unlink'));
}
return $r;
}
开发者ID:LFSF,项目名称:oras,代码行数:11,代码来源:_file_links.view.php
示例7: plugin_results_td_status
function plugin_results_td_status($plug_status, $plug_ID)
{
global $admin_Plugins;
if ($plug_status == 'enabled') {
return get_icon('enabled', 'imgtag', array('title' => T_('The plugin is enabled.')));
} elseif ($plug_status == 'broken') {
return get_icon('warning', 'imgtag', array('title' => T_('The plugin is broken.') . (isset($admin_Plugins->plugin_errors[$plug_ID]) && !empty($admin_Plugins->plugin_errors[$plug_ID]['register']) ? ' ' . $admin_Plugins->plugin_errors[$plug_ID]['register'] : '')));
} elseif ($plug_status == 'install') {
return get_icon('disabled', 'imgtag', array('title' => T_('The plugin is not installed completely.')));
} else {
return get_icon('disabled', 'imgtag', array('title' => T_('The plugin is disabled.')));
}
}
开发者ID:LFSF,项目名称:oras,代码行数:13,代码来源:_plugin_list.view.php
示例8: grp_actions
function grp_actions(&$row)
{
global $usedgroups, $Settings, $current_User;
$r = '';
if ($current_User->check_perm('users', 'edit', false)) {
$r = action_icon(T_('Edit this group...'), 'edit', regenerate_url('ctrl,action', 'ctrl=groups&action=edit&grp_ID=' . $row->grp_ID));
$r .= action_icon(T_('Duplicate this group...'), 'copy', regenerate_url('ctrl,action', 'ctrl=groups&action=new&grp_ID=' . $row->grp_ID));
if ($row->grp_ID != 1 && $row->grp_ID != $Settings->get('newusers_grp_ID') && !in_array($row->grp_ID, $usedgroups)) {
// delete
$r .= action_icon(T_('Delete this group!'), 'delete', regenerate_url('ctrl,action', 'ctrl=groups&action=delete&grp_ID=' . $row->grp_ID . '&' . url_crumb('group')));
} else {
$r .= get_icon('delete', 'noimg');
}
}
return $r;
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:16,代码来源:_group.view.php
示例9: display_perm
/**
* Display the permissions for the type file
*/
function display_perm($perm)
{
switch ($perm) {
case 'any':
$r = get_icon('file_allowed');
break;
case 'registered':
$r = get_icon('file_allowed_registered');
break;
case 'admin':
$r = get_icon('file_not_allowed');
break;
default:
debug_die('Wrong filetype allowed value!');
}
return $r;
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:20,代码来源:_filetype_list.view.php
示例10: get_param_definitions
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
global $Blog, $app_version;
global $skins_url;
if (!($twitter_name = $Blog->get_setting('twitter_username'))) {
$twitter_name = '';
}
$set1 = array('section_general_start' => array('layout' => 'begin_fieldset', 'label' => T_('General Settings')), 'blog_name' => array('label' => $this->T_('Blog title'), 'note' => $this->T_('Enter image URL to display a logo'), 'defaultvalue' => $Blog->get('name'), 'type' => 'text', 'size' => 50), 'blog_tagline' => array('label' => $this->T_('Blog tagline'), 'defaultvalue' => $Blog->get('tagline'), 'type' => 'text', 'size' => 50), 'section_general_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username options')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'));
if (version_compare($app_version, '6.0', '>=')) {
// We need this due to 'checklist' fields are available starting with version 6.
$set2 = array('section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('header', sprintf(T_('"%s" container'), NT_('Header')), 1), array('page_top', sprintf(T_('"%s" container'), NT_('Page Top')), 1), array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 0), array('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('sidebar2', sprintf(T_('"%s" container'), NT_('Sidebar 2')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset'));
$set1 = array_merge($set1, $set2);
}
$set3 = array('2_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Layout')), 'skin_color' => array('label' => $this->T_('Skin color'), 'note' => '', 'defaultvalue' => 'green', 'options' => array('green' => $this->T_('Green'), 'blue' => $this->T_('Blue'), 'red' => $this->T_('Red'), 'grey' => $this->T_('Grey')), 'type' => 'select'), 'skin_width' => array('label' => $this->T_('Skin width'), 'note' => '', 'defaultvalue' => 'fixed', 'options' => array('fixed' => $this->T_('Fixed'), 'fluid' => $this->T_('Fluid')), 'type' => 'select'), 'skin_layout' => array('label' => $this->T_('Skin layout'), 'note' => '', 'defaultvalue' => 'col-2-right', 'options' => array('col-1' => $this->T_('1 column'), 'col-2-right' => $this->T_('2 columns: Sidebar to the right'), 'col-2-left' => $this->T_('2 columns: Sidebar to the left'), 'col-3' => $this->T_('3 columns'), 'col-3-right' => $this->T_('3 columns: Sidebars to the right'), 'col-3-left' => $this->T_('3 columns: Sidebars to the left')), 'type' => 'select'), 'skin_font' => array('label' => $this->T_('Skin font'), 'note' => '', 'defaultvalue' => '"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif', 'options' => array('"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif' => 'Segoe UI (Windows Vista/7)', '"Helvetica Neue",Helvetica,Arial,Geneva,"MS Sans Serif",sans-serif' => 'Helvetica/Arial', 'Georgia,"Nimbus Roman No9 L",serif' => 'Georgia (sans serif)', '"Lucida Grande","Lucida Sans","Lucida Sans Unicode","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif' => 'Lucida Grande/Sans (Mac/Windows)'), 'type' => 'select'), '2_end' => array('layout' => 'end_fieldset'), '3_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Tabbed widget settings')), 'tabbed_widget' => array('label' => $this->T_('Tabbed widget'), 'note' => $this->T_('Display javascript tabbed widget on the sidebar'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_comments' => array('label' => $this->T_('Recent comments'), 'note' => $this->T_('The number of recent comments'), 'defaultvalue' => 6, 'type' => 'integer', 'size' => 3), 'display_archives' => array('label' => $this->T_('Archives'), 'note' => $this->T_('The number of months in archive'), 'defaultvalue' => 12, 'type' => 'integer', 'size' => 3), 'display_tags' => array('label' => $this->T_('Tags'), 'note' => $this->T_('The number of tags'), 'defaultvalue' => 40, 'type' => 'integer', 'size' => 3), '3_end' => array('layout' => 'end_fieldset'), '4_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Misc settings')), 'display_related' => array('label' => $this->T_('Related posts'), 'note' => $this->T_('The number of related articles in single post mode'), 'defaultvalue' => 10, 'type' => 'integer', 'size' => 3), 'display_my_tweets' => array('label' => $this->T_('Twitter widget'), 'note' => $this->T_('The number of items in "My latest tweets" widget. Select 0 to disable.'), 'defaultvalue' => 5, 'type' => 'integer', 'size' => 3), '4_end' => array('layout' => 'end_fieldset'), '5_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Enable/disable features')), 'fancy_helper' => array('label' => $this->T_('FancyBox Helper'), 'note' => $this->T_('See <a href="' . $skins_url . $this->get_default_name() . '/resources/fancyapps/demo/index.html" target="_blank"> Demo</a> and <a href="' . $skins_url . $this->get_default_name() . '/resources/fancyapps/demo/readme.html" target="_blank">Added Features</a> or visit <a href="http://fancyapps.com/fancybox/" target="_blank">fancyBox</a>'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'post_meta' => array('label' => $this->T_('Post metadata'), 'note' => $this->T_('Display post metadata block in single post mode'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'posts_author_avatar' => array('label' => $this->T_('Author avatar (list)'), 'note' => $this->T_('Display author avatar next to post title in <u>post list mode</u>'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'single_author_avatar' => array('label' => $this->T_('Author avatar (single)'), 'note' => $this->T_('Display author avatar next to post title in <u>single post mode</u>'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'enable_thumbshots' => array('label' => $this->T_('Display thumbshots'), 'note' => $this->T_('Display website previews on external post links.') . ' (Website thumbnails provided by <a href="http://www.thumbshots.ru/en/" target="_blank">Thumbshots.RU</a>)', 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_credits' => array('label' => $this->T_('Display footer credits'), 'note' => $this->T_('You get this skin for free. We do appreciate you giving us credit. <b>Thank you for your support!</b>'), 'defaultvalue' => 1, 'type' => 'checkbox'), '5_end' => array('layout' => 'end_fieldset'), '6_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Social buttons')), 'facebook_user' => array('label' => $this->T_('Facebook'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'defaultvalue' => 'b2evolution', 'type' => 'text', 'size' => 40), 'flickr_user' => array('label' => $this->T_('Flickr'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'type' => 'text', 'size' => 40), 'myspace_user' => array('label' => $this->T_('Myspace'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'type' => 'text', 'size' => 40), 'linkedin_user' => array('label' => $this->T_('LinkedIn'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'type' => 'text', 'size' => 40), 'twitter_user' => array('label' => $this->T_('Twitter'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'defaultvalue' => $twitter_name, 'type' => 'text', 'size' => 40), 'youtube_user' => array('label' => $this->T_('Youtube'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'defaultvalue' => '', 'type' => 'text', 'size' => 40));
$set = array_merge($set1, $set3);
if (version_compare($app_version, '4') && ($res = $this->check_updates())) {
// Check for updates in b2evo v4 and up
$set = array('updates' => array('label' => $this->T_('Updates'), 'info' => sprintf('<span style="color:red; font-weight:bold">New version %s is available. %s</span>', $res['version'], get_icon('download') . ' <a href="' . $res['url'] . '" target="_blank">Download now</a>'), 'type' => 'info')) + $set;
}
return array_merge($set, parent::get_param_definitions($params));
}
开发者ID:b2evolution,项目名称:mystique_skin,代码行数:27,代码来源:_skin.class.php
示例11: array
}
}
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'])) {
// Append the hidden input elements from module
foreach ($module_contacts_list_params['form_hiddens'] as $hidden_input) {
$Form->hidden($hidden_input['name'], $hidden_input['value']);
}
}
$Form->combo_box('group', param('group_combo', 'string', ''), get_contacts_groups_options(param('group', 'string', '-1'), false), $multi_action_icon . T_('Add all selected contacts to this group'), array('new_field_size' => '8'));
$Form->buttons(array(array('submit', 'actionArray[add_group]', T_('Add'), 'SaveButton btn-primary btn-sm')));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_contact_list.view.php
示例12: get_featured_Item
$intro_Item =& get_featured_Item('front');
// $intro_Item is used below for comments form
$Item = $intro_Item;
if (!empty($Item)) {
// We have a featured/intro post to display:
echo '<div class="evo_content_block">';
// Beginning of posts display
// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
skin_include('_item_block.inc.php', array('feature_block' => true, 'content_mode' => 'auto', 'intro_mode' => 'normal', 'item_class' => 'jumbotron evo_content_block evo_post', 'disp_comment_form' => false, 'item_link_type' => 'none'));
// ----------------------------END ITEM BLOCK ----------------------------
echo '</div>';
// End of posts display
}
// --------------------------------- START OF CONTENT HIERARCHY --------------------------------
echo '<h2 class="table_contents">' . T_('Table of contents') . '</h2>';
skin_widget(array('widget' => 'content_hierarchy', 'display_blog_title' => false, 'open_children_levels' => 20, 'class_selected' => '', 'item_before_opened' => get_icon('collapse'), 'item_before_closed' => get_icon('expand'), 'item_before_post' => get_icon('file_message')));
// ---------------------------------- END OF CONTENT HIERARCHY ---------------------------------
if (!empty($intro_Item)) {
global $c, $ReqURI;
$c = 1;
// Display comments
echo '<div class="evo_content_block">';
// Beginning of posts display
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array_merge(array('before_section_title' => '<h3 class="evo_comment__list_title">', 'after_section_title' => '</h3>', 'Item' => $intro_Item, 'form_title_text' => T_('Comment form'), 'comments_title_text' => T_('Comments on this chapter'), 'form_comment_redirect_to' => $ReqURI), $Skin->get_template('disp_params')));
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
echo '</div>';
// End of posts display
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_front.disp.php
示例13: access_deny
}
if (get_request('hostid') && !API::Host()->isReadable(array($_REQUEST['hostid']))) {
access_deny();
}
validate_sort_and_sortorder('name', ZBX_SORT_DOWN);
$options = array('groups' => array('real_hosts' => true, 'with_httptests' => true), 'hosts' => array('with_monitored_items' => true, 'with_httptests' => true), 'hostid' => get_request('hostid', null), 'groupid' => get_request('groupid', null));
$pageFilter = new CPageFilter($options);
$_REQUEST['groupid'] = $pageFilter->groupid;
$_REQUEST['hostid'] = $pageFilter->hostid;
$displayNodes = is_array(get_current_nodeid()) && $pageFilter->groupid == 0 && $pageFilter->hostid == 0;
$r_form = new CForm('get');
$r_form->addVar('fullscreen', $_REQUEST['fullscreen']);
$r_form->addItem(array(_('Group') . SPACE, $pageFilter->getGroupsCB(true)));
$r_form->addItem(array(SPACE . _('Host') . SPACE, $pageFilter->getHostsCB(true)));
$httpmon_wdgt = new CWidget();
$httpmon_wdgt->addPageHeader(_('STATUS OF WEB MONITORING'), get_icon('fullscreen', array('fullscreen' => $_REQUEST['fullscreen'])));
$httpmon_wdgt->addHeader(_('Web scenarios'), $r_form);
$httpmon_wdgt->addHeaderRowNumber();
// TABLE
$table = new CTableInfo(_('No web scenarios found.'));
$table->SetHeader(array($displayNodes ? _('Node') : null, $_REQUEST['hostid'] == 0 ? make_sorting_header(_('Host'), 'hostname') : null, make_sorting_header(_('Name'), 'name'), _('Number of steps'), _('Last check'), _('Status')));
$paging = null;
if ($pageFilter->hostsSelected) {
$options = array('output' => array('httptestid'), 'templated' => false, 'filter' => array('status' => HTTPTEST_STATUS_ACTIVE), 'limit' => $config['search_limit'] + 1);
if ($pageFilter->hostid > 0) {
$options['hostids'] = $pageFilter->hostid;
} elseif ($pageFilter->groupid > 0) {
$options['groupids'] = $pageFilter->groupid;
}
$httpTests = API::HttpTest()->get($options);
$paging = getPagingLine($httpTests);
开发者ID:SandipSingh14,项目名称:Zabbix_,代码行数:31,代码来源:httpmon.php
示例14: unset
$problemTrigger['description'] = $triggers[$problemTrigger['triggerid']]['description'];
}
unset($problemTrigger);
}
unset($serviceSla);
$treeData = array();
createServiceMonitoringTree($services, $slaData, $period, $treeData);
$tree = new CServiceTree('service_status_tree', $treeData, array('caption' => _('Service'), 'status' => _('Status'), 'reason' => _('Reason'), 'sla' => _('Problem time'), 'sla2' => nbsp(_('SLA') . ' / ' . _('Acceptable SLA'))));
if ($tree) {
// creates form for choosing a preset interval
$r_form = new CForm();
$r_form->setAttribute('class', 'nowrap');
$r_form->setMethod('get');
$r_form->setAttribute('name', 'period_choice');
$r_form->addVar('fullscreen', $_REQUEST['fullscreen']);
$period_combo = new CComboBox('period', $period, 'javascript: submit();');
foreach ($periods as $key => $val) {
$period_combo->addItem($key, $val);
}
$r_form->addItem(array(_('Period') . SPACE, $period_combo));
$srv_wdgt = new CWidget('hat_services', 'service-list service-mon');
$srv_wdgt->addPageHeader(_('IT SERVICES'), get_icon('fullscreen', array('fullscreen' => $_REQUEST['fullscreen'])));
$srv_wdgt->addHeader(_('IT services'), $r_form);
$srv_wdgt->addItem(BR());
$srv_wdgt->addItem($tree->getHTML());
$srv_wdgt->show();
} else {
error(_('Cannot format Tree. Check logic structure in service links.'));
}
}
require_once dirname(__FILE__) . '/include/page_footer.php';
开发者ID:omidmt,项目名称:zabbix-greenplum,代码行数:31,代码来源:srv_status.php
示例15: get_template
/**
* Get a template by name and depth.
*
* Templates can handle multiple depth levels
*
* This is a method (and not a member array) to allow dynamic generation and T_()
*
* @param string Name of the template ('main', 'sub')
* @param integer Nesting level (start at 0)
* @return array Associative array which defines layout and optionally properties.
*/
function get_template($name, $depth = 0)
{
switch ($name) {
case 'main':
switch ($depth) {
case 0:
// main level
global $app_shortname, $app_version;
return array('before' => '<div id="mainmenu"><ul>', 'after' => '</ul></div>', 'beforeEach' => '<li>', 'afterEach' => '</li>', 'beforeEachSel' => '<li class="current">', 'afterEachSel' => '</li>', 'beforeEachSelWithSub' => '<li class="parent">', 'afterEachSelWithSub' => '</li>', '_props' => array());
default:
// any sublevel
return array('before' => '<ul class="submenu">', 'after' => '</ul>', 'beforeEach' => '<li>', 'afterEach' => '</li>', 'beforeEachSel' => '<li class="current">', 'afterEachSel' => '</li>');
}
break;
case 'sub':
// a payload block with embedded submenu
return array('before' => '<div class="pt">' . "\n" . '<ul class="hack">' . "\n<li><!-- Yes, this empty UL is needed! It's a DOUBLE hack for correct CSS display --></li>" . "\n</ul>" . "\n" . '<div class="panelblocktabs">' . "\n" . '<ul class="tabs">', 'after' => "</ul>\n" . '<span style="float:right">$global_icons$</span>' . "</div>\n</div>" . "\n" . '<div class="tabbedpanelblock">', 'empty' => '<div class="panelblock">', 'beforeEach' => '<li>', 'afterEach' => '</li>', 'beforeEachSel' => '<li class="current">', 'afterEachSel' => '</li>', 'end' => '</div>');
case 'block':
// an additional payload block, anywhere after the one with the submenu. Used by disp_payload_begin()/disp_payload_end()
return array('begin' => '<div class="panelblock">', 'end' => "\n</div>");
case 'CollectionList':
// Template for a list of Collections (Blogs)
return array('before' => '<div id="coll_list"><ul>', 'after' => '</ul></div>', 'buttons_start' => '', 'buttons_end' => '', 'beforeEach' => '<li>', 'afterEach' => '</li>', 'beforeEachSel' => '<li class="current">', 'afterEachSel' => '</li>', 'select_start' => '<li class="collection_select">', 'select_end' => '</li>');
case 'Results':
// Results list:
return array('page_url' => '', 'before' => '<div class="results">', 'header_start' => '<div class="results_nav">', 'header_text' => '<strong>' . T_('Pages') . '</strong>: $prev$ $first$ $list_prev$ $list$ $list_next$ $last$ $next$', 'header_text_single' => '', 'header_end' => '</div>', 'list_start' => '<table class="grouped" cellspacing="0">' . "\n\n", 'head_start' => "<thead>\n", 'head_title' => '<tr><th colspan="$nb_cols$" class="title"><span style="float:right">$global_icons$</span>$title$</th>' . "\n</tr>\n", 'filters_start' => '<tr class="filters"><td colspan="$nb_cols$">', 'filters_end' => '</td></tr>', 'line_start_head' => '<tr>', 'colhead_start' => '<th $class_attrib$>', 'colhead_start_first' => '<th class="firstcol $class$">', 'colhead_start_last' => '<th class="lastcol $class$">', 'colhead_end' => "</th>\n", 'sort_asc_off' => '<img src="../admin/img/grey_arrow_up.gif" alt="A" title="' . T_('Ascending order') . '" height="12" width="11" />', 'sort_asc_on' => '<img src="../admin/img/black_arrow_up.gif" alt="A" title="' . T_('Ascending order') . '" height="12" width="11" />', 'sort_desc_off' => '<img src="../admin/img/grey_arrow_down.gif" alt="D" title="' . T_('Descending order') . '" height="12" width="11" />', 'sort_desc_on' => '<img src="../admin/img/black_arrow_down.gif" alt="D" title="' . T_('Descending order') . '" height="12" width="11" />', 'basic_sort_off' => '', 'basic_sort_asc' => get_icon('ascending'), 'basic_sort_desc' => get_icon('descending'), 'head_end' => "</thead>\n\n", 'tfoot_start' => "<tfoot>\n", 'tfoot_end' => "</tfoot>\n\n", 'body_start' => "<tbody>\n", 'line_start' => '<tr class="even">' . "\n", 'line_start_odd' => '<tr class="odd">' . "\n", 'line_start_last' => '<tr class="even lastline">' . "\n", 'line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'col_start' => '<td $class_attrib$>', 'col_start_first' => '<td class="firstcol $class$">', 'col_start_last' => '<td class="lastcol $class$">', 'col_end' => "</td>\n", 'line_end' => "</tr>\n\n", 'grp_line_start' => '<tr class="group">' . "\n", 'grp_line_start_odd' => '<tr class="odd">' . "\n", 'grp_line_start_last' => '<tr class="lastline">' . "\n", 'grp_line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'grp_col_start' => '<td $class_attrib$ $colspan_attrib$>', 'grp_col_start_first' => '<td class="firstcol $class$" $colspan_attrib$>', 'grp_col_start_last' => '<td class="lastcol $class$" $colspan_attrib$>', 'grp_col_end' => "</td>\n", 'grp_line_end' => "</tr>\n\n", 'body_end' => "</tbody>\n\n", 'total_line_start' => '<tr class="total">' . "\n", 'total_col_start' => '<td $class_attrib$>', 'total_col_start_first' => '<td class="firstcol $class$">', 'total_col_start_last' => '<td class="lastcol $class$">', 'total_col_end' => "</td>\n", 'total_line_end' => "</tr>\n\n", 'list_end' => "</table>\n\n", 'footer_start' => '<div class="results_nav">', 'footer_text' => '<strong>' . T_('Pages') . '</strong>: $prev$ $first$ $list_prev$ $list$ $list_next$ $last$ $next$', 'footer_text_single' => '', 'footer_text_no_limit' => '', 'prev_text' => T_('Previous'), 'next_text' => T_('Next'), 'no_prev_text' => '', 'no_next_text' => '', 'list_prev_text' => T_('...'), 'list_next_text' => T_('...'), 'list_span' => 11, 'scroll_list_range' => 5, 'footer_end' => "</div>\n\n", 'no_results_start' => '<table class="grouped" cellspacing="0">' . "\n\n" . '<th class="title"><span style="float:right">$global_icons$</span>' . '$title$</th></tr>' . "\n" . '<tr class="lastline"><td class="firstcol lastcol">', 'no_results_end' => '</td></tr>' . '</table>' . "\n\n", 'after' => '</div>', 'sort_type' => 'basic');
case 'blockspan_form':
// blockspan Form settings:
return array('layout' => 'blockspan', 'formstart' => '', 'title_fmt' => '$title$' . "\n", 'no_title_fmt' => '', 'fieldstart' => '<span class="block" $ID$>', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '', 'inputstart' => '', 'infostart' => '', 'inputend' => "\n", 'fieldend' => '</span>' . get_icon('pixel') . "\n", 'buttonsstart' => '', 'buttonsend' => "\n", 'formend' => '');
case 'compact_form':
case 'Form':
// Default Form settings:
return array('layout' => 'fieldset', 'formstart' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<fieldset $fieldset_attribs$>' . "\n" . '<legend $title_attribs$>$fieldset_title$</legend>' . "\n", 'fieldset_end' => '</fieldset>' . "\n", 'fieldstart' => '<fieldset $ID$>' . "\n", 'labelstart' => '<div class="label">', 'labelend' => "</div>\n", 'labelempty' => '<div class="label"></div>', 'inputstart' => '<div class="input">', 'infostart' => '<div class="info">', 'inputend' => "</div>\n", 'fieldend' => "</fieldset>\n\n", 'buttonsstart' => '<fieldset><div class="input">', 'buttonsend' => "</div></fieldset>\n\n", 'formend' => '');
case 'file_browser':
return array('block_start' => '<div class="block_item">
<h3><span style="float:right">$global_icons$</span>$title$</h3>', 'block_end' => '</div>');
case 'block_item':
return array('block_start' => '<div class="block_item">
<h3><span style="float:right">$global_icons$</span>$title$</h3>', 'block_end' => '</div>');
case 'side_item':
return array('block_start' => '<div class="browse_side_item">
<h3><span style="float:right">$global_icons$</span>$title$</h3>', 'block_end' => '</div>');
default:
debug_die('Unknown $name for AdminUI::get_template(): ' . var_export($name, true));
}
}
开发者ID:LFSF,项目名称:oras,代码行数:57,代码来源:_adminUI_general.class.php
示例16: get_permanent_link
/**
* Returns a permalink link to the Item
*
* Note: If you only want the permalink URL, use {@link Item::get_permanent_url()}
*
* @param string link text or special value: '#', '#icon#', '#text#', '#title#' '... $title$ ...'
* @param string link title
* @param string class name
*/
function get_permanent_link($text = '#', $title = '#', $class = '', $target_blog = '', $post_navigation = '', $nav_target = NULL)
{
global $current_User, $Blog;
switch ($text) {
case '#':
$text = get_icon('permalink', 'imgtag', array('class' => 'icon')) . T_('Permalink');
break;
case '#icon#':
$text = get_icon('permalink', 'imgtag', array('class' => 'icon'));
break;
case '#text#':
$text = T_('Permalink');
break;
case '#title#':
$text = format_to_output($this->title);
break;
}
if ($title == '#') {
$title = T_('Permanent link to full entry');
}
$blogurl = '';
$permalink_type = '';
if (!empty($Blog) && $this->check_cross_post_nav($target_blog, $Blog->ID)) {
$permalink_type = $Blog->get_setting('permalinks');
$blogurl = $Blog->gen_blogurl();
}
$url = $this->get_permanent_url($permalink_type, $blogurl);
// add navigation param if necessary
$url = $this->add_navigation_param($url, $post_navigation, $nav_target);
// Display as link
$r = '<a href="' . $url . '" title="' . $title . '"';
if (!empty($class)) {
$r .= ' class="' . $class . '"';
}
$r .= '>' . str_replace('$title$', format_to_output($this->title), $text) . '</a>';
return $r;
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:46,代码来源:_itemlight.class.php
示例17: skin_include
<?php
if (!$Item->can_see_comments(true) || $preview) {
// If comments are disabled for this post we should close the <table> tag that was opened above for post content
// Otherwise this tag will be closed below by 'comment_list_end'
echo '</table>';
}
?>
<?php
$Item->locale_temp_switch();
// Temporarily switch to post locale (useful for multilingual blogs)
?>
<?php
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('preview_block_start' => '<table id="comment_preview" class="forums_table topics_table single_topic" cellspacing="0" cellpadding="0">', 'preview_start' => '<div class="bText">', 'preview_end' => '</div>', 'preview_block_end' => '</table><br />', 'notification_text' => T_('This is your topic. You are receiving notifications when anyone posts a reply on your topics.'), 'notification_text2' => T_('You will be notified by email when someone posts a reply here.'), 'notification_text3' => T_('Notify me by email when someone posts a reply here.'),
|
请发表评论