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

PHP template_show_list函数代码示例

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

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



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


示例16: template_action_notification

/**
 * Template for setting up how and what you want to be notified about
 */
function template_action_notification()
{
    global $context, $txt, $scripturl, $modSettings;
    // The main containing header.
    echo '
		<form action="', $scripturl, '?action=profile;area=notification;save" method="post" accept-charset="UTF-8" id="notify_options" class="flow_hidden">
			<h2 class="category_header hdicon cat_img_profile">
				', $txt['profile'], '
			</h2>
			<p class="description">', $txt['notification_info'], '</p>
			<div class="windowbg2">
				<div class="content">
					<dl class="settings">';
    // Allow notification on announcements to be disabled?
    if (!empty($modSettings['allow_disableAnnounce'])) {
        echo '
						<dt>
							<label for="notify_announcements">', $txt['notify_important_email'], '</label>
						</dt>
						<dd>
							<input type="hidden" name="notify_announcements" value="0" />
							<input type="checkbox" id="notify_announcements" name="notify_announcements"', !empty($context['member']['notify_announcements']) ? ' checked="checked"' : '', ' class="input_check" />
						</dd>';
    }
    // Auto notification when you reply / start a topic?
    echo '
						<dt>
							<label for="auto_notify">', $txt['auto_notify'], '</label>
						</dt>
						<dd>
							<input type="hidden" name="default_options[auto_notify]" value="0" />
							<input type="checkbox" id="auto_notify" name="default_options[auto_notify]" value="1"', !empty($context['member']['options']['auto_notify']) ? ' checked="checked"' : '', ' class="input_check" />
							', !empty($modSettings['maillist_enabled']) ? $txt['auto_notify_pbe_post'] : '', '
						</dd>';
    // Can the body of the post be sent, PBE will ensure it can
    if (empty($modSettings['disallow_sendBody'])) {
        echo '
						<dt>
							<label for="notify_send_body">', $txt['notify_send_body' . (!empty($modSettings['maillist_enabled']) ? '_pbe' : '')], '</label>
						</dt>
						<dd>
							<input type="hidden" name="notify_send_body" value="0" />
							<input type="checkbox" id="notify_send_body" name="notify_send_body"', !empty($context['member']['notify_send_body']) ? ' checked="checked"' : '', ' class="input_check" />
							', !empty($modSettings['maillist_enabled']) ? $txt['notify_send_body_pbe_post'] : '', '
						</dd>';
    }
    // How often do you want to hear from us, instant, daily, weekly?
    echo '
						<dt>
							<label for="notify_regularity">', $txt['notify_regularity'], '</label>
						</dt>
						<dd>
							<select name="notify_regularity" id="notify_regularity">
								<option value="0"', $context['member']['notify_regularity'] == 0 ? ' selected="selected"' : '', '>', $txt['notify_regularity_instant'], '</option>
								<option value="1"', $context['member']['notify_regularity'] == 1 ? ' selected="selected"' : '', '>', $txt['notify_regularity_first_only'], '</option>
								<option value="2"', $context['member']['notify_regularity'] == 2 ? ' selected="selected"' : '', '>', $txt['notify_regularity_daily'], '</option>
								<option value="3"', $context['member']['notify_regularity'] == 3 ? ' selected="selected"' : '', '>', $txt['notify_regularity_weekly'], '</option>
							</select>
						</dd>
						<dt>
							<label for="notify_types">', $txt['notify_send_types'], '</label>
						</dt>
						<dd>
							<select name="notify_types" id="notify_types">';
    // Using the maillist functions, then limit the options so they make sense
    if (empty($modSettings['maillist_enabled']) || empty($modSettings['pbe_no_mod_notices']) && !empty($modSettings['maillist_enabled'])) {
        echo '
								<option value="1"', $context['member']['notify_types'] == 1 ? ' selected="selected"' : '', '>', $txt['notify_send_type_everything'], '</option>
								<option value="2"', $context['member']['notify_types'] == 2 ? ' selected="selected"' : '', '>', $txt['notify_send_type_everything_own'], '</option>';
    }
    echo '
								<option value="3"', $context['member']['notify_types'] == 3 ? ' selected="selected"' : '', '>', $txt['notify_send_type_only_replies' . (!empty($modSettings['maillist_enabled']) ? '_pbe' : '')], '</option>
								<option value="4"', $context['member']['notify_types'] == 4 ? ' selected="selected"' : '', '>', $txt['notify_send_type_nothing'], '</option>
							</select>
						</dd>
					</dl>
					<hr />
					<div class="submitbutton">
						<input id="notify_submit" type="submit" value="', $txt['notify_save'], '" class="button_submit" />
						<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />', !empty($context['token_check']) ? '
						<input type="hidden" name="' . $context[$context['token_check'] . '_token_var'] . '" value="' . $context[$context['token_check'] . '_token'] . '" />' : '', '
						<input type="hidden" name="u" value="', $context['id_member'], '" />
						<input type="hidden" name="sa" value="', $context['menu_item_selected'], '" />
					</div>
				</div>
			</div>
		</form>';
    // Show the boards you have on notify
    template_show_list('board_notification_list');
    echo '
		<br />';
    // And any topics you are watching as well
    template_show_list('topic_notification_list');
}
开发者ID:scripple,项目名称:Elkarte,代码行数:97,代码来源:ProfileOptions.template.php


