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

PHP template_control_verification函数代码示例

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

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



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

示例1: template_main

/**
 * @name      ElkArte Forum
 * @copyright ElkArte Forum contributors
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause
 *
 * This software is a derived product, based on:
 *
 * Simple Machines Forum (SMF)
 * copyright:	2011 Simple Machines (http://www.simplemachines.org)
 * license:  	BSD, See included LICENSE.TXT for terms and conditions.
 *
 * @version 1.0 Alpha
 */
function template_main()
{
    global $context, $settings, $options, $txt, $scripturl, $modSettings;
    echo '
	<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" name="searchform" id="searchform">';
    if (!empty($context['search_errors'])) {
        echo '
		<p>', implode('<br />', $context['search_errors']['messages']), '</p>';
    }
    echo '
		<fieldset id="simple_search">
			<div data-role="fieldcontain">
				<label for="search">', $txt['search_for'], ':</label>
				<input id="search" type="text" name="search"', !empty($context['search_params']['search']) ? ' value="' . $context['search_params']['search'] . '"' : '', ' maxlength="', $context['search_string_limit'], '" size="40" class="input_text" />
				', $context['require_verification'] ? '' : '<div><input type="submit" name="s_search" value="' . $txt['search'] . '" class="button_submit" /></div>
			</div>';
    if ($context['require_verification']) {
        echo '
			<div class="verification>
				<h4>', $txt['search_visual_verification_label'], ':</h4>
				<br />', template_control_verification($context['visual_verification_id'], 'all'), '<br />
				<input id="submit" type="submit" name="s_search" value="' . $txt['search'] . '" class="button_submit" />
			</div>';
    }
    echo '
			<input type="hidden" name="advanced" value="0" />
		</fieldset>';
    echo '
	</form>';
}
开发者ID:ahrasis,项目名称:themes,代码行数:43,代码来源:Search.template.php


示例2: template_main

function template_main()
{
    global $scripturl, $txt, $context;
    echo '
<div class="cat_bar">
		<h3 class="catbg centertext">
        ', $txt['smfcontact_contact'], '
        </h3>
  </div>
<form method="post" action="', $scripturl, '?action=contact;sa=save" accept-charset="', $context['character_set'], '">
<table class="table_grid" align="center" width="100%">
  <tr>
    <td width="28%"  class="windowbg2"><b>', $txt['smfcontact_name'], '</b></td>
    <td width="72%"  class="windowbg2"><input type="text" name="from" size="64" /></td>
  </tr>
  <tr>
    <td width="28%"" class="windowbg2"><b>', $txt['smfcontact_subject'], '</b></td>
    <td width="72%"" class="windowbg2"><input type="text" name="subject" size="64" /></td>
  </tr>
  <tr>
    <td width="28%"  valign="top" class="windowbg2"><b>', $txt['smfcontact_body'], '</b></td>
    <td width="72%"  class="windowbg2"><textarea rows="6" name="message" cols="54"></textarea></td>
  </tr>';
    // Is visual verification enabled?
    if ($context['require_verification']) {
        echo '
							<tr class="windowbg2">
								<td align="right" valign="top"', !empty($context['post_error']['need_qr_verification']) ? ' style="color: red;"' : '', '>
									<b>', $txt['verification'], ':</b>
								</td>
								<td>
									', template_control_verification($context['visual_verification_id'], 'all'), '
								</td>
							</tr>';
    }
    echo '
  <tr>
    <td width="28%"" class="windowbg2"><span class="gen"><b>', $txt['smfcontact_emailaddress'], '</b></span></td>
    <td width="72%"" class="windowbg2"><input type="text" name="email" size="64" /></td>
  </tr>
  <tr>
    <td width="28%" colspan="2" align="center" class="windowbg2">
    <input type="submit" value="', $txt['smfcontact_sendemail'], '" name="submit" /></td>

  </tr>
</table>
</form>
';
    // Copyright link requird unless removal purchase is made
    echo '<br /><div align="center"><span class="smalltext">Powered by <a href="http://www.smfhacks.com" target="blank">Contact Page</a></span></div>';
}
开发者ID:VBGAMER45,项目名称:SMFMods,代码行数:51,代码来源:Contact2.template.php


