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


PHP template_button_strip函数代码示例

本文整理汇总了PHP中template_button_strip函数的典型用法代码示例。如果您正苦于以下问题:PHP template_button_strip函数的具体用法?PHP template_button_strip怎么用?PHP template_button_strip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了template_button_strip函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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'] . '&nbsp;&nbsp;<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%">&nbsp;</th>
					<th class="smalltext" colspan="2"><strong>', $txt['arcade_no_matches'], '</strong></th>
					<th scope="col" class="last_th" width="8%">&nbsp;</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'] . '&nbsp;&nbsp;<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" />&nbsp; ', $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">&nbsp;</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">&nbsp;</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: "&#8195;",
					sBoardPrefix: "', isBrowser('ie8') ? '&#187; ' : '&#10148; ', '",
					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'] . '&nbsp;&nbsp;<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">&nbsp;</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'] . ';">
				&nbsp;
			</h3>
		</div>
		<div class="eds_down_profile approvebg" style="min-height: 65px; color: ' . $adkportal['Designeds']['letra'] . '; border-color: ' . $adkportal['Designeds']['borde'] . ';">
			<div class="eds_disable_post">
				<strong>' . $txt['adkdown_unnapproved_down'] . '</strong> 
			</div>
		</div>
		<div class="eds_botbar" style="background: ' . $adkportal['Designeds']['borde'] . ';">
			<span style="background: ' . $adkportal['Designeds']['borde'] . ';">&nbsp;</span>
		</div>';
    }
    if ($context['adkDownloadInformation']['approved'] == 1) {
        $newtxt = $scripturl . '?action=downloads;sa=unapprovedownload;id=' . $context['adkDownloadInformation']['id_file'] . ';sesc=' . $context['session_id'];
        $newtxt_2 = 'adkdown_unapprove';
    } else {
        $newtxt = $scripturl . '?action=downloads;sa=approvedownload;id=' . $context['adkDownloadInformation']['id_file'] . ';sesc=' . $context['session_id'];
        $newtxt_2 = 'adkdown_approve';
    }
    if (allowedTo('adk_downloads_manage') || $user_info['id'] == $context['adkDownloadInformation']['id_member']) {
        $context['you_can_edit_and_download'] = true;
    }
    if (allowedTo('adk_downloads_manage')) {
        $context['adk_downloads_manage'] = true;
    }
    if (!empty($context['adkDownloadInformation']['id_topic']) && $context['adkDownloadInformation']['id_board'] != $modSettings['recycle_board'] && $context['adkDownloadInformation']['topic_exists']) {
        $context['view_topic_you_can'] = true;
    }
    $menu_buttons = array('view_topic' => array('test' => 'view_topic_you_can', 'text' => 'adkdown_comment', 'image' => '', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['adkDownloadInformation']['id_topic'] . '.0', 'active' => true), 'edit' => array('test' => 'you_can_edit_and_download', 'text' => 'adkdown_edit', 'image' => '', 'lang' => true, 'url' => $scripturl . '?action=downloads;sa=editdownload;id=' . $context['adkDownloadInformation']['id_file'] . ';sesc=' . $context['session_id']), 'delete' => array('test' => 'you_can_edit_and_download', 'text' => 'adkdown_delete', 'image' => '', 'lang' => true, 'url' => $scripturl . '?action=downloads;sa=deletedownload;id=' . $context['adkDownloadInformation']['id_file'] . ';sesc=' . $context['session_id'], 'custom' => 'onclick="return confirm(\'' . $txt['adkdown_remove_message'] . '\');"'), 'approve' => array('test' => 'adk_downloads_manage', 'text' => $newtxt_2, 'image' => '', 'lang' => true, 'url' => $newtxt));
    echo '
	<div class="pagesection">
		', template_button_strip($menu_buttons, 'right'), '
	</div>';
    $att = str_replace('<a', '<a style="color: ' . $adkportal['Designeds']['link'] . ';"', $context['load_attachments']);
    echo '
		<table style="width: 100%;">
			<tr>
				<td>
					<div class="eds_cat_bar" style="background: ' . $adkportal['Designeds']['borde'] . ';">
						<h3 class="eds_catbg" style="background: ' . $adkportal['Designeds']['borde'] . '; color: ' . $adkportal['Designeds']['titulo'] . ';">
							<img src="' . $adkFolder['images'] . '/page_white_copy.png" style="vertical-align: text-bottom;" alt="" />&nbsp;' . $context['adkDownloadInformation']['file_title'] . '
							<span class="eds_author">', $txt['adkdown_author_info'], '</span>
						</h3>
					</div>
				</td>
			</tr>
		</table>
		<table style="width: 100%;">
			<tr>
				<td valign="top">
					<div class="eds_desc" style="border-color: ' . $adkportal['Designeds']['borde'] . '; background: ' . $adkportal['Designeds']['fondo'] . '; color: ' . $adkportal['Designeds']['letra'] . ';">
						<div class="eds_content">
							', !empty($context['adkDownloadInformation']['image']) ? '<div style="float: right;"><img src="' . $context['adkDownloadInformation']['image'] . '" alt="" /></div>' : '', '
							' . $context['adkDownloadInformation']['description'] . '
						</div>
						<div class="eds_files">
							<strong class="eds_title_attachments" style="color: ' . $adkportal['Designeds']['link'] . ';">' . $txt['adkdown_attach'] . ':</strong>
							<div class="eds_attachments smalltext" style="border-color: ' . $adkportal['Designeds']['borde'] . '; background-color: ' . $adkportal['Designeds']['att'] . '; color: ' . $adkportal['Designeds']['letra'] . ';">
								<div style="overflow: ', $context['browser']['is_firefox'] ? 'visible' : 'auto', ';">
									', implode('<br />', $att), '
								</div>
							</div>
						</div>
					</div>
					<div class="eds_botbar" style="background: ' . $adkportal['Designeds']['borde'] . ';">
						<span style="background: ' . $adkportal['Designeds']['borde'] . ';">&nbsp;</span>
					</div>
				</td>
				<td valign="top" style="width: 240px;">
					<div class="eds_autor" style="border-color: ' . $adkportal['Designeds']['borde'] . '; color: ' . $adkportal['Designeds']['letra'] . '; background: ' . $adkportal['Designeds']['fondo'] . ';">';
    // Show avatars, images, etc.?
    if (!empty($settings['show_user_images'])) {
        echo '<div style="float: right;">
								' . (!empty($context['member']['avatar']['image']) ? $context['member']['avatar']['image'] : '<img src="" alt="" border="0" />') . '</div>';
    }
    echo '
						<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/user_suit.png" />&nbsp;
						<a style="color: ' . $adkportal['Designeds']['link'] . ';" href="' . $scripturl . '?action=profile;u=' . $context['member']['id'] . '">
							<strong>' . $context['member']['name'] . '</strong>
						</a><br />';
    // Show the member's primary group (like 'Administrator') if they have one.
    if (isset($context['member']['group']) && $context['member']['group'] != '') {
        echo '
								<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/users.png" />&nbsp;' . $context['member']['group'] . '<br />';
    }
    // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
    if ((empty($settings['hide_post_group']) || $context['member']['group'] == '') && $context['member']['post_group'] != '') {
        echo '
								<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/users.png" />&nbsp;' . $context['member']['post_group'] . '<br />';
    }
    echo '
								&nbsp;&nbsp;&nbsp;&nbsp;' . $context['member']['group_stars'] . '<br />';
