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


PHP template_show_list函数代码示例

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


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

示例1: template_browse

/**
 * 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_browse()
{
    global $context, $settings, $options, $scripturl, $txt;
    echo '
	<div id="manage_mail">
		<div class="cat_bar">
			<h3 class="catbg">', $txt['mailqueue_stats'], '</h3>
		</div>
		<div class="windowbg">
			<span class="topslice"><span></span></span>
			<div class="content">
				<dl class="settings">
					<dt><strong>', $txt['mailqueue_size'], '</strong></dt>
					<dd>', $context['mail_queue_size'], '</dd>
					<dt><strong>', $txt['mailqueue_oldest'], '</strong></dt>
					<dd>', $context['oldest_mail'], '</dd>
				</dl>
			</div>
			<span class="botslice"><span></span></span>
		</div>';
    template_show_list('mail_queue');
    echo '
	</div>
	<br class="clear" />';
}
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:35,代码来源:ManageMail.template.php

示例2: template_view_scheduled_tasks

/**
 * Template for listing all scheduled tasks.
 */
function template_view_scheduled_tasks()
{
    global $context, $txt;
    // We completed some tasks?
    if (!empty($context['tasks_were_run'])) {
        if (empty($context['scheduled_errors'])) {
            echo '
	<div id="task_completed" class="successbox">
		', $txt['scheduled_tasks_were_run'], '
	</div>';
        } else {
            echo '
	<div id="errors" class="errorbox">
		', $txt['scheduled_tasks_were_run_errors'], '<br />';
            foreach ($context['scheduled_errors'] as $task => $errors) {
                echo isset($txt['scheduled_task_' . $task]) ? $txt['scheduled_task_' . $task] : $task, '
				<ul>
					<li class="listlevel1">', implode('</li><li class="listlevel1">', $errors), '</li>
				</ul>';
            }
            echo '
	</div>';
        }
    }
    template_show_list('scheduled_tasks');
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:29,代码来源:ManageScheduledTasks.template.php

示例3: 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, $scripturl, $txt;
    template_show_list('regular_membergroups_list');
    echo '<br /><br />';
    template_show_list('post_count_membergroups_list');
}
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:17,代码来源:ManageMembergroups.template.php

示例4: template_editsets

/**
 * Editing the smiley sets.
 */
