<?php
// Version: 2.0 RC4; Help

function template_popup()
{
	global $context, $settings, $options, $txt;

	// Since this is a popup of its own we need to start the html, etc.
	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
		<meta name="robots" content="noindex" />
		<title>', $context['page_title'], '</title>
		<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />
		<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js"></script>
	</head>
	<body id="help_popup">
		<div class="tborder windowbg">
			', $context['help_text'], '<br />
			<br />
			<a href="javascript:self.close();">', $txt['close_window'], '</a>
		</div>
	</body>
</html>';
}

function template_find_members()
{
	global $context, $settings, $options, $scripturl, $modSettings, $txt;

	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
	<head>
		<title>', $txt['find_members'], '</title>
		<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
		<meta name="robots" content="noindex" />
		<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />
		<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js"></script>
		<script type="text/javascript"><!-- // --><![CDATA[
			var membersAdded = [];
			function addMember(name)
			{
				var theTextBox = window.opener.document.getElementById("', $context['input_box_name'], '");

				if (name in membersAdded)
					return;

				// If we only accept one name don\'t remember what is there.
				if (', JavaScriptEscape($context['delimiter']), ' != \'null\')
					membersAdded[name] = true;

				if (theTextBox.value.length < 1 || ', JavaScriptEscape($context['delimiter']), ' == \'null\')
					theTextBox.value = ', $context['quote_results'] ? '"\"" + name + "\""' : 'name', ';
				else
					theTextBox.value += ', JavaScriptEscape($context['delimiter']), ' + ', $context['quote_results'] ? '"\"" + name + "\""' : 'name', ';

				window.focus();
			}
		// ]]></script>
	</head>
	<body id="help_popup">
		<form action="', $scripturl, '?action=findmember;', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="', $context['character_set'], '" class="padding description">
			<span class="upperframe"><span></span></span>
			<div class="roundframe">
				<div class="innerframe">
					<div class="cat_bar">
						<h3 class="catbg">', $txt['find_members'], '</h3>
					</div>
					<div class="padding">
						<strong>', $txt['find_username'], ':</strong><br />
						<input type="text" name="search" id="search" value="', isset($context['last_search']) ? $context['last_search'] : '', '" style="margin-top: 4px; width: 96%;" class="input_text" /><br />
						<span class="smalltext"><em>', $txt['find_wildcards'], '</em></span><br />';

	// Only offer to search for buddies if we have some!
	if (!empty($context['show_buddies']))
		echo '
						<span class="smalltext"><label for="buddies"><input type="checkbox" class="input_check" name="buddies" id="buddies"', !empty($context['buddy_search']) ? ' checked="checked"' : '', ' /> ', $txt['find_buddies'], '</label></span><br />';

	echo '
						<div class="padding righttext">
							<input type="submit" value="', $txt['search'], '" class="button_submit" />
							<input type="button" value="', $txt['find_close'], '" onclick="window.close();" class="button_submit" />
						</div>
					</div>
				</div>
			</div>
			<span class="lowerframe"><span></span></span>
			<br />
			<span class="upperframe"><span></span></span>
			<div class="roundframe">
				<div class="innerframe">
					<div class="cat_bar">
						<h3 class="catbg">', $txt['find_results'], '</h3>
					</div>';

	if (empty($context['results']))
		echo '
					<p class="error">', $txt['find_no_results'], '</p>';
	else
	{
		echo '
					<ul class="reset padding">';

		$alternate = true;
		foreach ($context['results'] as $result)
		{
			echo '
						<li class="', $alternate ? 'windowbg2' : 'windowbg', '">
							<a href="', $result['href'], '" target="_blank" class="new_win"><img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="', $txt['view_profile'], '" title="', $txt['view_profile'], '" border="0" /></a>
							<a href="javascript:void(0);" onclick="addMember(this.innerHTML); return false;">', $result['name'], '</a>
						</li>';

			$alternate = !$alternate;
		}

		echo '
					</ul>
					<div class="pagesection">
						', $txt['pages'], ': ', $context['page_index'], '
					</div>';
	}

	echo '
				</div>
			</div>
			<span class="lowerframe"><span></span></span>
			<input type="hidden" name="input" value="', $context['input_box_name'], '" />
			<input type="hidden" name="delim" value="', $context['delimiter'], '" />
			<input type="hidden" name="quote" value="', $context['quote_results'] ? '1' : '0', '" />
		</form>';

	if (empty($context['results']))
		echo '
		<script type="text/javascript"><!-- // --><![CDATA[
			document.getElementById("search").focus();
		// ]]></script>';

	echo '
	</body>
</html>';
}

// Top half of the help template.
function template_manual_above()
{
	global $context, $settings, $options, $txt, $scripturl;

	echo '
		<h3 class="titlebg">
			', $context['manual_area_data']['label'], '
		</h3>
		<div id="helpmain" class="windowbg2">';
}

// Bottom half of the help template.
function template_manual_below()
{
	global $context, $settings, $options, $txt, $scripturl;

	echo '
		</div>';
}

// The introduction help page.
function template_manual_intro()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_intro_welcome_to'], $context['forum_name'], $txt['manual_intro_welcome_after'], '<a href="http://www.simplemachines.org/">', $txt['manual_intro_smf_link'], '</a>', $txt['manual_intro_smf_abbreviation'], '</p>
	<p>', $txt['manual_intro_overview'], '</p>
	<p>', $txt['manual_intro_outline'], '</p>';
}

// The main menu page.
function template_manual_main_menu()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_main_menu_describe'], '</p>
	<div class="help_sample">
		<div class="main_menu">
			<ul class="reset clearfix">
				<li class="active', $context['right_to_left'] ? ' last' : '', '">
					<a href="', $scripturl, '?action=help;area=board_index">
						<span>
							<em>', $txt['home'], '</em>
						</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help">
						<span>', $txt['help'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=searching">
						<span>', $txt['search'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=calendar">
						<span>', $txt['calendar'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=logging_in">
						<span>', $txt['login'], '</span>
					</a>
				</li>
				<li', !$context['right_to_left'] ? ' class="last"' : '', '>
					<a href="', $scripturl, '?action=help;area=registration_screen">
						<span>', $txt['register'], '</span>
					</a>
				</li>
			</ul>
		</div>
		<br />
	</div>
	<p style="margin-top: 1em;">', $txt['manual_main_menu_guest_links'], '</p>
	<ul>
		<li>', $txt['manual_main_menu_home'], '</li>
		<li>', $txt['manual_main_menu_help'], '</li>
		<li>', $txt['manual_main_menu_search'], '</li>
		<li>', $txt['manual_main_menu_calendar'], '</li>
		<li>', $txt['manual_main_menu_login'], '</li>
		<li>', $txt['manual_main_menu_register'], '</li>
	</ul>
	<div class="help_sample">
		<div class="main_menu">
			<ul class="reset clearfix">
				<li class="active', $context['right_to_left'] ? ' last' : '', '">
					<a href="', $scripturl, '?action=help;area=board_index">
						<span>
							<em>', $txt['home'], '</em>
						</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help">
						<span>', $txt['help'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=searching">
						<span>', $txt['search'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=profile_info">
						<span>', $txt['profile'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=messages">
						<span>', $txt['pm_short'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=calendar">
						<span>', $txt['calendar'], '</span>
					</a>
				</li>
				<li>
					<a href="', $scripturl, '?action=help;area=memberlist">
						<span>', $txt['members_title'], '</span>
					</a>
				</li>
				<li', !$context['right_to_left'] ? ' class="last"' : '', '>
					<a href="', $scripturl, '?action=help;area=logging_in">
						<span>', $txt['logout'], '</span>
					</a>
				</li>
			</ul>
		</div>
		<br />
	</div>
	<p>', $txt['manual_main_menu_member_links'], '</p>
	<ul>
		<li>', $txt['manual_main_menu_home'], '</li>
		<li>', $txt['manual_main_menu_help'], '</li>
		<li>', $txt['manual_main_menu_search'], '</li>
		<li>', $txt['manual_main_menu_profile'], '</li>
		<li>', $txt['manual_main_menu_messages'], '</li>
		<li>', $txt['manual_main_menu_calendar'], '</li>
		<li>', $txt['manual_main_menu_members'], '</li>
		<li>', $txt['manual_main_menu_logout'], '</li>
	</ul>
	<p>', $txt['manual_main_menu_admin_mod'], '</p>';
}

// The board index page.
function template_manual_board_index()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_board_index_describe'], '</p>
	<p>', $txt['manual_board_index_looks'], '</p>
	<div class="help_sample">
		<ul class="linktree">
			<li>
				<a href="', $scripturl, '?action=help;area=board_index" class="nav">', $context['forum_name'], '</a>
			</li>
		</ul>
		<script type="text/javascript">//<![CDATA[
			var collapseExpand = false;
			function collapseExpandCategory()
			{
					document.getElementById("collapseArrow").src = smf_images_url + "/" + (collapseExpand ? "collapse.gif" : "expand.gif");
					document.getElementById("collapseArrow").alt = collapseExpand ? "-" : "+";
					document.getElementById("collapseCategory").style.display = collapseExpand ? "" : "none";
					collapseExpand = !collapseExpand;
			}
			function markBoardRead()
			{
					document.getElementById("board-new-or-not").src = smf_images_url + "/" + "off.gif";
					document.getElementById("board-new-or-not").alt = "', $txt['old_posts'], '";
			}
		//]]></script>
		<div class="tborder">
			<table class="bordercolor boardsframe" border="0" width="100%" cellspacing="1" cellpadding="5">
				<tbody>
					<tr>
						<td colspan="4" class="catbg" height="18">
							<a class="collapse" href="javascript:collapseExpandCategory();"><img src="', $settings['images_url'], '/collapse.gif" alt="-" border="0" id="collapseArrow" name="collapseArrow" /></a>
							<a class="floatright" href="#">', $txt['view_unread_category'], '</a>
							<a href="#">', $txt['manual_board_index_category_name'], '</a>
						</td>
					</tr>
				</tbody>
				<tbody id="collapseCategory">
					<tr class="windowbg2">
						<td class="windowbg icon">
							<a href="#">
								<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.gif" alt="*" title="*" border="0" />
							</a>
						</td>
						<td class="windowbg2 info">
							<h4>
								<a class="subject" href="#" name="b3">', $txt['redirect_board'], '</a>
							</h4>
							<p>', $txt['manual_board_index_external'], '</p>
						</td>
						<td class="windowbg stats smalltext">
							', $txt['manual_board_index_num_redirects'], '
						</td>
						<td class="windowbg2 smalltext lastpost">
						</td>
					</tr>
					<tr class="windowbg2">
						<td class="windowbg icon" rowspan="2">
							<a href="#">
								<img src="', $settings['images_url'], '/', $context['theme_variant_url'], '/on.gif" id="board-new-or-not" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />
							</a>
						</td>
						<td class="windowbg2 info">
							<h4>
								<a class="subject" href="', $scripturl, '?action=help;area=message_view" name="b1">', $txt['manual_board_index_board_name'], '</a>
							</h4>
							<p>', $txt['manual_board_index_board_discuss'], '</p>
						</td>
						<td class="windowbg stats smalltext" rowspan="2">
							<p>', $txt['manual_board_index_posts_topics'], '</p>
						</td>
						<td class="windowbg2 smalltext lastpost" rowspan="2">
							<p>', $txt['manual_board_index_dtsa'], '</p>
						</td>
					</tr>
					<tr>
						<td class="children windowbg">
							<strong>', $txt['manual_board_index_child_boards'], '</strong>: <a href="', $scripturl, '?action=help;area=message_view">', $txt['manual_board_index_child'], '</a>
						</td>
					</tr>
					<tr class="windowbg2">
						<td class="windowbg icon">
							<a href="#"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" /></a>
						</td>
						<td class="windowbg2 info">
							<h4>
								<a class="subject" href="', $scripturl, '?action=help;area=message_view" name="b2">', $txt['manual_board_index_board_name'], '</a>
							</h4>
							<p>', $txt['manual_board_index_board_discuss'], '</p>
							<p class="moderators">', $txt['moderator'], ': <a href="', $scripturl, '?action=help;area=profile_info">', $txt['manual_board_index_board_mod'], '</a></p>
						</td>
						<td class="windowbg stats smalltext">
							<p>', $txt['manual_board_index_posts_topics'], '</p>
						</td>
						<td class="windowbg2 smalltext lastpost">
							<p>', $txt['manual_board_index_dtsa'], '</p>
						</td>
					</tr>
				</tbody>
			</table>
		</div>';

	// This changes dependant on theme really...
	$mark_read_button = array('markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => 'javascript:markBoardRead();'));
	if (!empty($settings['use_tabs']))
	{
		echo '
		<div class="nav floatright">', template_button_strip($mark_read_button, 'top'), '</div>
		<table border="0" width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
					<img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt['new_posts'], '
					<img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt['old_posts'], '
				</td>
			</tr>
		</table>
		';
	}
	else
	{
		echo '
			<br />
			<div class="tborder" style="padding: 3px;">
				<table border="0" width="100%" cellspacing="0" cellpadding="5">
					<tr class="titlebg">
						<td align="left" class="smalltext">';

		// To back support the classic theme we do a little hack here...
		if (file_exists($settings['theme_dir'] . '/images/' . $context['user']['language'] . '/new_some.gif'))
			echo '
				<img src="', $settings['lang_images_url'], '/new_some.gif" alt="', $txt['manual_index_new_posts'], '" border="0" />&nbsp;&nbsp;<img src="', $settings['lang_images_url'], '/new_none.gif" alt="', $txt['manual_index_no_new'], '" border="0" />';
		else
			echo '
				<img src="', $settings['images_url'], '/new_some.gif" alt="" align="middle" />&nbsp; ', $txt['manual_index_new_posts'], '<img src="', $settings['images_url'], '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" />&nbsp; ', $txt['manual_index_no_new'];

		echo '
						</td>
						<td>
							', template_button_strip($mark_read_button, 'top', 'align="right" class="smalltext"'), '
						</td>
					</tr>
				</table>
			</div><br />';
	}

	echo '
	</div>
	<ul class="basic_helplist">
		<li><strong>', $context['forum_name'], '</strong> - ', $txt['manual_board_index_forum'], '</li>
		<li>', $txt['manual_board_index_category'], '</li>
		<li>', $txt['manual_board_index_new'], '</li>
		<li>', $txt['manual_board_index_redirect'], '</li>
		<li>', $txt['manual_board_index_board'], '</li>
		<li>', $txt['manual_board_index_board_desc'], '</li>
		<li>', $txt['manual_board_index_moderators'], '</li>
		<li>', $txt['manual_board_index_children'], '</li>
		<li>', $txt['manual_board_index_board_info'], '</li>
		<li>', $txt['manual_board_index_mark_read'], '</li>
	</ul>
	<p>', $txt['manual_board_index_info_center'], '</p>
	<div class="help_sample">
		<div class="tborder clearfix">
			<h3 class="catbg">
				', sprintf($txt['info_center_title'], $context['forum_name']), '
			</h3>
			<div id="upshrinkHeaderIC">
				<div class="infocenter_section">
					<h4 class="titlebg">', $txt['forum_stats'], '</h4>
					<div class="windowbg">
						<p class="section">
							<a href="#"><img class="icon" src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
						</p>
						<div class="windowbg2 sectionbody middletext">
							', $txt['manual_board_index_stats_1'], '<br />
							', $txt['manual_board_index_stats_2'], '<br />
							<a href="#">', $txt['recent_view'], '</a><br />
							<a href="#">', $txt['more_stats'], '</a>
						</div>
					</div>
				</div>
				<div class="infocenter_section">
					<h4 class="titlebg">', $txt['online_users'], '</h4>
					<div class="windowbg">
						<p class="section">
							<a href="#"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['online_users'], '" /></a>
						</p>
						<div class="windowbg2 sectionbody">
							<a href="#">', $txt['manual_board_index_guests_users'], ':</a>
							<div class="smalltext">
								', sprintf($txt['users_active'], $modSettings['lastActive']), '
							</div>
							<hr class="hrcolor" />
							<div class="smalltext">
								', $txt['manual_board_index_most_users'], '
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>
	</div>';
}

