Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/original_temp/default_temp/defaulttemplates.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugin name="pbb_templates">
<context_address_bar_part1><![CDATA[<!-- action_find_addons_1 -->
<table border="0" width="98%" cellspacing="1" align="center" class="border">
	<tr>
<td class="row2" align="right" width="70%">
<div class="smallfont">
<img border="0" alt="" src="{$image_path}/address_bar_start.gif" />
<a href="index.php">{$_CONF['info_row']['title']}</a> {$_CONF['info_row']['adress_bar_separate']}]]></context_address_bar_part1>
<context_address_bar_part2><![CDATA[	</div>
	</td>
	<!-- action_find_addons_1 -->
	</tr>
	<!-- action_find_addons_3 -->
	</table>
	<br />
	<!-- action_find_addons_4 -->]]></context_address_bar_part2>
<context_add_attach_pm><![CDATA[<html dir="{$_CONF['info_row']['content_dir']}" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$_CONF['info_row']['content_language']}" lang="{$_CONF['info_row']['content_language']}">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />

	<meta name="generator" content="PowerBB" />

	<link rel="stylesheet" href="{$style_path}" type="text/css" />


	<title>{$lang['manage_attachments']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>

</head>

<body>

<form name="topic" method="post" enctype="multipart/form-data" action="index.php?page=pm_send&amp;add_start_pm=1">


<table border="0" cellspacing="1" width="100%" class="border" align="center" id="add_attach_table">
	<tr align="center">
		<td class="tcat" colspan="2">
		{$lang['attachments']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space" colspan="2">
			{$lang['ex_list']}
{Des::while}{ExList}
{$ExList['Ex']}
	{/Des::while}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space">
{$lang['review_file']}
		</td>
		<td class="row1 rows_space">
			<input name="files" type="file" size="40" />
		</td>
	</tr>
	<tr align="center" class="more_attach_tr">
		<td class="row1 rows_space" colspan="2">
					 <input name="insert" type="submit" value="{$lang['upload']}" />
		</td>
	</tr>
		{Des::while}{PmAttachList}
		<tr align="center">
		<td class="row2" colspan="2">
		<table border="0" cellspacing="1" width="100%" cellpadding="0" style="border-collapse: collapse">
			<tr align="center">
				<td class="row2" width="50%">
					<a target="_blank" href="index.php?page=download&amp;attach=1&amp;id={$PmAttachList['id']}">
				{$PmAttachList['filename']}</a>
				</td>
				<td class="row2" width="50%">
				<a href="index.php?page=pm_send&amp;delete_attach_pm=1&amp;id={$PmAttachList['id']}">
               {$lang['remove']}</a>
               </td>
			</tr>
		</table>
			</td>
	</tr>
	{/Des::while}

</table>

</form>
</body>

</html>]]></context_add_attach_pm>
<context_add_attach_reply><![CDATA[<html dir="{$_CONF['info_row']['content_dir']}" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$_CONF['info_row']['content_language']}" lang="{$_CONF['info_row']['content_language']}">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />

	<meta name="generator" content="PowerBB" />

	<link rel="stylesheet" href="{$style_path}" type="text/css" />


	<title>{$lang['manage_attachments']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>
<script type="text/javascript" src="includes/js/jquery.js"></script>

</head>

<body>
<script type='text/javascript'>

function AddMoreAttach(x)
{
	x += 1;

	var up_max = {$_CONF['group_info']['upload_attach_num']};

	if (x <= up_max)
	{
		$(".more_attach_tr").hide();
		$("#add_attach_table").append('<tr align="center"><td class="row1 rows_space"><fieldset><legend>{$lang['review_file']}</legend><span class="r-right"><input name="files[]" type="file" id="attach' + x + '" size="50" /></span><span class="l-left"></span></fieldset></td></tr>');
		$("#add_attach_table").append('<tr align="center" class="more_attach_tr"><td class="row1 rows_space" colspan="2"><input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" /></td></tr>');

		$("#files" + x).focus();
		$(".more_attach_class").click(function() { AddMoreAttach(x) });

		if (x == up_max)
		{
			$(".more_attach_tr").hide();
		}
   }
}

function Ready()
{

	$("#attach_table").hide();
	$(".more_attach_class").click(function() { AddMoreAttach(1) });

}
$(document).ready(Ready);
</script>

<form name="topic" method="post" enctype="multipart/form-data" action="index.php?page=attachments&amp;add_start_reply=1&amp;subject_id={$subject_id}">

<table border="0" cellspacing="1" width="100%" class="border" align="center" id="add_attach_table">
	<tr align="center">
		<td class="tcat" colspan="2">
		{$lang['attachments']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space" colspan="2">
						<br />
			{$lang['ex_list']}
{Des::while}{ExList}
{$ExList['Ex']}
	{/Des::while}
		</td>
	</tr>
<tr align="center">
		<td class="row1 rows_space" colspan="2">
			<strong>{$lang['upload_attachments_nm']}
			 {$_CONF['group_info']['upload_attach_num']}</strong>
		</td>
	</tr>
    <div id="attach_table">
	<tr align="center">
		<td class="row1 rows_space">
		     <fieldset>
<legend>{$lang['review_file']}</legend>
<span class="r-right">
<input name="files[]" type="file" value="" size="50" />
</span>
<span class="l-left">
</span>
</fieldset>
</td>
	</tr>
</div>
<tr align="center" class="more_attach_tr">
		<td class="row1 rows_space" colspan="2">
			<input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" />
		</td>
	</tr>
 </table>


<table border="0" cellspacing="1" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr align="center">
		<td class="row1 rows_space" colspan="2">
	 <input name="insert" type="submit" value="{$lang['upload']}" />
		</td>
	</tr>
			{Des::while}{SubjectAttachList}

			<tr align="center">
				<td class="row2" width="50%">
					<a target="_blank" href="index.php?page=download&amp;attach=1&amp;id={$SubjectAttachList['id']}">
				{$SubjectAttachList['filename']}</a>
				</td>
				<td class="row2" width="50%">
				<a href="index.php?page=attachments&amp;delete_attach_new_reply=1&amp;id={$SubjectAttachList['id']}&amp;subject_id={$subject_id}">
               {$lang['remove']}</a>
               </td>
			</tr>
	{/Des::while}
		</table>
 </form>
</body>

</html>]]></context_add_attach_reply>
<context_add_attach_subject><![CDATA[<html dir="{$_CONF['info_row']['content_dir']}" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$_CONF['info_row']['content_language']}" lang="{$_CONF['info_row']['content_language']}">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />

	<meta name="generator" content="PowerBB" />

	<link rel="stylesheet" href="{$style_path}" type="text/css" />


	<title>{$lang['manage_attachments']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>
<script type="text/javascript" src="includes/js/jquery.js"></script>

</head>

<body>
<script type='text/javascript'>

function AddMoreAttach(x)
{
	x += 1;

	var up_max = {$_CONF['group_info']['upload_attach_num']};

	if (x <= up_max)
	{
		$(".more_attach_tr").hide();
		$("#add_attach_table").append('<tr align="center"><td class="row1 rows_space"><fieldset><legend>{$lang['review_file']}</legend><span class="r-right"><input name="files[]" type="file" id="attach' + x + '" size="50" /></span><span class="l-left"></span></fieldset></td></tr>');
		$("#add_attach_table").append('<tr align="center" class="more_attach_tr"><td class="row1 rows_space" colspan="2"><input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" /></td></tr>');

		$("#files" + x).focus();
		$(".more_attach_class").click(function() { AddMoreAttach(x) });

		if (x == up_max)
		{
			$(".more_attach_tr").hide();
		}
   }
}

function Ready()
{

	$("#attach_table").hide();
	$(".more_attach_class").click(function() { AddMoreAttach(1) });

}
$(document).ready(Ready);
</script>

<form name="topic" method="post" enctype="multipart/form-data" action="index.php?page=attachments&amp;add_start=1&amp;nocheck=1&amp;section={$section}">

<table border="0" cellspacing="1" width="100%" class="border" align="center" id="add_attach_table">
	<tr align="center">
		<td class="tcat" colspan="2">
		{$lang['attachments']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space" colspan="2">
						<br />
			{$lang['ex_list']}
{Des::while}{ExList}
{$ExList['Ex']}
	{/Des::while}
		</td>
	</tr>
<tr align="center">
		<td class="row1 rows_space" colspan="2">
			<strong>{$lang['upload_attachments_nm']}
			 {$_CONF['group_info']['upload_attach_num']}</strong>
		</td>
	</tr>
    <div id="attach_table">
	<tr align="center">
		<td class="row1 rows_space">
		     <fieldset>
<legend>{$lang['review_file']}</legend>
<span class="r-right">
<input name="files[]" type="file" value="" size="50" />
</span>
<span class="l-left">
</span>
</fieldset>
</td>
	</tr>
</div>
<tr align="center" class="more_attach_tr">
		<td class="row1 rows_space" colspan="2">
			<input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" />
		</td>
	</tr>
 </table>


<table border="0" cellspacing="1" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr align="center">
		<td class="row1 rows_space" colspan="2">
	 <input name="insert" type="submit" value="{$lang['upload']}" />
		</td>
	</tr>
			{Des::while}{SubjectAttachList}

			<tr align="center">
				<td class="row2" width="50%">
					<a target="_blank" href="index.php?page=download&amp;attach=1&amp;id={$SubjectAttachList['id']}">
				{$SubjectAttachList['filename']}</a>
				</td>
				<td class="row2" width="50%">
				<a href="index.php?page=attachments&amp;delete_attach_new_subject=1&amp;id={$SubjectAttachList['id']}&amp;nocheck=1&amp;subject_id={$SubjectAttachList['subject_id']}">
               {$lang['remove']}</a>
               </td>
			</tr>
	{/Des::while}
		</table>
 </form>
</body>

</html>]]></context_add_attach_subject>
<context_add_attach_table><![CDATA[<br />

<table border="0" cellspacing="1" width="50%" class="border" align="center" id="add_attach_table">
	<tr align="center">
		<td class="tbar" colspan="2">
		{$lang['attachments']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space" colspan="2">
			<br />
			{$lang['ex_list']}
{Des::while}{ExList}
{$ExList['Ex']}
	{/Des::while}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space">
			{$lang['file']} #1
		</td>
		<td class="row1 rows_space">
			<input name="files[]" type="file" value="" size="40" />
		</td>
	</tr>
{if {$_CONF['group_info']['upload_attach_num']} != 1}
	<tr align="center" class="more_attach_tr">
		<td class="row1 rows_space" colspan="2">
			<input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" />
		</td>
	</tr>
	{/if}
</table>
]]></context_add_attach_table>
<context_add_chat_message><![CDATA[<html dir="{$_CONF['info_row']['content_dir']}" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$_CONF['info_row']['content_language']}" lang="{$_CONF['info_row']['content_language']}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />
<meta name="generator" content="PowerBB" />
<link rel="stylesheet" href="{$style_path}" type="text/css" />
<title>{$lang['add_chat_message']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>

<script>
//<!--
function storeCaret(text){
if (typeof(text.createTextRange) != "undefined")
text.caretPos = document.selection.createRange().duplicate();
}

function AddSmileyIcon(text){
textarea=document.forms.chat.text;
//textarea.dir="ltr";
if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange){
var caretPos = textarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
caretPos.select();
}
else if (typeof(textarea.selectionStart) != "undefined")
{
var begin = textarea.value.substr(0, textarea.selectionStart);
var end = textarea.value.substr(textarea.selectionEnd);
var scrollPos = textarea.scrollTop;
textarea.value = begin + text + end;
if (textarea.setSelectionRange){
textarea.focus();
textarea.setSelectionRange(begin.length + text.length, begin.length + text.length);
}
textarea.scrollTop = scrollPos;
}
else{
textarea.value += text;
textarea.focus(textarea.value.length - 1);}}
//-->
</script>
</head>
<body>
<form method="post" action="index.php?page=chat_message&start=1" name="chat">
	<div align="center">
		<table border="0" cellspacing="1" width="98%" class="border">
		{if {$_CONF['member_permission']}}
		{if {$num_mem_posts}}
					<tr>
				<td class="tbar_writer_info" colspan="2" align="center">
{$lang['chat_num_mem_posts']}
				 </td>
			</tr>
		   {else}
			<tr>
				<td class="tbar" colspan="2" align="center">{$lang['add_chat_message']}</td>
			</tr>
			{if {$_CONF['info_row']['chat_hide_country']} == 1}
			<tr>
				<td class="tbar_writer_info" align="center">{$lang['chat_country']}</td>
				<td class="tbar_writer_info" align="center">
				<input name="country" type="text" /></td>
			</tr>
			{/if}
			<tr>
<td class="tbar_writer_info" colspan="2" align="center">
				{$lang['chat_num_characters']}<br />

<textarea name="text" id="box_text" style="display:block;width:300px; height:100px;" class="inputbox" tabindex="3" rows="7" cols="20" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this)"></textarea>
				</td>
			</tr>
			<tr>
				<td class="tbar_writer_info" colspan="2" align="center">
				{Des::while}{SmileRows}
				<img src="{$SmileRows['smile_path']}" OnClick="AddSmileyIcon(' {$SmileRows['smile_short']} ');" alt="{$SmileRows['smile_path']}" border="0" cellspacing="1" />
			{/Des::while}
				</td>
			</tr>
			<tr>
				<td class="tbar_writer_info" colspan="2" align="center">
				<input name="insert" type="submit" value="{$lang['insert_chat_message']}" />
				 </td>
			</tr>
			{/if}
			{else}
				<tr>
				<td class="tbar_writer_info" colspan="2" align="center">
<b>(المعذره .. غير مسموح للزوار بإضافة الإهداءات, الرجاء <a target="_blank" href="index.php?page=register&index=1">التسجيل</a> في المنتدى)</b>
				 </td>
			</tr>
			{/if}
		</table>
	</div>
</form>
      <br />
		<div class="copyright">
		 {$lang['copyright_chat']}
		</div>
</body>
</html>]]></context_add_chat_message>
<context_add_edit_attach_reply><![CDATA[<html dir="{$_CONF['info_row']['content_dir']}" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$_CONF['info_row']['content_language']}" lang="{$_CONF['info_row']['content_language']}">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />

	<meta name="generator" content="PowerBB" />

	<link rel="stylesheet" href="{$style_path}" type="text/css" />


	<title>{$lang['manage_attachments']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>
<script type="text/javascript" src="includes/js/jquery.js"></script>

</head>

<body>
<script type='text/javascript'>

function AddMoreAttach(x)
{
	x += 1;

	var up_max = {$_CONF['group_info']['upload_attach_num']};

	if (x <= up_max)
	{
		$(".more_attach_tr").hide();
		$("#add_attach_table").append('<tr align="center"><td class="row1 rows_space"><fieldset><legend>{$lang['review_file']}</legend><span class="r-right"><input name="files[]" type="file" id="attach' + x + '" size="50" /></span><span class="l-left"></span></fieldset></td></tr>');
		$("#add_attach_table").append('<tr align="center" class="more_attach_tr"><td class="row1 rows_space" colspan="2"><input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" /></td></tr>');

		$("#files" + x).focus();
		$(".more_attach_class").click(function() { AddMoreAttach(x) });

		if (x == up_max)
		{
			$(".more_attach_tr").hide();
		}
   }
}

function Ready()
{

	$("#attach_table").hide();
	$(".more_attach_class").click(function() { AddMoreAttach(1) });

}
$(document).ready(Ready);
</script>

<form name="topic" method="post" enctype="multipart/form-data" action="index.php?page=attachments&amp;start=1&amp;subject_id={$ReplyInfo['subject_id']}&amp;reply_id={$ReplyInfo['id']}">

<table border="0" cellspacing="1" width="100%" class="border" align="center" id="add_attach_table">
	<tr align="center">
		<td class="tcat" colspan="2">
		{$lang['attachments']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space" colspan="2">
						<br />
			{$lang['ex_list']}
{Des::while}{ExList}
{$ExList['Ex']}
	{/Des::while}
		</td>
	</tr>
<tr align="center">
		<td class="row1 rows_space" colspan="2">
			<strong>{$lang['upload_attachments_nm']}
			 {$_CONF['group_info']['upload_attach_num']}</strong>
		</td>
	</tr>
    <div id="attach_table">
	<tr align="center">
		<td class="row1 rows_space">
		     <fieldset>
<legend>{$lang['review_file']}</legend>
<span class="r-right">
<input name="files[]" type="file" value="" size="50" />
</span>
<span class="l-left">
</span>
</fieldset>
</td>
	</tr>
</div>
<tr align="center" class="more_attach_tr">
		<td class="row1 rows_space" colspan="2">
			<input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" />
		</td>
	</tr>
 </table>


<table border="0" cellspacing="1" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr align="center">
		<td class="row1 rows_space" colspan="2">
	 <input name="insert" type="submit" value="{$lang['upload']}" />
		</td>
	</tr>
			{Des::while}{ReplyAttachList}

			<tr align="center">
				<td class="row2" width="50%">
					<a target="_blank" href="index.php?page=download&amp;attach=1&amp;id={$ReplyAttachList['id']}">
				{$ReplyAttachList['filename']}</a>
				</td>
				<td class="row2" width="50%">
				<a href="index.php?page=attachments&amp;delete_attach=1&amp;id={$ReplyAttachList['id']}&amp;subject_id={$ReplyInfo['subject_id']}&amp;reply_id={$ReplyInfo['id']}">
               {$lang['remove']}</a>
               </td>
			</tr>
	{/Des::while}
		</table>
 </form>
</body>

</html>]]></context_add_edit_attach_reply>
<context_add_edit_attach_subject><![CDATA[<html dir="{$_CONF['info_row']['content_dir']}" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$_CONF['info_row']['content_language']}" lang="{$_CONF['info_row']['content_language']}">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />

	<meta name="generator" content="PowerBB" />

	<link rel="stylesheet" href="{$style_path}" type="text/css" />


	<title>{$lang['manage_attachments']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>
<script type="text/javascript" src="includes/js/jquery.js"></script>

</head>

<body>
<script type='text/javascript'>

function AddMoreAttach(x)
{
	x += 1;

	var up_max = {$_CONF['group_info']['upload_attach_num']};

	if (x <= up_max)
	{
		$(".more_attach_tr").hide();
		$("#add_attach_table").append('<tr align="center"><td class="row1 rows_space"><fieldset><legend>{$lang['review_file']}</legend><span class="r-right"><input name="files[]" type="file" id="attach' + x + '" size="50" /></span><span class="l-left"></span></fieldset></td></tr>');
		$("#add_attach_table").append('<tr align="center" class="more_attach_tr"><td class="row1 rows_space" colspan="2"><input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" /></td></tr>');

		$("#files" + x).focus();
		$(".more_attach_class").click(function() { AddMoreAttach(x) });

		if (x == up_max)
		{
			$(".more_attach_tr").hide();
		}
   }
}

function Ready()
{

	$("#attach_table").hide();
	$(".more_attach_class").click(function() { AddMoreAttach(1) });

}
$(document).ready(Ready);
</script>

<form name="topic" method="post" enctype="multipart/form-data" action="index.php?page=attachments&amp;edit_start=1&amp;&amp;subject_id={$SubjectInfo['id']}">

<table border="0" cellspacing="1" width="100%" class="border" align="center" id="add_attach_table">
	<tr align="center">
		<td class="tcat" colspan="2">
		{$lang['attachments']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space" colspan="2">
						<br />
			{$lang['ex_list']}
{Des::while}{ExList}
{$ExList['Ex']}
	{/Des::while}
		</td>
	</tr>
<tr align="center">
		<td class="row1 rows_space" colspan="2">
			<strong>{$lang['upload_attachments_nm']}
			 {$_CONF['group_info']['upload_attach_num']}</strong>
		</td>
	</tr>
    <div id="attach_table">
	<tr align="center">
		<td class="row1 rows_space">
		     <fieldset>
<legend>{$lang['review_file']}</legend>
<span class="r-right">
<input name="files[]" type="file" value="" size="50" />
</span>
<span class="l-left">
</span>
</fieldset>
</td>
	</tr>
</div>
<tr align="center" class="more_attach_tr">
		<td class="row1 rows_space" colspan="2">
			<input type="button" name="more_attach" class="more_attach_class" value="{$lang['more_attach_file']}" />
		</td>
	</tr>
 </table>


<table border="0" cellspacing="1" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr align="center">
		<td class="row1 rows_space" colspan="2">
	 <input name="insert" type="submit" value="{$lang['upload']}" />
		</td>
	</tr>
			{Des::while}{SubjectAttachList}

			<tr align="center">
				<td class="row2" width="50%">
					<a target="_blank" href="index.php?page=download&amp;attach=1&amp;id={$SubjectAttachList['id']}">
				{$SubjectAttachList['filename']}</a>
				</td>
				<td class="row2" width="50%">
				<a href="index.php?page=attachments&amp;delete_attach_subject=1&amp;id={$SubjectAttachList['id']}&amp;subject_id={$SubjectAttachList['subject_id']}">
               {$lang['remove']}</a>
               </td>
			</tr>
	{/Des::while}
		</table>
 </form>
</body>

</html>]]></context_add_edit_attach_subject>
<context_add_poll_table><![CDATA[<br />
<table border="0" cellspacing="1" width="70%" class="border" align="center" id="poll_question_answers">

	<tr align="center">
		<td class="tbar" colspan="2">
		{$lang['add_polls']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1">
			{$lang['answer']}
		</td>
		<td class="row1">
			<input name="question" type="text" size="40" value="{$question}" />
		</td>
	</tr>
	<tr align="center">
		<td class="row1">
			{$lang['answer1']}
		</td>
		<td class="row1">
			<input name="answer[]" type="text" />
		</td>
	</tr>
	<tr align="center">
		<td class="row1">
			{$lang['answer2']}
		</td>
		<td class="row1">
			<input name="answer[]" type="text" />
		</td>
	</tr>
	<tr align="center" class="more_tr">
		<td class="row1" colspan="2">
			<input type="button" name="more_answers" class="more_answers_class" value="{$lang['more_answers']}" />
		</td>
	</tr>

</table>
]]></context_add_poll_table>
<context_add_reply_link><![CDATA[{if {$SectionGroup['write_reply']} == '1'}
<ul class="pbbList_inline">
<li class="r-right">
<a href="index.php?page=new_reply&amp;index=1&amp;count={$count}&amp;id={$subject_id}{$password}" id="buttons_link"
title="{$lang['add_new_reply']}">
{$lang['add_new_reply']}
</a>
</li>
</ul>
{else}
<ul class="pbbList_inline">
<li class="r-right">
<div class="buttons_no_link">
{$lang['you_cannot_reply_to_this_topic']}
</div>
</li>
</ul>
{/if}]]></context_add_reply_link>
<context_add_subject_link><![CDATA[{if {$SectionGroup['write_subject']} == '1'}
<ul class="pbbList_inline">
<li class="r-right">
<a href="index.php?page=new_topic&amp;index=1&amp;id={$section_id}{$password}" id="buttons_link"
title="{$lang['add_new_topic']}">
{$lang['add_new_topic']}
</a>
</li>
</ul>
{else}
<ul class="pbbList_inline">
<li class="r-right">
<div class="buttons_no_link">
{$lang['you_cannot_start_a_new_topic']}
</div>
</li>
</ul>
{/if}]]></context_add_subject_link>
<context_add_tags_table><![CDATA[<br />
<div align="center">
	<table border="0" cellspacing="1" width="70%" class="border" align="center" id="add_tags_table">
	<tr align="center">
		<td class="tbar" colspan="2">
             {$lang['tags']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1">
			{$lang['tag1']}
		</td>
		<td class="row1">
			<input name="tags[]" type="text" value="" size="40" />
		</td>
	</tr>
	<tr align="center" class="more_tag_tr">
		<td class="row1 rows_space" colspan="2">
			<input type="button" name="more_tags" class="more_tags_class" value="{$lang['add_more_tag']}" />
		</td>
	</tr>

</table></div>
]]></context_add_tags_table>
<context_add_this><![CDATA[<!-- AddThis Button BEGIN -->
 {if {$_CONF['info_row']['active_add_this']} == '1'}
<script type="text/javascript">var addthis_config = {ui_language: "{$_CONF['info_row']['content_language']}"}</script>
<div class="addthis_toolbox addthis_default_style" align="left">
{if {$_CONF['info_row']['content_language']} != 'ar'}
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username={$_CONF['info_row']['use_list']}" class="addthis_button_compact">
<img src="{$image_path}/lg-share-en.gif"  width="125" height="16" border="0" /></a>
	{else}
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username={$_CONF['info_row']['use_list']}" class="addthis_button_compact">
<img src="{$image_path}/lg-share-ar.gif"  width="125" height="16" border="0" /></a>
	{/if}
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_favorites"></a>
<a class="addthis_button_print"></a>
</div>
<script type="text/javascript" src="includes/js/addthis_widget.js#username={$_CONF['info_row']['use_list']}"></script>
{/if}
<!-- AddThis Button END -->
]]></context_add_this>
<context_ads><![CDATA[{if !{$No_Ads}}
<br />
<div align="center">
<div style="border-style: solid; border-width: 0px; width:55%; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px ; " >

		{Des::while}{AdsList}
			<a href="index.php?page=ads&amp;goto=1&amp;id={$AdsList['id']}" target="_blank">
				   <img src="{$AdsList['picture']}"
					{if {$AdsList['width']} == '0'}
					{else}
					width="{$AdsList['width']}"
					{/if}
					{if {$AdsList['height']} == '0'}
					{else}
					height="{$AdsList['height']}"
					{/if}
					title="{$AdsList['sitename']}" border="0" cellspacing="1" align="center" />&nbsp;
			</a>
			{/Des::while}
</div>
</div>
<br />
{/if}
]]></context_ads>
<context_adsense_forum><![CDATA[{Des::while}{AdsensesList}
{if {$AdsensesList['forum']} == '1'}
	<tr>
	<td width="98%" colspan="{$colspan}" class="row1" align="center">
{$AdsensesList['adsense']}
</td>
</tr>
{/if}
{/Des::while}
]]></context_adsense_forum>
<context_adsense_home><![CDATA[{Des::while}{AdsensesList}
{if {$AdsensesList['home']} == '1'}
<div align="center">
{$AdsensesList['adsense']}
<br />
</div>
{/if}
{/Des::while}
]]></context_adsense_home>
<context_adsense_topic><![CDATA[{Des::while}{AdsensesList}
{if {$AdsensesList['topic']} == '1'}
<div align="left">
{$AdsensesList['adsense']}
<br />
</div>
{/if}
{/Des::while}]]></context_adsense_topic>
<context_alerts><![CDATA[      <!-- Code alerts Menu start -->
      	<div style="display:none;" class="drop_menu" id="alerts">
		<div class="tcat">{$lang['alerts']}</div>
		<div class="menu_popup">
		<a href="index.php?page=pm_list&list=1&folder=inbox">
		 {if {$pm_num} > 0}
		 <b>
		{$lang['Private_messages_unread']}
		</b>
		{else}
		{$lang['Private_messages_unread']}
		{/if}
		</a>
		:
		<a href="index.php?page=pm_list&list=1&folder=inbox">
		{if {$pm_num} > 0}
		 <b>
		{$pm_num}
		</b>
		{else}
		{$pm_num}
		{/if}
		</a></div>
			<div class="menu_popup">
		<a href="index.php?page=profile&amp;show=1&amp;id={$_CONF['member_row']['id']}">
		{if {$visitor_message_Numrs} > 0}
		 <b>
		{$lang['visitor_messages_unread']}
		</b>
		{else}
		{$lang['visitor_messages_unread']}
		{/if}
		</a>:
		<a href="index.php?page=profile&amp;show=1&amp;id={$_CONF['member_row']['id']}">
		{if {$visitor_message_Numrs} > 0}
		 <b>
		{$visitor_message_Numrs}
		</b>
		{else}
		{$visitor_message_Numrs}
		{/if}
		</a>
		</div>
		<div class="menu_popup">
		<a href="index.php?page=usercp&options=1&friends=1&main=1">
		{if {$friends_num} > 0}
		 <b>
		{$lang['Friend_requests_awaiting_approval']}
		</b>
		{else}
		{$lang['Friend_requests_awaiting_approval']}
		{/if}
		</a>:
		<a href="index.php?page=usercp&options=1&friends=1&main=1">
		{if {$friends_num} > 0}
		 <b>
		{$friends_num}
		</b>
		{else}
		{$friends_num}
		{/if}
		</a>
		</div>
			<div class="menu_popup">
		<a href="index.php?page=usercp&options=1&reputation=1&main=1">
		{if {$ReputationNum} > 0}
		 <b>
		{$lang['reputation_unread']}
		</b>
		{else}
		{$lang['reputation_unread']}
		{/if}
		</a>:
		<a href="index.php?page=usercp&options=1&reputation=1&main=1">
		{if {$ReputationNum} > 0}
		 <b>
		{$ReputationNum}
		</b>
		{else}
		0
		{/if}
		</div>
 </div>
<!-- Code alerts Menu End -->]]></context_alerts>
<context_announcement><![CDATA[
{template}address_bar_part1{/template}
{$lang['announcement']}
 {$_CONF['info_row']['adress_bar_separate']}
 <a href="index.php?page=announcement&amp;show=1&amp;id={$AnnInfo['id']}"> {$AnnInfo['title']}</a>
 {template}address_bar_part2{/template}

<br />

<table align="center" border="0" cellspacing="1" class="border" width="95%">
	<tr>
		<td class="tcat" width="15%">
		{$lang['announcement_writer']}
		</td>
		<td class="tcat">
	<div class="r-right">	{$lang['announcement_title']} : <a href="index.php?page=announcement&amp;show=1&amp;id={$AnnInfo['id']}"> {$AnnInfo['title']}</a></div>
		<div class="l-left">
{$lang['announcement_date']} :{$AnnInfo['date']}
</div></td>
	</tr>
	<tr>
		<td class="tbar_writer_info" width="15%" valign="top" align="center">
				<div class="text">
		<a href="index.php?page=profile&amp;show=1&amp;username={$AnnInfo['writer']}">{$AnnInfo['writer']}</a>
			</div>
</td>
		<td class="tbar_writer_info" width="85%" valign="top" align="right">
			<div class="text">{$AnnInfo['text']} </div>
		</td>
	</tr>
</table>

<br />
<br />
<br />
<br />]]></context_announcement>
<context_archive_footer><![CDATA[<div id="copyright">{$lang['copyright_archive']}</div>
]]></context_archive_footer>
<context_archive_forum><![CDATA[<!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" dir="{$_CONF['info_row']['content_dir']}" lang="{$_CONF['info_row']['content_language']}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />
<meta http-equiv="Content-Language" content="{$_CONF['info_row']['content_language']}" />
<meta name="keywords" content="{$section_info['title']}" />
<meta name="description" content="{$section_info['title']}" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="archive/archive.css" />
	<title> {$lang['archive']}
	- {$_CONF['info_row']['title']}
	- {$section_info['title']}
{if {$_CONF['info_row']['allowed_powered']} == 1}
 - {$lang['powered']}
{/if}
</title>
</head>
<body>
  <div class="pagebody">
		<div id="navbar">
		{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="archive.html">
						{$_CONF['info_row']['title']}</a> {$_CONF['info_row']['adress_bar_separate']}
			{else}
			 <a href="index.php?page=archive">
			 			{$_CONF['info_row']['title']}</a> {$_CONF['info_row']['adress_bar_separate']}
			 {/if}

{$section_info['title']}
		</div>
 <br />
<p class="largefont">
{$lang['view_full_version']}
		{if {$_CONF['info_row']['rewriterule']} == '1'}
			 <a href="f{$section_info['id']}.html">
			{else}
			  <a href="index.php?page=forum&amp;show=1&amp;id={$section_info['id']}">
			 {/if}
       {$section_info['title']}</a></p>

		<br />
 <div id="content">

  <br />
	{if !{$NO_STICK_SUBJECTS}}
		{/if}
	{Des::while}{stick_subject_list}

<table border="0" cellspacing="1" cellpadding="0" style="border-collapse: collapse">
	<tr>
		<td width="40"><font size="2">&nbsp;</font></td>
		<td>
				{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="At{$stick_subject_list['id']}{$password}.html">
							{$stick_subject_list['title']}
			</a>
			{else}
			 <a href="index.php?page=topic_archive&amp;show=1&amp;id={$stick_subject_list['id']}{$password}">
			 				{$stick_subject_list['title']}
			</a>
			 {/if}
</td>
		<td align="right">&nbsp;<i>&nbsp;{$lang['reply_archive']}(
		 {$stick_subject_list['reply_number']}
			{if {$stick_subject_list['reply_number']} <= 0}
			{else}

			{/if})</td>
	</tr>
	</table>

			{/Des::while}
		{Des::while}{subject_list}

<table border="0" cellspacing="1" cellpadding="0" style="border-collapse: collapse">
	<tr>
		<td width="40"><font size="2">&nbsp;</font></td>
		<td>
				{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="At{$subject_list['id']}{$password}.html">
							{$subject_list['title']}
			</a>
			{else}
			 <a href="index.php?page=topic_archive&amp;show=1&amp;id={$subject_list['id']}{$password}">
			 				{$subject_list['title']}
			</a>
			 {/if}
</td>
		<td align="right">&nbsp;<i>&nbsp;{$lang['reply_archive']} (
		{$subject_list['reply_number']}
			{if {$subject_list['reply_number']} <= 0}
			{else}

			{/if} )</td>
	</tr>
</table>

{/Des::while}


 <br />

<br />
      <br />
      <br />
</div>
</body>]]></context_archive_forum>
<context_archive_main><![CDATA[<!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" dir="{$_CONF['info_row']['content_dir']}" lang="{$_CONF['info_row']['content_language']}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />
<meta http-equiv="Content-Language" content="{$_CONF['info_row']['content_language']}" />
<meta name="keywords" content="{$_CONF['info_row']['keywords']}" />
<meta name="description" content="{$_CONF['info_row']['description']}" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="archive/archive.css" />
	<title> {$lang['archive']}
	- {$_CONF['info_row']['title']}
{if {$_CONF['info_row']['allowed_powered']} == 1}
 - {$lang['powered']}
{/if}</title>
</head>
<body>

  <div class="pagebody">
		<div id="navbar">
		{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="archive.html">
			{else}
			<a href="index.php?page=archive">
			{/if}
			{$_CONF['info_row']['title']}</a>
			 {$_CONF['info_row']['adress_bar_separate']}

   {$lang['archive_t']} </div>

    <br />
<p class="largefont"> {$lang['view_full_version']}
 <a href="index.php">{$_CONF['info_row']['title']}</a></p>

     <br />
     <div id="content">
	{if {$show_sub_sections}} {/if} {Des::foreach}{forums_list}{forum} {if {$forum['parent']} == 0}
    {if {$forum['sort']} != 1} <br />
	{/if}
<a style="font-weight: bold;">{$forum['title']}</a><br />
		{/if}
		 {if {$forum['parent']} != 0}
		{if {$forum['linksection']} != '1'}
		{if {$_CONF['info_row']['rewriterule']} == '1'}
		<ul>
		<li>
		<a href="Af{$forum['id']}.html">
		{$forum['title']}</a>
		{else}
		<ul>
		<li>
		<a href="index.php?page=forum_archive&amp;show=1&amp;id={$forum['id']}">
		{$forum['title']}</a>
		{/if}
			 <br />
 {if {$forum['is_sub_archive']}}
 			<ul>
				 {$forum['sub_archive']}
		</ul>
                 {/if}

		</li>
	    </ul>
			{else}
		<ul>
		<li>
		{if {$_CONF['info_row']['rewriterule']} == '1'}
		<a href="Af{$forum['id']}.html">
		{$forum['title']}</a>
		{else}
		<a href="index.php?page=forum_archive&amp;show=1&amp;id={$forum['id']}">
		{$forum['title']}</a>
		{/if}
			<br />
			{$forum['describe']}
			{$lang['views']}
			 {$forum['linkvisitor']} {/if} {/if}
			{/Des::foreach} </li>
			</ul>
<br />
      <br />
      <br />
</div>
</body>]]></context_archive_main>
<context_archive_reply><![CDATA[<br />

<div class="post">
<div class="posttop">
<div class="username">
<a href="javascript:switchMenuNone('{$Info['reply_id']}replyswitch')">
{if {$_CONF['info_row']['rewriterule']} == '1'}
<a href="u{$Info['id']}.html">
{else}
<a href="index.php?page=profile&amp;show=1&amp;id={$Info['id']}">
{/if}
{$Info['display_username']}</a>
</div>
<div class="date">
{$Info['write_time']}
</div>
</div>
<div class="posttext">
{$Info['text']}
</div>
</div>
<hr />
]]></context_archive_reply>
<context_archive_reply_guest><![CDATA[<br />

<div class="post"><div class="posttop"><div class="username">{$reply_guest['writer']}</div>
<div class="date">
	{$write_time}</div></div><div class="posttext">
		{$reply_guest['text']}</div></div><hr />


]]></context_archive_reply_guest>
<context_archive_subject><![CDATA[<!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" dir="{$_CONF['info_row']['content_dir']}" lang="{$_CONF['info_row']['content_language']}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$_CONF['info_row']['charset']}" />
<meta http-equiv="Content-Language" content="{$_CONF['info_row']['content_language']}" />
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="archive/archive.css" />
	<title>{$lang['archive']}
	- {$_CONF['info_row']['title']} - {$section_info['title']} - {$Info['title']}
{if {$_CONF['info_row']['allowed_powered']} == 1}
 -  {$lang['powered']}
{/if}</title>
 </head>
 <body>

	  <div class="pagebody">
		<div id="navbar">
		{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="archive.html">
			{else}
			<a href="index.php?page=archive">
			{/if}
			{$_CONF['info_row']['title']}</a> {$_CONF['info_row']['adress_bar_separate']}
{if {$_CONF['info_row']['rewriterule']} == '1'}
<a href="Af{$section_info['id']}{$password}.html">
			{else}
<a href="index.php?page=forum_archive&amp;show=1&amp;id={$section_info['id']}{$password}">
			{/if}
	{$section_info['title']}
</a>
<a href="">{$_CONF['info_row']['adress_bar_separate']}  {$Info['title']} </a>
		</div>
<br />
<p class="largefont">{$lang['view_full_version']}
		{if {$_CONF['info_row']['rewriterule']} == '1'}
<a href="t{$Info['subject_id']}.html">
			{else}
<a href="index.php?page=topic&amp;show=1&amp;id={$Info['subject_id']}">
			{/if}
 {$Info['title']}</a></p>
<br />
<br />
<div class="post"><div class="posttop"><div class="username">
		{if {$_CONF['info_row']['rewriterule']} == '1'}
<a href="u{$Info['id']}.html">
			{else}
<a href="index.php?page=profile&amp;show=1&amp;id={$Info['id']}">
			{/if}
{$Info['display_username']}</a></div>
<div class="date">
	{$Info['native_write_time']}</div></div><div class="posttext">
		{$Info['text']}</div></div><hr />

]]></context_archive_subject>
<context_attach_show><![CDATA[<br /><br />
<br /><br />
<div style="clear:both">&nbsp;</div>

{Des::while}{AttachList}
<?php

if ($PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('jpeg')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('jpg')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('gif')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('png')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('bmp'))
{
?>
<fieldset style="float:right; width:110px;height:110pxpx;text-align:center;border-radius: 5px;-webkit-border-radius: 5px;-moz-border-radius: 5px;-khtml-border-radius: 5px;">
<legend>{$lang['image_attached']}</legend>

<a href="{$AttachList['filepath']}" rel="facebox"><img src="{$AttachList['filepath']}" border="0" alt="" class="UserPhoto" width="90px" height="80px" onload="ResizeAv(this)" /></a>
</fieldset>

<?php } ?>

{/Des::while}

<div style="clear:both">&nbsp;</div>

<table border="0" cellspacing="1" class="border" width="90%" align="center">
{Des::while}{AttachList}
<?php

if ($PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('jpeg')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('jpg')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('gif')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('png')
or $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['extension'] == ('bmp'))
{
// -------- nothing;
}
else
	{
?>

<tr align="right">
<td width="50%" class="row1">
{$lang['download_attachments']}
(<a href="index.php?page=download&amp;attach=1&amp;id={$AttachList['id']}">{$AttachList['filename']}</a>)
</td>
<td width="25%" class="row1">
{$lang['downloads']}
({$AttachList['visitor']})
</td>
<td width="25%" class="row1">
{$lang['size']}
(<?php echo $PowerBB->_CONF['template']['while']['AttachList'][$this->x_loop]['filesize'] / 1000; ?>)
KB
</td>
</tr>
<?php
	}
 ?>
{/Des::while}
</table>

<br />]]></context_attach_show>
<context_avatar_options_list><![CDATA[	<?php $t=0;	?>
		<table border="0" cellspacing="1" width="100%" class="border" align="center">
		<tr valign="top">
			<td width="80%" class="tcat" colspan="{$_CONF['info_row']['avatar_columns_number']}">
				{$lang['add_avatar_to_site']}
			</td>
		</tr>
		<tr align="right">
		{Des::while}{AvatarList}
		<?php
if($t== $PowerBB->_CONF['template']['_CONF']['info_row']['avatar_columns_number']){
$t=0;
echo "</tr><tr>";
}?>
			<td width="5%" class="row1" align="center">
			<label for="avatar{$AvatarList['id']}"><img border="0" cellspacing="1" alt="{$lang['personal_photo']} #{$AvatarList['id']}" src="{$AvatarList['avatar_path']}" /></label>
			<br />
				<input name="avatar_list" type="radio" value="{$AvatarList['avatar_path']}" id="avatar{$AvatarList['id']}" />
		</td>
<?php $t=$t+1;?>
{/Des::while}
		</tr>
	</table>
	<br />
	<div align="center">
		{$pager}
	</div>
]]></context_avatar_options_list>
<context_avatar_options_site><![CDATA[	<table align="center" border="0" cellspacing="1" width="80%" class="border" >
		<tr align="center">
			<td width="80%" class="tcat" colspan="2">
				{$lang['photo_to_external_site']}
			</td>
		</tr>
		<tr>
			<td width="60%" class="row1">
				{$lang['Photo_URL']}
			</td>
			<td width="40%" class="row1">
				<input name="avatar" size="40" value="http://" dir="ltr"/>
			</td>
		</tr>
		<tr align="center">
			<td width="80%" class="row1" colspan="2">
            {$lang['max_avatar']}
			</td>
		</tr>
	</table>
]]></context_avatar_options_site>
<context_avatar_options_upload><![CDATA[	<table align="center" border="0" cellspacing="1" width="80%" class="border" >
		<tr align="center">
			<td width="80%" class="tcat" colspan="2">
				{$lang['photo_from_your_computer']}
			</td>
		</tr>
		<tr align="center">
			<td width="40%" class="row1">
				{$lang['select_image']}
			</td>
			<td width="40%" class="row1">
				<input type="file" name="upload" />
			</td>
		</tr>
		<tr align="center">
			<td width="80%" class="row1" colspan="2">
            {$lang['max_avatar']}
			</td>
			</tr>
	</table>
]]></context_avatar_options_upload>
<context_awards><![CDATA[{if {$Awards_nm} > '0'}
<div align="center">
<table width="90%" border="0" cellspacing="1">
<tr>
<td width="90%" align="center" class="tbar">
{$lang['awards']}:{$Awards_nm}
</td>
</tr>
{Des::while}{AwardsList}
<tr>
<td width="90%" align="center" class="tbar_writer_info">
{$AwardsList['award']}
<br />
<img title="{$AwardsList['award']}" src="{$AwardsList['award_path']}" border="0">
<br />
</td>
</tr>
{/Des::while}
</table>
</div>
{/if}]]></context_awards>
<context_birth_date><![CDATA[<table border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td>{$lang['month']}</td>
								<td>{$lang['Day']}</td>
								<td>{$lang['year']}</td>
							</tr>
							<tr>
								<td><select name="month" id="bd_month">
								<option value="0" selected="selected"></option>
								<option value="01">{$lang['January']}</option>
								<option value="02">{$lang['February']}</option>
								<option value="03">{$lang['March']}</option>
								<option value="04">{$lang['April']}</option>
								<option value="05">{$lang['May']}</option>
								<option value="06">{$lang['June']}</option>
								<option value="07">{$lang['July']}</option>
								<option value="08">{$lang['August']}</option>
								<option value="09">{$lang['September']}</option>
								<option value="10">{$lang['October']}</option>
								<option value="11">{$lang['November']}</option>
								<option value="12">{$lang['December']}</option>
								</select> &nbsp;</td>
								<td><select name="day" id="bd_day">
								<option value="0" selected="selected"></option>
								<option value="01">1</option>
								<option value="02">2</option>
								<option value="03">3</option>
								<option value="04">4</option>
								<option value="05">5</option>
								<option value="06">6</option>
								<option value="07">7</option>
								<option value="08">8</option>
								<option value="09">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
								</select> &nbsp;</td>
								<td>
<input name="year" id="bd_year" type="text" size="4" dir="ltr"/> &nbsp;
</td>
</tr>
</table>]]></context_birth_date>
<context_board_close><![CDATA[<title>{$lang['board_close']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>
<br />
<br />
<br />
<br />
		<div align="center">
			<table width="60%" border="0" cellspacing="1" class="border">
						<tr align="center">
					<td class="tcat">
				  {$lang['reason_close']}
				  	</td>
					</tr>
					<tr align="right">
						<td class="row1" align="right">
							{$_CONF['info_row']['reg_close']}</td>
					</tr>
					</table></div>

<br />
<br />]]></context_board_close>
<context_calendar><![CDATA[<title>{$lang['Calendar']}
{if {$_CONF['info_row']['allowed_powered']} == 1}
 - {$lang['powered']}
{/if}</title>

<table border="0" cellspacing="1" class="border" width='100%' align="center">
	<tr>
		<td class='tcat'>{$lang['Calendar']}</td>
	</tr>
	<tr>
		<td class='row1'>
		<a href='index.php?page=calendar&amp;show=1'>
		{$lang['Gregorian_calendar']}</a>
		</td>
	</tr>
	<tr>
		<td class='row1'>
		<a href='index.php?page=calendar&amp;show=2'>
		{$lang['CalendarHijri']}</a>
		</td>
	</tr>
</table>

]]></context_calendar>
<context_calendar_portal><![CDATA[<table width="100%" class="border" cellpadding="0" style="border-collapse: collapse">
<tr align="center">
		<td class="tcat" width="20%">
		{$lang['Calendar']}</td>
	</tr>
	<tr>
		<td class="row1">
		<font class="smallfont">
<?php
		$get_now_date = getdate();
		$now_year = $get_now_date[year];
		$now_month = $get_now_date[mon];
		$now_day = $get_now_date[mday];
		$month=$PowerBB->_POST['month'];
		$year=$PowerBB->_POST['year'];

		define ("ADAY", (60*60*24));
		if (!checkdate($month,1,$year)){
			$nowArray = getdate();
			$month = $nowArray[mon];
			$year = $nowArray[year];
		}

		$start = mktime (0, 0, 0, $month, 1, $year);

		$firstDayArray = getdate($start);

	?>


	<?php
	$days = Array($PowerBB->_CONF['template']['lang']['Sun'], $PowerBB->_CONF['template']['lang']['Mon'], $PowerBB->_CONF['template']['lang']['Tue'], $PowerBB->_CONF['template']['lang']['Wed'], $PowerBB->_CONF['template']['lang']['Thu'], $PowerBB->_CONF['template']['lang']['Fri'], $PowerBB->_CONF['template']['lang']['Sat'] );
	print "<div align='center' STYLE=\"cursor:hand;cursor:pointer\" ><center>\n<table class=border cellpadding='1' cellspacing='0' width='99%' >
	<tr>\n";

	foreach ($days as $day) {
		print "\t<td class=thead align='center' width='40'>$day</td>\n";
	}

	for ($count=0; $count < (6*7); $count++){
		$dayArray = getdate($start);
		if ((($count) % 7) == 0){
			if ($dayArray[mon] != $month)
				break;
				print "</tr>\n<tr>\n";
		}

		if ($count < $firstDayArray[wday] || $dayArray[mon] != $month) {
			print "\t<td><br></td>\n";
		}
		else {

			if ($now_day == $dayArray[mday] && $now_month == $month && $now_year == $year){
				print "\t<td class=tcat title=\"Date $firstDayArray[month] $dayArray[mday] $firstDayArray[year]\" onClick=\"SetFormat('$firstDayArray[month] $dayArray[mday] $firstDayArray[year]')\" onMouseover=\"this.className='tcat';\" onMouseout=\"this.className='tcat';\" >$dayArray[mday]</td>\n";
			}
			else{
				print "\t<td class=thead title=\"Date $firstDayArray[month] $dayArray[mday] $firstDayArray[year]\" onClick=\"SetFormat('$firstDayArray[month] $dayArray[mday] $firstDayArray[year]')\" onMouseover=\"this.className='tcat';\" onMouseout=\"this.className='thead';\" >$dayArray[mday]</td>\n";
			}
			$start += ADAY;
		}
	}

	print "</tr></table></center></div><div class=thead align='center'>";
	?>
		<script language="JavaScript">

		var fixd;

		function isGregLeapYear(year)
		{
		return year%4 == 0 && year%100 != 0 || year%400 == 0;
		}


		function gregToFixed(year, month, day)
		{
		var a = Math.floor((year - 1) / 4);
		var b = Math.floor((year - 1) / 100);
		var c = Math.floor((year - 1) / 400);
		var d = Math.floor((367 * month - 362) / 12);

		if (month <= 2)
		e = 0;
		else if (month > 2 && isGregLeapYear(year))
		e = -1;
		else
		e = -2;

		return 1 - 1 + 365 * (year - 1) + a - b + c + d + e + day;
		}

		function Hijri(year, month, day)
		{
		this.year = year;
		this.month = month;
		this.day = day;
		this.toFixed = hijriToFixed;
		this.toString = hijriToString;
		}

		function hijriToFixed()
		{
		return this.day + Math.ceil(29.5 * (this.month - 1)) + (this.year - 1) * 354 +
		Math.floor((3 + 11 * this.year) / 30) + 227015 - 1;
		}

		function hijriToString()
		{
		var months = new Array("Muharram","Safar","Rabi-al Awwal","Rabi-al Thani","Jumada al-Ula","Jumada al-Thani","Rajab","Sha\'ban","Ramadhan","Shawwal","Dh ul Qa\'dah","Dhul Hijjah");
		return this.day + " " + months[this.month - 1]+ " " + this.year;
		}

		function fixedToHijri(f)
		{
		var i=new Hijri(1100, 1, 1);
		i.year = Math.floor((30 * (f - 227015) + 10646) / 10631);
		var i2=new Hijri(i.year, 1, 1);
		var m = Math.ceil((f - 29 - i2.toFixed()) / 29.5) + 1;
		i.month = Math.min(m, 12);
		i2.year = i.year;
		i2.month = i.month;
		i2.day = 1;
		i.day = f - i2.toFixed() + 1;
		return i;
		}

		var tod=new Date();
		var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
		var monthname=new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December");

		var y = tod.getFullYear();
		var m = tod.getMonth();
		var d = tod.getDate();
		var dow = tod.getDay();
		document.write(weekday[dow] + " " + d + " " + monthname[m] + " " + y);
		m++;
		fixd=gregToFixed(y, m, d);
		var h=new Hijri(1421, 11, 28);
		h = fixedToHijri(fixd);
		document.write(" CE | " + h.toString() + " AH &nbsp;&nbsp;");

		</script>
       </div>

		</font>
		</td>
	</tr>
</table>]]></context_calendar_portal>
<context_chat><![CDATA[
<br />
<div align="center">
	<table border="0" cellspacing="1" class="border" width="98%">
	<tr>
		<td width="95%" class="tbar" align="center" colspan="1">
{$lang['chat_message']}
		</td>
	</tr>
	<tr>
		<td width="98%" class="row2" align="right">
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="{$_CONF['info_row']['chat_bar_dir']}">
{Des::while}{Messages}
<b dir="{$_CONF['info_row']['content_dir']}">(<a href="index.php?page=profile&amp;show=1&amp;id={$Messages['user_id']}">
<?php echo $PowerBB->functions->GetUsernameStyle($PowerBB->_CONF['template']['while']['Messages'][$this->x_loop]['username']);?>
</a>
  {if {$_CONF['info_row']['chat_hide_country']} == 1}
<?php $PowerBB->_CONF['template']['while']['Messages'][$this->x_loop]['country'] = $PowerBB->Powerparse->feltr_words($PowerBB->_CONF['template']['while']['Messages'][$this->x_loop]['country']); ?>
<?php $PowerBB->_CONF['template']['while']['Messages'][$this->x_loop]['message'] = $PowerBB->Powerparse->feltr_words($PowerBB->_CONF['template']['while']['Messages'][$this->x_loop]['message']); ?>

<font color="#FF0000">{$lang['from_country']}
 {$Messages['country']} </font>
{else}
:
{/if}
 {$Messages['message']} )</b>
<font color="#000080"> &nbsp; <img border="0"  alt="" src="{$image_path}/icmov.gif" width="20" height="18" />  &nbsp;</font>
{/Des::while}
</marquee>
<br />
<input name="add_chat_message" type="button" value="{$lang['add_chat_message1']}" onclick="window.open('index.php?page=chat_message&amp;chat=1','mywindow','width=500,height=350')" />
		</td>
	</tr>
</table></div>
]]></context_chat>
<context_editor_js><![CDATA[
<script type="text/javascript" src="includes/js/IEprompt.js"></script>
 <script type='text/javascript'>
{if {$_CONF['info_row']['content_language']} != 'ar'}
 function iePrompt(str){
   var settings = "dialogWidth: 290px; dialogHeight: 160px; center: yes; edge: raised; scroll: no; status: no;";
   return window.showModalDialog("includes/js/iePrompt_en.htm", str, settings);
}
	{else}
 function iePrompt(str){
   var settings = "dialogWidth: 290px; dialogHeight: 160px; center: yes; edge: raised; scroll: no; status: no;";
   return window.showModalDialog("includes/js/iePrompt_ar.htm", str, settings);
}
	{/if}
 function cbPrompt(str){
   try {
      if(window.showModalDialog){ return iePrompt(str); }
         else { return prompt(str, ""); }
   } catch (e) {
         return iePrompt(str);
   }
}
</script>
	<div style="display:none" id="All_Smiles">
	<?php $t=0;	?>
	<table border="0" cellspacing="1" class="border">
	<tr>
	<td class="row1" colspan="20">
	<a href="javascript:switchMenuNone('All_Smiles')">
	<div class="r-right"> <img border="0" cellspacing="1" src="{$image_path}/colorpicker_close.png" /></div></a>
	</td>
	</tr>
	<tr valign="top">
	{Des::while}{SmlList}
	<?php
	if($t== '20'){
	$t=0;
	echo "</tr><tr>";
	}?>
	<td class="row1">
	<img src="{$SmlList['smile_path']}" OnClick="AddSmileyIcon('{$SmlList['smile_path']}');" alt="{$SmlList['smile_path']}" border="0" cellspacing="1" />
	</td>
	<?php $t=$t+1;?>
	{/Des::while}
	</tr>
	</table>
	</div>
{Des::while}{Custom_bbcodesList}
			{if {$Custom_bbcodesList['bbcode_switch']} != ''}
			{if {$Custom_bbcodesList['bbcode_useoption']} == '1'}
				<img src="{$Custom_bbcodesList['bbcode_switch']}" onClick="Custom_bbcodes_option{$Custom_bbcodesList['bbcode_tag']}('{$Custom_bbcodesList['bbcode_tag']}');" onmouseover="overIcon(this)" onmouseout="outIcon(this)" title="{$Custom_bbcodesList['bbcode_desc']}" border="0" class="editorbutton" />
 {else}
				<img src="{$Custom_bbcodesList['bbcode_switch']}" onClick="Custom_bbcodes{$Custom_bbcodesList['bbcode_tag']}('{$Custom_bbcodesList['bbcode_tag']}');" onmouseover="overIcon(this)" onmouseout="outIcon(this)" title="{$Custom_bbcodesList['bbcode_desc']}" border="0" class="editorbutton" />
 {/if}
 <script type='text/javascript'>

//<![CDATA[
		function Custom_bbcodes{$Custom_bbcodesList['bbcode_tag']}({$Custom_bbcodesList['bbcode_tag']},theme){
// add Custom bbcodes
				 if (comm._viewmode == 1){
				comm._focus();
				comm._HTML('[{$Custom_bbcodesList['bbcode_tag']}]  ' ,' [/{$Custom_bbcodesList['bbcode_tag']}]');
				comm._focus();
				}else{
				bbfontstyle('[{$Custom_bbcodesList['bbcode_tag']}] ' ,'[/{$Custom_bbcodesList['bbcode_tag']}] ');
				}
};


		function Custom_bbcodes_option{$Custom_bbcodesList['bbcode_tag']}({$Custom_bbcodesList['bbcode_tag']},theme){
// add Custom bbcodes
				 if (comm._viewmode == 1){
				 	var option = cbPrompt({$Custom_bbcodesList['bbcode_tag']}, '');
				 	if(option){
				comm._focus();
				comm._HTML('[{$Custom_bbcodesList['bbcode_tag']}='+option+']  ' ,' [/{$Custom_bbcodesList['bbcode_tag']}]');
				comm._focus();
				}
				}else{
				option = prompt({$Custom_bbcodesList['bbcode_tag']}, '');
				bbfontstyle('[{$Custom_bbcodesList['bbcode_tag']}='+option +'] ' ,'[/{$Custom_bbcodesList['bbcode_tag']}] ');
				}
};
//]]>
</script>
{/if}
{/Des::while}



 <script type='text/javascript'>
//<![CDATA[
bbcode._Print("full",250);
//]]>
</script>

<div id="keyboard_palette" style="display:none;">
 {template}keyboard_form{/template}
</div>
]]></context_editor_js>
<context_editor_simple><![CDATA[
<script type="text/javascript" src="includes/js/IEprompt.js"></script>
 <script type='text/javascript'>
{if {$_CONF['info_row']['content_language']} != 'ar'}
 function iePrompt(str){
   var settings = "dialogWidth: 290px; dialogHeight: 160px; center: yes; edge: raised; scroll: no; status: no;";
   return window.showModalDialog("includes/js/iePrompt_en.htm", str, settings);
}
	{else}
 function iePrompt(str){
   var settings = "dialogWidth: 290px; dialogHeight: 160px; center: yes; edge: raised; scroll: no; status: no;";
   return window.showModalDialog("includes/js/iePrompt_ar.htm", str, settings);
}
	{/if}
 function cbPrompt(str){
   try {
      if(window.showModalDialog){ return iePrompt(str); }
         else { return prompt(str, ""); }
   } catch (e) {
         return iePrompt(str);
   }
}

</script>

<script language="JavaScript">
//<![CDATA[
bbcode._Print("mini",100);
//]]>
</script>
<div id="keyboard_palette" style="display:none;">
 {template}keyboard_form{/template}
</div>]]></context_editor_simple>
<context_edit_poll_table1><![CDATA[<title>{$lang['poll_edit']} -
{if {$_CONF['info_row']['allowed_powered']} == 1}
{$lang['powered']}
{/if}</title>
<br />
<script language="javascript">

function ShowPollTable()
{
	if ($("#poll_id").is(":checked"))
	{
		$("#poll_table").fadeIn();
	}
	else
	{
		$("#poll_table").fadeOut();
	}
}



function AddMoreAnswers(x)
{

	x += 1;
	var answers_max = 100;


	$("#poll_answers_count_id").val(x);
	$(".more_tr").hide();
	$("#poll_question_answers").append('<tr align="center"><td class="row1 rows_space">"{$lang['more_answer']}"</td><td class="row1 rows_space"><input name="answer[]" type="text" id="answer' + x + '"  size="40"/></td></tr>');
	$("#poll_question_answers").append('<tr align="center" class="more_tr"><td class="row1 rows_space" colspan="2"><input type="button" name="more_answers" class="more_answers_class" value="{$lang['more_answers']}" /></td></tr>');

     $("#answer" + x).focus();

 	       $(".more_answers_class").click(function() { AddMoreAnswers(x) });

        if (function() { AddMoreAnswers(x) })
		{
		$(".more_tr").stopPropagation();

		}

}

function Ready()
{
	$("#poll_table").hide();
	$("#poll_id").click(ShowPollTable);
	$(".more_answers_class").click(function() { AddMoreAnswers(2) });
}

$(document).ready(Ready);

-->
</script>
<form method="post" action="index.php?page=vote&amp;poll_start_edit=1&amp;id={$Poll['id']}&amp;subject_id={$subject_id}">
<input name="poll_answers_count" id="poll_answers_count_id" type="hidden" value="2">
<table border="0" cellspacing="1" width="70%" class="border" align="center" id="poll_question_answers">

	<tr align="center">
		<td class="tbar" colspan="2">
{$lang['poll_edit']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1">
			{$lang['answer']}
		</td>
		<td class="row1">
<?php $PowerBB->_CONF['template']['Poll']['qus'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['Poll']['qus']); ?>
			<input name="question" value="{$Poll['qus']}" size="40" />
		</td>
	</tr>
]]></context_edit_poll_table1>
<context_edit_poll_table2><![CDATA[	<tr align="center">
		<td class="row1">
<?php $PowerBB->_CONF['template']['answers'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['answers']); ?>

			{$lang['answers_number']}<?php echo $PowerBB->_CONF['template']['answers_number']+1; ?>
		</td>
		<td class="row1">
			<input name="answer[]" value="{$answers}" size="40" />
		</td>
	</tr>

]]></context_edit_poll_table2>
<context_edit_poll_table3><![CDATA[	<tr align="center" class="more_tr">
		<td class="row1" colspan="2">
			<input type="button" name="more_answers" class="more_answers_class" value="{$lang['more_answers']}" />
		</td>
	</tr>

</table>
<div align="center">
	<table border="0" width="70%" cellspacing="1" >
	<tr align="center">
		<td colspan="2">
			<input class="button" name="insert" type="submit" value="{$lang['send_poll_edit']}" /></td>
	</tr>
</table></div>
</form>
<br />]]></context_edit_poll_table3>
<context_fast_reply_js><![CDATA[
<script type="text/javascript" src="includes/js/IEprompt.js"></script>
 <script type='text/javascript'>
{if {$_CONF['info_row']['content_language']} != 'ar'}
 function iePrompt(str){
   var settings = "dialogWidth: 290px; dialogHeight: 160px; center: yes; edge: raised; scroll: no; status: no;";
   return window.showModalDialog("includes/js/iePrompt_en.htm", str, settings);
}
	{else}
 function iePrompt(str){
   var settings = "dialogWidth: 290px; dialogHeight: 160px; center: yes; edge: raised; scroll: no; status: no;";
   return window.showModalDialog("includes/js/iePrompt_ar.htm", str, settings);
}
	{/if}
 function cbPrompt(str){
   try {
      if(window.showModalDialog){ return iePrompt(str); }
         else { return prompt(str, ""); }
   } catch (e) {
         return iePrompt(str);
   }
}
</script>
<script language="JavaScript">
//<![CDATA[
bbcode._Print("mini",100);
//]]>
</script>
<div id="keyboard_palette" style="display:none;">
 {template}keyboard_form{/template}
</div>]]></context_fast_reply_js>
<context_footer><![CDATA[<br />
<!-- action_find_addons_1 -->
 <div class="time">
{$lang['timer']}
 {$timer}
 </div>
 </td>
	</tr>
</table>
 <!-- end_pbboard_body -->
 <br />
 <div class="footer_bar" align="center">
<span class="r-right">
             {if {$StylesNo} > 1}
             <select onchange="location='index.php?page=change_style&amp;change=1&amp;id=' + this.value" size="1" name="style">
                   {Des::while}{StyleList}<option value="{$StyleList['id']}" {if {$StyleList['id']} == {$_CONF['rows']['style']['id']}}selected="selected" style="background : #EEEEEE"{/if}>{$StyleList['style_title']}</option>
             {/Des::while}
             </select>
             {/if}
             {if {$LangsNo} > 1}
             {if {$_CONF['member_permission']}}
                <select onchange="location='index.php?page=change_lang&amp;change=1&amp;id=' + this.value" size="1" name="lang">
                   {Des::while}{LangList}
                   <option value="{$LangList['id']}" {if {$LangList['id']} == {$_CONF['member_row']['lang']}}selected="selected" style="background : #EEEEEE"{/if}>{$LangList['lang_title']}</option>
             {/Des::while}
             </select>
             {else}
                <select onchange="location='index.php?page=change_lang&amp;change=1&amp;id=' + this.value" size="1" name="lang">
                   {Des::while}{LangList}<option value="{$LangList['id']}" {if {$LangList['id']} == {$VisitorLang}}selected="selected" style="background : #EEEEEE"{/if}>{$LangList['lang_title']}</option>
             {/Des::while}
             </select>
             {/if}
             {/if}
<!-- action_find_addons_3 -->
</span>
<span class="l-left">
<!-- action_find_addons_4 -->
               {if {$_CONF['info_row']['active_archive']} == '1'}
				<span class="footer_bar_links">
				{if {$_CONF['info_row']['rewriterule']} == '1'}
				<a href="archive.html">{$lang['archive']}</a>
				{else}
				<a href="index.php?page=archive">{$lang['archive']}</a>
				{/if}
				</span>
				{/if}
				{if {$_CONF['info_row']['sitemap']} == '1'}
				<span class="footer_bar_links">
				{if {$_CONF['info_row']['rewriterule']} == '1'}
				{$lang['forummap']}&nbsp;&nbsp;(<a href="sitemap.htm">Html</a> - <a href="sitemap.xml">Xml</a>)
				{else}
				{$lang['forummap']}&nbsp;&nbsp;(<a href="index.php?page=sitemap&amp;sitemaps=1">Html</a> - <a href="index.php?page=sitemap&amp;subject=1">Xml</a>)
				{/if}
				</span>
				{/if}
				 {if {$_CONF['info_row']['active_subject_today']} == '1'}
				<span class="footer_bar_links"><a href="index.php?page=latest&amp;today=1">{$lang['subject_today']}</a>
				({$subject_today_nm})
				</span>
				{/if}
				 {if {$_CONF['info_row']['active_send_admin_message']} == '1'}
				<span class="footer_bar_links"><a href="index.php?page=send&amp;sendmessage=1">{$lang['send_message']}</a></span>
				{/if}
				 {if {$_CONF['info_row']['active_team']} == '1'}
				<span class="footer_bar_links"><a href="index.php?page=team&amp;show=1">{$lang['team']}</a></span>
				{/if}
				<span class="footer_bar_links"><a onclick="self.scrollTo(0, 0); return false;" href="#top">{$lang['UP']}</a></span>
				{if {$_CONF['rows']['group_info']['admincp_allow']}}
				<span class="footer_bar_links"><a href="admin.php">{$lang['cp_admin']}</a></span>
				{/if}
				{if {$_CONF['info_row']['active_rss']} == '1'}
				&nbsp;&nbsp;<a href="index.php?page=rss&amp;subject=1">
				<img border="0" alt="" src="{$image_path}/rss.gif"
				title="{$lang['rss_subject']}" /></a>
				{/if}
</span>
</div>
		<div id="copyright">{$lang['copyright']}</div>
	</body>
</html>
<!-- action_find_addons_5 -->]]></context_footer>
<context_forget_password_change><![CDATA[<title> {$lang['appointment_new_password']}
- {$_CONF['info_row']['title']}</title>

<br />
<br /><br />



<form method="post" action="index.php?page=new_password&amp;forget=1">

<table align="center" border="0" cellspacing="1" width="80%" class="border" >
	<tr align="center">
		<td width="80%" class="tcat" colspan="2">
			{$lang['appointment_new_password']}
		</td>
	</tr>
	<tr align="center">
		<td width="30%" class="row1">
			{$lang['new_password']}
		</td>
		<td width="30%" class="row1">
			<input type="password" name="new_password" />
		</td>
	</tr>
	<tr align="center">
		<td width="60%" class="row1" colspan="2">
			<input type="submit" value="{$lang['Count']}" /></td>
	</tr>
</table>
<input TYPE="hidden" name="member_id" value="{$member_id}" />
<br />
</form>

</div>
<br />
<br />
<br />

]]></context_forget_password_change>
<context_forget_password_form><![CDATA[<title>{$lang['Retrieve_password']}
{if {$_CONF['info_row']['allowed_powered']} == 1}
- {$lang['powered']}
{/if}</title>
{template}address_bar_part1{/template}
{$lang['Retrieve_password']}
{template}address_bar_part2{/template}

<br />

<form method="post" action="index.php?page=forget&amp;start=1">
<div align="center">
<table border="0" cellspacing="1" width="88%" class="border" >
	<tr align="center">
		<td width="50%" class="tcat" colspan="2">
{$lang['Retrieve_password']}
		</td>
	</tr>
	<tr>
		<td width="10%" class="row1">
{$lang['email_Retrieve_password']}
		</td>
		<td width="60%" class="row1">
		{$lang['forget_password_Message']}
		<br />
			<input name="email" type="text" size="41" dir="ltr" />
		</td>
	</tr>
	<tr align="center">
		<td class="row1" colspan="2">
	<input type="submit" name="submit_forget" value="{$lang['Count']}" />
</td>
	</tr>
</table>
</div>
<br />
</form>

<br />]]></context_forget_password_form>
<context_forum--announcement_table><![CDATA[
{Des::while}{AnnouncementList}
{if {$AnnouncementList['id']} !=''}
<tr>

		<td width="1%" class="row2" align="center">
             <img alt="" src="{$image_path}/announcement.gif" border="0"
             title="{$lang['announcement']}" />
			</td>
		<td width="1%" class="row1" align="center">
			<img src="look/images/icons/i1.gif" alt="" />
		</td>
		<td width="65%" class="row2">
		{$lang['Announcementy']}
    			<a href="index.php?page=announcement&amp;show=1&amp;id={$AnnouncementList['id']}">
			{$AnnouncementList['title']}</a>
			<br />
			<a href="index.php?page=profile&amp;show=1&amp;username={$AnnouncementList['writer']}">
			{$AnnouncementList['writer']}
			</a>
			<br />
						<font class="smallfont">
			{$AnnouncementList['date']}
			</font>
		</td>
		<td width="4%" class="row2" align="center">
0
		</td>
			<td width="1%" class="row1" align="center">
{$AnnouncementList['visitor']}
			</td>
<td width="25%" class="row2" align="center">
			{$lang['no_replys']}
		</td>
{if !{$mod_toolbar}}
<td width="1%" class="row1" align="center">
	</td>
{/if}
	</tr>
{/if}
	{/Des::while}]]></context_forum--announcement_table>
<context_forum--moderator_table><![CDATA[		{if {$STOP_MODERATOR_TEMPLATE}}
{$lang['NO_MODERATOR']}
		{/if}
		{Des::while}{ModeratorsList}
			{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="u{$ModeratorsList['member_id']}.html">
			<?php echo $PowerBB->functions->GetUsernameStyle($PowerBB->_CONF['template']['while']['ModeratorsList'][$this->x_loop]['username']);?></a> ،
			{else}
			<a href="index.php?page=profile&amp;show=1&amp;id={$ModeratorsList['member_id']}">
			<?php echo $PowerBB->functions->GetUsernameStyle($PowerBB->_CONF['template']['while']['ModeratorsList'][$this->x_loop]['username']);?></a> ،
			{/if}
		{/Des::while}

]]></context_forum--moderator_table>
<context_forum--online_table><![CDATA[
		{Des::while}{SectionVisitor}
		{if {$SectionVisitor['username']} == 'Guest'}
<?php echo $PowerBB->_CONF['template']['while']['SectionVisitor'][$this->x_loop]['username_style'] = str_ireplace('Guest',$PowerBB->_CONF['template']['lang']['Guest_'],$PowerBB->_CONF['template']['while']['SectionVisitor'][$this->x_loop]['username_style']); ?>،
{else}
			{if {$_CONF['info_row']['rewriterule']} == '1'}
			<a href="u{$SectionVisitor['user_id']}.html"
			title="{$lang['time_logged_online']}
			{$SectionVisitor['logged']}">
			{$SectionVisitor['username_style']}</a>،
			{else}
			<a href="index.php?page=profile&amp;show=1&amp;id={$SectionVisitor['user_id']}"
			title="{$lang['time_logged_online']}
			{$SectionVisitor['logged']}">
			{$SectionVisitor['username_style']}</a>،
			{/if}
		{/if}
		{/Des::while}

		{if {$_CONF['info_row']['show_onlineguest']} != 1}
		{if {$MemberNumber} <= 0}
				{$lang['no_online_section']}
		{/if}
		{/if}

]]></context_forum--online_table>
<context_forum--subject_table><![CDATA[<script type='text/javascript'>
//<![CDATA[
function checkAll(form){
  for (var i = 0; i < form.elements.length; i++){
    eval("form.elements[" + i + "].checked = form.elements[0].checked");
  }
}
//]]>
</script>
<table align="center" border="0" width="98%" cellspacing="0" style="border-collapse: collapse">
	<tr>
			<td width="2%" align="right">
			{if {$pager}}
<table width="6%" border="0" cellpadding="1" class="pager" align="left">
	<tr align="center">
		<td width="2%" class="pager">
 <a href="javascript:switchMenuNone('pager_top')"><img border="0" alt="" src="{$image_path}/menu_open.gif"
 title="{$lang['Jump_between_pages']}" /></a>
<div style="display:none;" class="drop_menu" id="pager_top">
			<table width="120" border="0" cellspacing="1" class="border">
				<tr align="center">
					<td class="tbar">
				{$lang['Go_to_the_page']}
					</td>
				</tr>
				<tr align="center">
					<td class="menu_popup" onclick="pagerBlock('pager_top')">
					<form name="misc" method="post" action="index.php?page=misc&amp;pagenav_forum=1">
		            <input type="hidden" name="section_id" value="{$section_id}" />
			        <input class="bginput" name="count" style="font-size: 11px;" size="4" type="text" />
			        <input class="button" type="submit" value="{$lang['Go']}" name="page_button" />
		           </form>
            		</td>
				</tr>
				</table>
			</div>
			</td>
		<td align="left">{$pager}</td>
	</tr>
</table>
{/if}
			{template}add_subject_link{/template}
<br />

			</td>
			</tr>
		</table>
  <br />
 <table border="0" cellspacing="0" width="98%" align="center" class="border_radius">
	<tr>
<td class="top_forum_bar" nowrap="nowrap">
 <span class="r-right">
        {$lang['forum_subjects']}
        {$section_info['title']}</span>
{if {$_CONF['group_info']['search_allow']} == 1}
<span class="l-left">
<span style="cursor: pointer;" class='popmenubutton'><a href="javascript:switchMenuNone('section_searchs_witch')">{$lang['search']}
&nbsp;<img border="0" alt="" src="{$image_path}/menu_open.gif" /></a> </span>
</span>
      <!-- Code search forum Menu start -->
<div style="display:none; left:20px; padding:24px 0 0 0;" class="drop_menu" id="section_searchs_witch">
<form name="search" action="index.php?page=forum" method="get">
<input type="hidden" name="page" value="forum" />
<input type="hidden" name="start" value="1" />
<input type="hidden" name="sort_order" value="DESC" />
<input type="hidden" name="section" value="{$SECTION_ID}" />
		<table width="120" border="0" cellspacing="0">
		<tr align="center">
		<td class="menu_popup" onclick="sBlock('section_searchs_witch')">
		<input type="text" name="keyword" value="{$lang['search_keyword']}" onfocus="if (this.value == '{$lang['search_keyword']}') this.value = '';" size="20"
		 dir="{$_CONF['info_row']['content_dir']}" />
		<input type="submit" value="{$lang['start_search']}" name="search" />
		</td>
		</tr>
		<tr>
		<td class="menu_popup" align="center">
		<a href="index.php?page=search&amp;index=1">{$lang['advanced_search']}</a>
		</td>
		</tr>
		</table>
		</form>
</div>
{/if}
</td>
	</tr>
</table>

<form action="index.php?page=management&amp;subject=1&amp;section={$SECTION_ID}&amp;operator=tools_thread" name="form1" method="post">
<table border="0" cellspacing="1" class="border" width="98%" align="center">
	<tr>
		<td width="75%" class="tcat" align="center" colspan="3">
			{$lang['subject_title']}
		</td>

		<td width="4%" class="tcat" align="center">
			{$lang['reply_num']}
		</td>
		<td width="4%" class="tcat" align="center">
			{$lang['subject_visitor']}
		</td>
		<td width="15%" class="tcat" align="center">
			{$lang['write_date']}
		</td>
		{if !{$mod_toolbar}}
			<td class="tcat" width="1%">
			<input type="checkbox" name="check_all" onclick="checkAll(this.form)" />
		</td>
		{/if}
	</tr>
{template}adsense_forum{/template}
{template}forum--announcement_table{/template}
	{if !{$NO_REVIEW_SUBJECTS}}
	<tr>
		<td width="98%" colspan="{$colspan}" class="thead" align="center">
			{$lang['subjects_review']}
		</td>
	</tr>
		{Des::while}{review_subject_list}
	<tr>
		<td width="1%" class="row2" align="center">
             {if {$review_subject_list['review_subject']}  == 1}
             <img alt="" src="{$image_path}/dot_review.gif" border="0"
             title="{$lang['subject_review']}" />
			{/if}

		</td>
		<td width="1%" class="row1" align="center">
			<img src="{$review_subject_list['icon']}" alt="" />
		</td>
		<td width="65%" class="row2">
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			               <a target="_blank" href="t{$review_subject_list['id']}{$password}.html" title="{$lang['opin_subject']}">
			               <img border="0" alt="{$lang['opin_subject']}"
				         src="{$image_path}/open.gif" /></a>
                      {else}
			          <a target="_blank" href="index.php?page=topic&amp;show=1&amp;id={$review_subject_list['id']}{$password}">
			          	 <img border="0" alt="{$lang['opin_subject']}"
				         src="{$image_path}/open.gif" /></a>
                     {/if}
                      <font class="title_font">
                      <span dir="{$_CONF['info_row']['content_dir']}">
                     <b>{$review_subject_list['prefix_subject']}</b>
                     </span>
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			         <a href="t{$review_subject_list['id']}{$password}.html">
			          {$review_subject_list['title']}</a>
                      {else}
			          <a href="index.php?page=topic&amp;show=1&amp;id={$review_subject_list['id']}{$password}">
			           {$review_subject_list['title']}</a>
                     {/if}
                     </font>

				{if {$review_subject_list['reply_number']} > {$_CONF['info_row']['perpage']}}
<img src="{$image_path}/multipage.gif"
alt="{$lang['subject_multipage']}"
title="{$lang['subject_multipage']}" align="left" />
	          {/if}
	      {if {$review_subject_list['attach_subject']} == 1}
<img src="{$image_path}/attach.gif"
alt="{$lang['subject_attach']}"
title="{$lang['subject_attach']}" align="left" />
	          {/if}
	          	          {if {$review_subject_list['rating']} > {$_CONF['info_row']['show_rating_num_max']}}
	          <img alt="" src="{$image_path}/rating/rating_5.gif"
title="{$lang['Rate_Topic']}
{$review_subject_list['rating']} " align="left" />
	          {/if}
			{if {$review_subject_list['close']}}
			{$lang['subject_close']}
			{/if}
			{if {$review_subject_list['delete_topic']}}
			{$lang['subject_delete']}
			{/if}
			{if {$review_subject_list['special']}}
			{$lang['subject_special']}
			<span class="l-left">
			<img border="0" src="{$image_path}/star.gif"
			alt="{$lang['s_special']}" /> </span>
			{/if}
			{if {$_CONF['info_row']['subject_describe_show']} and {$review_subject_list['subject_describe']} != ''}
			<br />
			<font class="smallfont">{$review_subject_list['subject_describe']}</font>
			{/if}
			<br />
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['writer']);?>
		</td>
		<td width="4%" class="row2" align="center">
       {if {$review_subject_list['reply_number']} == 0}
       {$review_subject_list['reply_number']}
       {else}
         <a onclick="window.open('index.php?page=misc&amp;whoposted=1&amp;subject_id={$review_subject_list['id']}','mywindow','location=1,status=1,scrollbars=1,width=150,height=300')"><u><font color="#000080">{$review_subject_list['reply_number']}</font></u></a>
       {/if}
		</td>
		<td width="4%" class="row1" align="center">
			{$review_subject_list['visitor']}
		</td>
		<td width="25%" class="row2" align="center">
			{if {$review_subject_list['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['last_replier']);?>

			<br />
			           <span class="smallfont">
			{$review_subject_list['reply_date']}
					</span >

			{/if}
		</td>
		{if !{$mod_toolbar}}
            <td width="1%" class="row1" align="center">
				<input type="checkbox" name="check[]" value="{$review_subject_list['id']}" />
			</td>
			{/if}
	</tr>
{/Des::while}
	{/if}
	{if !{$NO_STICK_SUBJECTS}}
	<tr>
		<td width="98%" colspan="{$colspan}" class="thead" align="center">
      {$lang['stick_subject_list']}
		</td>
	</tr>
	{/if}
	{Des::while}{stick_subject_list}
	<tr>
		<td width="1%" class="row2" align="center">
             {if {$stick_subject_list['stick']}  == 1}
             <img alt="" src="{$image_path}/sticky.gif"
              title="{$lang['stick_subject']}" />
			{/if}

		</td>
		<td width="1%" class="row1" align="center">
			<img src="{$stick_subject_list['icon']}" alt="" />
		</td>
		<td width="65%" class="row2">
<?php
$num ='99';
$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'] = $PowerBB->functions->words_count_replace_strip_tags_html2bb($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'],$num);

?>
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			               <a target="_blank" href="t{$stick_subject_list['id']}{$password}.html" title="{$lang['opin_subject']}">
			               <img border="0" alt="{$lang['opin_subject']}"
				         src="{$image_path}/open.gif" /></a>
                      {else}
			          <a target="_blank" href="index.php?page=topic&amp;show=1&amp;id={$stick_subject_list['id']}{$password}">
			          	 <img border="0" alt="{$lang['opin_subject']}"
				         src="{$image_path}/open.gif" /></a>
                     {/if}
                 <font class="title_font">
                 <span dir="{$_CONF['info_row']['content_dir']}">
                 <b>{$stick_subject_list['prefix_subject']}</b>
                 </span>
                 {if {$_CONF['info_row']['rewriterule']} == '1'}
			<a title="{$stick_subject_list['text']}" href="t{$stick_subject_list['id']}{$password}.html">
			{else}
			<a title="{$stick_subject_list['text']}" href="index.php?page=topic&amp;show=1&amp;id={$stick_subject_list['id']}{$password}">
            {/if}
              {$stick_subject_list['title']}</a>
              </font>

				{if {$stick_subject_list['reply_number']} > {$_CONF['info_row']['perpage']}}
				 {template}forum_stick_perpage_reply{/template}
<img alt="" src="{$image_path}/multipage.gif"
 title="{$lang['subject_multipage']}" align="left" />
	          {/if}
	      {if {$stick_subject_list['attach_subject']} == 1}
<img alt="" src="{$image_path}/attach.gif"
title="{$lang['subject_attach']}" align="left" />
	          {/if}
	          	          {if {$stick_subject_list['rating']} > {$_CONF['info_row']['show_rating_num_max']}}
	          <img alt="" src="{$image_path}/rating/rating_5.gif"
title="{$lang['Rate_Topic']}
{$stick_subject_list['rating']} " align="left" />
	          {/if}
			{if {$stick_subject_list['close']}}
			{$lang['subject_close']}
			{/if}
			{if {$stick_subject_list['delete_topic']}}
			{$lang['subject_delete']}
			{/if}
			{if {$stick_subject_list['special']}}
			{$lang['subject_special']}
			<span class="l-left">
			<img border="0" src="{$image_path}/star.gif"
			alt="{$lang['s_special']}" /> </span>
			{/if}
			{if {$_CONF['info_row']['subject_describe_show']} and {$stick_subject_list['subject_describe']} != ''}
			<br />
			<font class="smallfont">{$stick_subject_list['subject_describe']}</font>
			{/if}
			<br />
			<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['writer']);?>
		</td>

		<td width="4%" class="row2" align="center">
		{if {$stick_subject_list['reply_number']} == 0}
       {$stick_subject_list['reply_number']}
       {else}
        <a onclick="window.open('index.php?page=misc&amp;whoposted=1&amp;subject_id={$stick_subject_list['id']}','mywindow','location=1,status=1,scrollbars=1,width=150,height=300')"><u><font color="#000080">{$stick_subject_list['reply_number']}</font></u></a>
       {/if}
		</td>
		<td width="4%" class="row1" align="center">
			{$stick_subject_list['visitor']}
		</td>
		<td width="15%" class="row2" align="center">
			{if {$stick_subject_list['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
			<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['last_replier']);?>
			<br />
			<span class="smallfont">
			{$stick_subject_list['reply_date']}
			</span >
			{/if}
		</td>
		{if !{$mod_toolbar}}
			<td width="1%" class="row1" align="center">
				<input type="checkbox" name="check[]" value="{$stick_subject_list['id']}" />
			</td>
			{/if}
	</tr>
{/Des::while}
		<tr>
		<td width="98%" colspan="{$colspan}" class="thead" align="center">
			{$lang['subject_list']}
		</td>
	</tr>
	{Des::while}{subject_list}
	<tr>
		<td width="1%" class="row2" align="center">

                    <?php
		 $subject_id = $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id'];
		 $member_row = $PowerBB->_CONF['template']['_CONF']['member_row']['username'];
		 $ReplyArr = $PowerBB->DB->sql_query("SELECT writer FROM " . $PowerBB->table['reply'] . " WHERE writer = '$member_row' and subject_id = '$subject_id'");
		 	$r = $PowerBB->DB->sql_fetch_array($ReplyArr);
            ?>
			{if {$subject_list['delete_topic']} == 1}
			<img alt="" src="{$image_path}/dot_trash.gif"
			title="{$lang['s_delete']}" />
			 {elseif {$subject_list['poll_subject']} == 1}
			<img alt="" src="{$image_path}/dot_poll.gif"
			 title="{$lang['dot_poll']}" />
             {elseif {$subject_list['close']}  == 1}
             <img alt="" src="{$image_path}/dot_lockfolder.gif" border="0"
             title="{$lang['s_close']}" />
             <?php }elseif ($r) {   ?>
			<img alt="" src="{$image_path}/dot_newposts.gif"
			title="{$lang['dot_newposts']}" />
			{elseif {$subject_list['writer']} == {$_CONF['member_row']['username']}}
			<img alt="" src="{$image_path}/dot_folder.gif"
			 title="{$lang['subject_personal']}" />
			 {elseif {$subject_list['reply_number']} > 15 and {$subject_list['visitor']} > 150}
			<img alt="" src="{$image_path}/dot_hotfolder.gif"
			title="{$lang['Hot_subject']}" />
			{elseif {$subject_list['stick']} == 1}
			<img alt="" src="{$image_path}/sticky.gif"
			 title="{$lang['stick_subject']}" />
			{elseif {$subject_list['write_time']} > {$_CONF['member_row']['lastvisit']}}
			<img alt="" src="{$image_path}/dot_newfolder.gif"
			title="{$lang['there_are_new_posts']}" />
			{elseif {$subject_list['write_time']} > {$_CONF['member_row']['lastvisit']}}
			<img alt="" src="{$image_path}/dot_nonewfolder.gif"
			title="{$lang['no_newPosts']}" />
			{else}
			<img alt="" src="{$image_path}/dot_nonewfolder.gif"
			title="{$lang['no_newPosts']}" />
			{/if}

		</td>
		<td width="1%" class="row1" align="center">
			<img src="{$subject_list['icon']}" alt="" />
		</td>
		<td width="65%" class="row2">
<?php
$num ='99';
$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'] = $PowerBB->functions->words_count_replace_strip_tags_html2bb($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'],$num);
?>
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			               <a target="_blank" href="t{$subject_list['id']}{$password}.html" title="{$lang['opin_subject']}">
			               <img border="0" alt="{$lang['opin_subject']}"
				         src="{$image_path}/open.gif" /></a>
                      {else}
			          <a target="_blank" href="index.php?page=topic&amp;show=1&amp;id={$subject_list['id']}{$password}">
			          	 <img border="0" alt="{$lang['opin_subject']}"
				         src="{$image_path}/open.gif" /></a>
                     {/if}

			 <?php $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'] = str_replace('&amp;','&',$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title']); ?>
			 <font class="title_font">
			 <span dir="{$_CONF['info_row']['content_dir']}">
             <b>{$subject_list['prefix_subject']}</b>
             </span>
           {if {$_CONF['info_row']['rewriterule']} == '1'}
			<a title="{$subject_list['text']}" href="t{$subject_list['id']}{$password}.html">
			{$subject_list['title']}</a>
			{else}
			   <a title="{$subject_list['text']}"href="index.php?page=topic&amp;show=1&amp;id={$subject_list['id']}{$password}">
			{$subject_list['title']}</a>
			{/if}
			</font>
				{if {$subject_list['reply_number']} > {$_CONF['info_row']['perpage']}}
 {template}forum_perpage_reply{/template}
<img src="{$image_path}/multipage.gif"
alt="{$lang['subject_multipage']}"
title="{$lang['subject_multipage']}" align="left" />
	          {/if}
	      {if {$subject_list['attach_subject']} == 1}
<img src="{$image_path}/attach.gif"
alt="{$lang['subject_attach']}"
title="{$lang['subject_attach']}" align="left" />
	          {/if}
	          	      {if {$subject_list['review_reply']}  > 0}
<img src="{$image_path}/moderated_small.gif"
alt="{$subject_list['review_reply']}
{$lang['Posts_was_observed']}"
title="{$subject_list['review_reply']}
{$lang['Posts_was_observed']}" align="left" />
	          {/if}
	          {if {$subject_list['rating']} > {$_CONF['info_row']['show_rating_num_max']}}
	          <img alt="" src="{$image_path}/rating/rating_5.gif"
title="{$lang['Rate_Topic']}
{$subject_list['rating']} " align="left" />
	          {/if}

			{if {$subject_list['close']}}
			{$lang['subject_close']}
			{/if}
			{if {$subject_list['delete_topic']}}
			{$lang['subject_delete']}
			{/if}
			{if {$subject_list['special']}}
			{$lang['subject_special']}
			<span class="l-left">
			<img border="0" src="{$image_path}/star.gif"
			 alt="{$lang['s_special']}" /> </span>
			{/if}
			{if {$_CONF['info_row']['subject_describe_show']} and {$subject_list['subject_describe']} != ''}
			<br />
			<font class="smallfont">{$subject_list['subject_describe']}</font>
			{/if}
			<br />
		    {if {$subject_list['writer']} == 'Guest'}
		    {$lang['Guest_']}
		    {else}
			<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['writer']);?>
			{/if}

		</td>
		<td width="4%" class="row2" align="center">
       {if {$subject_list['reply_number']} == 0}
       {$subject_list['reply_number']}
       {else}
       <a onclick="window.open('index.php?page=misc&amp;whoposted=1&amp;subject_id={$subject_list['id']}','mywindow','location=1,status=1,scrollbars=1,width=150,height=300')"><u><font color="#000080">{$subject_list['reply_number']}</font></u></a>
       {/if}
       </td>
		<td width="4%" class="row1" align="center">
			{$subject_list['visitor']}
		</td>
		<td width="25%" class="row2" align="center">
			{if {$subject_list['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
		    {if {$subject_list['last_replier']} == 'Guest'}
		    {$lang['Guest_']}
		    {else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['last_replier']);?>
<br />
			<span class="smallfont">
			{$subject_list['reply_date']}
			</span>
			{/if}
			{/if}
		</td>
		{if !{$mod_toolbar}}
			<td width="1%" class="row1" align="center">
				<input type="checkbox" name="check[]" value="{$subject_list['id']}" />
			</td>
			{/if}
	</tr>
{/Des::while}
 {if {$NO_SUBJECTS} == 0}
	<tr>
		<td width="98%" colspan="{$colspan}" class="row1" align="center">
		{$lang['No_thread_forum']}</td>
	</tr>
{/if}
</table>
<br />
{template}options_mod{/template}
</form>
<br />
	<table align="center" border="0" width="99%" cellspacing="0" style="border-collapse: collapse">
	<tr>
		<td align="left">
		{if {$pager}}
<table align="center" border="0" width="99%" cellspacing="0" style="border-collapse: collapse">
	<tr>

			<td width="2%" align="right">
			<table width="6%" border="0" cellpadding="1" class="pager" align="left">
	<tr align="center">
		<td width="2%" class="pager">
 <a href="javascript:switchMenuNone('pager_duwn')"><img border="0" alt="" src="{$image_path}/menu_open.gif"
 title="{$lang['Jump_between_pages']}" /></a>
<div style="display:none;" class="drop_menu" id="pager_duwn">
			<table width="120" border="0" class="border">
				<tr align="center">
					<td class="tbar">
				{$lang['Go_to_the_page']}
					</td>
				</tr>
				<tr align="center">
					<td class="menu_popup" onclick="pagerBlock('pager_duwn')">
					<form name="misc" method="post" action="index.php?page=misc&amp;pagenav_forum=1">
		            <input type="hidden" name="section_id" value="{$section_id}" />
			        <input class="bginput" name="count" style="font-size: 11px;" size="4" type="text" />
			        <input class="button" type="submit" value="{$lang['Go']}" name="page_button" />
		           </form>
            		</td>
				</tr>
				</table>
			</div>

			</td>
		<td align="left">{$pager}</td>
	</tr>
</table>
			{template}add_subject_link{/template}
<br />
		</td>
			</tr>
		</table>
		{/if}
</td>
	</tr>
</table>

<br />
<table class="border" border="0" cellspacing="1" width="98%" align="center">
	<tr>
		<td  width="40%" class="thead">{$lang['Display_Options']}</td>
		<td width="30%" class="thead">{$lang['online_naw']}: {$online_number}
		 ({$MemberNumber}
		 {$lang['Member_and']}
		  {$GuestNumber}
		  {$lang['Guest_']})</td>
		<td  width="20%" class="thead">{$lang['moderators_forum']}</td>
	</tr>
	<tr>
	<td width="40%" class="row1">
<div align="right">
	<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
		<tr>
			<td>
<form action="index.php?page=forum" method="get">
<input type="hidden" name="page" value="forum" />
<input type="hidden" name="show" value="1" />
<input type="hidden" name="order" value="1" />
<input type="hidden" name="id" value="{$SECTION_ID}" />
					<div>
						<label>{$lang['sort_view']}</label></div>
					<select name="sort">
					<option value="desc" selected="selected">{$lang['sort_desc']}</option>
					<option value="asc">{$lang['sort_asc']}</option>
				</select>
				<input type="submit" value="{$lang['Count']}" name="submit" />
				</form></td>
			<td>
<form action="index.php?page=forum" method="get">
<input type="hidden" name="page" value="forum" />
<input type="hidden" name="show" value="1" />
<input type="hidden" name="orderby" value="1" />
<input type="hidden" name="id" value="{$SECTION_ID}" />
					<div>
					<label>{$lang['Sort_by']}</label></div>
					<select name="sort">
					<option value="reply_number">{$lang['sort_reply_number']}</option>
					<option value="visitor">{$lang['sort_visitor']}</option>
					<option value="rating">{$lang['sort_rating']}</option>
					<option value="writer">{$lang['sort_writer']}</option>
					<option value="title">{$lang['sort_title']}</option>
					<option value="write_time" selected="selected">{$lang['sort_Last_Post']}</option>
				</select>
				<input type="submit" value="{$lang['Count']}" name="submit" />
				</form></td>
		</tr>
	</table>
</div>
	</td>
		<td width="30%" class="row1">{template}forum--online_table{/template}</td>
		<td width="20%" class="row1">
{template}forum--moderator_table{/template}
</td>
	</tr>
</table>
<br />
<table class="border" align="center" border="0" cellspacing="1" width="98%">
		<tr>
			<td class="row2" align="right" width="70%">
<div align="center">
<table border="0" width="98%" cellpadding="0" style="border-collapse: collapse">
	<tr>
		<td>
		<img title="{$lang['newPosts']}"
		  src="{$image_path}/dot_newfolder.gif"
		 alt="{$lang['newPosts']}" border="0" /></td>
		<td class="smallfont">{$lang['newPosts']}</td>
		<td>
		<img title="{$lang['no_newPosts']}"
		 src="{$image_path}/dot_nonewfolder.gif"
		alt="{$lang['no_newPosts']}" border="0" /></td>
		<td class="smallfont">{$lang['no_newPosts']}</td>
		<td class="smallfont" width="65%">&nbsp;</td>
	</tr>
	<tr>
			<td>
		<img title="{$lang['s_delete']}"
		 src="{$image_path}/dot_trash.gif"
		 alt="{$lang['s_delete']}" border="0" /></td>
		<td class="smallfont">{$lang['s_delete']}</td>
		<td>
		<img title="{$lang['dot_hotfolder']}"
		 src="{$image_path}/dot_hotfolder.gif"
		alt="{$lang['dot_hotfolder']}" border="0" /></td>
		<td class="smallfont">{$lang['Hot_subject']} </td>
		<td class="smallfont">&nbsp;</td>
		</tr>
<tr>
			<td>
		<img title="{$lang['dot_poll']}"
		 src="{$image_path}/dot_poll.gif"
		 alt="{$lang['dot_poll']}" border="0" /></td>
		<td class="smallfont">{$lang['dot_poll']}</td>
		<td>
		<img title="{$lang['dot_newposts']}"
		 src="{$image_path}/dot_newposts.gif"
		alt="{$lang['dot_newposts']}" border="0" /></td>
		<td class="smallfont">{$lang['dot_newposts']}</td>
		<td class="smallfont">&nbsp;</td>
		</tr>
	<tr>
		<td>
		<img title="{$lang['su_close']}"
		 src="{$image_path}/dot_lockfolder.gif"
		 alt="{$lang['su_close']}" border="0" /></td>
		<td class="smallfont">{$lang['su_close']}</td>
		<td>
		<img title="{$lang['your_subject_personal']}"
		 alt="" src="{$image_path}/dot_folder.gif" border="0" /></td>
		<td class="smallfont">{$lang['your_subject_personal']}</td>
	<td class="smallfont" align="left">
	{if {$_CONF['info_row']['active_rss']} == '1'}
{$lang['rss_section']} :<a href="index.php?page=rss&amp;section=1&amp;id={$SECTION_ID}">
				<img border="0" alt="" src="{$image_path}/rss.gif"
				title="{$lang['rss_section']}" /></a>{/if}</td>
	</tr>
</table>
			</div>
			</td>
		</tr>
	</table>
<br />]]></context_forum--subject_table>
<context_forum><![CDATA[{template}address_bar_part1{/template}
{if {$section_parent} == '0'}
	{if {$_CONF['info_row']['rewriterule']} == '1'}
	<a href="f{$sec_address_id}.html">
	{else}
	<a href="index.php?page=forum&amp;show=1&amp;
	id={$sec_address_id}">
	{/if}
	 {$sec_address_title}
	</a>
{$_CONF['info_row']['adress_bar_separate']}
{/if}
	{if {$_CONF['info_row']['rewriterule']} == '1'}
	<a href="f{$SECTION_ID}.html">
	{else}
	<a href="index.php?page=forum&amp;show=1&amp;
	id={$SECTION_ID}">
	{/if}
	 {$section_info['title']}
	</a>
{template}address_bar_part2{/template}

{if {$SHOW_SUB_SECTIONS}}
{template}sections_list{/template}
{/if}

 <br />
{if {$section_info['parent']} != '0'}
{if {$section_info['header']} != ''}
<table width="98%" border="0" cellspacing="1" class="border" align="center">
<tr align="center">
<td class="row1">
{$section_info['header']}
</td>
</tr>
</table>
 <br />
 {/if}
{template}forum--subject_table{/template}
{if {$section_info['footer']} != ''}
 <br />
<table width="98%" border="0" cellspacing="1" class="border" align="center">
<tr align="center">
<td class="row1">
{$section_info['footer']}
</td>
</tr>
</table>
<br />
{/if}
{/if}
<br />]]></context_forum>
<context_forum_password><![CDATA[<title>{$lang['password_forum']}
{if {$_CONF['info_row']['allowed_powered']} == 1}
- {$lang['powered']}
{/if}</title>
<br />
<table cellpadding="2" cellpadding="2" border="0" cellspacing="1" class="border" width="70%" align="center">
	<tr align="center">
		<td class="tcat" width="70%">
		{$lang['password_forum']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1" width="50%">
			<form method="post" action="index.php?page=forum&amp;password_check=1&amp;id={$section_info['id']}">
				<input name="password" type="password" />
				<input name="button" type="submit" value="{$lang['Count']}" />
			</form>
		</td>
	</tr>
</table>

<br />
]]></context_forum_password>
<context_forum_perpage_reply><![CDATA[<?php

      	$subject_id = $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id'];
        $PagerReplyNumArr = $PowerBB->DB->sql_num_rows($PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['reply'] . " WHERE subject_id='$subject_id' and delete_topic<>1 AND review_reply<>1 "));
?>
<!-- start perpage subject_list  -->
<span dir="rtl">(
<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=0">1</a>
</span>

<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
	{$_CONF['info_row']['perpage']}">2</a>
	</span>

	<?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']+ $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']+ $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']; ?>
	">3</a>
  </span>
<?php } ?>


  	<?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 3) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 3; ?>
	">4</a>
  </span>
<?php } ?>


    <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 4) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 4; ?>
	">5</a>
  </span>
<?php } ?>


   <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 5) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 5; ?>
	">6</a>
  </span>
<?php } ?>


     <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 6) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 6; ?>
	">7</a>
  </span>
<?php } ?>


    <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 7) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 7; ?>
	">8</a>
  </span>
<?php } ?>



    <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 8) {
			              $ss_r = $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']/2+1;
			              $roun_ss_r = round($ss_r, 0);
				          $reply_number_r = $PagerReplyNumArr-$roun_ss_r;
				          $pagenum_r = $reply_number_r/$PowerBB->_CONF['template']['_CONF']['info_row']['perpage'];
				          $round0_r = round($pagenum_r, 0);
				          $perpage_r = $round0_r*$PowerBB->_CONF['template']['_CONF']['info_row']['perpage'];
if( $PowerBB->functions->check_number($PagerReplyNumArr)){
    $countpage = $perpage_r;
}else{
    $countpage = $perpage_r+$PowerBB->_CONF['template']['_CONF']['info_row']['perpage'] ;
}
    ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $countpage; ?>
	">{$lang['Lastperpage']}</a>
  </span>
<?php } ?>
)</span>
<!-- end perpage subject_list  -->
<?php
			unset($PagerReplyNumArr);
			$PagerReplyNumArr = @mysql_free_result($PagerReplyNumArr);

?>]]></context_forum_perpage_reply>
<context_forum_stick_perpage_reply><![CDATA[<?php

      	$subject_id = $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id'];
        $PagerReplyNumArr = $PowerBB->DB->sql_num_rows($PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['reply'] . " WHERE subject_id='$subject_id' and delete_topic<>1 AND review_reply<>1 "));

?>
<!-- start perpage stick_subject_list  -->
<span dir="rtl">
(
<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=0">1</a>
</span>

<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
	{$_CONF['info_row']['perpage']}">2</a>
	</span>

	<?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']+ $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']+ $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']; ?>
	">3</a>
  </span>
<?php } ?>


  	<?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 3) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 3; ?>
	">4</a>
  </span>
