本文整理汇总了PHP中UI::show_box_top方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::show_box_top方法的具体用法?PHP UI::show_box_top怎么用?PHP UI::show_box_top使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::show_box_top方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_home
/**
* display_home
* This display the module in home page
*/
public function display_home()
{
if (@is_readable(AmpConfig::get('prefix') . '/config/motd.php')) {
echo '<div id="motd">';
UI::show_box_top(T_('Message of the Day'));
require_once AmpConfig::get('prefix') . '/config/motd.php';
UI::show_box_bottom();
echo '</div>';
}
}
示例2: display_home
/**
* display_home
* This display the module in home page
*/
public function display_home()
{
if (AmpConfig::get('sociable')) {
$user_id = $GLOBALS['user']->id;
if ($user_id) {
$activities = Useractivity::get_friends_activities($user_id, $this->maxitems);
if (count($activities) > 0) {
UI::show_box_top(T_('Friends Timeline'));
Useractivity::build_cache($activities);
foreach ($activities as $aid) {
$activity = new Useractivity($aid);
$activity->show();
}
UI::show_box_bottom();
}
}
}
}
示例3: T_
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
$default_rename = "%T - %t";
$default_sort = "%a/%A";
UI::show_box_top(T_('Add a Catalog'), 'box box_add_catalog');
?>
<p><?php
echo T_("In the form below enter either a local path (i.e. /data/music) or the URL to a remote Ampache installation (i.e http://theotherampache.com)");
?>
</p>
<?php
Error::display('general');
?>
<form name="update_catalog" method="post" action="<?php
echo AmpConfig::get('web_path');
?>
/admin/catalog.php" enctype="multipart/form-data">
<table class="tabledata" cellpadding="0" cellspacing="0">
示例4: show_objects
//.........这里部分代码省略.........
$box_req = AmpConfig::get('prefix') . '/templates/show_tagcloud.inc.php';
break;
case 'video':
Video::build_cache($object_ids);
$video_type = 'video';
$box_title = T_('Videos');
$box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php';
break;
case 'democratic':
$box_title = T_('Democratic Playlist');
$box_req = AmpConfig::get('prefix') . '/templates/show_democratic_playlist.inc.php';
break;
case 'wanted':
$box_title = T_('Wanted Albums');
$box_req = AmpConfig::get('prefix') . '/templates/show_wanted_albums.inc.php';
break;
case 'share':
$box_title = T_('Shared Objects');
$box_req = AmpConfig::get('prefix') . '/templates/show_shared_objects.inc.php';
break;
case 'song_preview':
$box_title = T_('Songs');
$box_req = AmpConfig::get('prefix') . '/templates/show_song_previews.inc.php';
break;
case 'channel':
$box_title = T_('Channels');
$box_req = AmpConfig::get('prefix') . '/templates/show_channels.inc.php';
break;
case 'broadcast':
$box_title = T_('Broadcasts');
$box_req = AmpConfig::get('prefix') . '/templates/show_broadcasts.inc.php';
break;
case 'license':
$box_title = T_('Media Licenses');
$box_req = AmpConfig::get('prefix') . '/templates/show_manage_license.inc.php';
break;
case 'tvshow':
$box_title = T_('TV Shows');
$box_req = AmpConfig::get('prefix') . '/templates/show_tvshows.inc.php';
break;
case 'tvshow_season':
$box_title = T_('Seasons');
$box_req = AmpConfig::get('prefix') . '/templates/show_tvshow_seasons.inc.php';
break;
case 'tvshow_episode':
$box_title = T_('Episodes');
$video_type = $type;
$box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php';
break;
case 'movie':
$box_title = T_('Movies');
$video_type = $type;
$box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php';
break;
case 'clip':
$box_title = T_('Clips');
$video_type = $type;
$box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php';
break;
case 'personal_video':
$box_title = T_('Personal Videos');
$video_type = $type;
$box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php';
break;
case 'label':
$box_title = T_('Labels');
$box_req = AmpConfig::get('prefix') . '/templates/show_labels.inc.php';
break;
case 'pvmsg':
$box_title = T_('Private Messages');
$box_req = AmpConfig::get('prefix') . '/templates/show_pvmsgs.inc.php';
break;
default:
// Rien a faire
break;
}
// end switch on type
Ajax::start_container($this->get_content_div(), 'browse_content');
if ($this->get_show_header()) {
if (isset($box_req) && isset($box_title)) {
UI::show_box_top($box_title, $class);
}
}
if (isset($box_req)) {
require $box_req;
}
if ($this->get_show_header()) {
if (isset($box_req)) {
UI::show_box_bottom();
}
echo '<script type="text/javascript">';
echo Ajax::action('?page=browse&action=get_filters&browse_id=' . $this->id . $argument_param, '');
echo ';</script>';
} else {
if (!$this->get_use_pages()) {
$this->show_next_link($argument);
}
}
Ajax::end_container();
}
示例5: T_
<?php
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
* Copyright 2001 - 2014 Ampache.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
UI::show_box_top(T_('Starting New Song Search'), 'box box_adds_catalog');
/* HINT: Catalog Name */
printf(T_('Starting New Song Search on %s catalog'), "<strong>[ {$this->name} ]</strong>");
echo "<br />\n";
echo T_('Found') . ': <span id="add_count_' . $this->id . '">' . T_('None') . '</span><br />';
echo T_('Reading') . ':<span id="add_dir_' . $this->id . '"></span><br />';
UI::show_box_bottom();
示例6: T_
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
$link = AmpConfig::get('use_rss') ? ' ' . Ampache_RSS::get_display('recently_played') : '';
UI::show_box_top(T_('Recently Played') . $link, 'box box_recently_played');
?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<thead>
<tr class="th-top">
<th class="cel_play"></th>
<th class="cel_song"><?php
echo T_('Song');
?>
</th>
<th class="cel_add"></th>
<th class="cel_album"><?php
echo T_('Album');
?>
</th>
<th class="cel_artist"><?php
示例7: scrub_out
$web_path = AmpConfig::get('web_path');
$album->allow_group_disks = true;
// Title for this album
$title = scrub_out($album->name) . ' (' . $album->year . ')';
$title .= ' - ' . ($album->f_album_artist_link ? $album->f_album_artist_link : $album->f_artist_link);
$show_direct_play_cfg = AmpConfig::get('directplay');
$show_playlist_add = Access::check('interface', '25');
$show_direct_play = $show_direct_play_cfg;
$directplay_limit = AmpConfig::get('direct_play_limit');
if ($directplay_limit > 0) {
$show_playlist_add = $album->song_count <= $directplay_limit;
if ($show_direct_play) {
$show_direct_play = $show_playlist_add;
}
}
UI::show_box_top($title, 'info-box');
?>
<div class="item_right_info">
<div class="external_links">
<a href="http://www.google.com/search?q=%22<?php
echo rawurlencode($album->f_artist);
?>
%22+%22<?php
echo rawurlencode($album->f_name);
?>
%22" target="_blank"><?php
echo UI::get_icon('google', T_('Search on Google ...'));
?>
</a>
<a href="http://en.wikipedia.org/wiki/Special:Search?search=%22<?php
echo rawurlencode($album->f_name);
示例8: T_
<?php
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
* Copyright 2001 - 2015 Ampache.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
UI::show_box_top(T_('Verify Catalog'), 'box box_verify_catalog');
/* HINT: Catalog Name */
printf(T_('Updating the %s catalog'), "<strong>[ {$this->name} ]</strong>");
echo "<br />\n\n";
echo T_('Verified') . ': <span id="verify_count_' . $this->id . '">' . $catalog_verify_found . '</span><br />';
echo T_('Reading') . ': <span id="verify_dir_' . $this->id . '">' . $catalog_verify_directory . '</span>';
UI::show_box_bottom();
示例9: Browse
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
$web_path = AmpConfig::get('web_path');
$browse = new Browse();
$browse->set_type($object_type);
UI::show_box_top($season->f_name . ' - ' . $season->f_tvshow_link, 'info-box');
?>
<div class="item_right_info">
<?php
Art::display('tvshow_season', $season->id, $season->f_name, 6);
?>
</div>
<?php
if (User::is_registered()) {
?>
<?php
if (AmpConfig::get('ratings')) {
?>
<div id="rating_<?php
echo intval($season->id);
?>
示例10: T_
* Copyright 2001 - 2015 Ampache.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
UI::show_box_top(T_('Add Access Control List'), 'box box_add_access');
Error::display('general');
?>
<form name="update_access" method="post" enctype="multipart/form-data" action="<?php
echo AmpConfig::get('web_path');
?>
/admin/access.php?action=add_host">
<table class="option-tabledata" cellpadding="5" cellspacing="0">
<tr>
<td><?php
echo T_('Name');
?>
:</td>
<td colspan="3">
<input type="text" name="name" value="<?php
echo scrub_out($_REQUEST['name']);
示例11: array
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
?>
<div>
<?php
$objects = Stats::get_top('album');
$headers = array('f_link' => T_('Most Popular Albums'));
UI::show_box_top('', 'info-box box_popular_albums');
require AmpConfig::get('prefix') . UI::find_template('show_objects.inc.php');
UI::show_box_bottom();
$objects = Stats::get_top('artist');
$headers = array('f_link' => T_('Most Popular Artists'));
UI::show_box_top('', 'info-box box_popular_artists');
require AmpConfig::get('prefix') . UI::find_template('show_objects.inc.php');
UI::show_box_bottom();
if (AmpConfig::get('allow_video')) {
$objects = Stats::get_top('video');
$headers = array('f_link' => T_('Most Popular Videos'));
UI::show_box_top('', 'info-box box_popular_videos');
require AmpConfig::get('prefix') . UI::find_template('show_objects.inc.php');
UI::show_box_bottom();
}
?>
</div>
示例12: T_
<?php
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU Affero General Public License, version 3 (AGPLv3)
* Copyright 2001 - 2015 Ampache.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
UI::show_box_top(T_('Art Search'), 'box box_gather_art');
echo "<strong>" . T_('Starting Art Search') . ". . .</strong><br />\n";
echo T_('Searched') . ": <span id=\"count_art_" . $catalog_id . "\">" . T_('None') . "</span><br />";
echo T_('Reading') . ":<span id=\"read_art_{$catalog_id}\"></span><br />";
echo "<br />\n";
UI::show_box_bottom();
示例13: strtolower
$logic_operator = strtolower($logic_operator);
?>
<script type="text/javascript" src="<?php
echo AmpConfig::get('web_path');
?>
/lib/javascript/search.js"></script>
<script type="text/javascript" src="<?php
echo AmpConfig::get('web_path');
?>
/lib/javascript/search-data.php?type=<?php
echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song';
?>
"></script>
<?php
UI::show_box_top(T_('Rules') . "...", 'box box_rules');
?>
<table class="tabledata" cellpadding="3" cellspacing="0">
<tbody id="searchtable">
<tr id="rules_operator">
<td><?php
echo T_('Match');
?>
</td>
<td>
<select name="operator">
<option value="and" <?php
if ($logic_operator == 'and') {
echo 'selected="selected"';
}
?>
示例14: T_
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
UI::show_box_top(T_('Adding a New User'), 'box box_add_user');
Error::display('general');
?>
<form name="add_user" enctype="multpart/form-data" method="post" action="<?php
echo AmpConfig::get('web_path') . "/admin/users.php?action=add_user";
?>
">
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
echo T_('Username');
?>
: *
</td>
<td>
示例15: T_
<ul id="tabs">
<li class="tab_active"><a href="#artists"><?php
echo T_('Artists');
?>
</a></li>
<li><a id="songs_link" href="#songs"><?php
echo T_('Songs');
?>
</a></li>
</ul>
</div>
<div id="tabs_content">
<div id="artists" class="tab_content" style="display: block;">
<?php
$browse->show_objects($object_ids, true);
$browse->store();
?>
</div>
<?php
echo Ajax::observe('songs_link', 'click', Ajax::action('?page=index&action=songs&label=' . $label->id, 'songs'));
?>
<div id="songs" class="tab_content">
<?php
UI::show_box_top(T_('Songs'), 'info-box');
echo T_('Loading...');
UI::show_box_bottom();
?>
</div>
</div>
</div>