// The message index page.
function template_manual_message_view()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_message_index_describe'], '</p>
	<p>', $txt['manual_message_index_looks'], '</p>
	<div class="help_sample">
		<ul class="linktree">
			<li>
				<a href="', $scripturl, '?action=help;area=board_index"><span>', $context['forum_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=board_index"><span>', $txt['manual_board_index_category_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=message_index"><span>', $txt['manual_board_index_board_name'], '</span></a>
			</li>
		</ul>
		<script type="text/javascript">//<![CDATA[
			function markMessageRead()
			{
					document.getElementById("newicon1").style.display = "none";
			}
		//]]></script>';

	// Create the buttons we need here...
	$mindex_buttons = array(
		'topic' => array('text' => 'new_topic', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=posting_topics#newtopic'),
		'poll' => array('text' => 'new_poll', 'image' => 'new_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=posting_topics#newpoll'),
		'notify' => array('text' => 'notify', 'image' => 'notify.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=message_view'),
		'markread' => array('text' => 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => 'javascript:markMessageRead();'),
	);

	if (!empty($settings['use_tabs']))
	{
		echo '
			<div class="modbuttons clearfix margintop">
				<div class="middletext floatleft">', $txt['manual_message_index_pages'], '</div>
				<div class="nav floatright">', template_button_strip($mindex_buttons, 'bottom'), '</div>
			</div>';
	}
	else
	{
		echo '
			<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
				<tr>
					<td align="left" class="catbg" width="100%" height="30">
						<table cellpadding="3" cellspacing="0" width="100%">
							<tr>
								<td><strong>', $txt['manual_message_index_pages'], '</td>
								<td>
									', template_button_strip($mindex_buttons, 'bottom', 'align="right" style="white-space: nowrap; font-size: smaller;"'), '
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>';
	}
	echo '
			<div class="tborder" id="messageindex">
				<table cellspacing="1" cellpadding="3" class="bordercolor boardsframe">
					<thead>
						<tr>
							<th class="catbg3 headerpadding" width="9%" colspan="2"></th>
							<th class="catbg3 headerpadding"><a href="', $scripturl, '?action=help;area=message_view">', $txt['subject'], '</a></th>
							<th class="catbg3 headerpadding" width="14%"><a href="', $scripturl, '?action=help;area=message_view">', $txt['started_by'], '</a></th>
							<th class="catbg3 headerpadding" width="4%" align="center"><a href="', $scripturl, '?action=help;area=message_view">', $txt['replies'], '</a></th>
							<th class="catbg3 headerpadding" width="4%" align="center"><a href="', $scripturl, '?action=help;area=message_view">', $txt['views'], '</a></th>
							<th class="catbg3 headerpadding" width="22%"><a href="', $scripturl, '?action=help;area=message_view">', $txt['last_post'], ' &nbsp; <img src="', $settings['images_url'], '/sort_down.gif" alt="" border="0" /></a></th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="windowbg2 icon1" valign="middle" align="center" width="5%">
								<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
							</td>
							<td class="windowbg2 icon2" valign="middle" align="center" width="4%">
								<img src="', $settings['images_url'], '/post/thumbup.gif" alt="" />
							</td>
							<td class="subject windowbg3" valign="middle">
								<img alt="" class="floatright" src="', $settings['images_url'], '/icons/show_sticky.gif">
								<strong><span id="msg_2"><a href="', $scripturl, '?action=help;area=topic_view">', $txt['manual_message_index_sticky_topic'], '</a></span></strong>
							</td>
							<td class="windowbg2 starter" valign="middle" width="14%">
								<a href="', $scripturl, '?action=help;area=profile_summary" class="board">', $txt['manual_message_index_started_by'], '</a>
							</td>
							<td class="windowbg3 replies" valign="middle" width="4%" align="center">
								', $txt['manual_message_index_num_replies'], '
							</td>
							<td class="windowbg3 views" valign="middle" width="4%" align="center">
								', $txt['manual_message_index_num_views'], '
							</td>
							<td class="windowbg2 lastpost" valign="middle" width="22%">
								<a href="', $scripturl, '?action=help;area=topic_view"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
								', $txt['manual_message_index_dta'], '
							</td>
						</tr>
						<tr>
							<td class="windowbg2 icon1">
								<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
							</td>
							<td class="windowbg2 icon2">
								<img src="', $settings['images_url'], '/post/xx.gif" alt="" />
							</td>
							<td class="subject windowbg">
								<span id="msg_1"><a href="', $scripturl, '?action=help;area=topic_view">', $txt['manual_message_index_normal_topic'], '</a></span>
								<a id="newicon1" href="', $scripturl, '?action=help;area=topic_view">
									<img alt="', $txt['new'], '" src="', $settings['images_url'], '/english/new.gif" />
								</a>
							</td>
							<td class="windowbg2 starter" valign="middle" width="14%">
								<a href="', $scripturl, '?action=help;area=profile_summary" class="board">', $txt['manual_message_index_started_by'], '</a>
							</td>
							<td class="windowbg replies">
								', $txt['manual_message_index_num_replies'], '
							</td>
							<td class="windowbg views">
								', $txt['manual_message_index_num_views'], '
							</td>
							<td class="windowbg2 lastpost">
								<a href="', $scripturl, '?action=help;area=topic_view"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
								', $txt['manual_message_index_dta'], '
							</td>
						</tr>
						<tr>
							<td class="windowbg2 icon1">
								<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
							</td>
							<td class="windowbg2 icon2">
								<img src="', $settings['images_url'], '/post/xx.gif" alt="" />
							</td>
							<td class="subject windowbg">
								<img alt="" class="floatright" src="', $settings['images_url'], '/icons/quick_lock.gif">
								<span id="msg_3"><a href="', $scripturl, '?action=help;area=topic_view">', $txt['manual_message_index_locked_topic'], '</a></span>
							</td>
							<td class="windowbg2 starter" valign="middle" width="14%">
								<a href="', $scripturl, '?action=help;area=profile_summary" class="board">', $txt['manual_message_index_started_by'], '</a>
							</td>
							<td class="windowbg replies">
								', $txt['manual_message_index_num_replies'], '
							</td>
							<td class="windowbg views">
								', $txt['manual_message_index_num_views'], '
							</td>
							<td class="windowbg2 lastpost">
								<a href="', $scripturl, '?action=help;area=topic_view"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
								', $txt['manual_message_index_dta'], '
							</td>
						</tr>
					</tbody>
				</table>
			</div>';

	if (!empty($settings['use_tabs']))
	{
		echo '
			<div class="modbuttons clearfix">
				<div class="middletext floatleft">', $txt['manual_message_index_pages'], '</div>
				<div class="nav floatright">', template_button_strip($mindex_buttons, 'top'), '</div>
			</div>';
	}
	else
	{
		echo '
			<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
				<tr>
					<td align="left" class="catbg" width="100%" height="30">
						<table cellpadding="3" cellspacing="0" width="100%">
							<tr>
								<td>', $txt['manual_message_index_pages'], '</td>
								<td>
									', template_button_strip($mindex_buttons, 'bottom', 'align="right" style="white-space: nowrap; font-size: smaller;"'), '
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>';
	}

	echo '
		<br />
	</div>
	<p>', $txt['manual_message_index_tabs'], '</p>
	<ul>
		<li>', $txt['manual_message_index_new_topic'], '</li>
		<li>', $txt['manual_message_index_new_poll'], '</li>
		<li>', $txt['manual_message_index_notification'], '</li>
		<li>', $txt['manual_message_index_mark_read'], '</li>
	</ul>
	<p>', $txt['manual_message_index_topic_row'], '</p>
	<ul>
		<li>', $txt['manual_message_index_topic_icon'], '</li>
		<li>', $txt['manual_message_index_message_icon'], '</li>
		<li>', $txt['manual_message_index_subject_starter'], '</li>
		<li>', $txt['manual_message_index_new_indicate'], '</li>
		<li>', $txt['manual_message_index_replies_views'], '</li>
		<li>', $txt['manual_message_index_last_post'], '</li>
	</ul>
	<p>', $txt['manual_message_index_sticky_locked'], '</p>
	<p>', $txt['manual_message_index_sorting'], '</p>';
}

// The topic page.
function template_manual_topic_view()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_topic_describe'], '</p>
	<p>', $txt['manual_topic_looks'], '</p>';

	// The buttons...
	$display_buttons = array(
		'reply' => array('text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=posting_topics#reply'),
		'notify' => array('text' => 'notify', 'image' => 'notify.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=topic_view'),
		'markunread' => array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=posting_topics#topic'),
		'sendtopic' => array('text' => 'send_topic', 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=posting_topics#topic'),
		'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'url' => $scripturl . '?action=help;area=posting_topics#topic'),
	);

	echo '
	<div class="help_sample">
		<ul class="linktree">
			<li>
				<a href="', $scripturl, '?action=help;area=board_index"><span>', $context['forum_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=board_index"><span>', $txt['manual_board_index_category_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=message_view"><span>', $txt['manual_board_index_board_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=topic_view"><span>', $txt['manual_topic_subject'], '</span></a>
			</li>
		</ul>';

	if (!empty($settings['use_tabs']))
	{
		echo '
			<div class="margintop clearfix">
				<div class="middletext floatleft">', $txt['manual_message_index_pages'], '</div>
				<div class="nav floatright">', template_button_strip($display_buttons, 'bottom'), '</div>
			</div>';
	}
	else
	{
		echo '
			<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
				<tr>
					<td align="left" class="catbg" width="100%" height="35">
						<table cellpadding="3" cellspacing="0" width="100%">
							<tr>
								<td>', $txt['manual_message_index_pages'], '</td>
								<td>
									', template_button_strip($display_buttons, 'bottom', 'align="right" style="font-size: smaller;"'), '
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>';
	}
	echo '
			<div id="forumposts" class="tborder">
				<h3 class="catbg3">
					<img src="', $settings['images_url'], '/topic/normal_post.gif" align="bottom" alt="" />
					<span>', $txt['author'], '</span>
					<span id="top_subject">', $txt['manual_topic_heading'], '</span>
				</h3>
				<div class="bordercolor">
					<div class="clearfix windowbg largepadding">
						<div class="post_wrapper">
							<div class="poster">
								<h4>
									<a href="', $scripturl, '?action=help;area=profile_summary" class="board">', $txt['manual_topic_post_author'], '</a>
								</h4>
								<ul id="msg_1_extra_info" class="reset smalltext">
									<li class="title">', $txt['manual_topic_custom_title'], '</li>
									<li class="membergroup">', $txt['manual_topic_membergroup'], '</li>
									<li class="postgroup">', $txt['manual_topic_post_group'], '</li>
									<li class="stars"><img border="0" alt="*" src="', $settings['images_url'], '/star.gif" /></li>
									<li class="avatar flow_auto">
										<img class="avatar" alt="" src="', $settings['default_images_url'], '/admin/smilies_and_messageicons.png" />
									</li>
									<li class="postcount">', $txt['manual_topic_post_count'], '</li>
									<li class="profile margintop">
										<ul class="reset nolist">
											<li><a href="#"><img border="0" title="', $txt['view_profile'], '" alt="', $txt['view_profile'], '" src="', $settings['images_url'], '/icons/profile_sm.gif" /></a></li>
											<li><a rel="nofollow" href="#"><img title="', $txt['email'], '" alt="', $txt['email'], '" src="', $settings['images_url'], '/email_sm.gif" /></a></li>
											<li><a title="', $txt['personal_message'], '" href="#"><img border="0" alt="', $txt['personal_message'], '" src="', $settings['images_url'], '/im_off.gif" /></a></li>
										</ul>
									</li>
								</ul>
							</div>
							<div class="postarea">
								<div class="flow_hidden">
									<div class="keyinfo">
										<div class="messageicon">
											<img src="', $settings['images_url'], '/post/xx.gif" alt="" border="0" />
										</div>
										<h5 id="subject_4">
											<a href="', $scripturl, '?action=help;area=topic_view" class="board">', $txt['manual_topic_post'], '</a>
										</h5>
										<div class="smalltext">&laquo; ', $txt['manual_topic_dt'], ' &raquo;</div>
									</div>
									<ul class="reset smalltext quickbuttons">
										<li class="quote_button"><a href="', $scripturl, '?action=help;area=posting_topics#quote">', $txt['quote'], '</a></li>
									</ul>
								</div>
								<div class="post">
									<hr size="1" width="100%" class="hrcolor">
									<div class="inner">
										', $txt['manual_topic_body'], ' <img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/smiley.gif" align="bottom" alt="', $txt['manual_posting_smiley_code'], '" border="0" />
									</div>
								</div>
							</div>
							<div class="moderatorbar">
								<div class="smalltext floatleft" id="modified_4">
								</div>
								<div class="smalltext largepadding floatright">
									<a href="', $scripturl, '?action=help;area=topic_view" class="board">', $txt['report_to_mod'], '</a> &nbsp;
									<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp; ', $txt['logged'], '
								</div>
								<div class="signature">', $txt['manual_topic_signature'], '</div>
							</div>
						</div>
					</div>
					<a id="lastPost"></a>
				</div>
			</div>';

	if (!empty($settings['use_tabs']))
	{
		echo '
			<div class="middletext floatleft">', $txt['manual_message_index_pages'], '</div>
			<div class="nav floatright">', template_button_strip($display_buttons, 'top'), '</div>';
	}
	else
	{
		echo '
			<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
				<tr>
					<td align="left" class="catbg" width="100%" height="30">
						<table cellpadding="3" cellspacing="0" width="100%">
							<tr>
								<td><strong>', $txt['manual_index_pages'], ':</strong> [<strong>1</strong>]</td>
								<td>
									', template_button_strip($display_buttons, 'top', 'align="right" style="font-size: smaller;"'), '
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>';
	}

	echo '
		<ul class="linktree">
			<li>
				<a href="', $scripturl, '?action=help;area=board_index"><span>', $context['forum_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=board_index"><span>', $txt['manual_board_index_category_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=message_view"><span>', $txt['manual_board_index_board_name'], '</span></a> &gt;
			</li>
			<li>
				<a href="', $scripturl, '?action=help;area=topic_view"><span>', $txt['manual_topic_subject'], '</span></a>
			</li>
		</ul>
		<br />
	</div>
	<p>', $txt['manual_topic_tabs'], '</p>
	<ul>
		<li>', $txt['manual_topic_new_reply'], '</li>
		<li>', $txt['manual_topic_notification'], '</li>
		<li>', $txt['manual_topic_mark_unread'], '</li>
		<li>', $txt['manual_topic_send_topic'], '</li>
		<li>', $txt['manual_topic_print_topic'], '</li>
	</ul>
	<p>', $txt['manual_topic_posts'], '</p>
	<ul>
		<li>
			Author Section
			<ul>
				<li>', $txt['manual_topic_author_name'], '</li>
				<li>', $txt['manual_topic_author_custom_title'], '</li>
				<li>', $txt['manual_topic_author_membergroup'], '</li>
				<li>', $txt['manual_topic_author_post_group'], '</li>
				<li>', $txt['manual_topic_author_stars'], '</li>
				<li>', $txt['manual_topic_author_posts'], '</li>
				<li>', $txt['manual_topic_author_icons'], '</li>
			</ul>
		</li>
		<li>
			Post Section
			<ul>
				<li>', $txt['manual_topic_post_message_icon'], '</li>
				<li>', $txt['manual_topic_post_subject'], '</li>
				<li>', $txt['manual_topic_post_quick_buttons'], '</li>
				<li>', $txt['manual_topic_post_dt'], '</li>
				<li>', $txt['manual_topic_post_body'], '</li>
				<li>', $txt['manual_topic_post_signature'], '</li>
				<li>', $txt['manual_topic_post_report'], '</li>
				<li>', $txt['manual_topic_post_logged'], '</li>
			</ul>
		</li>
	</ul>
	<p>', $txt['manual_topic_hide'], '</p>';
}