function template_editsets()
{
    echo '
	<div id="admincenter">';
    template_show_list('smiley_set_list');
    echo '
	</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:11,代码来源:ManageSmileys.template.php

示例5: template_view_scheduled_tasks

function template_view_scheduled_tasks()
{
    global $context, $settings, $options, $txt, $scripturl, $modSettings;
    // We completed some tasks?
    if (!empty($context['tasks_were_run'])) {
        echo '
	<div id="task_completed">
		', $txt['scheduled_tasks_were_run'], '
	</div>';
    }
    template_show_list('scheduled_tasks');
}
开发者ID:valek0972,项目名称:hackits,代码行数:12,代码来源:ManageScheduledTasks.template.php

示例6: template_show_custom_profile

/**
 * Template for showing custom profile fields.
 */
function template_show_custom_profile()
{
    // Standard fields.
    template_show_list('standard_profile_fields');
    // Disable the show on registration box if the profile field is not active
    echo '
	<script><!-- // --><![CDATA[
		var iNumChecks = document.forms.standardProfileFields.length;

		for (var i = 0; i < iNumChecks; i++)
		{
			if (document.forms.standardProfileFields[i].id.indexOf(\'reg_\') === 0)
				document.forms.standardProfileFields[i].disabled = document.forms.standardProfileFields[i].disabled || !document.getElementById(\'active_\' + document.forms.standardProfileFields[i].id.substr(4)).checked;
		}
	// ]]></script>';
    // Custom fields.
    template_show_list('custom_profile_fields');
}
开发者ID:scripple,项目名称:Elkarte,代码行数:21,代码来源:ManageFeatures.template.php

示例7: template_mail_queue

/**
 * Template for the mail queue
 */
function template_mail_queue()
{
    global $context, $txt;
    echo '
	<div id="manage_mail">
		<div id="mailqueue_stats">
			<h2 class="category_header">', $txt['mailqueue_stats'], '</h2>
			<div class="windowbg">
				<div class="content">
					<dl class="settings">
						<dt><strong>', $txt['mailqueue_size'], '</strong></dt>
						<dd>', $context['mail_queue_size'], '</dd>
						<dt><strong>', $txt['mailqueue_oldest'], '</strong></dt>
						<dd>', $context['oldest_mail'], '</dd>
					</dl>
				</div>
			</div>
		</div>';
    template_show_list('mail_queue');
    echo '
	</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:25,代码来源:ManageMail.template.php

示例8: template_manage_games_list

/**
 * SMF Arcade
 *
 * @package SMF Arcade
 * @version 2.6 Alpha
 * @license http://download.smfarcade.info/license.php New-BSD
 */
function template_manage_games_list()
{
    global $context, $txt, $scripturl, $settings;
    if (!empty($context['qaction_title'])) {
        echo '
		<div id="arcade_message">
			<div class="windowbg" style="margin: 1ex; padding: 1ex 2ex; border: 1px dashed green; color: green;">
				<div style="text-decoration: underline;" id="arcade_message_title">', $context['qaction_title'], '</div>
				<div id="arcade_message_text">', $context['qaction_text'], ':
					<ul>';
        if (!empty($context['qaction_data'])) {
            foreach ($context['qaction_data'] as $game) {
                echo '
						<li>', $game['name'], !empty($game['error']) ? '<div class="smalltext" style="color: red">' . vsprintf($txt[$game['error'][0]], $game['error'][1]) . '</div>' : '', '</li>';
            }
        }
        echo '
					</ul>
				</div>
			</div>
		</div><br />';
    }
    template_show_list('games_list');
}
开发者ID:nikop,项目名称:SMF-Arcade,代码行数:31,代码来源:ManageGames.template.php

示例9: template_show_spider_stats

/**
 * Spider stats section.
 */
function template_show_spider_stats()
{
    global $context, $txt, $scripturl;
    echo '
	<div id="admincenter">';
    // Standard fields.
    template_show_list('spider_stat_list');
    echo '
		<form id="admin_form_wrapper" action="', $scripturl, '?action=admin;area=sengines;sa=stats" method="post" accept-charset="UTF-8">
			<h2 class="category_header">', $txt['spider_logs_delete'], '</h2>
			<div class="windowbg">
				<div class="content">
					<p>
						<label for="older">', sprintf($txt['spider_stats_delete_older'], '<input type="text" name="older" id="older" value="7" size="3" class="input_text" />'), '</label>
					</p>
					<hr />
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
					<input type="hidden" name="', $context['admin-ss_token_var'], '" value="', $context['admin-ss_token'], '" />
					<input type="submit" name="delete_entries" value="', $txt['spider_logs_delete_submit'], '" onclick="if (document.getElementById(\'older\').value &lt; 1 &amp;&amp; !confirm(\'' . addcslashes($txt['spider_logs_delete_confirm'], "'") . '\')) return false; return true;" class="right_submit" />
					<br />
				</div>
			</div>
		</form>
	</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:28,代码来源:ManageSearch.template.php

示例10: template_issueWarning


//.........这里部分代码省略.........
					</dl>
					<hr />
				</div>
				<dl class="settings">
					<dt>
						<strong><label for="warn_notify">', $txt['profile_warning_notify'], ':</label></strong>
					</dt>
					<dd>
						<input type="checkbox" name="warn_notify" id="warn_notify" onclick="modifyWarnNotify();" ', $context['warning_data']['notify'] ? 'checked="checked"' : '', ' class="input_check" />
					</dd>
					<dt>
						<strong><label for="warn_sub">', $txt['profile_warning_notify_subject'], ':</label></strong>
					</dt>
					<dd>
						<input type="text" name="warn_sub" id="warn_sub" value="', empty($context['warning_data']['notify_subject']) ? $txt['profile_warning_notify_template_subject'] : $context['warning_data']['notify_subject'], '" size="50" style="width: 80%;" class="input_text" />
					</dd>
					<dt>
						<strong><label for="warn_temp">', $txt['profile_warning_notify_body'], ':</label></strong>
					</dt>
					<dd>
						<select name="warn_temp" id="warn_temp" disabled="disabled" onchange="populateNotifyTemplate();" style="font-size: x-small;">
							<option value="-1">', $txt['profile_warning_notify_template'], '</option>
							<option value="-1">------------------------------</option>';
        foreach ($context['notification_templates'] as $id_template => $template) {
            echo '
							<option value="', $id_template, '">', $template['title'], '</option>';
        }
        echo '
						</select>
						<span class="smalltext" id="new_template_link" style="display: none;">[<a href="', $scripturl, '?action=moderate;area=warnings;sa=templateedit;tid=0" target="_blank" class="new_win">', $txt['profile_warning_new_template'], '</a>]</span><br />
						<textarea name="warn_body" id="warn_body" cols="40" rows="8" style="min-width: 50%; max-width: 99%;">', $context['warning_data']['notify_body'], '</textarea>
					</dd>';
    }
    echo '
				</dl>
				<div class="righttext">';
    if (!empty($context['token_check'])) {
        echo '
					<input type="hidden" name="', $context[$context['token_check'] . '_token_var'], '" value="', $context[$context['token_check'] . '_token'], '" />';
    }
    echo '
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
					<input type="submit" name="preview" id="preview_button" value="', $txt['preview'], '" class="button_submit" />
					<input type="submit" name="save" value="', $context['user']['is_owner'] ? $txt['change_profile'] : $txt['profile_warning_issue'], '" class="button_submit" />
				</div>
			</div>
		</div>
	</form>';
    // Previous warnings?
    template_show_list('view_warnings');
    // Do our best to get pretty javascript enabled.
    echo '
	<script type="text/javascript"><!-- // --><![CDATA[
		document.getElementById(\'warndiv1\').style.display = "";
		document.getElementById(\'preview_button\').style.display = "none";
		document.getElementById(\'warndiv2\').style.display = "none";';
    if (!$context['user']['is_owner']) {
        echo '
		modifyWarnNotify();
		$(document).ready(function() {
			$("#preview_button").click(function() {
				return ajax_getTemplatePreview();
			});
		});

		function ajax_getTemplatePreview ()
		{
			$.ajax({
				type: "POST",
				url: "' . $scripturl . '?action=xmlhttp;sa=previews;xml",
				data: {item: "warning_preview", title: $("#warn_sub").val(), body: $("#warn_body").val(), issuing: true},
				context: document.body,
				success: function(request){
					$("#box_preview").css({display:""});
					$("#body_preview").html($(request).find(\'body\').text());
					if ($(request).find("error").text() != \'\')
					{
						$("#profile_error").css({display:""});
						var errors_html = \'<span>\' + $("#profile_error").find("span").html() + \'</span>\' + \'<ul class="list_errors" class="reset">\';
						var errors = $(request).find(\'error\').each(function() {
							errors_html += \'<li>\' + $(this).text() + \'</li>\';
						});
						errors_html += \'</ul>\';

						$("#profile_error").html(errors_html);
					}
					else
					{
						$("#profile_error").css({display:"none"});
						$("#error_list").html(\'\');
					}
				return false;
				},
			});
			return false;
		}';
    }
    echo '
	// ]]></script>';
}
开发者ID:Glyph13,项目名称:SMF2.1,代码行数:101,代码来源:Profile.template.php

示例11: template_show_spider_logs

function template_show_spider_logs()
{
    global $context, $txt, $settings, $scripturl;
    echo '
	<div id="admincenter">';
    // Standard fields.
    template_show_list('spider_logs');
    echo '
		<br />
		<div class="cat_bar">
			<h3 class="catbg">', $txt['spider_logs_delete'], '</h3>
		</div>
		<form action="', $scripturl, '?action=admin;area=sengines;sa=logs;', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="', $context['character_set'], '">
			<div class="windowbg">
				<span class="topslice"><span></span></span>
				<div class="content">
					<p>
						', $txt['spider_logs_delete_older'], '
						<input type="text" name="older" id="older" value="7" size="3" class="input_text" />
						', $txt['spider_logs_delete_day'], '
					</p>
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
					<input type="submit" name="delete_entries" value="', $txt['spider_logs_delete_submit'], '" onclick="if (document.getElementById(\'older\').value &lt; 1 &amp;&amp; !confirm(\'' . addcslashes($txt['spider_logs_delete_confirm'], "'") . '\')) return false; return true;" class="button_submit" />
				</div>
				<span class="botslice"><span></span></span>
			</div>
		</form>
	</div>
	<br class="clear" />';
}
开发者ID:valek0972,项目名称:hackits,代码行数:30,代码来源:ManageSearch.template.php

示例12: template_extract_package

function template_extract_package()
{
    global $context, $settings, $options, $txt, $scripturl;
    if (!empty($context['redirect_url'])) {
        echo '
	<script type="text/javascript"><!-- // --><![CDATA[
		setTimeout("doRedirect();", ', empty($context['redirect_timeout']) ? '5000' : $context['redirect_timeout'], ');

		function doRedirect()
		{
			window.location = "', $context['redirect_url'], '";
		}
	// ]]></script>';
    }
    echo '
	<div id="admincenter">';
    if (empty($context['redirect_url'])) {
        echo '
			<div class="cat_bar">
				<h3 class="catbg">', $context['uninstalling'] ? $txt['uninstall'] : $txt['extracting'], '</h3>
			</div>
			<div class="information">', $txt['package_installed_extract'], '</div>';
    } else {
        echo '
			<div class="cat_bar">
				<h3 class="catbg">', $txt['package_installed_redirecting'], '</h3>
			</div>';
    }
    echo '
		<div class="windowbg">
			<span class="topslice"><span></span></span>
			<div class="content">';
    // If we are going to redirect we have a slightly different agenda.
    if (!empty($context['redirect_url'])) {
        echo '
				', $context['redirect_text'], '<br /><br />
				<a href="', $context['redirect_url'], '">', $txt['package_installed_redirect_go_now'], '</a> | <a href="', $scripturl, '?action=admin;area=packages;sa=browse">', $txt['package_installed_redirect_cancel'], '</a>';
    } elseif ($context['uninstalling']) {
        echo '
				', $txt['package_uninstall_done'];
    } elseif ($context['install_finished']) {
        if ($context['extract_type'] == 'avatar') {
            echo '
				', $txt['avatars_extracted'];
        } elseif ($context['extract_type'] == 'language') {
            echo '
				', $txt['language_extracted'];
        } else {
            echo '
				', $txt['package_installed_done'];
        }
    } else {
        echo '
				', $txt['corrupt_compatible'];
    }
    echo '
			</div>
			<span class="botslice"><span></span></span>
		</div>';
    // Show the "restore permissions" screen?
    if (function_exists('template_show_list') && !empty($context['restore_file_permissions']['rows'])) {
        echo '<br />';
        template_show_list('restore_file_permissions');
    }
    echo '
	</div>
	<br class="clear" />';
}
开发者ID:norv,项目名称:EosAlpha,代码行数:68,代码来源:Packages.template.php

示例13: template_viewWarning

function template_viewWarning()
{
    global $context, $txt, $scripturl, $settings;
    template_load_warning_variables();
    echo '
		<div class="title_bar">
			<h3 class="titlebg">
				<span class="ie6_header floatleft"><img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" class="icon" />
				', sprintf($txt['profile_viewwarning_for_user'], $context['member']['name']), '
				</span>
			</h3>
		</div>
		<div class="windowbg">
			<span class="topslice"><span></span></span>
			<div class="content">
				<dl class="settings">
					<dt>
						<strong>', $txt['profile_warning_name'], ':</strong>
					</dt>
					<dd>
						', $context['member']['name'], '
					</dd>
					<dt>
						<strong>', $txt['profile_warning_level'], ':</strong>
					</dt>
					<dd>
						<div>
							<div>
								<div style="font-size: 8pt; height: 12pt; width: ', $context['warningBarWidth'], 'px; border: 1px solid black; background-color: white; padding: 1px; position: relative;">
									<div id="warning_text" style="padding-top: 1pt; width: 100%; z-index: 2; color: black; position: absolute; text-align: center; font-weight: bold;">', $context['member']['warning'], '%</div>
									<div id="warning_progress" style="width: ', $context['member']['warning'], '%; height: 12pt; z-index: 1; background-color: ', $context['current_color'], ';">&nbsp;</div>
								</div>
							</div>
						</div>
					</dd>';
    // There's some impact of this?
    if (!empty($context['level_effects'][$context['current_level']])) {
        echo '
					<dt>
						<strong>', $txt['profile_viewwarning_impact'], ':</strong>
					</dt>
					<dd>
						', $context['level_effects'][$context['current_level']], '
					</dd>';
    }
    echo '
				</dl>
			</div>
			<span class="botslice"><span></span></span>
		</div>';
    template_show_list('view_warnings');
}
开发者ID:Bloc67,项目名称:ShelfLife,代码行数:52,代码来源:Profile.template.php

示例14: template_kbmanage

function template_kbmanage()
{
    global $context, $total_report, $total_approvecom, $total_approve, $scripturl, $txt;
    echo '<script type="text/javascript">
<!--

function confirmSubmit()
{
var agree=confirm("' . $txt['kb_sure_contjs'] . '");
if (agree)
	return true ;
else
	return false ;
}
// -->
</script>';
    echo '
	<div class="cat_bar">
		<h3 class="catbg">' . $txt['kb_manage1'] . '</h3>
	</div>';
    echo '
	<div class="information centertext">
	    ' . $txt['kb_manage2'] . ' <strong>' . $total_approve . '</strong> ' . $txt['kb_manage3'] . '
		<br />' . $txt['kb_manage2'] . ' <strong>' . $total_approvecom . '</strong> ' . $txt['kb_manage4'] . '
		<br />' . $txt['kb_manage2'] . ' <strong>' . $total_report . '</strong> ' . $txt['kb_manage5'] . '
		<br /><br /><a href="' . $scripturl . '?action=kb;area=catadd">[' . $txt['knowledgebasecatadd'] . ']</a> | <a href="' . $scripturl . '?action=kb;area=listcat">[' . $txt['knowledgebasecataddedit'] . ']</a> | <a href="' . $scripturl . '?action=kb;area=addknow;cat=0">[' . $txt['knowledgebasecataddedit1'] . ']</a>
	</div>';
    template_show_list('kb_know_reports');
    echo '<br />';
    template_show_list('kb_knowcomappr');
    echo '<br />';
    template_show_list('kb_know');
    template_kb_copy();
}
开发者ID:VBGAMER45,项目名称:SMFMods,代码行数:34,代码来源:KB.template.php

示例15: template_download_language

function template_download_language()
{
    global $context, $settings, $options, $txt, $scripturl, $modSettings;
    // Actually finished?
    if (!empty($context['install_complete'])) {
        echo '
	<div id="admincenter">
		<div class="cat_bar">
			<h3 class="catbg">
				', $txt['languages_download_complete'], '
			</h3>
		</div>
		<div class="windowbg">
			<span class="topslice"><span></span></span>
			<div class="content">
				', $context['install_complete'], '
			</div>
			<span class="botslice"><span></span></span>
		</div>
	</div>
	<br class="clear" />';
        return;
    }
    // An error?
    if (!empty($context['error_message'])) {
        echo '
	<div id="errorbox">
		<p>', $context['error_message'], '</p>
	</div>';
    }
    // Provide something of an introduction...
    echo '
	<div id="admincenter">
		<form action="', $scripturl, '?action=admin;area=languages;sa=downloadlang;did=', $context['download_id'], ';', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="', $context['character_set'], '">
			<div class="cat_bar">
				<h3 class="catbg">
					', $txt['languages_download'], '
				</h3>
			</div>
			<div class="windowbg">
				<span class="topslice"><span></span></span>
				<div class="content">
					<p>
						', $txt['languages_download_note'], '
					</p>
					<div class="smalltext">
						', $txt['languages_download_info'], '
					</div>
				</div>
				<span class="botslice"><span></span></span>
			</div>';
    // Show the main files.
    template_show_list('lang_main_files_list');
    // Now, all the images and the likes, hidden via javascript 'cause there are so fecking many.
    echo '
			<br />
			<div class="title_bar">
				<h3 class="titlebg">
					', $txt['languages_download_theme_files'], '
				</h3>
			</div>
			<table class="table_grid" cellspacing="0" width="100%">
				<thead>
					<tr class="catbg">
						<th class="first_th" scope="col">
							', $txt['languages_download_filename'], '
						</th>
						<th scope="col" width="100">
							', $txt['languages_download_writable'], '
						</th>
						<th scope="col" width="100">
							', $txt['languages_download_exists'], '
						</th>
						<th class="last_th" scope="col" width="50">
							', $txt['languages_download_copy'], '
						</th>
					</tr>
				</thead>
				<tbody>';
    foreach ($context['files']['images'] as $theme => $group) {
        $count = 0;
        echo '
				<tr class="titlebg">
					<td colspan="4">
						<img src="', $settings['images_url'], '/sort_down.gif" id="toggle_image_', $theme, '" alt="*" />&nbsp;', isset($context['theme_names'][$theme]) ? $context['theme_names'][$theme] : $theme, '
					</td>
				</tr>';
        $alternate = false;
        foreach ($group as $file) {
            echo '
				<tr class="windowbg', $alternate ? '2' : '', '" id="', $theme, '-', $count++, '">
					<td>
						<strong>', $file['name'], '</strong><br />
						<span class="smalltext">', $txt['languages_download_dest'], ': ', $file['destination'], '</span>
					</td>
					<td>
						<span style="color: ', $file['writable'] ? 'green' : 'red', ';">', $file['writable'] ? $txt['yes'] : $txt['no'], '</span>
					</td>
					<td>
						', $file['exists'] ? $file['exists'] == 'same' ? $txt['languages_download_exists_same'] : $txt['languages_download_exists_different'] : $txt['no'], '
//.........这里部分代码省略.........
开发者ID:valek0972,项目名称:hackits,代码行数:101,代码来源:Admin.template.php


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