<?php } ?>


    <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 4) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 4; ?>
	">5</a>
  </span>
<?php } ?>


   <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 5) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 5; ?>
	">6</a>
  </span>
<?php } ?>


     <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 6) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 6; ?>
	">7</a>
  </span>
<?php } ?>


    <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 7) {  ?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 7; ?>
	">8</a>
  </span>
<?php } ?>



    <?php if ($PagerReplyNumArr > $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']* 8) {
			              $ss_r = $PowerBB->_CONF['template']['_CONF']['info_row']['perpage']/2+1;
			              $roun_ss_r = round($ss_r, 0);
				          $reply_number_r = $PagerReplyNumArr-$roun_ss_r;
				          $pagenum_r = $reply_number_r/$PowerBB->_CONF['template']['_CONF']['info_row']['perpage'];
				          $round0_r = round($pagenum_r, 0);
				          $perpage_r = $round0_r*$PowerBB->_CONF['template']['_CONF']['info_row']['perpage'];
if( $PowerBB->functions->check_number($PagerReplyNumArr)){
    $countpage = $perpage_r;
}else{
    $countpage = $perpage_r+$PowerBB->_CONF['template']['_CONF']['info_row']['perpage'] ;
}
?>
	<span class="perpage">
<a href="index.php?page=topic&amp;show=1&amp;id=
<?php echo $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['id']; ?>
&amp;password={$password}&amp;count=
<?php echo $countpage; ?>
	">{$lang['Lastperpage']}</a>
</span>
<?php } ?>
)</span>
<!-- end perpage stick_subject_list  -->
<?php
			unset($PagerReplyNumArr);
			$PagerReplyNumArr = @mysql_free_result($PagerReplyNumArr);

