• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP template_pagesection函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: template_shoutbox_all_default

/**
 * Template to display all of the shouts in a system
 */
function template_shoutbox_all_default()
{
    global $context, $txt;
    echo '
	<h3 class="category_header">
		', $context['SPortal']['shoutbox']['name'], '
	</h3>
	<div class="sp_content_padding">';
    template_pagesection();
    echo '
		<div class="shoutbox_body">
			<ul class="shoutbox_list_all" id="shouts">';
    if (!empty($context['SPortal']['shouts_history'])) {
        foreach ($context['SPortal']['shouts_history'] as $shout) {
            echo '
					', !$shout['is_me'] ? '<li class="smalltext"><strong>' . $shout['author']['link'] . ':</strong></li>' : '', '
				<li class="smalltext">', str_replace('ignored_shout', 'history_ignored_shout', $shout['text']), '</li>
				<li class="smalltext shoutbox_time">', $shout['delete_link'], $shout['time'], '</li>';
        }
    } else {
        echo '
				<li class="smalltext">', $txt['sp_shoutbox_no_shout'], '</li>';
    }
    echo '
			</ul>
		</div>';
    template_pagesection();
    echo '
	</div>';
}
开发者ID:emanuele45,项目名称:SimplePortal_ElkArte,代码行数:33,代码来源:PortalShoutbox.template.php


示例2: template_view_category