// When and how to register page.
function template_manual_when_how_register()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
			<p>', $txt['manual_register_access_describe'], '</p>
			<p>', $txt['manual_register_guest_describe'], '</p>
			<p>', $txt['manual_register_member_describe'], '</p>
			<p>', $txt['manual_register_how'], '</p>';
}

// The register help page.
function template_manual_registration_screen()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '

	<p>', $txt['manual_register_agree'], '</p>
	<div class="help_sample">
		<div class="cat_bar">
			<h3 class="catbg">', $txt['manual_register_form'], '</h3>
		</div>
		<div class="title_bar">
			<h4 class="titlebg">', $txt['manual_register_required_info'], '</h4>
		</div>
		<div class="windowbg2">
			<span class="topslice"><span></span></span>
			<fieldset class="content">
				<dl class="register_form">
					<dt><strong><label for="smf_autov_username">', $txt['manual_register_username'], ':</label></strong></dt>
					<dd>
						<input type="text" name="user" id="smf_autov_username" size="30" tabindex="1" maxlength="25" value="" class="input_text" />
						<span id="smf_autov_username_div" style="display: none;">
							<a id="smf_autov_username_link" href="#">
								<img id="smf_autov_username_img" src="', $settings['images_url'], '/icons/field_check.gif" alt="*" />
							</a>
						</span>
					</dd>
					<dt><strong><label for="smf_autov_reserve1">', $txt['manual_register_email'], ':</label></strong></dt>
					<dd>
						<input type="text" name="email" id="smf_autov_reserve1" size="30" tabindex="2" value="" class="input_text" />
					</dd>
					<dt><strong><label for="allow_email">', $txt['manual_register_email_allow'], ':</label></strong></dt>
					<dd>
						<input type="checkbox" name="allow_email" id="allow_email" tabindex="3" class="input_check" />
					</dd>
				</dl>
				<dl class="register_form" id="authentication_group">
					<dt>
						<strong>', $txt['manual_register_auth_method'], ':</strong>
						<a href="http://localhost/smfdev/index.php?action=helpadmin;help=register_openid" onclick="return reqWin(this.href);" class="help">(?)</a>
					</dt>
					<dd>
						<label for="auth_pass" id="option_auth_pass">
							<input type="radio" name="authenticate" value="passwd" id="auth_pass" tabindex="4" checked="checked" onclick="updateAuthMethod();" class="input_radio" />
							', $txt['manual_register_password'], '
						</label>
						<label for="auth_openid" id="option_auth_openid">
							<input type="radio" name="authenticate" value="openid" id="auth_openid" tabindex="5" onclick="updateAuthMethod();" class="input_radio" />
							', $txt['manual_register_openid'], '
						</label>
					</dd>
				</dl>
				<dl class="register_form" id="password1_group">
					<dt><strong><label for="smf_autov_pwmain">', $txt['manual_register_password_choose'], ':</label></strong></dt>
					<dd>
						<input type="password" name="passwrd1" id="smf_autov_pwmain" size="30" tabindex="6" class="input_password" />
						<span id="smf_autov_pwmain_div" style="display: none;">
							<img id="smf_autov_pwmain_img" src="', $settings['images_url'], '/icons/field_invalid.gif" alt="*" />
						</span>
					</dd>
				</dl>
				<dl class="register_form" id="password2_group">
					<dt><strong><label for="smf_autov_pwverify">', $txt['manual_register_password_verify'], ':</label></strong></dt>
					<dd>
						<input type="password" name="passwrd2" id="smf_autov_pwverify" size="30" tabindex="7" class="input_password" />
						<span id="smf_autov_pwverify_div" style="display: none;">
							<img id="smf_autov_pwverify_img" src="', $settings['images_url'], '/icons/field_valid.gif" alt="*" />
						</span>
					</dd>
				</dl>
				<dl class="register_form" id="openid_group">
					<dt><strong>', $txt['manual_register_openid_auth'], ':</strong></dt>
					<dd>
						<input type="text" name="openid_identifier" id="openid_url" size="30" tabindex="8" value="" class="input_text openid_login" />
					</dd>
				</dl>
			</fieldset>
			<span class="botslice"><span></span></span>
		</div>
		<div class="title_bar">
			<h4 class="titlebg">', $txt['manual_register_verification'], '</h4>
		</div>
		<div class="windowbg2">
			<span class="topslice"><span></span></span>
			<fieldset class="content centertext">
				<div class="verification_control">
					<img src="', $scripturl, '?action=verificationcode;vid=register;rand=bb55ae4b180aee232039e6eca573db25" alt="', $txt['manual_register_type_letters'], '" id="verification_image_register" />
					<div class="smalltext" style="margin: 4px 0 8px 0;">
						<a href="', $scripturl, '?action=verificationcode;vid=register;rand=bb55ae4b180aee232039e6eca573db25;sound" id="visual_verification_register_sound" rel="nofollow">', $txt['manual_register_listen_letters'], '</a> / <a href="#" id="visual_verification_register_refresh">', $txt['manual_register_request_image'], '</a><br /><br />
						', $txt['manual_register_type_letters'], ':<br />
						<input type="text" name="register_vv[code]" value="" size="30" tabindex="9" class="input_text" />
					</div>
				</div>
				<div class="verification_control">
					<div class="smalltext">
						', $txt['manual_register_question'], ':<br />
						<input type="text" name="register_vv[q][1]" size="30" value=""  tabindex="10" class="input_text" />
					</div>
				</div>
			</fieldset>
			<span class="botslice"><span></span></span>
		</div>
		<div id="confirm_buttons">
			<input type="submit" name="regSubmit" value="', $txt['manual_register_register'], '" tabindex="11" class="button_submit" />
		</div>
	</div>
	<p>', $txt['manual_register_arrival'], '</p>
	<p>', $txt['manual_register_auth'], '</p>
	<p>', $txt['manual_register_verify'], '</p>
	<p>', $txt['manual_register_complete'], '</p>
	<ul>
		<li>', $txt['manual_register_login'], '</li>
		<li>', $txt['manual_register_activate'], '</li>
		<li>', $txt['manual_register_approve'], '</li>
	</ul>
	<br class="clear" />';
}

// Activating account page.
function template_manual_activating_account()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
			<p>', $txt['manual_activate_describe'], '</p>
			<p>', $txt['manual_activate_error'], '</p>';
}

// Logging in and out page.
function template_manual_logging_in_out()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_loginout_describe'], '</p>
		<ul>
			<li><a href="', $scripturl, '?action=help;area=logging_in#loginScreen">', $txt['manual_loginout_login_screen'], '</a></li>
			<li><a href="', $scripturl, '?action=help;area=logging_in#quickLogin">', $txt['manual_loginout_quick_login'], '</a></li>
			<li><a href="', $scripturl, '?action=help;area=logging_in#loggingOut">', $txt['manual_loginout_logging_out'], '</a></li>
		</ul>
		<h2 class="section" id="loginScreen">', $txt['manual_loginout_login_screen'], '</h2>
		<p>', $txt['manual_loginout_login_option'], '</p>
	<div class="help_sample">
		<div class="tborder login">
			<div class="cat_bar">
				<h3 class="catbg">
					<span class="ie6_header floatleft"><img src="', $settings['images_url'], '/icons/login_sm.gif" alt="" class="icon" /> ', $txt['manual_loginout_login'], '</span>
				</h3>
			</div>
		</form>
			<span class="upperframe"><span></span></span>
			<div class="roundframe">
				<dl>
					<dt>', $txt['manual_register_username'], ':</dt>
					<dd><input type="text" name="user" size="20" value="" class="input_text" /></dd>
					<dt>', $txt['manual_register_password'], ':</dt>
					<dd><input type="password" name="passwrd" value="" size="20" class="input_password" /></dd>
				</dl>
				<p><strong>&mdash;', $txt['manual_loginout_or'], '&mdash;</strong></p>
				<dl>
					<dt>', $txt['manual_register_openid'], ':</dt>
					<dd><input type="text" name="openid_identifier" class="input_text openid_login" size="17" />&nbsp;<em><a href="', $scripturl, '?action=helpadmin;help=register_openid" onclick="return reqWin(this.href);" class="help">(?)</a></em></dd>
				</dl>
				<hr />
				<dl>
					<dt>', $txt['manual_loginout_minutes'], ':</dt>
					<dd><input type="text" name="cookielength" size="4" maxlength="4" value="60" class="input_text" /></dd>
					<dt>', $txt['manual_loginout_always'], ':</dt>
					<dd><input type="checkbox" name="cookieneverexp" class="input_check" onclick="this.form.cookielength.disabled = this.checked;" /></dd>
				</dl>
				<p><input type="submit" value="Login" class="button_submit" /></p>
				<div class="smalltext centertext"><a href="', $scripturl, '?action=reminder">', $txt['manual_loginout_forgot_password'], '</a></div>
			</div>
			<span class="lowerframe"><span></span></span>
		</div>
	</div>
	<ul>
		<li>', $txt['manual_loginout_login_username'], '</li>
		<li>', $txt['manual_loginout_login_password'], '</li>
		<li>', $txt['manual_loginout_login_openid'], '</li>
		<li>', $txt['manual_loginout_login_minutes'], '</li>
		<li>', $txt['manual_loginout_login_always'], '</li>
	</ul>
	<p>', $txt['manual_loginout_login_warning'], '</p>
	<h2 class="section" id="quickLogin">', $txt['manual_loginout_quick_login'], '</h2>
	<p>', $txt['manual_loginout_quick'], '</p>
	<div class="help_sample">
		<div class="user">
			<div class="info">', $txt['manual_loginout_please'], ' <a href="', $scripturl, '?action=login">', $txt['manual_loginout_login_lower'], '</a> ', $txt['manual_loginout_or'],' <a href="', $scripturl, '?action=register">', $txt['manual_loginout_register'], '</a>.</div>
			<input type="text" name="user" size="10" class="input_text" />
			<input type="password" name="passwrd" size="10" class="input_password" />
			<select name="cookielength">
				<option value="60">', $txt['manual_loginout_hour'], '</option>
				<option value="1440">', $txt['manual_loginout_day'], '</option>
				<option value="10080">', $txt['manual_loginout_week'], '</option>
				<option value="43200">', $txt['manual_loginout_month'], '</option>
				<option value="-1" selected="selected">', $txt['manual_loginout_forever'], '</option>
			</select>
			<input type="submit" value="', $txt['manual_loginout_login'], '" class="button_submit" /><br />
			<div class="info">', $txt['manual_loginout_instruct'], '</div>
			<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />
		</div>
	</div>
	<ul>
		<li>', $txt['manual_loginout_login_username'], '</li>
		<li>', $txt['manual_loginout_login_password'], '</li>
		<li>', $txt['manual_loginout_quick_session'], '</li>
		<li>', $txt['manual_loginout_login_openid'], '</li>
	</ul>
	<p>', $txt['manual_loginout_quick_relate'], '</p>
	<h2 class="section" id="loggingOut">', $txt['manual_loginout_logging_out'], '</h2>
	<p>', $txt['manual_loginout_out_describe'], '</p>
	<p>', $txt['manual_loginout_out_how'], '</p>';
}