示例3: template_wap2_post

function template_wap2_post()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings;
    echo '
		<form action="', $scripturl, '?action=', $context['destination'], ';board=', $context['current_board'], '.0;wap2" method="post">
			<p class="titlebg">', $context['page_title'], '</p>';
    if (!$context['becomes_approved']) {
        echo '
			<p class="windowbg">
				' . $txt['wait_for_approval'] . '
				<input type="hidden" name="not_approved" value="1" />
			</p>';
    }
    if ($context['locked']) {
        echo '
			<p class="windowbg">
				' . $txt['topic_locked_no_reply'] . '
			</p>';
    }
    if (isset($context['name']) && isset($context['email'])) {
        echo '
			<p class="windowbg"' . (isset($context['post_error']['long_name']) || isset($context['post_error']['no_name']) ? ' style="color: #ff0000"' : '') . '>
				' . $txt['username'] . ': <input type="text" name="guestname" value="' . $context['name'] . '" class="input_text" />
			</p>';
        if (empty($modSettings['guest_post_no_email'])) {
            echo '
			<p class="windowbg"' . (isset($context['post_error']['no_email']) || isset($context['post_error']['bad_email']) ? ' style="color: #ff0000"' : '') . '>
				' . $txt['email'] . ': <input type="text" name="email" value="' . $context['email'] . '" class="input_text" />
			</p>';
        }
    }
    if ($context['require_verification']) {
        echo '
			<p class="windowbg"', !empty($context['post_error']['need_qr_verification']) ? ' style="color: #ff0000"' : '', '>
				' . $txt['verification'] . ': ', template_control_verification($context['visual_verification_id'], 'all'), '
			</p>';
    }
    echo '
			<p class="windowbg"', isset($context['post_error']['no_subject']) ? ' style="color: #ff0000"' : '', '>
				', $txt['subject'], ': <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' maxlength="80" class="input_text" />
			</p>
			<p class="windowbg"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="color: #ff0000;"' : '', '>
				', $txt['message'], ': <br />
				<textarea name="message" id="message" rows="5" cols="20">', $context['message'], '</textarea>
			</p>
			<p class="windowbg">
				<input type="submit" name="post" value="', $context['submit_label'], '" class="button_submit" />
				<input type="hidden" name="icon" value="wireless" />
				<input type="hidden" name="goback" value="', $context['back_to_topic'] || !empty($options['return_to_post']) ? '1' : '0', '" />
				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />', isset($context['current_topic']) ? '
				<input type="hidden" name="topic" value="' . $context['current_topic'] . '" />' : '', '
				<input type="hidden" name="notify" value="', $context['notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
			</p>
			<p class="windowbg">[0] ', !empty($context['current_topic']) ? '<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.new;wap2">' . $txt['wireless_navigation_topic'] . '</a>' : '<a href="' . $scripturl . '?board=' . $context['current_board'] . '.0;wap2" accesskey="0">' . $txt['wireless_navigation_index'] . '</a>', '</p>
		</form>';
}
开发者ID:norv,项目名称:EosAlpha,代码行数:57,代码来源:Wireless.template.php


示例4: template_send