function template_view_category()
{
    global $context, $txt;
    echo '
	<div id="sp_view_category">
		<h3 class="category_header">
			', $context['page_title'], '
		</h3>';
    if (empty($context['articles'])) {
        echo '
		<div class="windowbg2">
			<div class="sp_content_padding">', $txt['error_sp_no_articles'], '</div>
		</div>';
    }
    foreach ($context['articles'] as $article) {
        echo '
		<div class="windowbg2">
			<div class="sp_content_padding">
				<div class="sp_article_detail">';
        if (!empty($article['author']['avatar']['image'])) {
            echo $article['author']['avatar']['image'];
        }
        echo '
					<span class="sp_article_latest">
						', sprintf(!empty($context['using_relative_time']) ? $txt['sp_posted_on_in_by'] : $txt['sp_posted_in_on_by'], $article['category']['link'], $article['date'], $article['author']['link']), '
						<br />
						', sprintf($article['views'] == 1 ? $txt['sp_viewed_time'] : $txt['sp_viewed_times'], $article['views']), ', ', sprintf($article['comments'] == 1 ? $txt['sp_commented_on_time'] : $txt['sp_commented_on_times'], $article['comments']), '
					</span>
					<h4>', $article['link'], '</h4>
				</div>
				<hr />
				<p>', $article['preview'], '<a href="', $article['href'], '">...</a></p>
				<div class="sp_article_extra">
					<a href="', $article['href'], '">', $txt['sp_read_more'], '</a> | <a href="', $article['href'], '#sp_view_comments">', $txt['sp_write_comment'], '</a>
				</div>
			</div>
		</div>';
    }
    echo '
	</div>';
    // Pages as well?
    if (!empty($context['page_index'])) {
        template_pagesection();
    }
    if (!empty($context['using_relative_time'])) {
        echo '
	<script><!-- // --><![CDATA[
		$(\'.sp_article_latest\').addClass(\'relative\');
	// ]]></script>';
    }
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:51,代码来源:PortalCategories.template.php


示例3: template_portal_index

/**
 * Used to display articles on the portal
 */
function template_portal_index()
{
    global $context, $txt;
    if (empty($context['articles'])) {
        return;
    }
    echo '
	<div id="sp_index" class="sp_article_block_container">';
    foreach ($context['articles'] as $article) {
        echo '
		<h3 class="category_header">
			', $article['link'], '
		</h3>
		<div class="sp_block_section">
			<div class="sp_content_padding">
 				<div class="sp_article_detail">';
        if (!empty($article['author']['avatar']['image'])) {
            echo $article['author']['avatar']['image'];
        }
        echo '
					<span>
						', sprintf($txt['sp_posted_in_on_by'], $article['category']['link'], $article['date'], $article['author']['link']);
        if (!empty($article['author']['avatar']['image'])) {
            echo '
						<br />';
        } else {
            echo '
					</span>
					<span class="floatright">';
        }
        echo '
						', sprintf($article['view_count'] == 1 ? $txt['sp_viewed_time'] : $txt['sp_viewed_times'], $article['view_count']), ', ', sprintf($article['comment_count'] == 1 ? $txt['sp_commented_on_time'] : $txt['sp_commented_on_times'], $article['comment_count']), '
					</span>
				</div>
				<hr />
				<p>', $article['preview'], '<a href="', $article['href'], '">...</a></p>
				<div class="sp_article_extra">
					<a href="', $article['href'], '">', $txt['sp_read_more'], '</a> | <a href="', $article['href'], '#sp_view_comments">', $txt['sp_write_comment'], '</a>
				</div>
			</div>
		</div>';
    }
    // Pages as well?
    if (!empty($context['article_page_index'])) {
        echo '
		<div class="sp_page_index">', template_pagesection(), '
		</div>';
    }
    echo '
	</div>';
}
开发者ID:emanuele45,项目名称:SimplePortal_ElkArte,代码行数:54,代码来源:Portal.template.php


示例4: template_mlsearch_below

/**
 * Shows the pagination
 */
function template_mlsearch_below()
{
    global $context, $scripturl, $txt;
    // Show the page numbers again. (makes 'em easier to find!)
    template_pagesection(false, false);
    echo '
	</div>';
}
开发者ID:Ralkage,项目名称:Elkarte,代码行数:11,代码来源:Memberlist.template.php


示例5: template_merge

/**
 * Template to allow merge of two topics.
 */
function template_merge()
{
    global $context, $txt, $scripturl, $settings;
    echo '
		<div id="merge_topics">
			<h2 class="category_header">', $txt['merge'], '</h2>
			<div class="information">
				', $txt['merge_desc'], '
			</div>
			<div class="windowbg">
				<div class="content">
					<dl class="settings merge_topic">
						<dt>
							<strong>', $txt['topic_to_merge'], ':</strong>
						</dt>
						<dd>
							', $context['origin_subject'], '
						</dd>';
    if (!empty($context['boards']) && count($context['boards']) > 1) {
        echo '
						<dt>
							<strong>', $txt['target_board'], ':</strong>
						</dt>
						<dd>
							<form action="' . $scripturl . '?action=mergetopics;from=', $context['origin_topic'] . ';targetboard=' . $context['target_board'], ';board=', $context['current_board'], '.0" method="post" accept-charset="UTF-8">
								<input type="hidden" name="from" value="' . $context['origin_topic'] . '" />
								<select name="targetboard" onchange="this.form.submit();">';
        foreach ($context['boards'] as $board) {
            echo '
									<option value="', $board['id'], '"', $board['id'] == $context['target_board'] ? ' selected="selected"' : '', '>', $board['category'], ' - ', $board['name'], '</option>';
        }
        echo '
								</select>
								<input type="submit" value="', $txt['go'], '" class="button_submit submitgo" />
							</form>
						</dd>';
    }
    echo '
					</dl>
					<hr />
					<dl class="settings merge_topic">
						<dt>
							<strong><label for="topics">', $txt['merge_to_topic_id'], '</label>: </strong>
						</dt>
						<dd>
							<form action="', $scripturl, '?action=mergetopics;sa=options" method="post" accept-charset="UTF-8">
								<input type="hidden" name="topics[]" value="', $context['origin_topic'], '" />
								<input type="text" id="topics" name="topics[]" class="input_text" />
								<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
								<input type="submit" value="', $txt['merge'], '" class="button_submit submitgo" />
							</form>
						</dd>';
    echo '
					</dl>
				</div>
			</div><br />
			<h3 class="category_header">', $txt['target_topic'], '</h3>
			', template_pagesection(), '
			<div class="windowbg2">
				<div class="content">
					<ul class="merge_topics">';
    foreach ($context['topics'] as $topic) {
        echo '
						<li>
							<a class="linkbutton" href="', $scripturl, '?action=mergetopics;sa=options;board=', $context['current_board'], '.0;from=', $context['origin_topic'], ';to=', $topic['id'], ';', $context['session_var'], '=', $context['session_id'], '">
								<img class="centericon" src="', $settings['images_url'], '/buttons/merge.png" alt="', $txt['merge'], '"  />
							</a>&nbsp;
							<a href="', $scripturl, '?topic=', $topic['id'], '.0" target="_blank" class="new_win">', $topic['subject'], '</a> ', sprintf($txt['topic_started_by'], $topic['poster']['link']), '
						</li>';
    }
    echo '
					</ul>
				</div>
			</div>', template_pagesection(), '
		</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:79,代码来源:MergeTopics.template.php


示例6: template_results

/**
 * Displays the search results page.
 */
function template_results()
{
    global $context, $settings, $options, $txt, $scripturl, $message;
    // Let them know if we ignored a word in the search
    if (!empty($context['search_ignored'])) {
        echo '
		<div id="search_results">
			<h3 class="category_header">
				', $txt['generic_warning'], '
			</h3>
			<p class="warningbox">', $txt['search_warning_ignored_word' . (count($context['search_ignored']) == 1 ? '' : 's')], ': ', implode(', ', $context['search_ignored']), '</p>
		</div>';
    }
    // Or perhaps they made a spelling error, lets give them a hint
    if (isset($context['did_you_mean']) || empty($context['topics'])) {
        echo '
			<div id="search_results">
				<h2 class="category_header">', $txt['search_adjust_query'], '</h2>
				<div class="roundframe">';
        // Did they make any typos or mistakes, perhaps?
        if (isset($context['did_you_mean'])) {
            echo '
					<p>', $txt['search_did_you_mean'], ' <a href="', $scripturl, '?action=search;sa=results;params=', $context['did_you_mean_params'], '">', $context['did_you_mean'], '</a>.</p>';
        }
        echo '
					<form action="', $scripturl, '?action=search;sa=results" method="post" accept-charset="UTF-8">
						<dl class="settings">
							<dt class="righttext">
								<label for="search"><strong>', $txt['search_for'], ':</strong></label>
							</dt>
							<dd>
								<input type="text" id="search" name="search" value="', $context['search_params']['search'], '" maxlength="', $context['search_string_limit'], '" size="40" class="input_text" />
							</dd>
						</dl>
						<div class="submitbutton" >
							<input type="submit" name="edit_search" value="', $txt['search_adjust_submit'], '" class="button_submit" />
							<input type="hidden" name="searchtype" value="', $context['search_params']['searchtype'], '" />
							<input type="hidden" name="userspec" value="', $context['search_params']['userspec'], '" />
							<input type="hidden" name="show_complete" value="', $context['search_params']['show_complete'], '" />
							<input type="hidden" name="subject_only" value="', $context['search_params']['subject_only'], '" />
							<input type="hidden" name="minage" value="', $context['search_params']['minage'], '" />
							<input type="hidden" name="maxage" value="', $context['search_params']['maxage'], '" />
							<input type="hidden" name="sort" value="', $context['search_params']['sort'], '" />
						</div>';
        if (!empty($context['search_params']['brd'])) {
            foreach ($context['search_params']['brd'] as $board_id) {
                echo '
						<input type="hidden" name="brd[', $board_id, ']" value="', $board_id, '" />';
            }
        }
        echo '
					</form>
				</div>
			</div>
			<br />';
    }
    // Quick moderation set to checkboxes? Oh, how fun :/.
    if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) {
        echo '
			<form action="', $scripturl, '?action=quickmod" method="post" accept-charset="UTF-8" name="topicForm" id="topicForm" class="search_results_posts', $context['compact'] ? ' compact_view' : '', '">';
    }
    echo '
				<h3 class="category_header hdicon cat_img_search">
					<span class="floatright">';
    if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) {
        echo '
						<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="input_check" />';
    }
    echo '
					</span>
					', $txt['mlist_search_results'], ':&nbsp;', $context['search_params']['search'], '
				</h3>';
    // Was anything even found?
    if (!empty($context['topics'])) {
        template_pagesection();
    } else {
        echo '
				<div class="roundframe">', $txt['find_no_results'], '</div>';
    }
    if ($context['compact']) {
        echo '
				<ul class="topic_listing compact_view search_results_posts">';
    } else {
        echo '
				<ul class="core_posts topic_listing search_results_posts">';
    }
    // While we have results to show ...
    $controller = $context['get_topics'][0];
    while ($topic = $controller->{$context['get_topics'][1]}()) {
        if ($context['compact']) {
            // We start with locked and sticky topics.
            if ($topic['is_sticky'] && $topic['is_locked']) {
                $color_class = 'locked_row sticky_row';
            } elseif ($topic['is_sticky']) {
                $color_class = 'sticky_row';
            } elseif ($topic['is_locked']) {
                $color_class = 'locked_row';
//.........这里部分代码省略.........
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:101,代码来源:Search.template.php


示例7: template_unapproved_posts

/**
 * Show a list of all the unapproved posts or topics
 * Provides links to approve to remove each
 */
function template_unapproved_posts()
{
    global $options, $context, $txt, $scripturl;
    // Just a big div of it all really...
    echo '
				<form action="', $scripturl, '?action=moderate;area=postmod;start=', $context['start'], ';sa=', $context['current_view'], '" method="post" accept-charset="UTF-8">
						<h2 class="category_header hdicon cat_img_posts">
							', $context['header_title'], '
						</h2>';
    // No posts?
    if (empty($context['unapproved_items'])) {
        echo '
						<div class="windowbg2 core_posts">
							<p class="centertext">', $txt['mc_unapproved_' . $context['current_view'] . '_none_found'], '</p>
						</div>';
    } else {
        template_pagesection();
    }
    // Loop through and show each unapproved post
    foreach ($context['unapproved_items'] as $item) {
        $item['class'] = $item['alternate'] == 0 ? 'windowbg2' : 'windowbg';
        $item['title'] = '<h5><strong>' . $item['category']['link'] . ' / ' . $item['board']['link'] . ' / ' . $item['link'] . '</strong></h5>';
        $item['date'] = $txt['mc_unapproved_by'] . ' <strong>' . $item['poster']['link'] . '</strong> : ' . $item['time'];
        template_simple_message($item);
    }
    // Quick moderation checkbox action selection
    $quick_mod = '';
    if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['unapproved_items'])) {
        $quick_mod = '
					<div class="floatright">
						<select name="do" onchange="if (this.value != 0 &amp;&amp; confirm(\'' . $txt['mc_unapproved_sure'] . '\')) submit();">
							<option value="0">' . $txt['with_selected'] . ':</option>
							<option value="0" disabled="disabled">' . str_repeat('&#8212;', strlen($txt['approve'])) . '</option>
							<option value="approve">' . (isBrowser('ie8') ? '&#187;' : '&#10148;') . '&nbsp;' . $txt['approve'] . '</option>
							<option value="delete">' . (isBrowser('ie8') ? '&#187;' : '&#10148;') . '&nbsp;' . $txt['remove'] . '</option>
						</select>
						<noscript>
							<input type="submit" name="mc_go" value="' . $txt['go'] . '" class="button_submit submitgo" />
						</noscript>
					</div>';
    }
    if (!empty($context['unapproved_items'])) {
        template_pagesection(false, false, array('extra' => $quick_mod));
    }
    echo '
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
				</form>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:52,代码来源:ModerationCenter.template.php


示例8: template_unread_below

function template_unread_below()
{
    global $context;
    if (!empty($context['topics'])) {
        template_pagesection('recent_buttons', 'right');
        echo '
		<div id="topic_icons" class="description">';
        template_basicicons_legend();
        if (!empty($context['using_relative_time'])) {
            echo '
			<script><!-- // --><![CDATA[
				$(\'.topic_latest\').addClass(\'relative\');
			// ]]></script>';
        }
        echo '
		</div>';
    }
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:18,代码来源:Recent.template.php


示例9: template_showDrafts

/**
 * Template for showing all the drafts of the user.
 */
function template_showDrafts()
{
    global $context, $settings, $txt, $scripturl;
    if (!empty($context['drafts'])) {
        template_pagesection();
    }
    echo '
		<div id="profilecenter">
			<form action="', $scripturl, '?action=profile;u=' . $context['member']['id'] . ';area=showdrafts;delete" method="post" accept-charset="UTF-8" name="draftForm" id="draftForm" >
				<h2 class="category_header">
					<span class="floatright">
						<input type="checkbox" onclick="invertAll(this, this.form, \'delete[]\');" class="input_check" />
					</span>
					', $txt['drafts'], '
				</h2>';
    // No drafts? Just show an informative message.
    if (empty($context['drafts'])) {
        echo '
			<div class="information centertext">
				', $txt['draft_none'], '
			</div>';
    } else {
        // For every draft to be displayed show the important details.
        foreach ($context['drafts'] as $draft) {
            $draft['title'] = '<strong>' . $draft['board']['link'] . ' / ' . $draft['topic']['link'] . '</strong>&nbsp;&nbsp;';
            if (!empty($draft['sticky'])) {
                $draft['title'] .= '<img src="' . $settings['images_url'] . '/icons/quick_sticky.png" alt="' . $txt['sticky_topic'] . '" title="' . $txt['sticky_topic'] . '" />';
            }
            if (!empty($draft['locked'])) {
                $draft['title'] .= '<img src="' . $settings['images_url'] . '/icons/quick_lock.png" alt="' . $txt['locked_topic'] . '" title="' . $txt['locked_topic'] . '" />';
            }
            $draft['date'] = '&#171; <strong>' . $txt['draft_saved_on'] . ':</strong> ' . ($draft['age'] > 0 ? sprintf($txt['draft_days_ago'], $draft['age']) : $draft['time']) . (!empty($draft['remaining']) ? ', ' . sprintf($txt['draft_retain'], $draft['remaining']) : '') . ' &#187;';
            $draft['class'] = $draft['alternate'] === 0 ? 'windowbg2' : 'windowbg';
            template_simple_message($draft);
        }
    }
    // Show page numbers
    if (!empty($context['drafts'])) {
        echo '
				<div class="flow_auto">
					<div class="floatleft">';
        template_pagesection();
        echo '
					</div>
					<div class="additional_row below_table_data">
						<input type="submit" name="delete_selected" value="' . $txt['quick_mod_remove'] . '" class="right_submit" onclick="return confirm(' . JavaScriptEscape($txt['draft_remove_selected'] . '?') . ');" />
						<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
					</div>
				</div>';
    }
    echo '
			</form>
		</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:57,代码来源:Profile.template.php


示例10: template_view_article

/**
 * Template for viewing a specific article in the system
 * Also used to preview an article from the new article form
 */
function template_view_article()
{
    global $context, $txt;
    echo '
	<div id="sp_view_article">
		<h3 class="category_header">
			', $context['article']['title'], '
		</h3>
		<div class="sp_content_padding">
			<div class="sp_article_detail">';
    if (!empty($context['article']['author']['avatar']['image'])) {
        echo $context['article']['author']['avatar']['image'];
    }
    echo '
				<span class="sp_article_latest">
					', sprintf(!empty($context['using_relative_time']) ? $txt['sp_posted_on_in_by'] : $txt['sp_posted_in_on_by'], $context['article']['category']['link'], $context['article']['date'], $context['article']['author']['link']);
    if (!empty($context['article']['author']['avatar']['image'])) {
        echo '
					<br />';
    } else {
        echo '
				</span>
				<span class="floatright">';
    }
    echo '
					', sprintf($context['article']['view_count'] == 1 ? $txt['sp_viewed_time'] : $txt['sp_viewed_times'], $context['article']['view_count']), ', ', sprintf($context['article']['comment_count'] == 1 ? $txt['sp_commented_on_time'] : $txt['sp_commented_on_times'], $context['article']['comment_count']), '
				</span>
			</div>
			<hr />
			<div>', $context['article']['body'], '
			</div>
		</div>';
    // Not just previewing the new article?
    if (empty($context['preview'])) {
        echo '
		<div id="sp_view_comments">
			<h3 class="category_header">
				', $txt['sp-comments'], '
			</h3>';
        if (empty($context['article']['comments'])) {
            echo '
			<div class="infobox">
					', $txt['error_sp_no_comments'], '
			</div>';
        }
        foreach ($context['article']['comments'] as $comment) {
            echo '
			<div id="comment', $comment['id'], '" class="content">
				<div class="sp_content_padding flow_auto">
					<div class="sp_comment_detail">';
            if (!empty($comment['author']['avatar']['image'])) {
                echo $comment['author']['avatar']['image'];
            }
            // Show the edit icons if they are allowed
            if ($comment['can_moderate']) {
                echo '
						<div class="floatright">
							<a href="', $context['article']['href'], ';modify=', $comment['id'], ';', $context['session_var'], '=', $context['session_id'], '#sp_comment">', sp_embed_image('modify'), '</a>
							<a href="', $context['article']['href'], ';delete=', $comment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', sp_embed_image('delete'), '</a>
						</div>';
            }
            echo '
						<span class="sp_article_latest">', sprintf($txt['sp_posted_by'], $comment['time'], $comment['author']['link']), '</span>
					</div>
					<hr />
					<p class="sp_comment_body">
						', $comment['body'], '
					</p>
				</div>
			</div>';
        }
        // Pages as well?
        if (!empty($context['page_index'])) {
            template_pagesection();
        }
        // Show the comment box
        if ($context['article']['can_comment']) {
            echo '
			<div id="sp_comment" class="sp_content_padding">
				<form action="', $context['article']['href'], '" method="post" accept-charset="UTF-8">
					<textarea name="body" rows="5" cols="50" style="width: 100%;padding: 0.1em 0.2em" tabindex="', $context['tabindex']++, '">', !empty($context['article']['comment']['body']) ? $context['article']['comment']['body'] : '', '</textarea>
					<div class="submitbutton">
						<input type="submit" name="submit" value="', !empty($context['article']['comment']) ? $txt['sp_modify'] : $txt['sp_submit'], '" class="right_submit" />
						<input type="hidden" name="comment" value="', !empty($context['article']['comment']['id']) ? $context['article']['comment']['id'] : 0, '" />
						<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
					</div>
				</form>
			</div>';
        }
        echo '
		</div>';
    }
    echo '
	</div>';
    if (!empty($context['using_relative_time'])) {
        addInlineJavascript('$(\'.sp_article_latest\').addClass(\'relative\');', true);
//.........这里部分代码省略.........
开发者ID:emanuele45,项目名称:SimplePortal_ElkArte,代码行数:101,代码来源:PortalArticles.template.php


示例11: template_group_members

/**
 * Template for viewing the members of a group.
 */
function template_group_members()
{
    global $context, $settings, $scripturl, $txt;
    echo '
	<div id="admincenter">
		<form action="', $scripturl, '?action=', $context['current_action'], isset($context['admin_area']) ? ';area=' . $context['admin_area'] : '', ';sa=members;group=', $context['group']['id'], '" method="post" accept-charset="UTF-8" id="view_group">
			<h2 class="category_header">', $context['page_title'], '</h2>
			<div class="windowbg">
				<div class="content">
					<dl class="settings">
						<dt>
							<strong>', $txt['name'], ':</strong>
						</dt>
						<dd>
							<span ', $context['group']['online_color'] ? 'style="color: ' . $context['group']['online_color'] . ';"' : '', '>', $context['group']['name'], '</span> ', $context['group']['icons'], '
						</dd>';
    // Any description to show?
    if (!empty($context['group']['description'])) {
        echo '
						<dt>
							<strong>' . $txt['membergroups_members_description'] . ':</strong>
						</dt>
						<dd>
							', $context['group']['description'], '
						</dd>';
    }
    echo '
						<dt>
							<strong>', $txt['membergroups_members_top'], ':</strong>
						</dt>
						<dd>
							', $context['total_members'], '
						</dd>';
    // Any group moderators to show?
    if (!empty($context['group']['moderators'])) {
        $moderators = array();
        foreach ($context['group']['moderators'] as $moderator) {
            $moderators[] = '<a href="' . $scripturl . '?action=profile;u=' . $moderator['id'] . '">' . $moderator['name'] . '</a>';
        }
        echo '
						<dt>
							<strong>', $txt['membergroups_members_group_moderators'], ':</strong>
						</dt>
						<dd>
							', implode(', ', $moderators), '
						</dd>';
    }
    echo '
					</dl>
				</div>
			</div>
			<h3 class="category_header">', $txt['membergroups_members_group_members'], '</h3>
			', template_pagesection(), '
			<table class="table_grid">
				<thead>
					<tr class="table_head">
						<th><a href="', $scripturl, '?action=', $context['current_action'], isset($context['admin_area']) ? ';area=' . $context['admin_area'] : '', ';sa=members;start=', $context['start'], ';sort=name', $context['sort_by'] == 'name' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['name'], $context['sort_by'] == 'name' ? ' <img class="sort" src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.png" alt="" />' : '', '</a></th>';
    if ($context['can_send_email']) {
        echo '
						<th><a href="', $scripturl, '?action=', $context['current_action'], isset($context['admin_area']) ? ';area=' . $context['admin_area'] : '', ';sa=members;start=', $context['start'], ';sort=email', $context['sort_by'] == 'email' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['email'], $context['sort_by'] == 'email' ? ' <img class="sort" src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.png" alt="" />' : '', '</a></th>';
    }
    echo '
						<th><a href="', $scripturl, '?action=', $context['current_action'], isset($context['admin_area']) ? ';area=' . $context['admin_area'] : '', ';sa=members;start=', $context['start'], ';sort=active', $context['sort_by'] == 'active' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['membergroups_members_last_active'], $context['sort_by'] == 'active' ? '<img class="sort" src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.png" alt="" />' : '', '</a></th>
						<th><a href="', $scripturl, '?action=', $context['current_action'], isset($context['admin_area']) ? ';area=' . $context['admin_area'] : '', ';sa=members;start=', $context['start'], ';sort=registered', $context['sort_by'] == 'registered' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['date_registered'], $context['sort_by'] == 'registered' ? '<img class="sort" src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.png" alt="" />' : '', '</a></th>
						<th ', empty($context['group']['assignable']) ? ' colspan="2"' : '', '><a href="', $scripturl, '?action=', $context['current_action'], isset($context['admin_area']) ? ';area=' . $context['admin_area'] : '', ';sa=members;start=', $context['start'], ';sort=posts', $context['sort_by'] == 'posts' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['posts'], $context['sort_by'] == 'posts' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.png" alt="" />' : '', '</a></th>';
    if (!empty($context['group']['assignable'])) {
        echo '
						<th style="width: 4%;"><input type="checkbox" class="input_check" onclick="invertAll(this, this.form);" /></th>';
    }
    echo '
					</tr>
				</thead>
				<tbody>';
    if (empty($context['members'])) {
        echo '
					<tr class="windowbg2">
						<td colspan="6" class="centertext">', $txt['membergroups_members_no_members'], '</td>
					</tr>';
    }
    $alternate = false;
    foreach ($context['members'] as $member) {
        $alternate = !$alternate;
        echo '
					<tr class="', $alternate === true ? 'windowbg' : 'windowbg2', '">
						<td>', $member['name'], '</td>';
        if ($context['can_send_email']) {
            echo '
						<td', $member['show_email'] == 'no_through_forum' && $settings['use_image_buttons'] ? ' class="centertext"' : '', '>';
            // Is it totally hidden?
            if ($member['show_email'] == 'no') {
                echo '
								<em>', $txt['hidden'], '</em>';
            } elseif ($member['show_email'] == 'yes_permission_override') {
                echo '
								<a href="mailto:', $member['email'], '"><em>', $member['email'], '</em></a>';
            } elseif ($member['show_email'] == 'no_through_forum') {
                echo '
//.........这里部分代码省略.........
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:101,代码来源:ManageMembergroups.template.php


示例12: template_show_list

/**
 * Template used to show a list created with createlist
 *
 * @param string|null $list_id
 */
function template_show_list($list_id = null)
{
    global $context, $settings, $txt;
    // Get a shortcut to the current list.
    $list_id = $list_id === null ? $context['default_list'] : $list_id;
    $cur_list =& $context[$list_id];
    if (isset($cur_list['form'])) {
        echo '
	<form class="generic_list_wrapper" action="', $cur_list['form']['href'], '" method="post"', empty($cur_list['form']['name']) ? '' : ' name="' . $cur_list['form']['name'] . '" id="' . $cur_list['form']['name'] . '"', ' accept-charset="UTF-8">
		<div class="generic_list">';
    } else {
        echo '
		<div id="', $list_id, '" class="generic_list_wrapper">';
    }
    // Show the title of the table (if any), with an icon (if defined)
    if (!empty($cur_list['title'])) {
        echo '
			<h3 class="category_header', !empty($cur_list['icon']) ? ' hdicon cat_img_' . $cur_list['icon'] : '', '">', $cur_list['title'], '</h3>';
    }
    // Show any data right after the title
    if (isset($cur_list['additional_rows']['after_title'])) {
        echo '
			<div class="information flow_hidden">';
        template_additional_rows('after_title', $cur_list);
        echo '
			</div>';
    }
    // Show some data above this list
    if (isset($cur_list['additional_rows']['top_of_list'])) {
        template_additional_rows('top_of_list', $cur_list);
    }
    $close_div = false;
    if (isset($cur_list['additional_rows']['above_column_headers'])) {
        $close_div = true;
        echo '
			<div class="flow_auto">', template_additional_rows('above_column_headers', $cur_list);
    }
    // These are the main tabs that is used all around the template.
    if (isset($cur_list['list_menu'], $cur_list['list_menu']['show_on']) && ($cur_list['list_menu']['show_on'] == 'both' || $cur_list['list_menu']['show_on'] == 'top')) {
        if (!$close_div) {
            echo '
			<div class="flow_auto">';
        }
        $close_div = true;
        template_create_list_menu($cur_list['list_menu']);
    }
    // Show the page index (if this list doesn't intend to show all items). @todo - Needs old top/bottom stuff cleaned up.
    if (!empty($cur_list['items_per_page']) && !empty($cur_list['page_index'])) {
        if (!$close_div) {
            echo '
			<div class="flow_auto">';
        }
        echo '
				<div class="floatleft">', template_pagesection(false, false, array('page_index_markup' => $cur_list['page_index'])), '
				</div>';
        $close_div = true;
    }
    if ($close_div) {
        echo '
			</div>';
    }
    // Start of the main table
    echo '
			<table id="' . $list_id . '" class="table_grid"', !empty($cur_list['width']) ? ' style="width: ' . $cur_list['width'] . '"' : '', '>';
    // Show the column headers.
    $header_count = count($cur_list['headers']);
    if (!($header_count < 2 && empty($cur_list['headers'][0]['label']))) {
        echo '
			<thead>
				<tr class="table_head">';
        // Loop through each column and add a table header.
        $i = 0;
        foreach ($cur_list['headers'] as $col_header) {
            $i++;
            if ($i === 1) {
                $col_header['class'] = empty($col_header['class']) ? '' : $col_header['class'];
            } elseif ($i === $header_count) {
                $col_header['class'] = empty($col_header['class']) ? '' : $col_header['class'];
            }
            $sort_title = $col_header['sort_image'] === 'up' ? $txt['sort_desc'] : $txt['sort_asc'];
            echo '
					<th scope="col" id="header_', $list_id, '_', $col_header['id'], '"', empty($col_header['class']) ? '' : ' class="' . $col_header['class'] . '"', empty($col_header['style']) ? '' : ' style="' . $col_header['style'] . '"', empty($col_header['colspan']) ? '' : ' colspan="' . $col_header['colspan'] . '"', '>', empty($col_header['href']) ? '' : '<a href="' . $col_header['href'] . '" rel="nofollow">', empty($col_header['label']) ? '&nbsp;' : $col_header['label'], empty($col_header['href']) ? '' : (empty($col_header['sort_image']) ? '</a>' : ' <img class="sort" src="' . $settings['images_url'] . '/sort_' . $col_header['sort_image'] . '.png" alt="" title="' . $sort_title . '" /></a>'), '</th>';
        }
        echo '
				</tr>
			</thead>';
    }
    echo '
			<tbody', empty($cur_list['sortable']) ? '' : ' id="table_grid_sortable"', '>';
    // Show a nice message informing there are no items in this list.
    // @todo - Nasty having styles and aligns still in the markup (IE6 stuffz).
    // @todo - Should be done via the class.
    if (empty($cur_list['rows']) && !empty($cur_list['no_items_label'])) {
        echo '
				<tr>
//.........这里部分代码省略.........
开发者ID:scripple,项目名称:Elkarte,代码行数:101,代码来源:GenericList.template.php


示例13: template_showPMDrafts

/**
 * Template for showing all the PM drafts of the user.
 */
function template_showPMDrafts()
{
    global $context, $scripturl, $txt;
    echo '
		<h2 class="category_header hdicon cat_img_talk">
			', $txt['drafts_show'], '
		</h2>';
    template_pagesection();
    // No drafts? Just show an informative message.
    if (empty($context['drafts'])) {
        echo '
		<div class="information centertext">
			', $txt['draft_none'], '
		</div>';
    } else {
        // For every draft to be displayed, give it its own div, and show the important details of the draft.
        foreach ($context['drafts'] as $draft) {
            echo '
		<div class="', $draft['alternate'] === 0 ? 'windowbg2' : 'windowbg', ' core_posts">
			<div class="counter">', $draft['counter'], '</div>
			<div class="topic_details">
				<h5>
					<strong>', $draft['subject'], '</strong>&nbsp;
				</h5>
				<span class="smalltext">&#171;&nbsp;<strong>', $txt['draft_saved_on'], ':</strong> ', sprintf($txt['draft_days_ago'], $draft['age']), !empty($draft['remaining']) ? ', ' . sprintf($txt['draft_retain'], $draft['remaining']) : '', '&#187;</span>
				<br />
				<span class="smalltext">&#171;&nbsp;<strong>', $txt['to'], ':</strong> ', implode(', ', $draft['recipients']['to']), '&nbsp;&#187;</span>
				<br />
				<span class="smalltext">&#171;&nbsp;<strong>', $txt['pm_bcc'], ':</strong> ', implode(', ', $draft['recipients']['bcc']), '&nbsp;&#187;</span>
			</div>
			<div class="inner">
				', $draft['body'], '
			</div>
			<ul class="quickbuttons">
				<li class="listlevel1">
					<a href="', $scripturl, '?action=pm;sa=showpmdrafts;id_draft=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" class="linklevel1 reply_button">', $txt['draft_edit'], '</a>
				</li>
				<li class="listlevel1">
					<a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['draft_remove'], '?\');" class="linklevel1 remove_button">', $txt['draft_delete'], '</a>
				</li>
			</ul>
		</div>';
        }
    }
    // Show page numbers.
    template_pagesection();
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:50,代码来源:PersonalMessage.template.php


示例14: template_mlsearch_below

/**
 * Shows the search again button to allow editing the parameters
 */
function template_mlsearch_below()
{
    global $context, $scripturl, $txt;
    // If it is displaying the result of a search show a "search again" link to edit their criteria.
    if (isset($context['old_search'])) {
        $extra = '
			<a class="linkbutton_right" href="' . $scripturl . '?action=memberlist;sa=search;search=' . $context['old_search_value'] . '">' . $txt['mlist_search_again'] . '</a>';
    } else {
        $extra = '';
    }
    // Show the page numbers again. (makes 'em easier to find!)
    template_pagesection(false, false, array('extra' => $extra));
    echo '
	</div>';
}
开发者ID:scripple,项目名称:Elkarte,代码行数:18,代码来源:Memberlist.template.php


示例15: template_topic_listing_below

/**
 * The lower icons and jump to.
 */
function template_topic_listing_below()
{
    global $context, $txt, $options;
    if ($context['no_topic_listing']) {
        return;
    }
    template_pagesection('normal_buttons', 'right');
    // Show breadcrumbs at the bottom too.
    theme_linktree();
    echo '
	<div id="topic_icons" class="description">
		<div class="floatright" id="message_index_jump_to">&nbsp;</div>';
    if (!$context['no_topic_listing']) {
  

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP template_partial函数代码示例发布时间:2022-05-23
下一篇:
PHP template_out函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap