本文整理汇总了PHP中template_button_strip函数的典型用法代码示例。如果您正苦于以下问题:PHP template_button_strip函数的具体用法?PHP template_button_strip怎么用?PHP template_button_strip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了template_button_strip函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: template_assign
/**
* Displays the list of possible users a ticket can have assigned.
*
* Will have been populated by shd_assign() in SimpleDesk-Assign.php, adding into $context['member_list'].
*
* This allows users to assign tickets to other users, or themselves, or to unassign a previously assigned ticket. Future versions will
* likely add further options here.
*
* @see shd_assign()
* @since 1.0
*/
function template_assign()
{
global $context, $txt, $scripturl, $settings;
if (empty($context['shd_return_to'])) {
$context['shd_return_to'] = 'ticket';
}
// Back to the helpdesk.
echo '
<div class="floatleft">
', template_button_strip(array($context['navigation']['back']), 'bottom'), '
</div><br class="clear" /><br />';
echo '
<div class="cat_bar grid_header">
<h3 class="catbg">
<img src="', $settings['default_images_url'], '/simpledesk/assign.png" alt="*" />
', $txt['shd_ticket_assign_ticket'], '
</h3>
</div>
<div class="roundframe">
<form action="', $scripturl, '?action=helpdesk;sa=assign2;ticket=', $context['ticket_id'], '" method="post" onsubmit="submitonce(this);">
<div class="content">
<dl class="settings">
<dt>
<strong>', $txt['shd_ticket_assignedto'], ':</strong>
</dt>
<dd>
', $context['member_list'][$context['ticket_assigned']], '
</dd>
<dt>
<strong>', $txt['shd_ticket_assign_to'], ':</strong>
</dt>
<dd>
<select name="to_user">';
foreach ($context['member_list'] as $id => $name) {
echo '
<option value="', $id, '"', $id == $context['ticket_assigned'] ? ' selected="selected"' : '', '>', $name, '</option>';
}
echo '
</select>
</dd>
<dt>
<input type="submit" name="cancel" value="', $context['shd_return_to'] == 'home' ? $txt['shd_cancel_home'] : $txt['shd_cancel_ticket'], '" accesskey="c" class="button_submit" />
</dt>
<dd>
<input type="submit" value="', $txt['shd_ticket_assign_ticket'], '" onclick="return submitThisOnce(this);" accesskey="s" class="button_submit" />
</dd>
</dl>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />';
if ($context['shd_return_to'] == 'home') {
echo '
<input type="hidden" name="home" value="1" />';
}
echo '
</div>
</form>
</div>
<span class="lowerframe"><span></span></span>';
}
开发者ID:jdarwood007,项目名称:SimpleDesk,代码行数:69,代码来源:SimpleDesk-Assign.template.php
示例2: template_shd_frontpage
/**
* Display the replacement front page.
*
* @since 2.0
*/
function template_shd_frontpage()
{
global $context, $txt, $settings, $scripturl;
echo '
<div class="modbuttons clearfix margintop">';
template_button_strip($context['navigation'], 'bottom');
echo '
</div>
<div id="admin_content">
', $context['shdp_frontpage_content'], '
</div>';
}
开发者ID:jdarwood007,项目名称:SimpleDesk,代码行数:17,代码来源:SDPluginFrontPage.template.php
示例3: template_arcade_arena_matches
/**
* SMF Arcade
*
* @package SMF Arcade
* @version 2.6 Alpha
* @license http://download.smfarcade.info/license.php New-BSD
*/
function template_arcade_arena_matches()
{
global $scripturl, $txt, $context, $settings, $user_info, $modSettings;
$buttons = array();
if ($context['arcade']['can_create_match']) {
$buttons['newMatch'] = array('text' => 'arcade_newMatch', 'image' => 'arcade_newmatch.gif', 'url' => $scripturl . '?action=arcade;sa=newMatch', 'lang' => true);
}
echo '
<div class="pagesection">
<div class="align_left">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><b>' . $txt['go_down'] . '</b></a>' : '', '</div>
', template_button_strip($buttons, 'right'), '
</div>
<div class="game_table">
<table cellspacing="0" class="table_grid">
<thead>
<tr class="catbg">';
if (!empty($context['matches'])) {
echo '
<th scope="col" class="first_th"></th>
<th scope="col">', $txt['match_name'], '</th>
<th scope="col">', $txt['match_status'], '</th>
<th scope="col">', $txt['match_players'], '</th>
<th scope="col" class="smallext last_th">', $txt['match_round'], '</th>';
} else {
echo '
<th scope="col" class="first_th" width="8%"> </th>
<th class="smalltext" colspan="2"><strong>', $txt['arcade_no_matches'], '</strong></th>
<th scope="col" class="last_th" width="8%"> </th>';
}
echo '
</tr>
</thead>
<tbody>';
foreach ($context['matches'] as $match) {
echo '
<tr class="windowbg">
<td></td>
<td class="windowbg2">', $match['link'], '<br >', $match['starter']['link'], '</td>
<td>', $txt[$match['status']], '</td>
<td>', $match['players'], ' / ', $match['players_limit'], '</td>
<td>', $match['round'], ' / ', $match['rounds'], '</td>
</tr>';
}
echo '
</tbody>
</table>
</div>
<div class="pagesection">
<div class="align_left">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><b>' . $txt['go_up'] . '</b></a>' : '', '</div>
', template_button_strip($buttons, 'right'), '
</div>';
}
开发者ID:nikop,项目名称:SMF-Arcade,代码行数:59,代码来源:ArcadeArena.template.php
示例4: template_main
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<div id="calendar">
<div id="month_grid">
', template_show_month_grid('prev'), '
', template_show_month_grid('current'), '
', template_show_month_grid('next'), '
</div>
<div id="main_grid" style="', $context['browser']['is_ie'] && !$context['browser']['is_ie8'] ? 'float: ' . ($context['right_to_left'] ? 'right; padding-right' : 'left; padding-left') . ': 20px;' : 'margin-' . ($context['right_to_left'] ? 'right' : 'left') . ': 220px; ', '">
', $context['view_week'] ? template_show_week_grid('main') : template_show_month_grid('main');
// Build the calendar button array.
$calendar_buttons = array('post_event' => array('test' => 'can_post', 'text' => 'calendar_post_event', 'image' => 'calendarpe.gif', 'lang' => true, 'url' => $scripturl . '?action=calendar;sa=post;month=' . $context['current_month'] . ';year=' . $context['current_year'] . ';' . $context['session_var'] . '=' . $context['session_id']));
template_button_strip($calendar_buttons, 'right');
// Show some controls to allow easy calendar navigation.
echo '
<form id="calendar_navigation" action="', $scripturl, '?action=calendar" method="post" accept-charset="', $context['character_set'], '">
<select name="month">';
// Show a select box with all the months.
foreach ($txt['months'] as $number => $month) {
echo '
<option value="', $number, '"', $number == $context['current_month'] ? ' selected="selected"' : '', '>', $month, '</option>';
}
echo '
</select>
<select name="year">';
// Show a link for every year.....
for ($year = $modSettings['cal_minyear']; $year <= $modSettings['cal_maxyear']; $year++) {
echo '
<option value="', $year, '"', $year == $context['current_year'] ? ' selected="selected"' : '', '>', $year, '</option>';
}
echo '
</select>
<input type="submit" class="button_submit" value="', $txt['view'], '" />';
echo '
</form>
<br class="clear" />
</div>
</div>';
}
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:41,代码来源:Calendar.template.php
示例5: template_ticket_post
/**
* Entry point for displaying the post new ticket/edit ticket UI.
*
* @since 1.0
*/
function template_ticket_post()
{
global $context;
// Back to the helpdesk.
echo '
<div class="floatleft">
', template_button_strip(array($context['navigation']['back']), 'bottom'), '
</div><br class="clear" /><br />';
template_preview();
template_ticket_info();
template_ticket_subjectbox();
template_ticket_meta();
template_ticket_postbox();
template_ticket_footer();
if (!empty($context['ticket_form']['do_replies'])) {
template_ticket_begin_replies();
template_ticket_do_replies();
template_ticket_end_replies();
}
template_ticket_pageend();
template_ticket_proxy_js();
}
开发者ID:wintstar,项目名称:Testing,代码行数:27,代码来源:SimpleDesk-Post.template.php
示例6: template_show_calendar
/**
* The main calendar - January, for example.
*/
function template_show_calendar()
{
global $context, $txt, $scripturl, $modSettings;
echo '
<div id="calendar">
<div id="month_grid">
', template_show_month_grid('prev'), '
', template_show_month_grid('current'), '
', template_show_month_grid('next'), '
</div>
<div id="main_grid">
', $context['view_week'] ? template_show_week_grid('main') : template_show_month_grid('main');
// Show some controls to allow easy calendar navigation.
echo '
<form id="calendar_navigation" action="', $scripturl, '?action=calendar" method="post" accept-charset="UTF-8">';
template_button_strip($context['calendar_buttons'], 'right');
echo '
<select name="month">';
// Show a select box with all the months.
foreach ($txt['months'] as $number => $month) {
echo '
<option value="', $number, '"', $number == $context['current_month'] ? ' selected="selected"' : '', '>', $month, '</option>';
}
echo '
</select>
<select name="year">';
// Show a link for every year.....
for ($year = $modSettings['cal_minyear']; $year <= $modSettings['cal_maxyear']; $year++) {
echo '
<option value="', $year, '"', $year == $context['current_year'] ? ' selected="selected"' : '', '>', $year, '</option>';
}
echo '
</select>
<input type="submit" class="button_submit" value="', $txt['view'], '" />
</form>
</div>
</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:41,代码来源:Calendar.template.php
示例7: template_search
function template_search()
{
global $context, $settings, $options, $scripturl, $txt;
// Build the memberlist button array.
$memberlist_buttons = array('view_all_members' => array('text' => 'view_all_members', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=all'), 'mlist_search' => array('text' => 'mlist_search', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=search', 'active' => true));
// Start the submission form for the search!
echo '
<form action="', $scripturl, '?action=mlist;sa=search" method="post" accept-charset="', $context['character_set'], '">
<div id="memberlist">
<div class="pagesection">
', template_button_strip($memberlist_buttons, ''), '
</div>
<div class="catbg clear">
<h3>
', $txt['mlist_search'], '
</h3>
</div>';
// Display the input boxes for the form.
echo ' <div id="memberlist_search" class="clear">
<div style="overflow: hidden;">
<div id="mlist_search" class="themepadding">
<div id="search_term_input" class="bwgrid">
<div class="bwcell2"><strong>', $txt['search_for'], ':</strong></div>
<div class="bwcell10"><input type="text" name="search" value="', $context['old_search'], '"class="fullwidth input_text" /></div>
<div class="bwcell4"><input type="submit" name="submit" value="' . $txt['search'] . '" style="margin: 1rem 0;" class="button_submit" /></div>
</div><br>
<div class="bwgrid">';
$count = 0;
foreach ($context['search_fields'] as $id => $title) {
echo '
<span class="bwcell33">
<label for="fields-', $id, '"><input type="checkbox" name="fields[]" id="fields-', $id, '" value="', $id, '" ', in_array($id, $context['search_defaults']) ? 'checked="checked"' : '', ' class="input_check" /> ', $title, '</label><br />
</span>';
}
echo '
</div><br class="clear" />
</div>
</div>
</div>
</div>
</form>';
}
开发者ID:Bloc67,项目名称:ShelfLife,代码行数:42,代码来源:Memberlist.template.php
示例8: template_replies
function template_replies()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td>', theme_linktree(), '</td>
</tr>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="middletext" valign="middle">' . $txt[139] . ': ' . $context['page_index'] . '</td>';
if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read'])) {
$mark_read = array('markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';sesc=' . $context['session_id']));
echo '
<td align="right" style="padding-right: 1ex;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($mark_read, 'bottom'), '
</tr>
</table>
</td>';
}
echo '
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor">
<tr><td>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">';
if (!empty($context['topics'])) {
echo '
<td width="10%" colspan="2"> </td>
<td><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[70], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="14%"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[109], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="4%" align="center"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[110], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="4%" align="center"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="24%"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>';
} else {
echo '
<td width="100%" colspan="7">' . $txt[151] . '</td>';
}
echo '
</tr>';
foreach ($context['topics'] as $topic) {
// Seperate lock and sticky again?
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false) {
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
}
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false) {
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));
}
echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="6%">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" /></td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $topic['first_post']['icon_url'], '" alt="" align="middle" /></td>
<td class="windowbg', $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '3' : '', '" width="48%" valign="middle">
', $topic['is_locked'] && !empty($settings['seperate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" style="margin: 0;" />' : '', '
', $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', ' ', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a> <span class="smalltext">', $topic['pages'], '
', $txt['smf88'], ' ', $topic['board']['link'], '</span></td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['replies'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['views'], '</td>
<td class="windowbg2" valign="middle" width="22%">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a>
<span class="smalltext">
', $topic['last_post']['time'], '<br />
', $txt[525], ' ', $topic['last_post']['member']['link'], '
</span>
</td>
</tr>';
}
echo '
</table>
</td></tr>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="middletext" valign="middle">' . $txt[139] . ': ' . $context['page_index'] . '</td>';
if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read'])) {
echo '
<td align="right" style="padding-right: 1ex;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($mark_read, 'top'), '
</tr>
</table>
</td>';
}
echo '
</tr>
</table><br />
//.........这里部分代码省略.........
开发者ID:alencarmo,项目名称:OCF,代码行数:101,代码来源:Recent.template.php
示例9: template_main
//.........这里部分代码省略.........
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>
</tr>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . ($child['new'] ? '</a> <span class="new-post-in-child"><svg viewBox="0 0 32 32" ><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#IconNewPosts"></use></svg>' : '') . '</a>';
else
$child['link'] = '<a data-line="212" href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';
// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
$child['link'] .= ' <a data-line="216" href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > 0 ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';
$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
}
echo '
<tr id="board_', $board['id'], '_children">
<td colspan="3" class="children windowbg">
<strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '
</td>
</tr>';
}
}
echo '
</tbody>';
echo '
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
}
echo '
</table>
</div>';
if ($context['user']['is_logged'])
{
echo '
<div id="posting_icons">';
// Mark read button.
$mark_read_button = array(
'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;' . $context['session_var'] . '=' . $context['session_id']),
);
echo '
<ul class="icon_glossary">
<li>
<svg viewBox="0 0 32 32" alt="normal topic"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#NoStar"></use></svg>
<span>Board</span>
</li>
<li>
<svg viewBox="0 0 32 32" alt="normal topic"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#FullStar"></use></svg>
<span>has new posts</span>
</li>
<li>
<svg viewBox="0 0 32 32" alt="normal topic"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ChildStar"></use></svg>
<span>only in children</span>
</li>
<li>
<svg viewBox="0 0 32 32" alt="normal topic"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#IconNewPosts"></use></svg>
<span>new in this</span>
</li>
</ul>
</div>';
// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '<div class="mark_read">', template_button_strip($mark_read_button, 'right'), '</div>';
}
else
{
echo '
<div id="posting_icons" class="flow_hidden">
<span style="font-size:11px; color:#666;">More forums will be visible if you <a href="http://ballp.it/index.php?action=register">register</a>.</span>
</div>';
}
template_info_center();
}
开发者ID:AhoyLemon,项目名称:ballpit,代码行数:101,代码来源:BoardIndex.template.php
示例10: template_pages_and_buttons_below
/**
* Used to display items below the page, like page navigation
*/
function template_pages_and_buttons_below()
{
global $context, $txt;
// Show the page index... "Pages: [1]".
template_pagesection('normal_buttons', 'right');
// Show the lower breadcrumbs.
theme_linktree();
if (can_see_button_strip($context['mod_buttons'])) {
echo '
<i class="fa fa-2x fa-bars hamburger_30" data-id="moderationbuttons"></i>';
}
echo '
<div id="moderationbuttons" class="hide_30 hamburger_30_target">', template_button_strip($context['mod_buttons'], 'bottom', array('id' => 'moderationbuttons_strip')), '</div>';
// Show the jump-to box, or actually...let Javascript do it.
echo '
<div id="display_jump_to"> </div>
<script><!-- // --><![CDATA[
aJumpTo[aJumpTo.length] = new JumpTo({
sContainerId: "display_jump_to",
sJumpToTemplate: "<label class=\\"smalltext\\" for=\\"%select_id%\\">', $context['jump_to']['label'], ':<" + "/label> %dropdown_list%",
iCurBoardId: ', $context['current_board'], ',
iCurBoardChildLevel: ', $context['jump_to']['child_level'], ',
sCurBoardName: "', $context['jump_to']['board_name'], '",
sBoardChildLevelIndicator: " ",
sBoardPrefix: "', isBrowser('ie8') ? '» ' : '➤ ', '",
sCatClass: "jump_to_header",
sCatPrefix: "",
sGoButtonLabel: "', $txt['go'], '"
});
// ]]></script>';
// Tooltips for likes
echo '
<script><!-- // --><![CDATA[
$(".like_button, .unlike_button, .likes_button").SiteTooltip({hoverIntent: {sensitivity: 10, interval: 150, timeout: 50}});
// ]]></script>';
}
开发者ID:KeiroD,项目名称:Elkarte,代码行数:39,代码来源:Display.template.php
示例11: template_arcade_game_below
function template_arcade_game_below()
{
global $scripturl, $txt, $context, $settings;
echo '
<div class="pagesection">
<div class="pagelinks floatleft">';
if (isset($context['page_index'])) {
echo $txt['pages'], ': ', $context['page_index'];
}
if (!empty($modSettings['topbottomEnable'])) {
echo isset($context['page_index']) ? $context['menu_separator'] . ' <a href="#top"><b>' . $txt['go_up'] . '</b></a>' : '';
}
echo '</div>
', template_button_strip($context['arcade']['buttons'], 'right'), '
</div>
<div class="plainbox" id="arcadebox" style="display: none; position: fixed; left: 0px; top: 0px; width: 33%;">
<div id="arcadebox_html" style=""></div>
</div>';
}
开发者ID:nikop,项目名称:SMF-Arcade,代码行数:19,代码来源:ArcadeGame.template.php
示例12: template_movedept
/**
* Displays the list of possible users a ticket can have assigned.
*
* Will have been populated by shd_movedept() in SimpleDesk-MoveDept.php, adding into $context['dept_list'].
*
* @see shd_movedept()
* @since 2.0
*/
function template_movedept()
{
global $context, $txt, $scripturl, $settings;
if (empty($context['shd_return_to'])) {
$context['shd_return_to'] = 'ticket';
}
// Back to the helpdesk.
echo '
<div class="floatleft">
', template_button_strip(array($context['navigation']['back']), 'bottom'), '
</div><br class="clear" /><br />';
echo '
<div class="cat_bar grid_header">
<h3 class="catbg">
<img src="', $settings['default_images_url'], '/simpledesk/movedept.png" alt="*" />
', $txt['shd_ticket_move_dept'], '
</h3>
</div>
<div class="roundframe">
<form action="', $scripturl, '?action=helpdesk;sa=movedept2;ticket=', $context['ticket_id'], '" method="post" onsubmit="submitonce(this);">
<div class="content">
<dl class="settings">
<dt>
<strong>', $txt['shd_current_dept'], ':</strong>
</dt>
<dd>
<a href="', $scripturl, '?', $context['shd_home'], ';dept=', $context['current_dept'], '">', $context['current_dept_name'], '</a>
</dd>
<dt>
<strong>', $txt['shd_ticket_move_to'], ':</strong>
<div class="smalltext">', $context['visible_move_dept'], '</div>
</dt>
<dd>
<select name="to_dept">';
foreach ($context['dept_list'] as $id => $name) {
echo '
<option value="', $id, '"', $id == $context['current_dept'] ? ' selected="selected"' : '', '>', $name, '</option>';
}
echo '
</select>
</dd>
</dl>
<dl class="settings">
<dt>
<strong>', $txt['shd_move_send_pm'], ':</strong>
</dt>
<dd>
<input type="checkbox" name="send_pm" id="send_pm" checked="checked" onclick="document.getElementById(\'pm_message\').style.display = this.checked ? \'block\' : \'none\';" class="input_check" />
</dd>
</dl>
<fieldset id="pm_message">
<dl class="settings">
<dt>
', $txt['shd_move_why'], '
</dt>
<dd>
<textarea name="pm_content" rows="9" cols="70">', $txt['shd_move_dept_default'], '</textarea>
</dd>
</dl>
</fieldset>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />';
if ($context['shd_return_to'] == 'home') {
echo '
<input type="hidden" name="home" value="1" />';
}
echo '
<input type="submit" name="cancel" value="', $context['shd_return_to'] == 'home' ? $txt['shd_cancel_home'] : $txt['shd_cancel_ticket'], '" accesskey="c" class="button_submit" />
<input type="submit" value="', $txt['shd_ticket_move'], '" onclick="return submitThisOnce(this);" accesskey="s" class="button_submit" />
</div>
</form>
</div>
<span class="lowerframe"><span></span></span>';
}
开发者ID:jdarwood007,项目名称:SimpleDesk,代码行数:81,代码来源:SimpleDesk-MoveDept.template.php
示例13: template_replies
function template_replies()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
$showCheckboxes = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read'];
if ($showCheckboxes) {
echo '
<div id="recent">
<form action="', $scripturl, '?action=quickmod" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;">
<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
<input type="hidden" name="qaction" value="markread" />
<input type="hidden" name="redirect_url" value="action=unreadreplies', !empty($context['showing_all_topics']) ? ';all' : '', $context['querystring_board_limits'], '" />';
}
if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read'])) {
// Generate the button strip.
$mark_read = array('markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';' . $context['session_var'] . '=' . $context['session_id']));
if ($showCheckboxes) {
$mark_read['markselectread'] = array('text' => 'quick_mod_markread', 'image' => 'markselectedread.gif', 'lang' => true, 'url' => 'javascript:document.quickModForm.submit();');
}
}
if (!empty($settings['use_tabs'])) {
echo '
<div id="readbuttons_top" class="readbuttons clearfix margintop">
<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], '</div>';
if (!empty($mark_read)) {
template_button_strip($mark_read, 'bottom');
}
echo '
</div>';
}
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor">
<tr><td>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">';
if (!empty($context['topics'])) {
echo '
<td width="10%" colspan="2"> </td>
<td><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="14%"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="4%" align="center"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="4%" align="center"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="24%"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>';
if ($showCheckboxes) {
echo '
<td>
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="input_check" />
</td>';
}
} else {
echo '
<td width="100%" colspan="7">' . $txt['msg_alert_none'] . '</td>';
}
echo '
</tr>';
foreach ($context['topics'] as $topic) {
// separate lock and sticky again?
if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false) {
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
}
if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'locked') !== false) {
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));
}
echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="6%">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" /></td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $topic['first_post']['icon_url'], '" alt="" align="middle" /></td>
<td class="windowbg', $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '', '" width="48%" valign="middle">
', $topic['is_locked'] && !empty($settings['separate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" style="margin: 0;" />' : '', '
', $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', ' ', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a> <span class="smalltext">', $topic['pages'], '
', $txt['in'], ' ', $topic['board']['link'], '</span></td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['replies'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['views'], '</td>
<td class="windowbg2" valign="middle" width="22%">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" style="float: right;" /></a>
<span class="smalltext">
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
</span>
</td>';
if ($showCheckboxes) {
echo '
<td class="windowbg2" valign="middle" align="center">
<input type="checkbox" name="topics[]" value="', $topic['id'], '" class="input_check" />
</td>';
}
echo '
</tr>';
}
if (empty($settings['use_tabs']) && !empty($mark_read)) {
echo '
<tr>
<td class="catbg" colspan="', $showCheckboxes ? '8' : '7', '" align="right">
<table><tr><td>
', template_button_strip($mark_read, 'top'), '
//.........这里部分代码省略.........
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:101,代码来源:Recent.template.php
示例14: template_adk_view_file
function template_adk_view_file()
{
global $context, $txt, $scripturl, $modSettings, $user_info, $boardurl, $settings, $adkFolder, $adkportal;
$width_ = 100;
if ($context['adkDownloadInformation']['approved'] == 0) {
echo '
<div class="eds_cat_bar" style="background: ' . $adkportal['Designeds']['borde'] . ';">
<h3 class="eds_catbg" style="padding-top: 3px; background: ' . $adkportal['Designeds']['borde'] . '; color: ' . $adkportal['Designeds']['titulo'] . ';">
</h3>
</div>
<div class="eds_down_profile approvebg" style="min-height: 65px; color: ' . $adkportal['Designeds']['letra'] . '; border-color: ' . $adkportal['Designeds']['borde'] . ';">
<div class=&
|
请发表评论