示例17: template_add_language

/**
 * Add a new language
 */
function template_add_language()
{
    global $context, $txt, $scripturl;
    echo '
	<div id="admincenter">
		<form id="admin_form_wrapper"action="', $scripturl, '?action=admin;area=languages;sa=add;', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="UTF-8">
			<h2 class="category_header">', $txt['add_language'], '</h2>
			<div class="windowbg">
				<div class="content">
					<fieldset>
						<legend>', $txt['add_language_elk'], '</legend>
						<label for="lang_add" class="smalltext">', $txt['add_language_elk_browse'], '</label>
						<input type="text" id="lang_add" name="lang_add" size="40" value="', !empty($context['elk_search_term']) ? $context['elk_search_term'] : '', '" class="input_text" />';
    // Do we have some errors? Too bad.
    if (!empty($context['langfile_error'])) {
        // Display a little error box.
        echo '
						<div>
							<br />
							<p class="errorbox">', $txt['add_language_error_' . $context['langfile_error']], '</p>
						</div>';
    }
    echo '
					</fieldset>', isBrowser('is_ie') ? '<input type="text" name="ie_fix" style="display: none;" class="input_text" /> ' : '', '
					<input type="submit" name="lang_add_sub" value="', $txt['search'], '" class="right_submit" />
					<br />
				</div>
			</div>
		';
    // Had some results?
    if (!empty($context['languages'])) {
        echo '
			<div class="information">', $txt['add_language_elk_found'], '</div>';
        template_show_list('languages');
    }
    echo '
		</form>
	</div>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:42,代码来源:ManageLanguages.template.php


示例18: template_kbdolog

function template_kbdolog()
{
    template_show_list('kb_list');
}
开发者ID:VBGAMER45,项目名称:SMFMods,代码行数:4,代码来源:KBAdmin.template.php


示例19: template_browse

/**
 * Show the listing of addons on the system, installed, uninstalled, etc.
 */
function template_browse()
{
    global $context, $txt;
    echo '
	<div id="admincenter">';
    $adds_available = false;
    foreach ($context['package_types'] as $type) {
        if (!empty($context['available_' . $type])) {
            template_show_list('packages_lists_' . $type);
            $adds_available = true;
        }
    }
    if (!$adds_available) {
        echo '
		<div class="infobox">', $context['sub_action'] == 'browse' ? $txt['no_packages'] : $txt['no_adds_installed'], '</div>';
    }
    echo '
	</div>';
}
开发者ID:scripple,项目名称:Elkarte,代码行数:22,代码来源:Packages.template.php


示例20: template_attachment_paths

function template_attachment_paths()
{
    template_show_list('attach_paths');
}
开发者ID:norv,项目名称:EosAlpha,代码行数:4,代码来源:ManageAttachments.template.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP template_simple函数代码示例发布时间:2022-05-23
下一篇:
PHP template_set函数代码示例发布时间: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