?>]]></context_forum_stick_perpage_reply>
<context_frame_form><![CDATA[<script language="javascript">
	var myframes = 10;
</script>

<style>
 table, input, select { font-size:8pt; font-family:tahoma;}
</style>
<script language="javascript">
	var flag = true;

	function acceptIt(){
		window.returnValue = num.value;
		window.close();
	}

	function showFrame(typ) {

var html = '<center><table border="0" width="98%" cellpadding="0" cellspacing="0"><tr><td width="1%"><img src="look/images/myframes/' + typ + '_cul.gif" alt=""  border="0" /></td><td width="100%" style="background-image: url(look/images/myframes/' + typ + '_u.gif)"></td><td width="1%"><img src="look/images/myframes/' + typ + '_cur.gif" alt=""  border="0" /></td></tr><tr><td width="1%" style="background-image: url(look/images/myframes/' + typ + '_l.gif)"></td><td align="center" width="100%" style="background-image: url(look/images/myframes/' + typ + '.gif)">';
html += "<b><font size=4>&nbsp;</font><b>";
html += '</td><td width="1%" style="background-image: url(look/images/myframes/' + typ + '_r.gif)"></td></tr><tr><td width="1%"><img src="look/images/myframes/' + typ + '_cdl.gif" alt=""  border="0" /></td><td width="100%" style="background-image: url(look/images/myframes/' + typ + '_d.gif)"></td><td width="1%"><img src="look/images/myframes/' + typ + '_cdr.gif" alt=""  border="0" /></td></tr></table>';		preview.innerHTML = html;
	}
</script>
</head>
<body bgcolor="#FFE1CE" style="color:brown">
<table border="0" width="100%" style="margin-right:8px">
<tr><td align="center">
&nbsp;&nbsp;<input type="button" value="{$lang['Adopted']}" onclick="acceptIt()"> <input type="button" value="{$lang['Cancel']}" onclick="window.returnValue='';window.close()">

<select id="num" onchange="showFrame(this.value)">
<script language="javascript">
	for (var i=1; i<=myframes; i++)
		document.write('<option value=' + i + '>{$lang['Under_Num']}  ' + i);

</script>

</td></tr>
<tr><td align="center" id="preview" height="150px">
</td></tr>
</table>
<script language="javascript">
	showFrame(1);
</script>]]></context_frame_form>
<context_friends_main><![CDATA[<title> {$lang['friends_list']} -
{$_CONF['info_row']['title']}</title>

{template}address_bar_part1{/template}
 <a href="index.php?page=usercp&amp;index=1">{$lang['User_Control_Panel']}</a>
{$_CONF['info_row']['adress_bar_separate']}
{$lang['friends_list']}
{template}address_bar_part2{/template}

<table border="0" width="98%" cellpadding="0" style="border-collapse: collapse;margin: auto;">
	<tr>
		<td width="20%" valign="top">{template}usercp_menu{/template}</td>
		<td width="80%" valign="top" align="center">

<form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;add=1">
	<div align="center">
	<table border="0" cellspacing="1" width="100%" class="border" >
		<tr>
			<td class="tcat">			{$lang['add_friend']}</td>
		</tr>
<tr>
			<td class="row1" width="60%">
			{$lang['explanation_friends_list']}
			</td>
		</tr>
<tr>
			<td class="row1" align="right">
			<input name="username_friend" type="text">
			<input name="send" type="submit" value="{$lang['add_friend']}" />
			</td>
		</tr>
	</table>
	</div>
</form>

 <br />


	<div align="center">
<table border="0" cellspacing="1" width="100%" class="border" >
	<tr>
		<td class="tcat" colspan="2">{$lang['friends_list']}</td>
	</tr>
	<tr>
		<td class="thead rows_space">{$lang['user_name']}</td>
		<td class="thead rows_space">{$lang['remove']}</td>
	</tr>
{Des::while}{FriendsList}
	<tr>
		<td class="row1" align="center">
		{if {$FriendsList['approval']} == '0'}
{$lang['Friendship_request_is_pending_approval_by']}
 <b>{$FriendsList['username_friend']}</b>
{else}
{$FriendsList['username_friend']}
{/if}
		</td>
		<td class="row1" align="center">
		   <form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;del=1&amp;id={$FriendsList['id']}">
		<input name="send" type="submit" value="{$lang['remove']}" />
		</form>
		</td>
	</tr>
{if {$No_Friends}}
	<tr>
		<td class="row1" align="center" colspan="2">{$lang['does_not_have_friends']}</td>
	</tr>
{/if}
{/Des::while}


</table>
	</div>
<br />

	<div align="center">
<table border="0" cellspacing="1" width="100%" class="border" >
	<tr>
		<td class="tcat" colspan="3">{$lang['friend_requests_sent_to_you_by_the_members']}</td>
		</tr>
{Des::while}{FriendsApprovalList}
	<tr>
	<td class="row1" align="center">
       {$lang['new_friend_request_sent_by']}
       <b>{$FriendsApprovalList['username']}</b>
		</td>
		<td class="row1" align="center">
      		   <form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;approval=1&amp;id={$FriendsApprovalList['id']}&amp;username={$FriendsApprovalList['username']}">
		<input name="send" type="submit" value="{$lang['i_agree_to_the_request_of_friendship']}
 {$FriendsApprovalList['username']}" />
		</form>
       </td>
		<td class="row1" align="center">
		   <form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;del=1&amp;id={$FriendsApprovalList['id']}">
		<input name="send" type="submit" value="{$lang['no_agree_to_the_request_of_friendship']}
 {$FriendsApprovalList['username']}" />
		</form>
       </td>
	</tr>
{if {$No_Approval_Friends}}
	<tr>
	<td class="row1" align="center" colspan="2">
       <b>{$lang['does_not_have_friend_requests']}</b>
		</td>
	</tr>
{/if}
	{/Des::while}
</table>
	</div>

		</td>
	</tr>
</table>


<br /><br />
<br />]]></context_friends_main>
<context_gradient_form><![CDATA[<style>
select, input { font-size:8pt; font-family:tahoma;}
</style>
<script language="javascript">
// 1001 Astuces hide@address.com , la Source JavaScript!!
// http://www.namani.net
var browser = "unknown";
var version = 0;
if (navigator.userAgent.indexOf("Opera") >= 0)
 browser = "opera";
else if (navigator.userAgent.indexOf("obot") >= 0)
 browser = "robot";
else if (navigator.appName.indexOf("etscape") >= 0)
 browser = "netscape";
else if (navigator.appName.indexOf("icrosoft") >= 0)
 browser = "msie";
version = parseFloat(navigator.appVersion);
if (isNaN(version)) version = 0;
if ((browser == "msie")&&(version == 2)) version = 3;
var tohex = new Array(256);
var hex = "0123456789ABCDEF";
var count = 0;
for (x=0; x<16; x++) {
 for (y=0; y<16; y++) {
 tohex[count] = hex.charAt(x) + hex.charAt(y);
 count++;
 }
}
function ColorCode(hexcode) {
  if (hexcode.length == 7) {
    this.r = parseInt(hexcode.substring(1,3),16);
    this.g = parseInt(hexcode.substring(3,5),16);
    this.b = parseInt(hexcode.substring(5,7),16);
  }
  else if (hexcode.length == 6) {
    this.r = parseInt(hexcode.substring(0,2),16);
    this.g = parseInt(hexcode.substring(2,4),16);
    this.b = parseInt(hexcode.substring(4,6),16);
  }
  else {
    this.r = this.g = this.b = 0;
    alert("Error: ColorCode constructor failed");
  }
  if (isNaN(this.r)||isNaN(this.g)||isNaN(this.b))
    alert("Error: ColorCode constructor failed");
}
function ColorList(hexcodes) {
  var i = 0;
  var c = 0;
  this.codes = new Array(Math.round(hexcodes.length/7));
  while (i < hexcodes.length) {
    if (isNaN(parseInt(hexcodes.substring(i,i+6),16))) ++i;
    else {
      this.codes[c] = new ColorCode(hexcodes.substring(i,i+6));
      i += 7;
      ++c;
    }
  }
  this.len = c;
}
function interpolate (x1, y1, x3, y3, x2) {
  if (x3 == x1) return y1
  else return (x2-x1)*(y3-y1)/(x3-x1) + y1
}
function lowcolorindex (x, y, z) {
  if (y == 1) return 0
  else return Math.floor( (x*(z-1))/(y-1) )
}
function hicolorindex (x, y, z, low) {
  if ( low*(y-1) == x*(z-1) ) return low
  else if (y == 1) return 0
  else return Math.floor( (x*(z-1))/(y-1) + 1 )
}
function gradient(thetext) {
  var grad="";
  var thecolors=getValue(clr1);
  thecolors+=getValue(clr2);
  thecolors+=getValue(clr3);
  thecolors+=getValue(clr4);
  thecolors+=getValue(clr5);
  thecolors=thecolors.substr(1);
  if (((browser == "netscape")||(browser == "msie")||(browser == "opera"))&&(version>=3.0)) {
    var colors = new ColorList(thecolors);
    if (colors.len<2) return  thetext;
    var numcolors = colors.len;
    var numchars = thetext.length;
    var rr = 0;
    var gg = 0;
    var bb = 0;
    var lci = 0; //lower color index
    var hci = 0; //high color index
    for (i=0; i<numchars; ++i) {
      lci = lowcolorindex(i, numchars, numcolors);
      hci = hicolorindex(i, numchars, numcolors, lci);
      rr = Math.round(interpolate( lci/(numcolors-1), colors.codes[lci].r, hci/(numcolors-1), colors.codes[hci].r, i/(numchars-1)));
      gg = Math.round(interpolate( lci/(numcolors-1), colors.codes[lci].g, hci/(numcolors-1), colors.codes[hci].g, i/(numchars-1)));
      bb = Math.round(interpolate( lci/(numcolors-1), colors.codes[lci].b, hci/(numcolors-1), colors.codes[hci].b, i/(numchars-1)));
      if (browser == "opera") {
        rr = 255 - rr;
        gg = 255 - gg;
        bb = 255 - bb;
      }
        grad+=thetext.charAt(i).fontcolor(tohex[rr]+tohex[gg]+tohex[bb]);
    }
  }
  else
    grad=thetext;
  return grad;
}
// 1001 Astuces hide@address.com -->
function gradient_template() {
  var i, t=template.options[template.selectedIndex].value.split(",");
  clr1.selectedIndex=t[0];
  clr2.selectedIndex=t[1];
  clr3.selectedIndex=t[2];
  clr4.selectedIndex=t[3];
  clr5.selectedIndex=t[4];
  template.selectedIndex=0;
  gradient_preview();
}
function getValue(clr) {
  if (clr.options[clr.selectedIndex].value=="")
    return "";
  else
    return " "+clr.options[clr.selectedIndex].value;
}
function gradient_preview() {
  preview.innerHTML="<FONT FACE=arial SIZE=4><B>"+gradient("{$lang['Preview_gradation']}")+"</B></FONT>";
}
function gradient_accept() {
  var r = clr1.value + " " + clr2.value + " " + clr3.value + " " + clr4.value + " " + clr5.value;
  r = r.replace(/^[ ]+/, "").replace(/[ ]+$/, "")
  window.returnValue = r;
  window.close();
}
</script>
</head>
<body  bgcolor="#D9DDDC">
<table id="frm" align="center" border="0"><tr><td align="center" nowrap>
		<select style="width:40px" id="clr1" onchange="document.body.focus();gradient_preview();">
		    <option value="">x
            <option value="000000" style="background-color:black"></option>
            <option value="FFFFFF" style="background-color:white"></option>
            <option value="00BFFF" style="background-color:skyblue"></option>
			<option value="4169E1" style="background-color:royalblue"></option>
			<option value="0000FF" style="background-color:blue"></option>
			<option value="00008B" style="background-color:darkblue"></option>
			<option value="FFA500" style="background-color:orange"></option>
			<option value="FF6347" style="background-color:tomato"></option>
			<option value="FF7F50" style="background-color:coral"></option>
			<option value="FF4500" style="background-color:orangered"></option>
			<option value="DC143C" style="background-color:crimson"></option>
			<option value="FF0000" style="background-color:red"></option>
			<option value="B22222" style="background-color:firebrick"></option>
			<option value="8B0000" style="background-color:darkred"></option>
			<option value="008000" style="background-color:green"></option>
			<option value="32CD32" style="background-color:limegreen"></option>
			<option value="2E8B57" style="background-color:seagreen"></option>
			<option value="FF1493" style="background-color:deeppink"></option>
			<option value="800080" style="background-color:purple"></option>
			<option value="4B0082" style="background-color:indigo"></option>
			<option value="DEB887" style="background-color:burlywood"></option>
			<option value="F4A460" style="background-color:sandybrown"></option>
			<option value="A0522D" style="background-color:sienna"></option>
			<option value="D2691E" style="background-color:chocolate"></option>
			<option value="008080" style="background-color:teal"></option>
			<option value="C0C0C0" style="background-color:silver"></option>
            <option value="808080" style="background-color:gray"></option>
        </select>
		<select style="width:40px" id="clr2" onchange="document.body.focus();gradient_preview();">
		    <option value="">x
            <option value="000000" style="background-color:black" ></option>
            <option value="FFFFFF" style="background-color:white"></option>
            <option value="00BFFF" style="background-color:skyblue"></option>
			<option value="4169E1" style="background-color:royalblue"></option>
			<option value="0000FF" style="background-color:blue"></option>
			<option value="00008B" style="background-color:darkblue"></option>
			<option value="FFA500" style="background-color:orange"></option>
			<option value="FF6347" style="background-color:tomato"></option>
			<option value="FF7F50" style="background-color:coral"></option>
			<option value="FF4500" style="background-color:orangered"></option>
			<option value="DC143C" style="background-color:crimson"></option>
			<option value="FF0000" style="background-color:red"></option>
			<option value="B22222" style="background-color:firebrick"></option>
			<option value="8B0000" style="background-color:darkred"></option>
			<option value="008000" style="background-color:green"></option>
			<option value="32CD32" style="background-color:limegreen"></option>
			<option value="2E8B57" style="background-color:seagreen"></option>
			<option value="FF1493" style="background-color:deeppink"></option>
			<option value="800080" style="background-color:purple"></option>
			<option value="4B0082" style="background-color:indigo"></option>
			<option value="DEB887" style="background-color:burlywood"></option>
			<option value="F4A460" style="background-color:sandybrown"></option>
			<option value="A0522D" style="background-color:sienna"></option>
			<option value="D2691E" style="background-color:chocolate"></option>
			<option value="008080" style="background-color:teal"></option>
			<option value="C0C0C0" style="background-color:silver"></option>
            <option value="808080" style="background-color:gray"></option>
        </select>
		<select style="width:40px" id="clr3" onchange="document.body.focus();gradient_preview();">
		    <option value="">x
            <option value="000000" style="background-color:black" ></option>
            <option value="FFFFFF" style="background-color:white"></option>
            <option value="00BFFF" style="background-color:skyblue"></option>
			<option value="4169E1" style="background-color:royalblue"></option>
			<option value="0000FF" style="background-color:blue"></option>
			<option value="00008B" style="background-color:darkblue"></option>
			<option value="FFA500" style="background-color:orange"></option>
			<option value="FF6347" style="background-color:tomato"></option>
			<option value="FF7F50" style="background-color:coral"></option>
			<option value="FF4500" style="background-color:orangered"></option>
			<option value="DC143C" style="background-color:crimson"></option>
			<option value="FF0000" style="background-color:red"></option>
			<option value="B22222" style="background-color:firebrick"></option>
			<option value="8B0000" style="background-color:darkred"></option>
			<option value="008000" style="background-color:green"></option>
			<option value="32CD32" style="background-color:limegreen"></option>
			<option value="2E8B57" style="background-color:seagreen"></option>
			<option value="FF1493" style="background-color:deeppink"></option>
			<option value="800080" style="background-color:purple"></option>
			<option value="4B0082" style="background-color:indigo"></option>
			<option value="DEB887" style="background-color:burlywood"></option>
			<option value="F4A460" style="background-color:sandybrown"></option>
			<option value="A0522D" style="background-color:sienna"></option>
			<option value="D2691E" style="background-color:chocolate"></option>
			<option value="008080" style="background-color:teal"></option>
			<option value="C0C0C0" style="background-color:silver"></option>
            <option value="808080" style="background-color:gray"></option>
        </select>
		<select style="width:40px" id="clr4" onchange="document.body.focus();gradient_preview();">
		    <option value="">x
            <option value="000000" style="background-color:black" ></option>
            <option value="FFFFFF" style="background-color:white"></option>
            <option value="00BFFF" style="background-color:skyblue"></option>
			<option value="4169E1" style="background-color:royalblue"></option>
			<option value="0000FF" style="background-color:blue"></option>
			<option value="00008B" style="background-color:darkblue"></option>
			<option value="FFA500" style="background-color:orange"></option>
			<option value="FF6347" style="background-color:tomato"></option>
			<option value="FF7F50" style="background-color:coral"></option>
			<option value="FF4500" style="background-color:orangered"></option>
			<option value="DC143C" style="background-color:crimson"></option>
			<option value="FF0000" style="background-color:red"></option>
			<option value="B22222" style="background-color:firebrick"></option>
			<option value="8B0000" style="background-color:darkred"></option>
			<option value="008000" style="background-color:green"></option>
			<option value="32CD32" style="background-color:limegreen"></option>
			<option value="2E8B57" style="background-color:seagreen"></option>
			<option value="FF1493" style="background-color:deeppink"></option>
			<option value="800080" style="background-color:purple"></option>
			<option value="4B0082" style="background-color:indigo"></option>
			<option value="DEB887" style="background-color:burlywood"></option>
			<option value="F4A460" style="background-color:sandybrown"></option>
			<option value="A0522D" style="background-color:sienna"></option>
			<option value="D2691E" style="background-color:chocolate"></option>
			<option value="008080" style="background-color:teal"></option>
			<option value="C0C0C0" style="background-color:silver"></option>
            <option value="808080" style="background-color:gray"></option>
        </select>
		<select style="width:40px" id="clr5" onchange="document.body.focus();gradient_preview();">
		    <option value="">x
            <option value="000000" style="background-color:black" ></option>
            <option value="FFFFFF" style="background-color:white"></option>
            <option value="00BFFF" style="background-color:skyblue"></option>
			<option value="4169E1" style="background-color:royalblue"></option>
			<option value="0000FF" style="background-color:blue"></option>
			<option value="00008B" style="background-color:darkblue"></option>
			<option value="FFA500" style="background-color:orange"></option>
			<option value="FF6347" style="background-color:tomato"></option>
			<option value="FF7F50" style="background-color:coral"></option>
			<option value="FF4500" style="background-color:orangered"></option>
			<option value="DC143C" style="background-color:crimson"></option>
			<option value="FF0000" style="background-color:red"></option>
			<option value="B22222" style="background-color:firebrick"></option>
			<option value="8B0000" style="background-color:darkred"></option>
			<option value="008000" style="background-color:green"></option>
			<option value="32CD32" style="background-color:limegreen"></option>
			<option value="2E8B57" style="background-color:seagreen"></option>
			<option value="FF1493" style="background-color:deeppink"></option>
			<option value="800080" style="background-color:purple"></option>
			<option value="4B0082" style="background-color:indigo"></option>
			<option value="DEB887" style="background-color:burlywood"></option>
			<option value="F4A460" style="background-color:sandybrown"></option>
			<option value="A0522D" style="background-color:sienna"></option>
			<option value="D2691E" style="background-color:chocolate"></option>
			<option value="008080" style="background-color:teal"></option>
			<option value="C0C0C0" style="background-color:silver"></option>
            <option value="808080" style="background-color:gray"></option>
        </select>&nbsp;
        <select id="template" onchange="document.body.focus();gradient_template();">
           <option value="3,4,5,0,0">{$lang['Choose_the_design_is_ready']}
           <option value="3,4,5,0,0">1
           <option value="14,12,9,0,0">2
           <option value="6,8,15,20,0">3
           <option value="21,24,23,0,0">4
		   <option value="10,20,5,1,22">5
        </select>
<p id="preview" align="center">{$lang['Preview_gradation']}</p>
<input type=button value="{$lang['Ok']}" onclick="gradient_accept()">&nbsp;
<input type=button value="{$lang['Cancel']}" onclick="window.close();">
</td></tr></table>
<script>
  template.selectedIndex=3;
  gradient_template();
</script>]]></context_gradient_form>
<context_guest_info><![CDATA[	<div align="center">
	<table width="90%" border="0" cellspacing="1">
		<tr>
			<td width="100%" align="center" class="tbar_writer_info">
<?php $PowerBB->_CONF['template']['Info']['writer'] = str_ireplace('Guest',$PowerBB->_CONF['template']['lang']['Guest_'],$PowerBB->_CONF['template']['Info']['writer']); ?>

{$Info['writer']}
			</td>
		</tr>
  </tr>
	</table>
</div>]]></context_guest_info>
<context_header><![CDATA[<!-- action_find_addons_1 -->
<!--pbb.logo.start-->
<div id="logostrip">
 {if {$_CONF['group_info']['search_allow']} == '1'}
     <!-- Code search Menu start -->
      	<div id='search' class='l-left'>
		<form name="search" action="index.php?page=search" method="get">
		<input type="hidden" name="page" value="search" />
		<input type="hidden" name="start" value="1"/>
		<input type="hidden" name="search_only" value="1" />
		<input type="hidden" name="sort_order" value="DESC" />
		<input type="hidden" name="section" value="all" />
		<label for='main_search' class='hide'>{$lang['start_search']}</label>
		<div id='search_wrap' class='l-left'>
		<input type="text" name="keyword" id="main_search" value="{$lang['search_keyword']}" onfocus="if (this.value == '{$lang['search_keyword']}') this.value = '';"
                dir="{$_CONF['info_row']['content_dir']}" />
		<input type="submit" class="submit_input" value="{$lang['start_search']}" tabindex="6" />
		</div>
			<a href="index.php?page=search&amp;index=1" title="{$lang['advanced_search']}" accesskey="4" rel="search" id="adv_search" class="r-right"></a>
		</form>
		</div>
		<!-- Code search Menu End -->
		 {/if}
<a href="index.php" title="{$_CONF['info_row']['title']}" rel="home" accesskey="1">
<img src="{$image_path}/logo.jpg" style="vertical-align:top"
alt="{$_CONF['info_row']['title']}" border="0" />
</a>
</div>
<!--pbb.logo.end-->
{template}main_bar{/template}
<!-- action_find_addons_2 -->
]]></context_header>
<context_header_bar><![CDATA[
<div id="header_bar">
<ul class="pbbList_inline">
 {if !{$_CONF['member_permission']}}
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="index.php?page=register&amp;index=1" title="{$lang['register']}" id="register_link">{$lang['register']}</a>
</li>
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="index.php?page=login&amp;sign=1" title="{$lang['Login_mem']}" id="sign_link">{$lang['Login_mem']}</a>
</li>
{else}
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="index.php?page=usercp&amp;index=1" title="{$lang['usercp']}" id="usercp_link" >{$lang['usercp']}</a>
</li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="javascript:logout('index.php?page=logout&amp;index=1')" id="logout_link" title="{$lang['logout']}">{$lang['logout']}</a>
</li>
<li class="alerts-switch" style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
{if {$_CONF['member_permission']}}
{if {$all_alerts_num} > 0}
<a href="javascript:switchMenuNone('alerts')" class="alerts">{$lang['alerts']} : <strong>{$all_alerts_num}</strong>
<img border="0" cellspacing="1" src="{$image_path}/menu_open.gif" /></a>
{template}alerts{/template}
{/if}
{/if}
<!-- action_find_addons_2 -->
</li>
<li class="UserPhotoli" style="margin: 0 3px; display:inline-block; list-style:none; float: left;">
{if {$_CONF['info_row']['allow_avatar']}}
{if {$_CONF['rows']['member_row']['avater_path']} != ''}
<a class="UserPhotoLink" href="index.php?page=profile&amp;show=1&amp;id={$_CONF['rows']['member_row']['id']}">
<img src="{$_CONF['rows']['member_row']['avater_path']}" alt="Photo" class="UserPhoto UserPhoto_mini">
</a>
{else}
<a class="UserPhotoLink" href="index.php?page=profile&amp;show=1&amp;id={$_CONF['rows']['member_row']['id']}">
<img src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" class="UserPhoto UserPhoto_mini">
</a>
{/if}
{/if}
</li>

<li style="margin: 0 3px; display:inline-block; list-style:none; float: left;">
<span class="welcomelink">{$lang['Hell