//.........这里部分代码省略.........
开发者ID:lucasruroken,项目名称:adkportal,代码行数:101,代码来源:Adk-Downloads.template.php

示例15: template_main

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */
function template_main()
{
    global $context, $settings, $options, $txt, $scripturl, $modSettings;
    // Let them know, if their report was a success!
    if ($context['report_sent']) {
        echo '
<div class="windowbg" id="profile_success">
	', $txt['report_sent'], '
</div>';
    }
    // Show the anchor for the top and for the first message. If the first message is new, say so.
    echo '
<a id="top"></a>
<a id="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a id="new"></a>' : '';
    // Is this topic also a poll?
    if ($context['is_poll']) {
        echo '
<div class="tborder marginbottom" id="poll">
	<h3 class="titlebg">
		<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['poll'], '
	</h3>
	<h4 class="windowbg headerpadding" id="pollquestion">
		', $context['poll']['question'], '
	</h4>
	<div class="windowbg clearfix" id="poll_options">';
        // Are they not allowed to vote but allowed to view the options?
        if ($context['poll']['show_results'] || !$context['allow_vote']) {
            echo '
		<dl class="options">';
            // Show each option with its corresponding percentage bar.
            foreach ($context['poll']['options'] as $option) {
                echo '
			<dt class="middletext', $option['voted_this'] ? ' voted' : '', '">', $option['option'], '</dt>
			<dd class="middletext">', $context['allow_poll_view'] ? $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)' : '', '</dd>';
            }
            echo '
		</dl>';
            if ($context['allow_poll_view']) {
                echo '
		<p><strong>', $txt['poll_total_voters'], ':</strong> ', $context['poll']['total_votes'], '</p>';
            }
        } else {
            echo '
		<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '">';
            // Show a warning if they are allowed more than one option.
            if ($context['poll']['allowed_warning']) {
                echo '
			<p class="smallpadding">', $context['poll']['allowed_warning'], '</p>';
            }
            echo '
			<ul class="reset options">';
            // Show each option with its button - a radio likely.
            foreach ($context['poll']['options'] as $option) {
                echo '
				<li class="middletext">', $option['vote_button'], ' <label for="', $option['id'], '">', $option['option'], '</label></li>';
            }
            echo '
			</ul>

			<div class="submitbutton', !empty($context['poll']['expire_time']) ? ' border' : '', '">
				<input type="submit" value="', $txt['poll_vote'], '" class="button_submit" />
				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
			</div>
		</form>';
        }
        // Is the clock ticking?
        if (!empty($context['poll']['expire_time'])) {
            echo '
		<p><strong>', $context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on'], ':</strong> ', $context['poll']['expire_time'], '</p>';
        }
        echo '
	</div>
</div>
<div id="pollmoderation" class="clearfix">';
        // Build the poll moderation button array.
        $poll_buttons = array('vote' => array('test' => 'allow_return_vote', 'text' => 'poll_return_vote', 'image' => 'poll_options.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start']), 'results' => array('test' => 'show_view_results_button', 'text' => 'poll_results', 'image' => 'poll_results.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start'] . ';viewresults'), 'change_vote' => array('test' => 'allow_change_vote', 'text' => 'poll_change_vote', 'image' => 'poll_change_vote.gif', 'lang' => true, 'url' => $scripturl . '?action=vote;topic=' . $context['current_topic'] . '.' . $context['start'] . ';poll=' . $context['poll']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']), 'lock' => array('test' => 'allow_lock_poll', 'text' => !$context['poll']['is_locked'] ? 'poll_lock' : 'poll_unlock', 'image' => 'poll_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lockvoting;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']), 'edit' => array('test' => 'allow_edit_poll', 'text' => 'poll_edit', 'image' => 'poll_edit.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;topic=' . $context['current_topic'] . '.' . $context['start']), 'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']));
        template_button_strip($poll_buttons);
        echo '
</div><br class="clear" />';
    }
    // Does this topic have some events linked to it?
    if (!empty($context['linked_calendar_events'])) {
        echo '
<div class="linked_events">
	<h3 class="titlebg headerpadding">', $txt['calendar_linked_events'], '</h3>
	<div class="content windowbg">
		<ul class="reset">';
        foreach ($context['linked_calendar_events'] as $event) {
            echo '
			<li>
//.........这里部分代码省略.........
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:101,代码来源:Display.template.php


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