本文整理汇总了PHP中template_control_verification函数的典型用法代码示例。如果您正苦于以下问题:PHP template_control_verification函数的具体用法?PHP template_control_verification怎么用?PHP template_control_verification使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了template_control_verification函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>';
}
示例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>';
}
示例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>';
}
示例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>
示例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> <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"> </div>';
示例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> </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" /> ', $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" /> ', $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" /> ', $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" /> ', $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> ', 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> </span></span>
</form>';
}
}
示例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">
示例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++)
示例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>';
}
示例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>
示例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="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 />';
}
echo '
<div class="quickReplyContent">
<textarea style="width: 100%; height: 200px;" name="message" tabindex="', $context['tabindex']++, '"></textarea>
</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['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
if ($context['show_spellchecking']) {
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';
}
echo '
</div>
</form>
</div>
</div>
</div>';
} else {
echo '
<br class="clear" />';
}
if ($context['show_spellchecking']) {
echo '
<form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/spellcheck.js"></script>';
}
echo '
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/topic.js"></script>
<script type="text/javascript"><!-- // --><![CDATA[';
if (!empty($options['display_quick_reply'])) {
echo '
示例12: template_report
function template_report()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<div id="report_topic">
<form action="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
<input type="hidden" name="msg" value="' . $context['message_id'] . '" />
<div class="cat_bar">
<h3 class="catbg">', $txt['report_to_mod'], '</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">';
if (!empty($context['post_errors'])) {
echo '
<div class="errorbox">
<ul>';
foreach ($context['post_errors'] as $error) {
echo '
<li class="error">', $error, '</li>';
}
echo '
</ul>
</div>';
}
echo '
<p>', $txt['report_to_mod_func'], '</p>
<br />
<dl class="settings" id="report_post">';
if ($context['user']['is_guest']) {
echo '
<dt>
<label for="email_address">', $txt['email'], '</label>:
</dt>
<dd>
<input type="text" id="email_address" name="email" value="', $context['email_address'], '" size="25" maxlength="255" />
</dd>';
}
echo '
<dt>
<label for="report_comment">', $txt['enter_comment'], '</label>:
</dt>
<dd>
<input type="text" id="report_comment" name="comment" size="50" value="', $context['comment_body'], '" maxlength="255" />
</dd>';
if ($context['require_verification']) {
echo '
<dt>
', $txt['verification'], ':
</dt>
<dd>
', template_control_verification($context['visual_verification_id'], 'all'), '
</dd>';
}
echo '
</dl>
<div class="righttext">
<input type="submit" name="submit" value="', $txt['rtm10'], '" style="margin-left: 1ex;" class="button_submit" />
</div>
</div>
<span class="botslice"><span></span></span>
</div>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<br class="clear" />';
}
示例13: template_kb_knowcont
//.........这里部分代码省略.........
<img class="resizeme" src="' . $modSettings['kb_url_attachment'] . '' . $img['filename'] . '" alt="' . $img['filename'] . '" /></a> ';
}
}
echo '</div>';
echo '
</div>
<span class="lowerframe"><span></span></span>';
}
if (!empty($modSettings['kb_ecom'])) {
echo '<br /> <div class="cat_bar">
<h3 class="catbg">' . $txt['kb_ecom2'] . '';
if (allowedTo('com_kb')) {
echo ' - <a href="javascript:void(0)" onclick="javascript:kbsearch_showhide(\'commentkb\');">' . $txt['kb_articlwnot_add_com'] . '</a>';
}
echo '</h3>
</div>';
echo '<div align="center"><div class="error" id="com_done" style="display:none;"><strong>' . $txt['kb_com_sub_compleat'] . '</strong></div></div>';
echo '<div class="commentkb" id="commentkb" style="display:none;"> ';
echo '<form id="mykbform" action="', $scripturl, '?action=kb;area=kb;area=article;comment;arid=' . $_GET['cont'] . ';cont=' . $_GET['cont'] . '" method="post" accept-charset="', $context['character_set'], '" onsubmit="submitonce(this);smc_saveEntities(\'postmodify\', [\'title\', \'description\']);">
<span class="upperframe"><span></span></span>
<div class="roundframe centertext"><br class="clear" />
<div class="error" id="ajax_in_progress" style="display:none;">' . $txt['kb_loading'] . '</div>';
if (!allowedTo('auto_approvecom_kb')) {
echo '<div class="error"><strong>' . $txt['kb_ecomauto'] . '</strong></div><br />';
}
if ($context['show_bbc']) {
echo '<div id="bbcBox_message"></div>';
}
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');
if ($user_info['is_guest']) {
echo template_control_verification($context['visual_verification_id'], 'all');
}
echo '<br /><input type="submit" name="send" class="button_submit" value="' . $txt['kb_catperm6'] . '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"/>
</div>
<span class="lowerframe"><span></span></span><br />
</form></div>';
if (!empty($context['kbcom'])) {
echo '' . $txt['pages'] . ': ' . $context['page_index'] . '';
}
$windowclass = false;
echo '<div id="results">';
foreach ($context['kbcom'] as $com) {
$windowclass = $windowclass == 'windowbg' ? 'windowbg2' : 'windowbg';
echo '<div class="' . $windowclass . '">
<span class="topslice"><span></span></span>';
echo '<div class="poster">';
echo '<ul class="reset">
<li class="title">';
if ($com['id_member'] != 0) {
echo KB_profileLink($com['real_name'], $com['id_member']);
} else {
echo $txt['guest_title'];
}
loadMemberData($com['id_member']);
loadMemberContext($com['id_member']);
if ($memberContext[$com['id_member']]['avatar']['href']) {
echo ' <br /><br /><img class="resizeav" border="0" src="' . $memberContext[$com['id_member']]['avatar']['href'] . '" alt="" />';
} else {
echo ' <br /><br /><img border="0" src="', $settings['images_url'], '/icons/online.gif" width="50" height="50" alt="" />';
}
echo '
</li>
示例14: article_comments
function article_comments($render = true)
{
global $scripturl, $txt, $settings, $context;
$code = '';
if (in_array('comments', $context['TPortal']['article']['visual_options'])) {
$code = '
<h2 class="titlebg" style="padding: 0 1em;">' . $txt['tp-comments'] . ' ' . tp_hidepanel('articlecomments', false, true, '5px 5px 0 5px') . '</h2>
<div id="articlecomments"' . (in_array('articlecomments', $context['tp_panels']) ? ' style="display: none;"' : '') . '>
<div class="windowbg2" style="padding: 1em 2em;">';
$counter = 1;
if (isset($context['TPortal']['article']['comment_posts'])) {
foreach ($context['TPortal']['article']['comment_posts'] as $comment) {
$code .= '
<div class="' . ($context['TPortal']['article']['authorID'] != $comment['posterID'] ? 'mycomment' : 'othercomment') . '">
<a id="comment' . $comment['id'] . '"></a>
<span class="comment_author">' . (!empty($comment['avatar']['image']) ? $comment['avatar']['image'] : '') . '</span>
<strong>' . $counter++ . ') ' . $comment['subject'] . '</strong>
' . ($comment['is_new'] && $context['user']['is_logged'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="" />' : '') . '
<div class="middletext" style="padding-top: 0.5em;"> ' . $txt['tp-by'] . ' <a href="' . $scripturl . '?action=profile;u=' . $comment['posterID'] . '">' . $comment['poster'] . '</a>
' . $txt['on'] . ' ' . $comment['date'] . '
</div>
<div class="textcomment"><div class="body">' . $comment['text'] . '</div></div>';
// can we edit the comment or are the owner of it?
if (allowedTo('tp_articles') || $comment['posterID'] == $context['user']['id']) {
$code .= '
<div class="buttonlist align_right"><ul><li><a class="active" href="' . $scripturl . '?action=tpmod;sa=killcomment' . $comment['id'] . '" onclick="javascript:return confirm(\'' . $txt['tp-confirmdelete'] . '\')"><span>' . $txt['tp-delete'] . '</span></a></li></ul></div>';
}
$code .= '
</div>';
}
}
$code .= '
</div>';
if (in_array('commentallow', $context['TPortal']['article']['visual_options']) && !empty($context['TPortal']['can_artcomment'])) {
$code .= '
<div class="windowbg" style="padding: 1em;">
<form accept-charset="' . $context['character_set'] . '" name="tp_article_comment" action="' . $scripturl . '?action=tpmod;sa=comment" method="post" style="margin: 0; padding: 0;">
<input name="tp_article_comment_title" type="text" style="width: 99%;" value="Re: ' . strip_tags($context['TPortal']['article']['subject']) . '">
<textarea style="width: 99%; height: 8em;" name="tp_article_bodytext"></textarea>
';
if (!empty($context['TPortal']['articles_comment_captcha'])) {
loadtemplate('GenericControls');
$code .= '
<div class="">
<span' . (!empty($context['post_error']['need_qr_verification']) ? ' class="error"' : '') . '>
<strong>' . $txt['verification'] . ':</strong>
</span>
' . template_control_verification($context['visual_verification_id'], 'all') . '
</div>';
}
$code .= '
<br /> <input id="tp_article_comment_submit" type="submit" value="' . $txt['tp-submit'] . '">
<input name="tp_article_type" type="hidden" value="article_comment">
<input name="tp_article_id" type="hidden" value="' . $context['TPortal']['article']['id'] . '">
<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
</form>
</div>';
} else {
$code .= '
<div style="padding: 1ex;" class="windowbg"><em>' . $txt['tp-cannotcomment'] . '</em></div>';
}
$code .= '
</div>';
} else {
$code .= '';
}
if ($render) {
echo $code;
} else {
return $code;
}
}
示例15: 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="UTF-8" name="postmodify" id="postmodify" onsubmit="submitonce(this);" >
<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 />';
}
// Using the full editor
if (empty($options['use_editor_quick_reply'])) {
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><!-- // --><![CDATA[
var post_box_name = "', $context['post_box_name'], '";
// ]]></script>';
}
echo '
<div class="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['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
if ($context['show_spellchecking']) {
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\', ', empty($options['use_editor_quick_reply']) ? 'false' : 'true', ')" tabindex="', $context['tabindex']++, '" class="button_submit" />';
}