// Password reminders page.
function template_manual_password_reminders()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_reminders_describe'], '</p>
	<div class="help_sample">
		<div class="tborder login">
			<h3 class="catbg"><span class="left"></span>
				', $txt['manual_reminders_auth'], '
			</h3>
			<span class="upperframe"><span></span></span>
			<div class="roundframe">
				<p class="smalltext centertext">', $txt['manual_reminders_start'], '</p>
				<dl>
					<dt>', $txt['manual_reminders_user_email'], ':</dt>
					<dd><input type="text" name="user" size="30" class="input_text" /></dd>
				</dl>
				<div class="padding"><input type="submit" value="', $txt['manual_reminders_continue'], '" class="button_submit floatright" /></div>
				<br class="clear" />
			</div>
			<span class="lowerframe"><span></span></span>
		</div>
	</div>
	<p>', $txt['manual_reminders_secret'], '</p>
	<div class="help_sample">
		<div class="tborder login">
			<h3 class="catbg"><span class="left"></span>
				', $txt['manual_reminders_auth'], '
			</h3>
			<span class="upperframe"><span></span></span>
			<div class="roundframe">
				<p class="smalltext">', $txt['manual_reminders_instruct'], '</p>
				<dl>
					<dt>', $txt['manual_reminders_secret_question'], ':</dt>
					<dd>', $txt['manual_reminders_fingers'], '</dd>
					<dt>', $txt['manual_reminders_answer'], ':</dt>
					<dd><input type="text" name="secret_answer" size="22" class="input_text" /></dd>
					<dt>', $txt['manual_register_password_choose'], ': </dt>
					<dd>
						<input type="password" name="passwrd1" id="smf_autov_pwmain" size="22" class="input_password" />
						<span id="smf_autov_pwmain_div" style="display: none;">
							<img id="smf_autov_pwmain_img" src="', $settings['images_url'], '/icons/field_invalid.gif" alt="*" />
						</span>
					</dd>
					<dt>', $txt['manual_register_password_verify'], ': </dt>
					<dd>
						<input type="password" name="passwrd2" id="smf_autov_pwverify" size="22" class="input_password" />
						<span id="smf_autov_pwverify_div" style="display: none;">
							<img id="smf_autov_pwverify_img" src="', $settings['images_url'], '/icons/field_valid.gif" alt="*" />
						</span>
					</dd>
				</dl>
				<div class="padding"><input type="submit" value="', $txt['manual_reminders_save'], '" class="button_submit floatright" /></div>
				<br class="clear" />
			</div>
			<span class="lowerframe"><span></span></span>
		</div>
	</div>
	<p>', $txt['manual_reminders_new_password'], '</p>';
}

// Profile summary page.
function template_manual_profile_info_summary()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_profile_summary_describe'], '</p>
	<div class="help_sample">
		<div id="profileview" class="flow_auto">
			<div class="cat_bar">
				<h3 class="catbg">
					<span class="ie6_header floatleft"><img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" class="icon" />', $txt['manual_entry_profile_info_summary'], '</span>
				</h3>
			</div>
			<div id="basicinfo">
				<div class="windowbg">
					<span class="topslice"><span></span></span>
					<div class="content">
						<div class="username"><h4>', $txt['manual_profile_summary_display_name'], ' <span class="position">', $txt['manual_topic_membergroup'], '</span></h4></div>
						<img class="avatar" src="', $settings['default_images_url'], '/admin/smilies_and_messageicons.png" alt="" border="0" />
						<ul class="reset">
							<li><a href="#" title="', $txt['manual_register_email'], '" rel="nofollow"><img src="', $settings['images_url'], '/email_sm.gif" alt="', $txt['manual_register_email'], '" /></a></li>
							<li><a href="#" title="', $txt['manual_profile_summary_website'], '" class="new_win"><img src="', $settings['images_url'], '/www_sm.gif" alt="', $txt['manual_profile_summary_website'], '" border="0" /></a></li>
							<li><a class="aim" href="#" title="', $txt['manual_profile_summary_aim'], '"><img src="', $settings['images_url'], '/aim.gif" alt="', $txt['manual_profile_summary_aim'], '" border="0" /></a></li>
							<li><a class="yim" href="#" title="', $txt['manual_profile_summary_yim'], '"><img src="http://opi.yahoo.com/online?u=YIM&amp;m=g&amp;t=0" alt="', $txt['manual_profile_summary_yim'], '" border="0" /></a></li>
						</ul>
						<span id="userstatus">
							<a href="#" title="', $txt['manual_profile_summary_offline'], '" rel="nofollow"><img src="', $settings['images_url'], '/useroff.gif" alt="', $txt['manual_profile_summary_offline'], '" align="middle" /></a>
							<span class="smalltext"> ', $txt['manual_profile_summary_offline'], '</span><br />
							<a href="#">', $txt['manual_profile_summary_add_buddy'], '</a>
						</span>
						<p id="infolinks">
							<a href="#">', $txt['manual_profile_summary_send_pm'], '</a><br />
							<a href="#">', $txt['manual_entry_profile_info_posts'], '</a><br />
							<a href="#">', $txt['manual_entry_profile_info_stats'], '</a>
						</p>
					</div>
					<span class="botslice"><span></span></span>
				</div>
			</div>
			<div id="detailedinfo">
				<div class="windowbg2">
					<span class="topslice"><span></span></span>
					<div class="content">
						<dl>
							<dt>', $txt['manual_register_username'], ': </dt>
							<dd>', $txt['manual_register_username'], '</dd>
							<dt>', $txt['manual_profile_summary_post_title'], ': </dt>
							<dd>', $txt['manual_profile_summary_posts_avg'], '</dd>
							<dt>', $txt['manual_register_email'], ': </dt>
							<dd><em><a href="#">', $txt['manual_register_email'], '</a></em></dd>
							<dt>', $txt['manual_profile_summary_custom'], ': </dt>
							<dd>', $txt['manual_profile_summary_custom'], '</dd>
							<dt>', $txt['manual_profile_summary_personal'], ': </dt>
							<dd>', $txt['manual_profile_summary_personal'], '</dd>
							<dt>', $txt['manual_profile_summary_sex'], ': </dt>
							<dd>', $txt['manual_profile_summary_sex'], '</dd>
							<dt>', $txt['manual_profile_summary_old'], ':</dt>
							<dd>', $txt['manual_profile_summary_old'], '</dd>
							<dt>', $txt['manual_profile_summary_locate'], ':</dt>
							<dd>', $txt['manual_profile_summary_locate'], '</dd>
						</dl>
						<dl class="noborder">
							<dt>', $txt['manual_profile_summary_date_registered'], ': </dt>
							<dd>', $txt['manual_profile_summary_mdyt'], '</dd>
							<dt>', $txt['manual_profile_summary_local'], ':</dt>
							<dd>', $txt['manual_profile_summary_mdyt'], '</dd>
							<dt>', $txt['manual_profile_summary_last'], ': </dt>
							<dd>', $txt['manual_profile_summary_mdyt'], '</dd>
						</dl>
						<div class="signature">
							<h5>', $txt['manual_topic_signature'], ':</h5>
							', $txt['manual_topic_signature'], '
						</div>
					</div>
					<span class="botslice"><span></span></span>
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<p>', $txt['manual_profile_summary_how'], '</p>
	<ul>
		<li>', $txt['manual_profile_summary_display'], '</li>
		<li>', $txt['manual_profile_summary_membergroup'], '</li>
		<li>', $txt['manual_profile_summary_communicate'], '</li>
		<li>', $txt['manual_profile_summary_online'], '</li>
		<li>', $txt['manual_profile_summary_buddy'], '</li>
		<li>', $txt['manual_profile_summary_pm'], '</li>
		<li>', $txt['manual_profile_summary_posts'], '</li>
		<li>', $txt['manual_profile_summary_stats'], '</li>
		<li>', $txt['manual_profile_summary_username'], '</li>
		<li>', $txt['manual_profile_summary_posts'], '</li>
		<li>', $txt['manual_profile_summary_email'], '</li>
		<li>', $txt['manual_profile_summary_title'], '</li>
		<li>', $txt['manual_profile_summary_text'], '</li>
		<li>', $txt['manual_profile_summary_gender'], '</li>
		<li>', $txt['manual_profile_summary_age'], '</li>
		<li>', $txt['manual_profile_summary_locale'], '</li>
		<li>', $txt['manual_profile_summary_registered'], '</li>
		<li>', $txt['manual_profile_summary_time'], '</li>
		<li>', $txt['manual_profile_summary_active'], '</li>
	</ul>';
}

// Profile show posts page.
function template_manual_profile_info_posts()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_profile_posts_describe'], '</p>
	<ul>
		<li>', $txt['manual_profile_posts_messages'], '</li>
		<li>', $txt['manual_profile_posts_topics'], '</li>
		<li>', $txt['manual_profile_posts_attach'], '</li>
	<ul>';
}

// Profile show stats page.
function template_manual_profile_info_stats()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_profile_stats_describe'], '</p>
	<ul>
		<li>', $txt['manual_profile_stats_online'], '</li>
		<li>', $txt['manual_profile_stats_posts'], '</li>
		<li>', $txt['manual_profile_stats_topics'], '</li>
		<li>', $txt['manual_profile_stats_polls'], '</li>
		<li>', $txt['manual_profile_stats_votes'], '</li>
		<li>', $txt['manual_profile_stats_activity'], '</li>
		<li>', $txt['manual_profile_stats_popular_posts'], '</li>
		<li>', $txt['manual_profile_stats_popular_activity'], '</li>
	</ul>';
}

// Modify profile account settings page.
function template_manual_modify_profile_settings()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_settings_describe'], '</p>
		<ul>
			<li>', $txt['manual_profile_settings_name'], '</li>
			<li>', $txt['manual_profile_settings_email'], '</li>
			<li>', $txt['manual_profile_settings_allow'], '</li>
			<li>', $txt['manual_profile_settings_show'], '</li>
			<li>', $txt['manual_profile_settings_password'], '</li>
			<li>', $txt['manual_profile_settings_question'], '</li>
			<li>', $txt['manual_profile_settings_current'], '</li>
		</ul>';
}

// Modify forum profile page.
function template_manual_modify_profile_forum()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_forum_describe'], '</p>
		<ul>
			<li>', $txt['manual_profile_forum_avatar'], '</li>
			<li>', $txt['manual_profile_forum_text'], '</li>
			<li>', $txt['manual_profile_forum_birth'], '</li>
			<li>', $txt['manual_profile_forum_location'], '</li>
			<li>', $txt['manual_profile_forum_gender'], '</li>
			<li>', $txt['manual_profile_forum_im'], '</li>
			<li>', $txt['manual_profile_forum_title'], '</li>
			<li>', $txt['manual_profile_forum_signature'], '</li>
			<li>', $txt['manual_profile_forum_website'], '</li>
		</ul>';
}

// Modify profile look and layout page.
function template_manual_modify_profile_look()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_look_describe'], '</p>
		<p>', $txt['manual_profile_look_theme'], '</p>
		<p>', $txt['manual_profile_look_options'], '</p>
		<ul>
			<li>', $txt['manual_profile_look_descriptions'], '</li>
			<li>', $txt['manual_profile_look_children'], '</li>
			<li>', $txt['manual_profile_look_sides'], '</li>
			<li>', $txt['manual_profile_look_avatars'], '</li>
			<li>', $txt['manual_profile_look_signatures'], '</li>
			<li>', $txt['manual_profile_look_return'], '</li>
			<li>', $txt['manual_profile_look_warn'], '</li>
			<li>', $txt['manual_profile_look_ignore'], '</li>
			<li>', $txt['manual_profile_look_recent'], '</li>
			<li>', $txt['manual_profile_look_wysiwyg'], '</li>
		</ul>
		<p>', $txt['manual_profile_look_quick'], '</p>';
}

// Modify forum authentication page.
function template_manual_modify_profile_auth()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_auth_describe'], '</p>';
}

// Modify profile notifications page.
function template_manual_modify_profile_notify()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_notify_describe'], '</p>
		<ul>
			<li>', $txt['manual_profile_notify_receive'], '</li>
			<li>', $txt['manual_profile_notify_auto'], '</li>
			<li>', $txt['manual_profile_notify_post'], '</li>
		</ul>
		<p>', $txt['manual_profile_notify_lists'], '</p>';
}

// Modify profile personal messages page.
function template_manual_modify_profile_pm()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_pm_describe'], '</p>
		<p>', $txt['manual_profile_pm_display'], '</p>
		<p>', $txt['manual_proifle_pm_control'], '</p>
		<p>', $txt['manual_profile_pm_notify'], '</p>
		<p>', $txt['manual_profile_pm_last'], '</p>
		<ul>
			<li>', $txt['manual_profile_pm_save'], '</li>
			<li>', $txt['manual_profile_pm_label'], '</li>
		</ul>';
}

// Modify profile edit buddies page.
function template_manual_modify_profile_buddies()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_buddies_describe'], '</p>
		<ul>
			<li>', $txt['manual_profile_buddies_edit'], '</li>
			<li>', $txt['manual_profile_buddies_ignore'], '</li>
		</ul>';
}