//.........这里部分代码省略.........
						<span', isset($context['post_error']['no_to']) || isset($context['post_error']['bad_bcc']) ? ' class="error"' : '', '>', $txt['pm_bcc'], ':</span>
					</dt>
					<dd id="bcc_div2">
						<input type="text" name="bcc" id="bcc_control" value="', $context['bcc_value'], '" tabindex="', $context['tabindex']++, '" size="40" style="width: 130px;" class="input_text" />
						<div id="bcc_item_list_container"></div>
					</dd>';
    // The subject of the PM.
    echo '
					<dt>
						<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', '>', $txt['subject'], ':</span>
					</dt>
					<dd>
						<input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="40" maxlength="50" />
					</dd>
				</dl>';
    // Showing BBC?
    if ($context['show_bbc']) {
        echo '
				<div id="bbcBox_message"></div>';
    }
    // What about smileys?
    if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
        echo '
				<div id="smileyBox_message"></div>';
    }
    // Show BBC buttons, smileys and textbox.
    echo '
				', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
    // Require an image to be typed to save spamming?
    if ($context['require_verification']) {
        echo '
				<div class="post_verification">
					<strong>', $txt['pm_visual_verification_label'], ':</strong>
					', template_control_verification($context['visual_verification_id'], 'all'), '
				</div>';
    }
    // Send, Preview, spellcheck buttons.
    echo '
				<p><label for="outbox"><input type="checkbox" name="outbox" id="outbox" value="1" tabindex="', $context['tabindex']++, '"', $context['copy_to_outbox'] ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_save_outbox'], '</label></p>
				<p id="shortcuts" class="smalltext">
					', $context['browser']['is_firefox'] ? $txt['shortcuts_firefox'] : $txt['shortcuts'], '
				</p>
				<p id="post_confirm_strip" class="righttext">
					', template_control_richedit_buttons($context['post_box_name']), '
				</p>
				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
				<input type="hidden" name="replied_to" value="', !empty($context['quoted_message']['id']) ? $context['quoted_message']['id'] : 0, '" />
				<input type="hidden" name="pm_head" value="', !empty($context['quoted_message']['pm_head']) ? $context['quoted_message']['pm_head'] : 0, '" />
				<input type="hidden" name="f" value="', isset($context['folder']) ? $context['folder'] : '', '" />
				<input type="hidden" name="l" value="', isset($context['current_label_id']) ? $context['current_label_id'] : -1, '" />
			</div>
			<span class="lowerframe"><span></span></span>
		</div>
	</form>';
    // Show the message you're replying to.
    if ($context['reply']) {
        echo '
	<br />
	<br />
	<div class="cat_bar">
		<h3 class="catbg">', $txt['subject'], ': ', $context['quoted_message']['subject'], '</h3>
	</div>
	<div class="title_bar">
		<h3 class="titlebg">
			<span class="floatleft">', $txt['from'], ': ', $context['quoted_message']['member']['name'], '</span>
开发者ID:valek0972,项目名称:hackits,代码行数:67,代码来源:PersonalMessage.template.php


示例5: template_single_post


//.........这里部分代码省略.........
    echo '
		<div id="moderationbuttons">', template_button_strip($mod_buttons, 'right', array('id' => 'moderationbuttons_strip', 'class' => 'plainbuttonlist')), '</div>';
    if ($context['can_reply'] && !empty($options['display_quick_reply'])) {
        echo '
			<a id="quickreply"></a>
			<div class="clear"></div>
			<div style="display:none;overflow:hidden;" id="quickreplybox">';
        echo '
					<div class="cat_bar">
					 <strong>', $txt['post_reply'], '</strong>&nbsp;&nbsp;<a href="', $scripturl, '?action=helpadmin;help=quickreply_help', '" onclick="return reqWin(this.href);" class="help tinytext">', $txt['post_reply_help'], '</a>
					</div>
					<div class="flat_container mediumpadding">';
        echo '
							<input type="hidden" name="_qr_board" value="', $context['current_board'], '" />
							<input type="hidden" name="topic" value="', $context['current_topic'], '" />
							<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
							<input type="hidden" name="icon" value="xx" />
							<input type="hidden" name="from_qr" value="1" />
							<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
							<input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
							<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
							<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
							<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
							<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';
        // Guests just need more.
        if ($context['user']['is_guest']) {
            echo '
							<strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
							<strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" /><br />';
        }
        // Is visual verification enabled?
        if ($context['require_verification']) {
            echo '
							<strong>', $txt['verification'], ':</strong>', template_control_verification($context['visual_verification_id'], 'quick_reply'), '<br />';
        }
        if (isset($context['user']['avatar']['image']) && !empty($context['user']['avatar']['image'])) {
            echo '
					<div class="floatleft blue_container smallpadding avatar">', $context['user']['avatar']['image'], '
					</div>';
        }
        echo '
							<div class="quickReplyContent" style="margin-left:150px;">';
        echo $context['is_locked'] ? '<div class="red_container tinytext">' . $txt['quick_reply_warning'] . '</div>' : '', $context['oldTopicError'] ? '<div class="red_container tinytext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</div>' : '', '
						', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
						', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '';
        echo '
								<textarea id="quickReplyMessage" style="width:99%;" rows="18" name="message" tabindex="', $context['tabindex']++, '"></textarea>';
        if ($context['automerge']) {
            echo '
								<input type="checkbox" name="want_automerge" id="want_automerge" checked="checked" value="1" />', $txt['want_automerge'];
        }
        echo '
								</div>
								<div class="righttext padding">
								<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
								<input type="submit" name="preview" value="', $txt['go_advanced'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />
								<input type="submit" name="cancel" value="', 'Cancel', '" onclick="return(oQuickReply.cancel());" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />
						</div>
				</div>
				<br>
			</div>';
    }
    theme_linktree();
    // Show the jumpto box, or actually...let Javascript do it.
    echo '
			<div class="plainbox" id="display_jump_to">&nbsp;</div>';
开发者ID:norv,项目名称:EosAlpha,代码行数:67,代码来源:DisplaySingle.template.php


示例6: template_adk_contact

function template_adk_contact()
{
    global $txt, $scripturl, $context, $boardurl, $user_info, $adkFolder;
    if (isset($_REQUEST['sended'])) {
        echo '
			<br /><br /><br />
			<div class="information Adk_contact_send_message">
				', $txt['adkmodules_form_sendeded'], '
			</div>
			<script type="text/javascript">
				function redirection(){  
					window.location ="' . $scripturl . '";
				}
				setTimeout ("redirection()", 2000);
			</script>';
    } else {
        echo '
			<br />
			<form method="post" action="' . $scripturl . '?action=contact;sa=send">
				<div class="cat_bar">
					<h3 class="catbg">
						<img alt="', $txt['adkmodules_form_contact'], '" style="vertical-align: middle;" src="' . $adkFolder['images'] . '/contact/postscript.png" /> ', $txt['adkmodules_form_contact'], '
					</h3>
				</div>
				<span class="clear upperframe"><span>&nbsp;</span></span>
				<div class="roundframe">
					<div>
						<dl id="post_header">';
        if (!$context['user']['is_guest']) {
            echo '
							<dt><input type="hidden" name="name" value="', $user_info['name'], '" /></dt>
							<dd><input type="hidden" name="email" value="', $user_info['email'], '" /></dd>';
        }
        echo '					
							<dt>
								<img alt="" src="' . $adkFolder['images'] . '/contact/agt.png" />&nbsp;', $txt['subject'], '
							</dt>
							<dd>
								<input type="text" name="subject" value="" size="80" maxlength="80" class="input_text" />
							</dd>';
        if ($context['user']['is_guest']) {
            echo '
							<dt>
								<img alt="" src="' . $adkFolder['images'] . '/contact/user_suit.png" />&nbsp;', $txt['adkmodules_name'], '
							</dt>
							<dd>
								<input type="text" name="name" value="" size="80" maxlength="80" class="input_text" />
							</dd>
							<dt>
								<img alt="" src="' . $adkFolder['images'] . '/postscript.png" />&nbsp;', $txt['adkmodules_email'], '
							</dt>
							<dd>
								<input type="text" name="email" value="" size="80" maxlength="80" class="input_text" />
							</dd>';
        }
        echo '
							<dt>
								<img alt="" src="' . $adkFolder['images'] . '/contact/users.png" />&nbsp;', $txt['adkmodules_form_select_admin'], '
							</dt>
							<dd>
								<select name="admin">
									<option value="0">', $txt['adkmodules_form_send_all'], '</option>';
        foreach ($context['members_admin'] as $id_member => $name) {
            echo '
									<option value="', $id_member, '">', $name, '</option>';
        }
        echo '
								</select>&nbsp;', help_link('', 'adkhelp_form_select_admin', false), '
							</dd>
						</dl>
						<div class="Adk_contact">
							<table style="width:100%">
								<tr>
									<td class="ae_center" colspan="2">
										<div class="ae_desc">' . $txt['adkmodules_form_send_content'] . '</div>
										<textarea cols="600" rows="10" id="descript" name="descript" style="height:160px; width: 855px;"></textarea>
										<br />
									</td>
								</tr>
							</table>
						</div>
						<div id="form_contact" class="post_verification">
							', template_control_verification($context['visual_verification_id'], 'all'), '
						</div>
						<br />
						<div align="center">
							<input type="submit" value="', $txt['save'], '" class="button_submit" />
							<input type="hidden" name="sc" value="', $context['session_id'], '" />
						</div>
					</div>
				</div>
				<span class="lowerframe"><span>&nbsp;</span></span>
			</form>';
    }
}
开发者ID:lucasruroken,项目名称:adkportal,代码行数:95,代码来源:Adk-echomodules.template.php


示例7: template_send


//.........这里部分代码省略.........
						<span', isset($context['post_error']['no_to']) || isset($context['post_error']['bad_bcc']) ? ' class="error"' : '', ' id="caption_bbc">', $txt['pm_bcc'], ':</span>
					</dt>
					<dd id="bcc_div2">
						<input type="text" name="bcc" id="bcc_control" value="', $context['bcc_value'], '" tabindex="', $context['tabindex']++, '" size="40" style="width: 130px;" class="input_text" />
						<div id="bcc_item_list_container"></div>
					</dd>';
    // The subject of the PM.
    echo '
					<dt class="clear_left">
						<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
					</dt>
					<dd id="pm_subject">
						<input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"', isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/>
					</dd>
				</dl><hr class="clear" />';
    // Showing BBC?
    if ($context['show_bbc']) {
        echo '
				<div id="bbcBox_message"></div>';
    }
    // What about smileys?
    if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
        echo '
				<div id="smileyBox_message"></div>';
    }
    // Show BBC buttons, smileys and textbox.
    echo '
				', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
    // Require an image to be typed to save spamming?
    if ($context['require_verification']) {
        echo '
				<div class="post_verification">
					<strong>', $txt['pm_visual_verification_label'], ':</strong>
					', template_control_verification($context['visual_verification_id'], 'all'), '
				</div>';
    }
    // Send, Preview, spellcheck buttons.
    echo '
				<p>
					<label for="outbox"><input type="checkbox" name="outbox" id="outbox" value="1" tabindex="', $context['tabindex']++, '"', $context['copy_to_outbox'] ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_save_outbox'], '</label>
				</p>
				<hr class="hrcolor" />
				<span id="post_confirm_strip" class="righttext">
					', template_control_richedit_buttons($context['post_box_name']), '
				</span>
				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
				<input type="hidden" name="replied_to" value="', !empty($context['quoted_message']['id']) ? $context['quoted_message']['id'] : 0, '" />
				<input type="hidden" name="pm_head" value="', !empty($context['quoted_message']['pm_head']) ? $context['quoted_message']['pm_head'] : 0, '" />
				<input type="hidden" name="f" value="', isset($context['folder']) ? $context['folder'] : '', '" />
				<input type="hidden" name="l" value="', isset($context['current_label_id']) ? $context['current_label_id'] : -1, '" />
				<br class="clear_right" />
			</div>
		</div>
	</form>';
    // If the admin enabled the pm drafts feature, show a draft selection box
    if (!empty($modSettings['drafts_enabled']) && !empty($context['drafts_pm_save']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) {
        echo '
			<br />
			<div id="postDraftOptionsHeader" class="title_bar">
				<h4 class="titlebg">
					<img id="postDraftExpand" class="panel_toggle" style="display: none;" src="', $settings['images_url'], '/collapse.png" alt="-" /> <strong><a href="#" id="postDraftExpandLink">', $txt['draft_load'], '</a></strong>
				</h4>
			</div>
			<div id="postDraftOptions" class="load_drafts padding">
				<dl class="settings">
开发者ID:ahrasis,项目名称:themes,代码行数:67,代码来源:PersonalMessage.template.php


示例8: template_main


//.........这里部分代码省略.........
			<div class="tborder" id="quickreplybox">
				<div class="cat_bar">
					<h3 class="catbg">
						<a href="javascript:oQuickReply.swap();"><img src="', $settings['images_url'], '/', $options['display_quick_reply'] > 1 ? 'collapse' : 'expand', '.png" alt="+" id="quickReplyExpand" class="icon" /></a>
						<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
					</h3>
				</div>
				<div id="quickReplyOptions"', $options['display_quick_reply'] > 1 ? '' : ' style="display: none"', '>
					<div class="roundframe">
						<p class="smalltext lefttext">', $txt['quick_reply_desc'], '</p>
						', $context['is_locked'] ? '<p class="alert smalltext">' . $txt['quick_reply_warning'] . '</p>' : '', $context['oldTopicError'] ? '<p class="alert smalltext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</p>' : '', '
						', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
						', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '
						<form action="', $scripturl, '?board=', $context['current_board'], ';action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
							<input type="hidden" name="topic" value="', $context['current_topic'], '" />
							<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
							<input type="hidden" name="icon" value="xx" />
							<input type="hidden" name="from_qr" value="1" />
							<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
							<input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
							<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
							<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
							<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
							<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';
        // Guests just need more.
        if ($context['user']['is_guest']) {
            echo '
							<strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
							<strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" /><br />';
        }
        // Is visual verification enabled?
        if ($context['require_verification']) {
            echo '
							<strong>', $txt['verification'], ':</strong>', template_control_verification($context['visual_verification_id'], 'quick_reply'), '<br />';
        }
        if ($options['display_quick_reply'] < 3) {
            echo '
							<div class="quickReplyContent">
								<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
							</div>';
        } else {
            // Show the actual posting area...
            if ($context['show_bbc']) {
                echo '
							<div id="bbcBox_message"></div>';
            }
            // What about smileys?
            if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
                echo '
							<div id="smileyBox_message"></div>';
            }
            echo '
							', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'), '
							<script type="text/javascript"><!-- // --><![CDATA[
								function insertQuoteFast(messageid)
								{
									if (window.XMLHttpRequest)
										getXMLDocument(smf_prepareScriptUrl(smf_scripturl) + \'action=quotefast;quote=\' + messageid + \';xml;pb=', $context['post_box_name'], ';mode=\' + (oEditorHandle_', $context['post_box_name'], '.bRichTextEnabled ? 1 : 0), onDocReceived);
									else
										reqWin(smf_prepareScriptUrl(smf_scripturl) + \'action=quotefast;quote=\' + messageid + \';pb=', $context['post_box_name'], ';mode=\' + (oEditorHandle_', $context['post_box_name'], '.bRichTextEnabled ? 1 : 0), 240, 90);
									return false;
								}
								function onDocReceived(XMLDoc)
								{
									var text = \'\';
									for (var i = 0, n = XMLDoc.getElementsByTagName(\'quote\')[0].childNodes.length; i < n; i++)
开发者ID:Glyph13,项目名称:SMF2.1,代码行数:67,代码来源:Display.template.php


示例9: template_registration_form


//.........这里部分代码省略.........
                } elseif (in_array($field['type'], array('int', 'float', 'text', 'password'))) {
                    echo '
							<input type="', $field['type'] == 'password' ? 'password' : 'text', '" name="', $key, '" id="', $key, '" size="', empty($field['size']) ? 30 : $field['size'], '" value="', $field['value'], '" tabindex="', $context['tabindex']++, '" ', $field['input_attr'], ' class="input_', $field['type'] == 'password' ? 'password' : 'text', '" />';
                } elseif ($field['type'] == 'check') {
                    echo '
							<input type="hidden" name="', $key, '" value="0" /><input type="checkbox" name="', $key, '" id="', $key, '" ', !empty($field['value']) ? ' checked="checked"' : '', ' value="1" tabindex="', $context['tabindex']++, '" class="input_check" ', $field['input_attr'], ' />';
                } elseif ($field['type'] == 'select') {
                    echo '
							<select name="', $key, '" id="', $key, '" tabindex="', $context['tabindex']++, '">';
                    if (isset($field['options'])) {
                        // Is this some code to generate the options?
                        if (!is_array($field['options'])) {
                            $field['options'] = eval($field['options']);
                        }
                        // Assuming we now have some!
                        if (is_array($field['options'])) {
                            foreach ($field['options'] as $value => $name) {
                                echo '
								<option value="', $value, '" ', $value == $field['value'] ? 'selected="selected"' : '', '>', $name, '</option>';
                            }
                        }
                    }
                    echo '
							</select>';
                }
                // Something to end with?
                if (!empty($field['postinput'])) {
                    echo '
							', $field['postinput'];
                }
                echo '
						</dd>';
            }
        }
    }
    // Are there any custom fields?
    if (!empty($context['custom_fields'])) {
        foreach ($context['custom_fields'] as $field) {
            if ($field['show_reg'] < 2) {
                echo '
						<dt>
							<strong', !empty($field['is_error']) ? ' style="color: red;"' : '', '>', $field['name'], ':</strong>
							<span class="smalltext">', $field['desc'], '</span>
						</dt>
						<dd>', $field['input_html'], '</dd>';
            }
        }
    }
    // If we have either of these, close the list like a proper gent.
    if (!empty($context['profile_fields']) || !empty($context['custom_fields'])) {
        echo '
					</dl>
				</fieldset>
			</div>';
    }
    if ($context['visual_verification']) {
        echo '
			<div class="title_bar">
				<h4 class="titlebg">', $txt['verification'], '</h4>
			</div>
			<div class="windowbg2">
				<fieldset class="content centertext">
					', template_control_verification($context['visual_verification_id'], 'all'), '
				</fieldset>
			</div>';
    }
    echo '
			<div id="confirm_buttons flow_auto">';
    // Age restriction in effect?
    if (!$context['require_agreement'] && $context['show_coppa']) {
        echo '
				<input type="submit" name="accept_agreement" value="', $context['coppa_agree_above'], '" class="button_submit" /><br /><br />
				<input type="submit" name="accept_agreement_coppa" value="', $context['coppa_agree_below'], '" class="button_submit" />';
    } else {
        echo '
				<input type="submit" name="regSubmit" value="', $txt['register'], '" tabindex="', $context['tabindex']++, '" class="button_submit" />';
    }
    echo '
			</div>
			<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
			<input type="hidden" name="', $context['register_token_var'], '" value="', $context['register_token'], '" />
			<input type="hidden" name="step" value="2" />
		</form>
		
		<script type="text/javascript"><!-- // --><![CDATA[
			var regTextStrings = {
				"username_valid": "', $txt['registration_username_available'], '",
				"username_invalid": "', $txt['registration_username_unavailable'], '",
				"username_check": "', $txt['registration_username_check'], '",
				"password_short": "', $txt['registration_password_short'], '",
				"password_reserved": "', $txt['registration_password_reserved'], '",
				"password_numbercase": "', $txt['registration_password_numbercase'], '",
				"password_no_match": "', $txt['registration_password_no_match'], '",
				"password_valid": "', $txt['registration_password_valid'], '"
			};
			var verificationHandle = new smfRegister("registration", ', empty($modSettings['password_strength']) ? 0 : $modSettings['password_strength'], ', regTextStrings);
			// Update the authentication status.
			updateAuthMethod();
		// ]]></script>';
}
开发者ID:Glyph13,项目名称:SMF2.1,代码行数:101,代码来源:Register.template.php


示例10: template_send


//.........这里部分代码省略.........
						<span', isset($context['post_error']['no_to']) || isset($context['post_error']['bad_bcc']) ? ' class="error"' : '', ' id="caption_bbc">', $txt['pm_bcc'], ':</span>
					</dt>
					<dd id="bcc_div2">
						<input type="text" name="bcc" id="bcc_control" value="', $context['bcc_value'], '" tabindex="', $context['tabindex']++, '" size="40" style="width: 130px;" class="input_text" />
						<div id="bcc_item_list_container"></div>
					</dd>';
    // The subject of the PM.
    echo '
					<dt class="clear_left">
						<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
					</dt>
					<dd id="pm_subject">
						<input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"', isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/>
					</dd>
				</dl><hr class="clear" />';
    // Showing BBC?
    if ($context['show_bbc']) {
        echo '
				<div id="bbcBox_message"></div>';
    }
    // What about smileys?
    if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
        echo '
				<div id="smileyBox_message"></div>';
    }
    // Show BBC buttons, smileys and textbox.
    echo '
				', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
    // Require an image to be typed to save spamming?
    if ($context['require_verification']) {
        echo '
				<div class="post_verification">
					<strong>', $txt['pm_visual_verification_label'], ':</strong>
					', template_control_verification($context['visual_verification_id'], 'all'), '
				</div>';
    }
    // Send, Preview, spellcheck buttons.
    echo '
				<p>
					<label for="outbox"><input type="checkbox" name="outbox" id="outbox" value="1" tabindex="', $context['tabindex']++, '"', $context['copy_to_outbox'] ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_save_outbox'], '</label>
				</p>
				<hr class="hrcolor" />
				<span id="shortcuts" class="smalltext">
					', isBrowser('is_firefox') ? $txt['shortcuts_firefox'] : $txt['shortcuts'], '
				</span>
				<span id="post_confirm_strip" class="righttext">
					', template_control_richedit_buttons($context['post_box_name']), '
				</span>
				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
				<input type="hidden" name="replied_to" value="', !empty($context['quoted_message']['id']) ? $context['quoted_message']['id'] : 0, '" />
				<input type="hidden" name="pm_head" value="', !empty($context['quoted_message']['pm_head']) ? $context['quoted_message']['pm_head'] : 0, '" />
				<input type="hidden" name="f" value="', isset($context['folder']) ? $context['folder'] : '', '" />
				<input type="hidden" name="l" value="', isset($context['current_label_id']) ? $context['current_label_id'] : -1, '" />
				<br class="clear_right" />
			</div>
		</div>
	</form>';
    // If the admin enabled the pm drafts feature, show a draft selection box
    if (!empty($modSettings['drafts_enabled']) && !empty($context['drafts_pm_save']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) {
        echo '
			<br />
			<div id="postDraftOptionsHeader" class="title_bar">
				<h4 class="titlebg">
					<img id="postDraftExpand" class="panel_toggle" style="display: none;" src="', $settings['images_url'], '/collapse.png" alt="-" /> <strong><a href="#" id="postDraftExpandLink">', $txt['draft_load'], '</a></strong>
				</h4>
开发者ID:Glyph13,项目名称:SMF2.1,代码行数:67,代码来源:PersonalMessage.template.php


示例11: my_display


//.........这里部分代码省略.........
	<a id="quickreply"></a>
	<div id="quickreplybox" class="clear" style="overflow: auto;">
		<div class="catbg">
			<h3>
				<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
			</h3>
		</div>
		<div id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
			<div class="roundframe">
				<p class="smalltext lefttext">', $txt['quick_reply_desc'], '</p>
				', $context['is_locked'] ? '<p class="alert smalltext">' . $txt['quick_reply_warning'] . '</p>' : '', $context['oldTopicError'] ? '<p class="alert smalltext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</p>' : '', '
				', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
				', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '
				<form action="', $scripturl, '?board=', $context['current_board'], ';action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
					<input type="hidden" name="topic" value="', $context['current_topic'], '" />
					<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
					<input type="hidden" name="icon" value="xx" />
					<input type="hidden" name="from_qr" value="1" />
					<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
					<input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
					<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
					<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
					<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';
        // Guests just need more.
        if ($context['user']['is_guest']) {
            echo '
					<strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
					<strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class=" 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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