// Modify profile group membership page.
function template_manual_modify_profile_groups()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_groups_describe'], '</p>
		<div class="help_sample">
			<table border="0" width="100%" cellspacing="0" cellpadding="4" class="table_grid">
				<tr>
					<th class="catbg first_th">', $txt['manual_profile_groups_available'], '</th>
					<th class="catbg last_th"></th>
				</tr>
				<tr class="windowbg2">
					<td>
						<strong>', $txt['manual_profile_groups_free'], '</strong><br /><span class="smalltext">', $txt['manual_profile_groups_free_desc'], '</span>
					</td>
					<td class="righttext">
						<a href="#">', $txt['manual_profile_groups_join'], '</a>
					</td>
				</tr>
				<tr class="windowbg">
					<td>
						<strong>', $txt['manual_profile_groups_requestable'], '</strong><br /><span class="smalltext">', $txt['manual_profile_groups_requestable_desc'], '</span>
					</td>
					<td class="righttext">
						<a href="#">', $txt['manual_profile_groups_request'], '</a>
					</td>
				</tr>
			</table>
		</div>';
}

// Profile actions subscriptions page.
function template_manual_profile_actions_subscriptions()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_subscribe_describe'], '</p>
		<div class="help_sample">
			<div class="cat_bar">
				<h3 class="catbg">', $txt['manual_profile_subscribe_example'], '</h3>
			</div>
			<div class="windowbg">
				<span class="topslice"><span></span></span>
				<div class="content">
					<p><strong>', $txt['manual_profile_subscribe_example'], '</strong></p>
					<p class="smalltext">', $txt['manual_profile_subscribe_example_desc'], '</p>
					<div>', $txt['manual_profile_subscribe_duration'], '</div>
					', $txt['manual_profile_subscribe_cost'], '<br />
					<input type="submit" name="sub_id[1]" value="', $txt['manual_profile_subscribe_order'], '" class="button_submit" />
				</div>
				<span class="botslice"><span></span></span>
			</div>
		</div>
		<p>', $txt['manual_profile_subscribe_existing'], '</p>
		<div class="help_sample">
			<div class="title_bar">
				<h3 class="titlebg">', $txt['manual_profile_subscribe_exist'], '</h3>
			</div>
			<div class="information">
				', $txt['manual_profile_subscribe_extend'], '
			</div>
			<table width="100%" class="table_grid">
				<thead>
					<tr class="catbg">
						<th class="first_th" width="30%">', $txt['manual_profile_subscribe_name'], '</th>
						<th align="center">', $txt['manual_profile_subscribe_status'], '</th>
						<th align="center">', $txt['manual_profile_subscribe_start'], '</th>
						<th class="last_th" align="center">', $txt['manual_profile_subscribe_end'], '</th>
					</tr>
				</thead>
				<tbody>
					<tr class="windowbg">
						<td align="center" colspan="4">', $txt['manual_profile_subscribe_none'], '</td>
					</tr>
				</tbody>
			</table>
		</div>';
}

// Profile actions delete page.
function template_manual_profile_actions_delete()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_profile_delete_describe'], '</p>
		<div class="help_sample">
			<div class="windowbg2">
				<span class="topslice"><span></span></span>
					<div class="content">
						<div class="alert">', $txt['manual_profile_delete_sure'], '</div>
						<div>
							<strong>', $txt['manual_profile_delete_password'], ' </strong>
							<input type="password" name="oldpasswrd" size="20" class="input_password" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" value="', $txt['manual_profile_delete_yes'], '" class="button_submit" />
						</div>
					</div>
				<span class="botslice"><span></span></span>
			</div>
		</div>';
}

// Posting screen page.
function template_manual_posting_screen()
{
	// TODO : Write this.
}

// Posting topics page.
function template_manual_posting_topics()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_posting_forum_about_part1'], '<a href="', $scripturl, '?action=help;area=bbcode">', $txt['manual_posting_forum_about_link_bbcref'], '</a>', $txt['manual_posting_forum_about_part2'], '<a href="', $scripturl, '?action=help;area=smileys">', $txt['manual_posting_forum_about_link_bbcref_smileysref'], '</a>', $txt['manual_posting_forum_about_part3'], '</p>
	<p>', $txt['manual_posting_please_note'], '</p>
	<ol>
		<li>
			<a href="', $scripturl, '?action=help;area=posting_topics#basics">', $txt['manual_posting_sec_posting_basics'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=posting_topics#newtopic">', $txt['manual_posting_starting_topic'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#newpoll">', $txt['manual_posting_start_poll'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#calendar">', $txt['manual_posting_post_event'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#reply">', $txt['manual_posting_replying'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#quote">', $txt['manual_posting_quote_post'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#modify">', $txt['manual_posting_modify_delete'], '</a></li>
			</ol>
		</li>
		<li>
			<a href="', $scripturl, '?action=help;area=posting_topics#standard">', $txt['manual_posting_sec_posting_options'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=posting_topics#messageicon">', $txt['manual_posting_sub_message_icon'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#bbc">', $txt['manual_posting_sub_bbc'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#smileys">', $txt['manual_posting_sub_smileys'], '</a></li>
			</ol>
		</li>
		<li><a href="', $scripturl, '?action=help;area=posting_topics#tags">', $txt['manual_posting_sec_tags'], '</a></li>
		<li>
			<a href="', $scripturl, '?action=help;area=posting_topics#additional">', $txt['manual_posting_sec_additional_options'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=posting_topics#notify">', $txt['manual_posting_notify'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#return">', $txt['manual_posting_return'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#nosmileys">', $txt['manual_posting_no_smiley'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=posting_topics#attachments">', $txt['manual_posting_sub_attach'], '</a></li>
			</ol>
		</li>
	</ol>
	<h2 class="section" id="basics">', $txt['manual_posting_sec_posting_basics'], '</h2>
	<h3 class="section" id="newtopic">', $txt['manual_posting_starting_topic'], '</h3>
	<p>', $txt['manual_posting_starting_topic_desc_part1'], '<a href="', $scripturl, '?action=help;area=message_view">', $txt['manual_posting_starting_topic_desc_link_index_message'], '</a>', $txt['manual_posting_starting_topic_desc_part2'], '<a href="', $scripturl, '?action=help;area=posting_topics#standard">', $txt['manual_posting_starting_topic_desc_link_index_message_standard'], '</a>', $txt['manual_posting_starting_topic_desc_part3'], '</p>
	<div class="help_sample">
			<form action="', $scripturl, '?action=help;area=posting_topics" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
				<table width="100%" align="center" cellpadding="0" cellspacing="3">
					<tr>
						<td valign="bottom" colspan="2"><span class="nav"><img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><a href="', $scripturl, '?action=help;area=board_index" class="nav">', $txt['manual_posting_forum_name'], '</a></strong><br />
						<img src="', $settings['images_url'], '/icons/linktree_side.gif" alt="|-" border="0" /> <img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><a href="', $scripturl, '?action=help;area=board_index" class="nav">', $txt['manual_posting_cat_name'], '</a></strong><br />
						<img src="', $settings['images_url'], '/icons/linktree_main.gif" alt="| " border="0" /> <img src="', $settings['images_url'], '/icons/linktree_side.gif" alt="|-" border="0" /> <img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><a href="', $scripturl, '?action=help;area=message_index" class="nav">', $txt['manual_posting_board_name'], '</a></strong><br />
						<img src="', $settings['images_url'], '/icons/linktree_main.gif" alt="| " border="0" /> <img src="', $settings['images_url'], '/icons/linktree_main.gif" alt="| " border="0" /> <img src="', $settings['images_url'], '/icons/linktree_side.gif" alt="|-" border="0" /> <img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><em>', $txt['manual_posting_start_topic'], '</em></strong></span></td>
					</tr>
				</table>
				<table border="0" width="100%" align="center" cellspacing="1" cellpadding="3" class="bordercolor">
					<tr class="titlebg">
						<td>', $txt['manual_posting_start_topic'], '</td>
					</tr>
					<tr>
						<td class="windowbg">
							<table border="0" cellpadding="3" width="100%">
								<tr class="windowbg">
									<td colspan="2" align="center"><a href="', $scripturl, '?action=help;area=posting_topics#standard">', $txt['manual_posting_std_options'], '&nbsp;', $txt['manual_posting_omit_clarity'], '</a></td>
								</tr>
								<tr>
									<td align="right"><strong>', $txt['manual_posting_subject'], ':</strong></td>
									<td><input type="text" name="subject" size="80" maxlength="80" tabindex="', $context['tabindex']++, '" class="input_text" /></td>
								</tr>
								<tr>
									<td valign="top" align="right"></td>
									<td>
									<textarea class="editor" name="message" rows="12" cols="60" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '">
</textarea></td>
								</tr>
								<tr class="windowbg">
									<td colspan="2" align="center"><a href="', $scripturl, '?action=help;area=posting_topics#additional">', $txt['manual_posting_sec_additional_options'], '&nbsp;', $txt['manual_posting_omit_clarity'], '</a></td>
								</tr>
								<tr>
									<td align="center" colspan="2"><span class="smalltext"><br />
									', $context['browser']['is_firefox'] ? $txt['manual_posting_shortcuts_firefox'] : $txt['manual_posting_shortcuts'], '</span><br />
									<input type="button" accesskey="s" tabindex="', $context['tabindex']++, '" value="', $txt['manual_posting_posts'], '" class="button_submit" /> <input type="button" accesskey="p" tabindex="', $context['tabindex']++, '" value="', $txt['manual_posting_preview'], '" class="button_submit" /></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</form><br />
	</div>
	<ul>
		<li>', $txt['manual_posting_nav_tree'], '</li>
		<li>', $txt['manual_posting_spell_check'], '</li>
	</ul>
	<h3 class="section" id="newpoll">', $txt['manual_posting_start_poll'], '</h3>
	<p>', $txt['manual_posting_poll_desc_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#newtopic">', $txt['manual_posting_poll_desc_link_newtopic'], '</a>', $txt['manual_posting_poll_desc_part2'], '</p>
	<p>', $txt['manual_posting_poll_options'], '</p>
	<p>', $txt['manual_posting_poll_note'], '</p>
	<h3 class="section" id="calendar">', $txt['manual_posting_post_event'], '</h3>
	<p>', $txt['manual_posting_event_desc_part1'], '<a href="', $scripturl, '?action=help;area=main_menu">', $txt['manual_posting_event_desc_link_index_main'], '</a>', $txt['manual_posting_event_desc_part2'], '</p>
	<h3 class="section" id="reply">', $txt['manual_posting_replying'], '</h3>
	<p>', $txt['manual_posting_replying_desc_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#newtopic">', $txt['manual_posting_replying_desc_link_newtopic'], '</a>', $txt['manual_posting_replying_desc_part2'], '</p>
	<p>', $txt['manual_posting_quick_reply_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#bbc">', $txt['manual_posting_quick_reply_link_bbc'], '</a>', $txt['manual_posting_quick_reply_part2'], '<a href="', $scripturl, '?action=help;area=posting_topics#smileys">', $txt['manual_posting_quick_reply_link_bbc_smileys'], '</a>', $txt['manual_posting_quick_reply_part3'], '</p>
	<h3 class="section" id="quote">', $txt['manual_posting_quote_post'], '</h3>
	<p>', $txt['manual_posting_quote_desc'], '</p>
	<ul>
		<li>', $txt['manual_posting_quote_both_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#bbc">', $txt['manual_posting_quote_both_link_bbc'], '</a>', $txt['manual_posting_quote_both_part2'], '</li>
		<li>', $txt['manual_posting_quote_independant_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#bbcref">', $txt['manual_posting_quote_independant_link_bbcref'], '</a>', $txt['manual_posting_quote_independant_part2'], '</li>
	</ul>
	<h3 class="section" id="modify">', $txt['manual_posting_modify_delete'], '</h3>
	<p>', $txt['manual_posting_modify_desc'], '</p>
	<p>', $txt['manual_posting_delete_desc'], '</p>
	<h2 class="section" id="standard">', $txt['manual_posting_sec_posting_options'], '</h2>
	<div class="help_sample">
			<br />
			<script type="text/javascript">
//<![CDATA[
			function showimage()
			{
					document.images.icons.src = "', $settings['images_url'], '/post/" + document.forms.postmodify.icon.options[document.forms.postmodify.icon.selectedIndex].value + ".gif";
					document.images.icons.src ="', $settings['images_url'], '/post/" + document.forms.postmodify.icon.options[document.forms.postmodify.icon.selectedIndex].value + ".gif";
			}
			var currentSwap = false;
			function swapOptions()
			{
					document.getElementById("postMoreExpand").src = smf_images_url + "/" + (currentSwap ? "collapse.gif" : "expand.gif");
					document.getElementById("postMoreExpand").alt = currentSwap ? "-" : "+";
					document.getElementById("postMoreOptions").style.display = currentSwap ? "" : "none";
					if (document.getElementById("postAttachment"))
								document.getElementById("postAttachment").style.display = currentSwap ? "" : "none";
					if (document.getElementById("postAttachment2"))
								document.getElementById("postAttachment2").style.display = currentSwap ? "" : "none";
					currentSwap = !currentSwap;
			}
//]]>
</script>
			<form action="', $scripturl, '?action=help;area=posting_topics" method="post" accept-charset="', $context['character_set'], '" name="postmodify" style="margin: 0;" id="postmodify">
				<table border="0" width="100%" align="center" cellspacing="1" cellpadding="3" class="bordercolor">
					<tr>
						<td class="windowbg">
							<table border="0" cellpadding="3" width="100%">
								<tr>
									<td align="right"><strong>', $txt['manual_posting_msg_icon'], ':</strong></td>
									<td><select name="icon" id="icon" onchange="showimage();">
										<option value="xx" selected="selected">
											', $txt['manual_posting_standard_icon'], '
										</option>
										<option value="thumbup">
											', $txt['manual_posting_thumb_up_icon'], '
										</option>
										<option value="thumbdown">
											', $txt['manual_posting_thumb_down_icon'], '
										</option>
										<option value="exclamation">
											', $txt['manual_posting_exc_pt_icon'], '
										</option>
										<option value="question">
											', $txt['manual_posting_q_mark_icon'], '
										</option>
										<option value="lamp">
											', $txt['manual_posting_lamp_icon'], '
										</option>
										<option value="smiley">
											', $txt['manual_posting_smiley_icon'], '
										</option>
										<option value="angry">
											', $txt['manual_posting_angry_icon'], '
										</option>
										<option value="cheesy">
											', $txt['manual_posting_cheesy_icon'], '
										</option>
										<option value="grin">
											', $txt['manual_posting_grin_icon'], '
										</option>
										<option value="sad">
											', $txt['manual_posting_sad_icon'], '
										</option>
										<option value="wink">
											', $txt['manual_posting_wink_icon'], '
										</option>
									</select> <img src="', $settings['images_url'], '/post/xx.gif" name="icons" border="0" hspace="15" alt="" id="icons" /></td>
								</tr>
								<tr>
									<td align="right"></td>
									<td valign="middle">
										<script type="text/javascript">
//<![CDATA[
										function bbc_highlight(something, mode)
										{
													something.style.backgroundImage = "url(" + smf_images_url + "/bbc/" + (mode ? "bbc_hoverbg.gif)" : "bbc_bg.gif)");
										}
//]]>
</script>
										<a href="javascript:void(0);" onclick="surroundText(\'[b]\', \'[/b]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/bold.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_bold_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[i]\', \'[/i]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/italicize.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_italicize_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[u]\', \'[/u]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/underline.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_underline_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[s]\', \'[/s]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/strike.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_strike_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[glow=red,2,300]\', \'[/glow]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/glow.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_glow_example'], '" /></a>
										<a href="javascript:void(0);" onclick="surroundText(\'[shadow=red,left]\', \'[/shadow]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/shadow.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_shadow_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[move]\', \'[/move]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/move.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_move_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[pre]\', \'[/pre]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/pre.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_pre_example'], '" /></a>
										<a href="javascript:void(0);" onclick="surroundText(\'[left]\', \'[/left]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/left.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_left_example'], '" /></a>
										<a href="javascript:void(0);" onclick="surroundText(\'[center]\', \'[/center]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/center.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_center_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[right]\', \'[/right]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/right.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_right_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[hr]\', \'\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/hr.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_hr_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[size=10pt]\', \'[/size]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/size.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_size_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[font=Verdana]\', \'[/font]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/face.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_face_example'], '" /></a>
										<select onchange="surroundText(\'[color=\'+this.options[this.selectedIndex].value+\']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0;" style="margin-bottom: 1ex; margin-left: 2ex;">
											<option value="" selected="selected">
												', $txt['manual_posting_Change_Color'], '
											</option>
											<option value="Black">
												', $txt['manual_posting_color_black'], '
											</option>
											<option value="Red">
												', $txt['manual_posting_color_red'], '
											</option>
											<option value="Yellow">
												', $txt['manual_posting_color_yellow'], '
											</option>
											<option value="Pink">
												', $txt['manual_posting_color_pink'], '
											</option>
											<option value="Green">
												', $txt['manual_posting_color_green'], '
											</option>
											<option value="Orange">
												', $txt['manual_posting_color_orange'], '
											</option>
											<option value="Purple">
												', $txt['manual_posting_color_purple'], '
											</option>
											<option value="Blue">
												', $txt['manual_posting_color_blue'], '
											</option>
											<option value="Beige">
												', $txt['manual_posting_color_beige'], '
											</option>
											<option value="Brown">
												', $txt['manual_posting_color_brown'], '
											</option>
											<option value="Teal">
												', $txt['manual_posting_color_teal'], '
											</option>
											<option value="Navy">
												', $txt['manual_posting_color_navy'], '
											</option>
											<option value="Maroon">
												', $txt['manual_posting_color_maroon'], '
											</option>
											<option value="LimeGreen">
												', $txt['manual_posting_color_lime'], '
											</option>
										</select><br />
										<a href="javascript:void(0);" onclick="surroundText(\'[flash=200,200]\', \'[/flash]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/flash.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_flash_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[img]\', \'[/img]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/img.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_img_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[url]\', \'[/url]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/url.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_url_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[email]\', \'[/email]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/email.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_email_example'], '" /></a>
										<a href="javascript:void(0);" onclick="surroundText(\'[ftp]\', \'[/ftp]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/ftp.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_ftp_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[table]\', \'[/table]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/table.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_table_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[tr]\', \'[/tr]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/tr.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_tr_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[td]\', \'[/td]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/td.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_td_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[sup]\', \'[/sup]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/sup.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_sup_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[sub]\', \'[/sub]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/sub.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_sub_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[tt]\', \'[/tt]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/tele.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_tele_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />
										<a href="javascript:void(0);" onclick="surroundText(\'[code]\', \'[/code]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/code.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_code_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[quote]\', \'[/quote]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/quote.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_quote_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[list][li]\', \'[/li][li][/li][/list]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/list.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_list_example'], '" /></a>
									</td>
								</tr>
								<tr>
									<td align="right"></td>
									<td valign="middle">
										<a href="javascript:void(0);" onclick="replaceText(\' :)\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/smiley.gif" align="bottom" alt="', $txt['manual_posting_smiley_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' ;)\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/wink.gif" align="bottom" alt="', $txt['manual_posting_wink_code'], '" border="0" /></a>
										<a href="javascript:void(0);" onclick="replaceText(\' :D\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/cheesy.gif" align="bottom" alt="', $txt['manual_posting_cheesy_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' ;D\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/grin.gif" align="bottom" alt="', $txt['manual_posting_grin_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' &gt;:(\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/angry.gif" align="bottom" alt="', $txt['manual_posting_angry_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :(\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/sad.gif" align="bottom" alt="', $txt['manual_posting_sad_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :o\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/shocked.gif" align="bottom" alt="', $txt['manual_posting_shocked_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' 8)\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/cool.gif" align="bottom" alt="', $txt['manual_posting_cool_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' ???\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/huh.gif" align="bottom" alt="', $txt['manual_posting_huh_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' ::)\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/rolleyes.gif" align="bottom" alt="', $txt['manual_posting_rolleyes_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :P\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/tongue.gif" align="bottom" alt="', $txt['manual_posting_tongue_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :-[\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/embarrassed.gif" align="bottom" alt="', $txt['manual_posting_embarrassed_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :-X\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/lipsrsealed.gif" align="bottom" alt="', $txt['manual_posting_lipsrsealed_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :-\\\\\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/undecided.gif" align="bottom" alt="', $txt['manual_posting_undecided_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :-*\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/kiss.gif" align="bottom" alt="', $txt['manual_posting_kiss_code'], '" border="0" /></a> <a href="javascript:void(0);" onclick="replaceText(\' :\\\'(\', document.forms.postmodify.message);"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/cry.gif" align="bottom" alt="', $txt['manual_posting_cry_code'], '" border="0" /></a><br />
									</td>
								</tr>
								<tr>
									<td valign="top" align="right"></td>
									<td>
									<textarea class="editor" name="message" rows="12" cols="60" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '">
</textarea></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</form><br />
	</div>
	<h3 class="section" id="messageicon">', $txt['manual_posting_sub_message_icon'], '</h3>
	<p>', $txt['manual_posting_msg_icon_dropdown'], '</p>
	<h3 class="section" id="bbc">', $txt['manual_posting_sub_bbc'], '</h3>
	<p>', $txt['manual_posting_bbc_desc'], '</p>
	<p>', $txt['manual_posting_bbc_ref_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#bbcref">', $txt['manual_posting_bbc_ref_link_bbcref'], '</a>', $txt['manual_posting_bbc_ref_part2'], '</p>
	<h3 class="section" id="smileys">', $txt['manual_posting_sub_smileys'], '</h3>
	<p>', $txt['manual_posting_smiley_desc_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#nosmileys">', $txt['manual_posting_smiley_desc_link_nosmileys'], '</a>', $txt['manual_posting_smiley_desc_part2'], '</p>
	<p>', $txt['manual_posting_smiley_ref_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#smileysref">', $txt['manual_posting_smiley_ref_link_smileysref'], '</a>', $txt['manual_posting_smiley_ref_part2'], '</p>
	<h2 class="section" id="tags">', $txt['manual_posting_sec_tags'], '</h2>
	<p>', $txt['manual_posting_tags_desc_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#bbcref">', $txt['manual_posting_tags_desc_link_bbcref'], '</a>', $txt['manual_posting_tags_desc_part2'], '</p>
	<p>', $txt['manual_posting_note_tags'], '</p>
	<h2 class="section" id="additional">', $txt['manual_posting_sec_additional_options'], '</h2>
	<p>', $txt['manual_posting_sec_additional_options_desc'], '</p>
	<div class="help_sample">
			<br />
			<script type="text/javascript">
//<![CDATA[
			var currentSwap = false;
			function swapOptions()
			{
						document.getElementById("postMoreExpand").src = smf_images_url + "/" + (currentSwap ? "collapse.gif" : "expand.gif");
						document.getElementById("postMoreExpand").alt = currentSwap ? "-" : "+";
						document.getElementById("postMoreOptions").style.display = currentSwap ? "" : "none";
						if (document.getElementById("postAttachment"))
								document.getElementById("postAttachment").style.display = currentSwap ? "" : "none";
						if (document.getElementById("postAttachment2"))
								document.getElementById("postAttachment2").style.display = currentSwap ? "" : "none";
						currentSwap = !currentSwap;
			}
//]]>
</script>
			<form action="', $scripturl, '?action=help;area=posting_topics" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
				<table border="0" width="100%" align="center" cellspacing="1" cellpadding="3" class="bordercolor">
					<tr>
						<td class="windowbg">
							<table border="0" cellpadding="3" width="100%">
								<tr>
									<td colspan="2" style="padding-left: 5ex;"><a href="javascript:swapOptions();"><img src="', $settings['images_url'], '/expand.gif" alt="+" border="0" id="postMoreExpand" name="postMoreExpand" /></a> <a href="javascript:swapOptions();" class="board"><strong>', $txt['manual_posting_sec_additional_options'], '...</strong></a></td>
								</tr>
								<tr>
									<td></td>
									<td>
										<div id="postMoreOptions">
											<table width="80%" cellpadding="0" cellspacing="0" border="0">
												<tr>
													<td class="smalltext"><input type="checkbox" class="input_check" />&nbsp;', $txt['manual_posting_notify'], '</td>
												</tr>
												<tr>
													<td class="smalltext"><input type="checkbox" class="input_check" />&nbsp;', $txt['manual_posting_return'], '</td>
												</tr>
												<tr>
													<td class="smalltext"><input type="checkbox" class="input_check" />&nbsp;', $txt['manual_posting_no_smiley'], '</td>
												</tr>
											</table>
										</div>
									</td>
								</tr>
								<tr id="post', $txt['manual_posting_attach'], 'ment2">
									<td align="right" valign="top"><strong>', $txt['manual_posting_attach'], ':</strong></td>
									<td class="smalltext"><input type="file" size="48" name="attachment[]" class="input_file" /><br />
									<input type="file" size="48" name="attachment[]" class="input_file" /><br />
									', $txt['manual_posting_allowed_types'], '<br />
									', $txt['manual_posting_max_size'], '</td>
								</tr>
								<tr>
									<td align="center" colspan="2">
										<script type="text/javascript">
//<![CDATA[
										swapOptions();
//]]>
</script> <span class="smalltext"><br />
										', $context['browser']['is_firefox'] ? $txt['manual_posting_shortcuts_firefox'] : $txt['manual_posting_shortcuts'], '</span><br />
										<input type="button" accesskey="s" tabindex="', $context['tabindex']++, '" value="', $txt['manual_posting_posts'], '" class="button_submit" /> <input type="button" accesskey="p" tabindex="', $context['tabindex']++, '" value="', $txt['manual_posting_preview'], '" class="button_submit" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</form><br />
	</div>
	<h3 class="section" id="notify">', $txt['manual_posting_sub_notify'], '</h3>
	<p>', $txt['manual_posting_notify_desc'], '</p>
	<h3 class="section" id="return">', $txt['manual_posting_sub_return'], '</h3>
	<p>', $txt['manual_posting_return_desc'], '</p>
	<h3 class="section" id="nosmileys">', $txt['manual_posting_sub_no_smiley'], '</h3>
	<p>', $txt['manual_posting_no_smiley_desc_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#smileysref">', $txt['manual_posting_no_smiley_desc_link_smileysref'], '</a>', $txt['manual_posting_no_smiley_desc_part2'], '</p>
	<h3 class="section" id="attachments">', $txt['manual_posting_sub_attach'], '</h3>
	<p>', $txt['manual_posting_attach_desc_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#modify">', $txt['manual_posting_attach_desc_link_modify'], '</a>', $txt['manual_posting_attach_desc_part2'], '</p>
	<ul>
		<li>', $txt['manual_posting_attach_desc2'], '</li>
		<li>', $txt['manual_posting_most_forums_attach'], '</li>
	</ul>';
}

// Quoting posts page.
function template_manual_quoting_posts()
{
	// TODO : Write this.
}

// Modifying posts page.
function template_manual_modifying_posts()
{
	// TODO : Write this.
}

function template_manual_smileys()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_posting_smileys_help_desc'], '</p>
	<p>', $txt['manual_posting_smiley_parse'], '</p>
	<table cellspacing="1" cellpadding="3" class="table_grid">
		<thead>
			<tr class="catbg">
				<th class="first_th">', $txt['manual_posting_smileys_help_name'], '</th>
				<th>', $txt['manual_posting_smileys_help_img'], '</th>
				<th class="last_th">', $txt['manual_posting_smileys_help_code'], '</th>
			</tr>
		</thead>
		<tbody>';

	$alternate = false;
	foreach ($context['smileys'] as $smiley)
	{
		echo '
			<tr class="windowbg', $alternate ? '2' : '', '">
				<td>', $smiley['name'], '</td>
				<td>', $smiley['to'], '</td>
				<td>', $smiley['from'], '</td>
			</tr>';
		$alternate = !$alternate;
	}

	echo '
		</tbody>
	</table>';
}

function template_manual_bbcode()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<script type="text/javascript">
		function bbc_highlight(oButton, bToState)
		{
			oButton.style.backgroundImage = \'url("\' + smf_images_url + \'/bbc/\' + (bToState ? \'bbc_hoverbg.gif\' : \'bbc_bg.gif\') + \'")\';
		}
	</script>
	<p>', $txt['manual_posting_sub_smf_bbc_desc'], '</p>
	<table class="bordercolor" cellspacing="1" cellpadding="3">
		<tr>
			<th class="catbg">', $txt['manual_posting_header_name'], '</th>
			<th class="catbg">', $txt['manual_posting_header_button'], '</th>
			<th class="catbg">', $txt['manual_posting_header_code'], '</th>
			<th class="catbg">', $txt['manual_posting_header_output'], '</th>
			<th class="catbg">', $txt['manual_posting_header_comments'], '</th>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_bold'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/bold.gif" alt="', $txt['manual_posting_bbc_bold'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_bold_code'], '</td>
			<td><strong>', $txt['manual_posting_bold_output'], '</strong></td>
			<td>', $txt['manual_posting_bold_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_italic'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/italicize.gif" alt="', $txt['manual_posting_bbc_italic'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_italic_code'], '</td>
			<td><em>', $txt['manual_posting_italic_output'], '</em></td>
			<td>', $txt['manual_posting_italic_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_underline'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/underline.gif" alt="', $txt['manual_posting_bbc_underline'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_underline_code'], '</td>
			<td><span class="underline">', $txt['manual_posting_underline_output'], '</span></td>
			<td>', $txt['manual_posting_underline_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_strike'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/strike.gif" alt="', $txt['manual_posting_bbc_strike'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_strike_code'], '</td>
			<td><del>', $txt['manual_posting_strike_output'], '</del></td>
			<td>', $txt['manual_posting_strike_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_glow'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/glow.gif" alt="', $txt['manual_posting_bbc_glow'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_glow_code'], '</td>
			<td>
				<div style="filter: Glow(color=red, strength=2); width: 30px;">
					', $txt['manual_posting_glow_output'], '
				</div>
			</td>
			<td>', $txt['manual_posting_glow_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_shadow'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/shadow.gif" alt="', $txt['manual_posting_bbc_shadow'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_shadow_code'], '</td>
			<td>
				<div style="filter: Shadow(color=red, direction=240); width: 30px;">
					', $txt['manual_posting_shadow_output'], '
				</div>
			</td>
			<td>', $txt['manual_posting_shadow_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_move'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/move.gif" alt="', $txt['manual_posting_bbc_move'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_move_code'], '</td>
			<td>', $context['browser']['is_ie'] ? '<marquee>' . $txt['manual_posting_move_output'] . '</marquee>' : '', '</td>
			<td>', $txt['manual_posting_move_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_pre'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/pre.gif" alt="', $txt['manual_posting_bbc_pre'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>[pre]Simple<br />
			&nbsp;&nbsp;Machines<br />
			&nbsp;&nbsp;&nbsp;&nbsp;Forum[/pre]</td>
			<td>
				<pre>
Simple
  Machines
    Forum
</pre>
			</td>
			<td>', $txt['manual_posting_pre_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_left'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/left.gif" alt="', $txt['manual_posting_bbc_left'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_left_code'], '</td>
			<td>
				<p align="left">', $txt['manual_posting_left_output'], '</p>
			</td>
			<td>', $txt['manual_posting_left_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_centered'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/center.gif" alt="', $txt['manual_posting_bbc_centered'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_centered_code'], '</td>
			<td>
				<span class="centertext">
					', $txt['manual_posting_centered_output'], '
				</span>
			</td>
			<td>', $txt['manual_posting_centered_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_right'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/right.gif" alt="', $txt['manual_posting_bbc_right'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_right_code'], '</td>
			<td>
				<p align="right">', $txt['manual_posting_right_output'], '</p>
			</td>
			<td>', $txt['manual_posting_right_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_rtl'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_rtl_code'], '</td>
			<td>
				<div dir="rtl">
					', $txt['manual_posting_rtl_output'], '
				</div>
			</td>
			<td>', $txt['manual_posting_rtl_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_ltr'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_ltr_code'], '</td>
			<td>
				<div dir="ltr">
					', $txt['manual_posting_ltr_output'], '
				</div>
			</td>
			<td>', $txt['manual_posting_ltr_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_hr'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/hr.gif" alt="', $txt['manual_posting_bbc_hr'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_hr_code'], '</td>
			<td>
				<hr />
			</td>
			<td>', $txt['manual_posting_hr_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_size'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_size_code'], '</td>
			<td><span style="font-size: 10pt;">', $txt['manual_posting_size_output'], '</span></td>
			<td>', $txt['manual_posting_size_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_font'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_font_code'], '</td>
			<td><span style="font-family: Verdana;">', $txt['manual_posting_font_output'], '</span></td>
			<td>', $txt['manual_posting_font_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_color'], '</td>
			<td><select>
				<option value="" selected="selected">
					', $txt['manual_posting_Change_Color'], '
				</option>
				<option value="Black">
					', $txt['manual_posting_color_black'], '
				</option>
				<option value="Red">
					', $txt['manual_posting_color_red'], '
				</option>
				<option value="Yellow">
					', $txt['manual_posting_color_yellow'], '
				</option>
				<option value="Pink">
					', $txt['manual_posting_color_pink'], '
				</option>
				<option value="Green">
					', $txt['manual_posting_color_green'], '
				</option>
				<option value="Orange">
					', $txt['manual_posting_color_orange'], '
				</option>
				<option value="Purple">
					', $txt['manual_posting_color_purple'], '
				</option>
				<option value="Blue">
					', $txt['manual_posting_color_blue'], '
				</option>
				<option value="Beige">
					', $txt['manual_posting_color_beige'], '
				</option>
				<option value="Brown">
					', $txt['manual_posting_color_brown'], '
				</option>
				<option value="Teal">
					', $txt['manual_posting_color_teal'], '
				</option>
				<option value="Navy">
					', $txt['manual_posting_color_navy'], '
				</option>
				<option value="Maroon">
					', $txt['manual_posting_color_maroon'], '
				</option>
				<option value="LimeGreen">
					', $txt['manual_posting_color_lime'], '
				</option>
			</select></td>
			<td>', $txt['manual_posting_color_code'], '</td>
			<td><span style="color: red;">', $txt['manual_posting_color_output'], '</span></td>
			<td>', $txt['manual_posting_color_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_flash'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/flash.gif" alt="', $txt['manual_posting_bbc_flash'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_flash_code'], '</td>
			<td><a href="http://somesite/somefile.swf" class="board new_win" target="_blank">', $txt['manual_posting_flash_output'], '</a></td>
			<td>', $txt['manual_posting_flash_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td rowspan="2">', $txt['manual_posting_bbc_img'], '</td>
			<td rowspan="2"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/img.gif" alt="', $txt['manual_posting_bbc_img'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_img_top_code'], '</td>
			<td><img src="', $settings['images_url'], '/on.gif" alt="" /></td>
			<td rowspan="2">', $txt['manual_posting_img_top_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_img_bottom_code'], '</td>
			<td><img src="', $settings['images_url'], '/on.gif" width="48" height="48" alt="" /></td>
		</tr>
		<tr class="windowbg2">
			<td rowspan="2">', $txt['manual_posting_bbc_url'], '</td>
			<td rowspan="2"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/url.gif" alt="', $txt['manual_posting_bbc_url'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_url_code'], '</td>
			<td><a href="http://somesite" class="board new_win" target="_blank">', $txt['manual_posting_url_output'], '</a></td>
			<td rowspan="2">', $txt['manual_posting_url_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_url_bottom_code'], '</td>
			<td><a href="http://somesite" class="board new_win" target="_blank">', $txt['manual_posting_url_bottom_output'], '</a></td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_email'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/email.gif" alt="', $txt['manual_posting_bbc_email'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_email_code'], '</td>
			<td><a href="mailto:someone@somesite" class="board">', $txt['manual_posting_email_output'], '</a></td>
			<td>', $txt['manual_posting_email_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td rowspan="2">', $txt['manual_posting_bbc_ftp'], '</td>
			<td rowspan="2"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/ftp.gif" alt="', $txt['manual_posting_bbc_ftp'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_ftp_code'], '</td>
			<td><a href="ftp://somesite/somefile" class="board new_win" target="_blank">', $txt['manual_posting_ftp_output'], '</a></td>
			<td rowspan="2">', $txt['manual_posting_ftp_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_ftp_bottom_code'], '</td>
			<td><a href="ftp://somesite/somefile" class="board new_win" target="_blank">', $txt['manual_posting_ftp_bottom_output'], '</a></td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_table'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/table.gif" alt="', $txt['manual_posting_bbc_table'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_table_code'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_table_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_row'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_row_code'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_row_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td rowspan="2">', $txt['manual_posting_bbc_column'], '</td>
			<td rowspan="2">*</td>
			<td>', $txt['manual_posting_column_code'], '</td>
			<td>
				<table>
					<tr>
						<td valign="top">', $txt['manual_posting_column_output'], '</td>
					</tr>
				</table>
			</td>
			<td rowspan="2">', $txt['manual_posting_column_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>[table][tr][td]SMF[/td]<br />
			[td]Bulletin[/td][/tr]<br />
			[tr][td]Board[/td]<br />
			[td]Code[/td][/tr][/table]</td>
			<td>
				<table>
					<tr>
						<td valign="top">SMF</td>
						<td valign="top">Bulletin</td>
					</tr>
					<tr>
						<td valign="top">Board</td>
						<td valign="top">Code</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_sup'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/sup.gif" alt="', $txt['manual_posting_bbc_sup'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_sup_code'], '</td>
			<td><sup>', $txt['manual_posting_sup_output'], '</sup></td>
			<td>', $txt['manual_posting_sup_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_sub'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/sub.gif" alt="', $txt['manual_posting_bbc_sub'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_sub_code'], '</td>
			<td><sub>', $txt['manual_posting_sub_output'], '</sub></td>
			<td>', $txt['manual_posting_sub_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_tt'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/tele.gif" alt="', $txt['manual_posting_bbc_tt'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_tt_code'], '</td>
			<td><tt>', $txt['manual_posting_tt_output'], '</tt></td>
			<td>', $txt['manual_posting_tt_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_code'], '</td>
			<td><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/code.gif" alt="', $txt['manual_posting_bbc_code'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_code_code'], '</td>
			<td>
				<div class="codeheader">
					Code:
				</div>
				<div class="code">
					<span style="color: #0000bb;">&lt;?php phpinfo</span><span style="color: #007700;">();</span> <span style="color: #0000bb;">?&gt;</span>
				</div>
			</td>
			<td>', $txt['manual_posting_code_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td rowspan="2">', $txt['manual_posting_bbc_quote'], '</td>
			<td rowspan="2"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/quote.gif" alt="', $txt['manual_posting_bbc_quote'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_quote_code'], '</td>
			<td>
				<div class="', $txt['manual_posting_quote_output'], 'header">
					Quote
				</div>
				<blockquote>
					', $txt['manual_posting_quote_output'], '
				</blockquote>
			</td>
			<td rowspan="2">', $txt['manual_posting_quote_comment'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_quote_buttom_code'], '</td>
			<td>
				<div class="', $txt['manual_posting_quote_buttom_output'], 'header">
					Quote from: author
				</div>
				<blockquote>
					', $txt['manual_posting_quote_buttom_output'], '
				</blockquote>
			</td>
		</tr>
		<tr class="windowbg">
			<td rowspan="2">', $txt['manual_posting_bbc_list'], '</td>
			<td rowspan="2"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/list.gif" alt="', $txt['manual_posting_bbc_list'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></td>
			<td>', $txt['manual_posting_list_code'], '</td>
			<td>', $txt['manual_posting_list_output'], '</td>
			<td rowspan="2">', $txt['manual_posting_list_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_list_buttom_code'], '</td>
			<td>', $txt['manual_posting_list_buttom_output'], '</td>
		</tr>
		<tr class="windowbg2">
			<td>', $txt['manual_posting_bbc_abbr'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_abbr_code'], '</td>
			<td><abbr title="exempli gratia">', $txt['manual_posting_abbr_output'], '</abbr></td>
			<td>', $txt['manual_posting_abbr_comment'], '</td>
		</tr>
		<tr class="windowbg">
			<td>', $txt['manual_posting_bbc_acro'], '</td>
			<td>*</td>
			<td>', $txt['manual_posting_acro_code'], '</td>
			<td><acronym title="Simple Machines Forum">', $txt['manual_posting_acro_output'], '</acronym></td>
			<td>', $txt['manual_posting_acro_comment'], '</td>
		</tr>
	</table>';
}

// WYSIWYG page.
function template_manual_wysiwyg()
{
	// TODO : Write this.
}

// Personal messages page.
function template_manual_pm_messages()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
		<p>', $txt['manual_pm_community'], '</p>
	<ol>
		<li>
			<a href="', $scripturl, '?action=help;area=messages#pm">', $txt['manual_pm_sec_pm'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=messages#description">', $txt['manual_pm_pm_desc'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=messages#reading">', $txt['manual_pm_reading'], '</a></li>
			</ol>
		</li>
		<li>
			<a href="', $scripturl, '?action=help;area=messages#interface">', $txt['manual_pm_sec_pm2'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=messages#starting">', $txt['manual_pm_start_reply'], '</a></li>
			</ol>
		</li>
	</ol>
	<h2 class="section" id="pm">', $txt['manual_pm_sec_pm'], '</h2>
	<h3 class="section" id="description">', $txt['manual_pm_pm_desc'], '</h3>
	<p>', $txt['manual_pm_pm_desc_1'], '</p>
	<p>', $txt['manual_pm_pm_desc_2'], '</p>
	<p>', $txt['manual_pm_pm_desc_3'], '</p>
	<h3 class="section" id="reading">', $txt['manual_pm_reading'], '</h3>
	<p>', $txt['manual_pm_reading_desc_part1'], '<a href="', $scripturl, '?action=help;area=logging_in">', $txt['manual_pm_reading_desc_link_loginout'], '</a>', $txt['manual_pm_reading_desc_part2'], '<a href="', $scripturl, '?action=help;area=sending_pms#interface">', $txt['manual_pm_reading_desc_link_loginout_interface'], '</a>', $txt['manual_pm_reading_desc_part3'], '</p>
	<h2 class="section" id="interface">', $txt['manual_pm_sec_pm2'], '</h2>
	<p>', $txt['manual_pm_pm_desc2_part1'], '<a href="', $scripturl, '?action=help;area=message_view">', $txt['manual_pm_pm_desc2_link_index_message'], '</a>', $txt['manual_pm_pm_desc2_part2'], '</p>
	<div class="help_sample">
			<script type="text/javascript">
//<![CDATA[
			var currentSort = false;
			function sortLastPM()
			{
					document.getElementById("sort-arrow").src = smf_images_url + "/" + (currentSort ? "sort_up.gif" : "sort_down.gif");
					document.getElementById("sort-arrow").alt = "";
					currentSort = !currentSort;
			}
//]]>
</script>
			<form action="', $scripturl, '?action=help;area=sending_pms" method="post" accept-charset="', $context['character_set'], '">
				<table border="0" width="100%" cellspacing="0" cellpadding="3">
					<tr>
						<td valign="bottom"><span class="nav"><img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><a href="', $scripturl, '?action=help;area=board_index" class="nav">', $txt['manual_pm_forum_name'], '</a></strong><br />
						<img src="', $settings['images_url'], '/icons/linktree_side.gif" alt="|-" border="0" /> <img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><a href="', $scripturl, '?action=help;area=sending_pms#interface" class="nav">', $txt['manual_pm_personal_msgs'], '</a></strong><br />
						<img src="', $settings['images_url'], '/icons/linktree_main.gif" alt="| " border="0" /> <img src="', $settings['images_url'], '/icons/linktree_side.gif" alt="|-" border="0" /> <img src="', $settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp; <strong><a href="', $scripturl, '?action=help;area=sending_pms#interface" class="nav">', $txt['manual_pm_inbox'], '</a></strong></span></td>
					</tr>
				</table>
				<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
					<td width="125" valign="top">
						<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100">
							<tr>
								<td class="catbg">', $txt['manual_pm_messages'], '</td>
							</tr>
							<tr class="windowbg">
								<td class="smalltext" style="padding-bottom: 2ex;">
								', $txt['manual_pm_new_msg'], '<br /><br />
								<strong>', $txt['manual_pm_inbox'], '</strong><br />
								', $txt['manual_pm_outbox'], '<br />
							</td>
						</tr>
					</table>
					<br />
				</td>
				<td valign="top">
					<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor" align="center">
						<tr>
							<td>
								<table border="0" width="100%" cellspacing="1" class="bordercolor">
									<tr class="titlebg">
										<td>&nbsp;</td>
										<td style="width: 32ex;"><a href="javascript:sortLastPM();">', $txt['manual_pm_date'], '&nbsp; <img id="sort-arrow" src="', $settings['images_url'], '/sort_up.gif" alt="" border="0" name="sort-arrow" /></a></td>
										<td width="46%"><a href="', $scripturl, '?action=help;area=sending_pms#interface">', $txt['manual_pm_subject2'], '</a></td>
										<td><a href="', $scripturl, '?action=help;area=sending_pms#interface">', $txt['manual_pm_from'], '</a></td>
										<td align="center" width="24"><input type="checkbox" onclick="invertAll(this, this.form);" class="input_check" /></td>
									</tr>
									<tr class="windowbg">
										<td align="center" width="2%"><img src="' . $settings['images_url'] . '/icons/pm_read.gif" style="margin-right: 4px;" alt="" /></td>
										<td>', $txt['manual_pm_date_and_time'], '</td>
										<td><a href="', $scripturl, '?action=help;area=sending_pms#interface" class="board">', $txt['manual_pm_subject'], '</a></td>
										<td>', $txt['manual_pm_another_member'], '</td>
										<td align="center"><input type="checkbox" class="input_check" /></td>
									</tr>
									<tr>
										<td class="windowbg" style="padding: 2px;" align="right" colspan="6"></td>
									</tr>
									<tr>
										<td colspan="6" class="catbg" height="25">
											<div class="floatleft"><strong>', $txt['manual_pm_pages'], ':</strong> [<strong>1</strong>]</div>
											<div class="floatright">&nbsp;<input type="button" value="', $txt['manual_pm_delete_selected'], '" class="button_submit" /></div>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table><br />
				</td>
			</tr></table>
			<br />
			</form>
	</div>
	<ul>
		<li>', $txt['manual_pm_nav_tree'], '</li>
		<li>', $txt['manual_pm_delete_button'], '</li>
		<li>', $txt['manual_pm_outbox_button'], '</li>
		<li>', $txt['manual_pm_new_msg2_part1'], '<a href="', $scripturl, '?action=help;area=sending_pms#newtopic">', $txt['manual_pm_new_msg2_link_posting_newtopic'], '</a>', $txt['manual_pm_new_msg2_part2'], '</li>
		<li>', $txt['manual_pm_reload'], '</li>
		<li>', $txt['manual_pm_sort_by'], '</li>
		<li>', $txt['manual_pm_main_subject'], '</li>
		<li>', $txt['manual_pm_page_nos'], '</li>
	</ul>
	<h3 class="section" id="starting">', $txt['manual_pm_start_reply'], '</h3>
	<p>', $txt['manual_pm_how_to_start_reply_part1'], '<a href="', $scripturl, '?action=help;area=logging_in">', $txt['manual_pm_how_to_start_reply_link_loginout'], '</a>', $txt['manual_pm_how_to_start_reply_part2'], '</p>
	<ul>
		<li>', $txt['manual_pm_msg_link_part1'], '<a href="', $scripturl, '?action=help;area=sending_pms#interface">', $txt['manual_pm_msg_link_link_interface'], '</a>', $txt['manual_pm_msg_link_part2'], '</li>
		<li>', $txt['manual_pm_click_name_part1'], '<a href="', $scripturl, '?action=help;area=profile_summary#info-all">', $txt['manual_pm_click_name_link_profile_info-all'], '</a>', $txt['manual_pm_click_name_part2'], '</li>
		<li>', $txt['manual_pm_click_im_icon'], '</li>
		<li>', $txt['manual_pm_click_pm_icon_part1'], '<a href="', $scripturl, '?action=help;area=sending_pms#info-all">', $txt['manual_pm_click_pm_icon_link_profile_info-all'], '</a>', $txt['manual_pm_click_pm_icon_part2'], '</li>
		<li>', $txt['manual_pm_reply_msg_part1'], '<a href="', $scripturl, '?action=help;area=posting_topics#reply">', $txt['manual_pm_reply_msg_link_posting_reply'], '</a>', $txt['manual_pm_reply_msg_part2'], '</li>
	</ul>';
}

// Personal message actions page.
function template_manual_pm_actions()
{
	// TODO : Write this.
}

// Personal message preferences page.
function template_manual_pm_preferences()
{
	// TODO : Write this.
}

// The search help page.
function template_manual_searching()
{
	global $context, $settings, $options, $txt, $scripturl, $modSettings;

	echo '
	<p>', $txt['manual_searching_you_have_arrived'], '</p>
	<ol>
		<li><a href="', $scripturl, '?action=help;area=searching#starting">', $txt['manual_searching_sec_search'], '</a></li>
		<li>
			<a href="', $scripturl, '?action=help;area=searching#syntax">', $txt['manual_searching_sec_syntax'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=searching#quotes">', $txt['manual_searching_sub_quotes'], '</a></li>
			</ol>
		</li>
		<li>
			<a href="', $scripturl, '?action=help;area=searching#searching">', $txt['manual_searching_sec_simple_adv'], '</a>
			<ol class="la">
				<li><a href="', $scripturl, '?action=help;area=searching#simple">', $txt['manual_searching_sub_simple'], '</a></li>
				<li><a href="', $scripturl, '?action=help;area=searching#advanced">', $txt['manual_searching_sub_adv'], '</a></li>
			</ol>
		</li>
	</ol>
	<h2 class="section" id="starting">', $txt['manual_searching_sec_search'], '</h2>
	<p>', $txt['manual_searching_search_desc_part1'], '<a href="', $scripturl, '?action=help;area=main_menu">', $txt['manual_searching_search_desc_link_index_main'], '</a>', $txt['manual_searching_search_desc_part2'], '</p>
	<h2 class="section" id="syntax">', $txt['manual_searching_sec_syntax'], '</h2>
	<p>', $txt['manual_searching_syntax_desc'], '</p>
	<h3 class="section" id="quotes">', $txt['manual_searching_sub_quotes'], '</h3>
	<p>', $txt['manual_searching_quotes_desc'], '</p>
	<h2 class="section" id="searching">', $txt['manual_searching_sec_simple_adv'], '</h2>
	<h3 class="section" id="simple">', $txt['manual_searching_sub_simple'], '</h3>
	<p>', $txt['manual_searching_simple_desc'], '</p>
	<h3 class="section" id="advanced">', $txt['manual_searching_sub_adv'], '</h3>
	<p>', $txt['manual_searching_adv_desc'], '</p>
	<div class="help_sample">
		<form id="searchform" action="', $scripturl, '?action=help;area=searching" method="post" accept-charset="', $context['character_set'], '">
			<h3 class="catbg"><span class="left"></span>
				', !empty($settings['use_buttons']) ? '<img src="' . $settings['images_url'] . '/buttons/search.gif" alt="" />' : '', $txt['manual_searching_search_param'], '
			</h3>
			<fieldset id="advanced_search">
				<span class="upperframe"><span></span></span>
				<div class="roundframe">
					<input type="hidden" name="advanced" value="1" />
					<span class="enhanced">
						<strong>', $txt['manual_searching_search_for'], ':</strong>
						<input type="text" name="search" size="40" class="input_text" />
						<select name="searchtype">
							<option value="1">', $txt['manual_searching_match_all'], '</option>
							<option value="2">', $txt['manual_searching_match_any'], '</option>
						</select>
					</span>
					<dl id="search_options">
						<dt>', $txt['manual_searching_by_user'], ':</dt>
						<dd><input id="userspec" type="text" name="userspec" size="40" class="input_text" /></dd>
						<dt>', $txt['manual_searching_search_order'], ':</dt>
						<dd>
							<select>
								<option selected="selected">
									', $txt['manual_searching_relevant_first'], '
								</option>
								<option>
									', $txt['manual_searching_big_first'], '
								</option>
								<option>
									', $txt['manual_searching_small_first'], '
								</option>
								<option>
									', $txt['manual_searching_recent_first'], '
								</option>
								<option>
									', $txt['manual_searching_oldest_first'], '
								</option>
							</select>
						</dd>
						<dt class="options">', $txt['manual_searching_options'], ':</dt>
						<dd class="options">
							<label for="show_complete"><input type="checkbox" name="show_complete" id="show_complete" value="1"', !empty($context['search_params']['show_complete']) ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['manual_searching_show_results'], '</label><br />
							<label for="subject_only"><input type="checkbox" name="subject_only" id="subject_only" value="1"', !empty($context['search_params']['subject_only']) ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['manual_searching_subject_only'], '</label>
						</dd>
						<dt class="between">', $txt['manual_searching_msg_age'], ': </dt>
						<dd>', $txt['manual_searching_between'], ' <input type="text" name="minage" value="', empty($context['search_params']['minage']) ? '0' : $context['search_params']['minage'], '" size="5" maxlength="4" class="input_text" />&nbsp;', $txt['manual_searching_and'], '&nbsp;<input type="text" name="maxage" value="', empty($context['search_params']['maxage']) ? '9999' : $context['search_params']['maxage'], '" size="5" maxlength="4" class="input_text" /> ', $txt['manual_searching_days'], '</dd>
					</dl>
				</div>
				<span class="lowerframe"><span></span></span>
			</fieldset>
			<fieldset>
				<span class="upperframe"><span></span></span>
				<div class="roundframe">
					<div class="title_bar">
						<h4 class="titlebg">', $txt['manual_searching_choose'], '</h4>
					</div>
					<div class="flow_auto" id="searchBoardsExpand">
						<ul class="floatleft">
							<li class="category">
								<span>', $txt['manual_searching_cat'], '</span>
								<ul>
									<li class="board" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': 1em;">
										<label for="brd2"><input type="checkbox" id="brd2" name="brd[2]" value="2" class="input_check" /> ', $txt['manual_searching_another_board'], '</label>
									</li>
								</ul>
							</li>
						</ul>
						<ul class="floatright">
							<li class="category">
								<span>', $txt['manual_searching_cat'], '</span>
								<ul>
									<li class="board" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': 1em;">
										<label for="brd1"><input type="checkbox" id="brd1" name="brd[1]" value="1" class="input_check" /> ', $txt['manual_searching_board_name'], '</label>
									</li>
								</ul>
							</li>
						</ul>
					</div><br />
					<div>
						<input type="checkbox" name="all" id="check_all" value="" checked="checked" onclick="invertAll(this, this.form, \'brd\');" class="input_check" />
						<label for="check_all">', $txt['manual_searching_check_all'], '</label>
					</div>
				</div>
				<span class="lowerframe"><span></span></span>
			</fieldset>
			<div><input type="submit" name="submit" value="', $txt['manual_searching_search'], '" class="button_submit" /></div>
		</form>
	</div>
	<ul>
		<li>', $txt['manual_searching_nav_tree'], '</li>
		<li>', $txt['manual_searching_three_options_part1'], '<a href="', $scripturl, '?action=help;area=searching#syntax">', $txt['manual_searching_three_options_link_syntax'], '</a>', $txt['manual_searching_three_options_part2'], '</li>
		<li>', $txt['manual_searching_wildcard'], '</li>
		<li>', $txt['manual_searching_results_as_messages'], '</li>
		<li>', $txt['manual_searching_message_age'], '</li>
		<li>', $txt['manual_searching_which_board'], '</li>
		<li>', $txt['manual_searching_search_button'], '</li>
	</ul>';
}

// Memberlist page.
function template_manual_memberlist()
{
	// TODO : Write this.
}

// Calendar page.
function template_manual_calendar()
{
	// TODO : Write this.
}

?>