<!-- The category list outline start-->
<div class="nav_top">
» <a href="{motamizseo url="index.php?act=homepage"}">الرئيسية</a>
 » <a  href="{motamizseo url="index.php?act=writers_cp"}">لوحه الكتاب والمحررين</a></div>
 
{if $templateshow==adminclose}
<br>
<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<p align="center"><span lang="ar-eg"><b><font face="Tahoma" size="2" color="#800000">عفوا لوحه الكتاب والمحررين مغلقه حاليا بواسطه المشرف العام رجاء الزياره لاحقا</font></b></span></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>
	
	{elseif $templateshow==logout}
<br>
<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<p align="center"><b><font face="Tahoma" size="2" color="#800000">تم تسجيل الخروج بنجاح</font></b></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>
	
	
	
	
	
{elseif $templateshow==login}

	<div align="center">&nbsp;<p>&nbsp;

<form method="POST" action="index.php?act=writers_cp" >
<TABLE WIDTH=448 BORDER=0 CELLPADDING=0 CELLSPACING=0 id="table1" dir="rtl">
	<tbody>
	<TR>
		<TD>
			<IMG SRC="static/images/motamiz_login_03.jpg" WIDTH=449 HEIGHT=23 ALT=""></TD>
	</TR>
	<TR>
		<TD background="static/images/motamiz_login_05.jpg" height="210" dir="rtl">
			<p align="center">&nbsp;<table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0" height="62" dir="ltr"><tbody><tr><td width="13">&nbsp;<td>
              <p align="right"><font face="Tahoma"><input type="text" name="username" size="20" dir="ltr" value="{php} $_POST[username] {/php}"></font><font face="Tahoma" size="2">
              {php}
              if ($_POST AND !$_POST[username]){
              {/php}

              <br>
              <font color="#FF0000">يجب ادخال اسم المستخدم</font>
              
              {php}
              }
              {/php}
              
          
              
              </font><td width="136" height="30">
              <p align="right"><font face="Tahoma" size="2">اسم المستخدم</font><td width="19">&nbsp;<tr><td width="13" height="28">&nbsp;<td height="28">
              <p align="right"><font face="Tahoma"><input type="password" name="password" size="20" dir="ltr"></font><font face="Tahoma" size="2">
              
               {php}
              if ($_POST AND !$_POST[password]){
              {/php}
              <br>
              <font color="#FF0000">يجب ادخال كلمة المرور</font>
              
              {php}
              }
              {/php}
              
              </font><td width="136" height="28">
              <p align="right"><font face="Tahoma" size="2">كلـــــــــمة المرور</font><td width="19" height="28">&nbsp;<tr><td width="13" height="31">&nbsp;<td height="31" colspan="2">
              <p align="center"><input type="checkbox" name="C1" value="ON"><font face="Tahoma" size="2">تـذكرنى</font><td width="19" height="31">&nbsp;<tr><td width="13" height="29">&nbsp;<td height="29" colspan="2" align="center" dir="rtl">
              <p align="center"><font face="Tahoma" color="#FF0000"><input type="submit" value="تسجــيل الدخـــول" name="B1"></font>
{if $errorlogin}
             <font face="Tahoma" size="2" color="#FF0000"><br><br>
              اسم مستخدم او كلمة مرور خاطئة</font>
             {/if}
              
              <td width="19" height="29">&nbsp;</table></TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="static/images/motamiz_login_06.jpg" WIDTH=449 HEIGHT=22 ALT=""></TD>
	</TR>
</TABLE>
<input type="hidden" name="action" value="login">
</form>
</div>
<p align="center"><font face="Tahoma" size="1">يتم رصد كل التحركات وسيتم حظر اى <span lang="en-us">Ip </span>&nbsp;يحاول كتابة كلمة المرور خظا خمس مرات متتالية لمدة 30 دقيقة</font><center>
{elseif $templateshow==loginok}
<meta http-equiv="refresh" content="2;url=index.php?act=writers_cp&action=add_news">
<br>
<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<p align="center"><b><font face="Tahoma" size="2" color="#008000">تم تسجيل الدخول بنجاح جارى نقلك الى لوحه المحررين</font></b></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>
	
	{else}
<br>
<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<p align="center"><b><span lang="ar-eg"><font face="Tahoma" size="2" color="#800000"><a href="index.php?act=writers_cp&action=add_news">اضافه خبر جديد </a>- <a href="index.php?act=writers_cp&action=list_news">تعديل /حذف خبر</a> - <a href="index.php?act=writers_cp&action=edit_profile">تعديل الملف الشخصى</a> - <a href="index.php?act=writers_cp&logout=true">تسجيل الخروج </a> </font></span></b></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>
	
{if $templatewritercp==done}
<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<div align="center"><b><font face="Tahoma" size="2" color="#008000">تم اضافه الخبر بنجاح ربما لن يظهر مباشره اذا كان اختار المشرف العام مراجعه الاخبار قبل ارسالها </font></div></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>
{elseif $templatewritercp==editwmsn}

<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<div align="center">{$result}</div></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>

{elseif $templatewritercp==edit}
{literal}

<div align=right>

<script type="text/javascript">
<!--
function remove_section(id) {
    var answer = confirm("هل انت متاكد انك تريد ان تحذف هذا السجل ؟ فى حالة الحذف لن تستطيع اعادة السجل مرة اخرى")
    if (answer){
        alert("جارى تنفيذ طلب حذف السجل بنجاح")
window.location='index.php?act=writers_cp&action=list_news&delete=go&DID='+id;
    }
    else{
        alert("تم الغاء تنفيذ الطلب")
    }
}
//-->
</script>
<script type="text/javascript">

function remove_mailtotal() {
	var answer = confirm("هل انت متاكد انك تريد ان تحذف السجلات المؤشرة بعلامة صح ؟ فى حالة الحذف لن تستطيع اعادة السجل مرة اخرى")
	if (answer){
		alert("جارى تنفيذ طلب حذف  السجلات المختارة")
		var form = document.newsdelet;
		      form.submit();
		      	}
	else{
		alert("تم الغاء تنفيذ الطلب")
	}
}



function checkUncheckAll(theElement) {
     var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++){
      if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
	  theForm[z].checked = theElement.checked;
	  }
     }
    }


function emzalert(total) { 
if(total=="delete"){

var answer = confirm("هل انت متاكد انك تريد ان تحذف السجلات المؤشرة بعلامة صح ؟ فى حالة الحذف لن تستطيع اعادة السجل مرة اخرى")
	if (answer){
		alert("جارى تنفيذ طلب حذف  السجلات المختارة")
		var form = document.newsdelet;
		      form.submit();
		      	}
	else{
		alert("تم الغاء تنفيذ الطلب")
	}
	

 }
 
 if(total=="active"){

var answer = confirm("هل انت متاكد انك تريد ان تنشيط السجلات المؤشرة بعلامة صح ؟ بمجرد التنشيط ستكون السجلات ظاهرة فى الموقع")
	if (answer){
		alert("جارى تنفيذ طلب تنشيط  السجلات المختارة")
		var form = document.newsdelet;
		      form.submit();
		      	}
	else{
		alert("تم الغاء تنفيذ الطلب")
	}
	

 }
 
 if(total=="disactive"){

var answer = confirm("هل انت متاكد انك تريد ان تعطيل السجلات المؤشرة بعلامة صح ؟ بمجرد التعطيل فستختفى  السجلات من الموقع")
	if (answer){
		alert("جارى تنفيذ طلب تعطيل  السجلات المختارة")
		var form = document.newsdelet;
		      form.submit();
		      	}
	else{
		alert("تم الغاء تنفيذ الطلب")
	}
	

 }
 
  if(total=="transfer"){

var answer = confirm("هل انت متاكد انك تريد ان نقل السجلات المؤشرة بعلامة صح ؟ ")
	if (answer){
		alert("جارى تنفيذ طلب نقل  السجلات المختارة")
		var form = document.newsdelet;
		      form.submit();
		      	}
	else{
		alert("تم الغاء تنفيذ الطلب")
	}
	

 }


}
</script>

  <script type="text/javascript" >
        function ShowBiggerImage(obj) 
        {
            document.getElementById("LargeImageContainerDiv").innerHTML = "<img src='" + obj.src + "'+'width=150 height=200' >";
        }
        function ShowDefaultImage(obj) 
        {
            document.getElementById("LargeImageContainerDiv").innerHTML = "";
        }
        function move_Area(event)
        {
         event = event || window.event;
         LargeImageContainerDiv.style.left=event.clientX+document.body.scrollLeft+10;
         LargeImageContainerDiv.style.top=event.clientY+document.body.scrollTop+10;
        }
        document.onmousemove = move_Area;
 
    </script>
 <div id="LargeImageContainerDiv" style="position: absolute; z-index:2"></div>
{/literal}

{$actxt}
		<form method="POST" action="{writercp_selfURL}" name=newsdelet >


    <table dir="rtl" width="95%" border="0" cellpadding="0" cellspacing="0" id="table52">
        <tbody>
            <tr>
                <td valign="top">
                    <div align="center">
                        <table dir="rtl" width="99%" border="0" cellpadding="0" cellspacing="0" id="table53">
                            <tbody>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" id="table54">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" id="table55">
                                                            <tbody>
                                                                <tr>
                                                                    <td>
                                                                        <img src="{$DIMAGEPATH}/images/rightb.png" border="0" width="12" height="32"><td class="Table-up" width="100%"
                                                                            background="{$DIMAGEPATH}/images/admin_11.png">
                                                                            <div align="center"><font face="Tahoma" size="2" color="#FFFFFF">تعديل المحتوى الاخبارى</font><td>
                                                                                        <img src="{$DIMAGEPATH}/images/leftb.png" border="0" width="11" height="32">
                                                        </table>
                                                        <tr>
                                                            <td>
                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0" id="table56">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <td width="100%" bgcolor="#ffffff" style="border-left: 1px solid #EEEEEE; border-right: 1px solid #EEEEEE;
                                                                                    border-top-width: 1px; border-bottom: 1px solid #EEEEEE">
                                                                                    <table width="100%" border="0" cellpadding="2" cellspacing="1" id="table57">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td>
                                                                                                    <table dir="rtl" width="100%" border="0" cellpadding="0" cellspacing="0" id="table58">
                                                                                                        <tbody>
                                                                                                            <tr>
                                                                                                                <td>
                                                                                                                    <table class="TableBorder" width="100%" border="0" cellpadding="0" cellspacing="0"
                                                                                                                        id="table59" height="115">
                                                                                                                        <tbody>
                                                                                                                            <tr>
                                                                                                                                <td style="border-bottom: 1px solid rgb(192, 192, 192);" background="{$DIMAGEPATH}/images/bar.jpg" height="35">
                                                                                                                                    <table width="100%" border="0" cellspacing="1" id="table60">
                                                                                                                                        <tbody>
                                                                                                                                            <tr>
                                                                                                                                                <td width="5%" align="center">
    <input type="checkbox" name="checkall" onclick="checkUncheckAll(this);" class="nope" /><td width="5%" align="center">
                                                                                                                                                    <font face="Tahoma" size="2" color="#2474E4"><span lang="ar-eg">الرقم</span></font><td
                                                                                                                                                        width="25%" align="center">
                                                                                                                                                        <font face="Tahoma" size="2" color="#2474E4"><span lang="ar-eg">اسم الخبر</span></font><td
                                                                                                                                                                width="20%" align="center">
                                                                                                                                                                <span lang="ar-eg"><font face="Tahoma" size="2" color="#2474E4">القسم</font></span><td
                                                                                                                                                                            align="center" width="10%">
                                                                                                                                                                            <font face="Tahoma" size="2" color="#2474E4"><span lang="ar-eg">خيارات
                                                                                                                                                                            </span></font>
                                                                                                                                    </table>
                                                                                                                                    <tr>
                                                                                                                                        <td>
                                                                                                                                            <table dir="rtl" width="100%" border="0" cellspacing="1" id="table61">
                                                                                                                                                <tbody>
                                                                                                                                                    <tr class="color1">
                                                                                                                                                        <td bgcolor="#F4F4F4">
                                                                                                                                                            <table width="100%" border="0" cellspacing="1" id="table66">
                                                                                                                                                                <tbody>
                                                                                                                                                                
{section name=idx loop=$datarow}
<tr>
                                                                                                                                                                        <td width="5%" bgcolor="#FFFFFF" align="center">
                                                                                                                                                                            <font face="Tahoma" size="2"><span lang="en-us">
        <input type="checkbox" name="remove_{$datarow[idx].deleten}" value="{$datarow[idx].id}" class="nope"></span></font></td>
                                                                                                                                                                        <td width="5%" bgcolor="#FFFFFF" align="center">
                                                                                                                                                                           {$datarow[idx].id}</td><td width="25%" bgcolor="#FFFFFF" align="center">
                                                                                                                                                                                <font face="Tahoma" size="2"><span lang="en-us">{$datarow[idx].title}</span></font></td><td width="20%" bgcolor="#FFFFFF" align="center">
                                                                                                                                                                                        <font face="Tahoma" size="2"><span lang="en-us">{sectionshow id=`$datarow[idx].subid`}</span></font></td><td bgcolor="#FFFFFF" align="center" width="10%">
                                                                                                                                                                                                <font face="Tahoma" size="2">
                                                                                                                                                                                                 {if $datarow[idx].new_aproved==0}
                                                                                                                                                                                                 
                                                                                                                                                                                   <img border="0" src="{$DIMAGEPATH}/images/ball_red.gif" width="16" height="16">
                                                                                                                                                                                  {else}
                                                                                                                                                                                  
                                                                                                                                                                                   <img border="0" src="{$DIMAGEPATH}/images/ball_green.gif" width="16" height="16">
                                                                                                                                                                                  {/if}
                                                                                                                                                                                    
                                                                                                                                                                                                
                                                                                                                                                                                                <span lang="en-us"><a  href="index.php?act=writers_cp&action=edit_news&news_id={$datarow[idx].id}">
<img src="{$DIMAGEPATH}/images/edit.gif"  width="16" height="16" border="0"></a>
        <a href="javascript:remove_section({$datarow[idx].id});">
<img src="{$DIMAGEPATH}/images/del.gif" alt="" width="16" height="16" border="0"></a></span></font></td></tr>
{/section}                                                                                                                                                                                                </tbody>
                                                                                                                                                                                                
                                                                                                                                                                                                
                                                                                                                                                                                                
 </table></td></tr></tbody></table>
                                                                                                                                                           
{if $num_sql<1}
 <table width="100%" border="0" cellspacing="1" id="table67">
 
                                                                                                                                                                    <tr>
                                                                                                                                                                        <td bgcolor="#FFFFFF" align="center">
                                                                                                                                                                            <font face="Tahoma" size="2"><span lang="en-us">
                                                                                                                                                                            </span>لم يتم اضافة اى <span lang="ar-eg">محتوى </span>&nbsp;حتى الان<span lang="ar-eg"> او انك غير مخول لصلاحيه التعديل فى احد او جميع الاقسام المطلوب الاستعلام عنها</span></font></td>
                                                                                                                                                                        </tr>
                                                                                                                                                                                               
                                                                                                                                            </table>
{/if}

                                                                                                                                            <tr>
                                                                                                                                                <td style="padding-right: 7px;" background="{$DIMAGEPATH}/images/bar.jpg" align="center">
                                                                                                                        <table border="0" width="100%" id="table65" cellspacing="0" cellpadding="0"><tbody><tr><td height="35">
                                                                                                                        <p align="right"><font face="Times New Roman" color="#999999">&#9496; </font>
                                                                                                                        <font color="#999999">
                                                                                                                        <span lang="ar-eg">
                                                                                                                        {literal}<select  onchange="if (this.options[this.selectedIndex].value!=''){emzalert(this.options[this.selectedIndex].value); }" size="1" name="select_list">{/literal}
                                                                                                                        <option  selected>- على المحدد -
                                                                                                                        <option value="delete">حذف
</select></span> 
<!-- The category list outline END-->


&nbsp;</font><span lang="ar-eg"><font color="#c0c0c0">{literal}<select onchange="if (this.options[this.selectedIndex].value!=''){window.location.href=this.options[this.selectedIndex].value }" size="1" name="page_list">{/literal}
                                                                                                                        <option value=""  selected>- النتائج بالصفحة -
                                                                                                                        <option value="{writercp_selfURL}&maxn=10" {if $maxn=='10'}"selected{/if}>10</option>
                                                                                                                        <option value="{writercp_selfURL}&maxn=30" {if $maxn=='30'}"selected{/if}>30</option>
                                                                                                                        <option value="{writercp_selfURL}&maxn=50" {if $maxn=='50'}"selected{/if}>50</option>
                                                                                                                        <option value="{writercp_selfURL}&maxn=100" {if $maxn=='100'}"selected{/if}>100</option>
                                                                                                                        <option value="{writercp_selfURL}&maxn=200" {if $maxn=='200'}"selected{/if}>200</option>
                                                                                                                      
                                                                                                                        </select></font></span><td align="left">
                                                                                                                        
{if $pages>1}

<DIV style="CLEAR: both"></DIV>
<!-- Content End -->
<DIV class=page_nav_loc>
<SPAN class=pagelink> <A title="انتقل إلى الصفحة" href="javascript:multi_page_jump('{writercp_selfURL}&page=',1,{$pages},'انتقل إلى الصفحة');"> 	عدد الصفحات: [{$pages}]</A></SPAN>

{if $page>1}
<SPAN class=pagelinklast><A title=انتقل إلى الصفحة الأولى href={writercp_selfURL}&page=1>«</A></SPAN>
<SPAN class=pagelink><A title=انتقل إلى الصفحة السابقة href=index.php?act=Search_ResultShow&id={$idseccur}&page={$prev}>&lt;</A></SPAN>
{/if} 
{section name=id loop=$totalpages }
{if $page==$totalpages[id]}
<SPAN  class=pagecurrent>{$totalpages[id]}</SPAN>
{else}
<SPAN class=pagelink><A href={writercp_selfURL}&page={$totalpages[id]}>{$totalpages[id]}</A></SPAN>
{/if}

{/section}
{if $page<$pages}
<SPAN class=pagelink><A title='انتقل إلى الصفحة التالية'href={writercp_selfURL}&page={$next}>&gt;</A></SPAN>
<SPAN class=pagelinklast><A title='انتقل إلى الصفحة الأخيرة'href={writercp_selfURL}&page={$pages}>»</a></SPAN>
{/if}
</DIV>
{/if}




</font></table><tr>
                                                                                                                                                <td style="padding-right: 7px;" background="{$DIMAGEPATH}/images/bar.jpg" height="35">
                                                                                                                        <p align="right">
                                                                                                                        <font color="#999999"><font face="Times New Roman">&#9496; </font>
                                                                                                                        <span lang="ar-eg">{literal}<select  onchange="if (this.options[this.selectedIndex].value!=''){window.location.href=this.options[this.selectedIndex].value }" size="1" name="list_orderby">{/literal}
                                                                                                                        <option  selected>- الترتيب حسب -
                                                                                                                        <option value="{writercp_selfURL}&order_by=id" {if $order_by=="id"}selected{/if}>رقم الخبر</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=title" {if $order_by=="title"}selected{/if}>اسم الخبر </option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=dateadd" {if $order_by=="dateadd"}selected{/if}>تاريخ اضافة الخبر</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=datepup" {if $order_by=="datepup"}selected{/if}>تاريخ نشر الخبر</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=subwriter" {if $order_by=="subwriter"}selected{/if}>الكاتب</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=subgate" {if $order_by=="subgate"}selected{/if}>الجهه الاعلاميه</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=visited" {if $order_by=="visited"}selected{/if}>الزيارات</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=nofprint" {if $order_by=="nofprint"}selected{/if}>مرات الطباعه</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=nofsend" {if $order_by=="nofsend"}selected{/if}>مرات الارسال</option>
                                                                                                                        <option value="{writercp_selfURL}&order_by=new_aproved" {if $order_by=="new_aproved"}selected{/if}>حاله النشر</option>

                                                                                                                        عدد الزيارات</select>&nbsp; {literal}<select  onchange="if (this.options[this.selectedIndex].value!=''){window.location.href=this.options[this.selectedIndex].value }" size="1" name="list_sort">{/literal}
                                                                                                                        <option  selected>- ترتيب العرض -
                                                                                                                        <option value="{writercp_selfURL}&sort_by=desc" {if $sort_by=="desc"}selected{/if} >ترتيب تنازلى</option>
                                                                                                                        <option value="{writercp_selfURL}&sort_by=asc" {if $sort_by=="asc"}selected{/if}>ترتيب تصاعدى</option>

                                                                                                                        </select>&nbsp; </span> </font>
                                                                                                                        <span lang="ar-eg"><font color="#c0c0c0">&nbsp;{literal}<select onchange="if (this.options[this.selectedIndex].value!=''){window.location.href=this.options[this.selectedIndex].value }" size="1" name="kiend0">{/literal}
                                                                                                                        <option  selected>- الحالة -
                                                                                                                        <option value="{writercp_selfURL}&status=active" {if $status=="active"}selected{/if}>المفعلة</option>
                                                                                                                        <option value="{writercp_selfURL}&status=disactive" {if $status=="disactive"}selected{/if}>الغير مفعلة</option>
                                                                                                                        <option value="{writercp_selfURL}&status=all" {if $status=="all"}selected{/if}>الكل</option>
                                                                                                                        
                                                                                                                        </select>&nbsp; </font></span>{literal}<select onchange="if (this.options[this.selectedIndex].value!=''){window.location.href=this.options[this.selectedIndex].value }" size="1" name="catlist0">{/literal}
                                                                                                                        <option  selected value="">- الأقسام -</option>
                                                                                                                         {list_writer_sectione listshow=1 Category=$section}

                                                                                                                       <option value="{writercp_selfURL}&section=0"  {if $section=="0"}selected{/if}>الكل</option>
                                                                                                                        </select>&nbsp;</table>
                                                                                                                    <table class="Static" width="100%" border="0" cellpadding="0" cellspacing="0" id="table63">
                                                                                                                        <tbody>
                                                                                                                            <tr>
                                                                                                                                <td>
                                                                                                                        &nbsp;</table>
                                                                                                    </table>
                                                                                    </table>
                                                                </table>
                                                                <td>
                                        </table>
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0" id="table64">
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <td width="100%">
                                                                    <td>
                                                </table>
                        </table>
    </table>
    <input type="hidden" name="iz" value="{$num2}">
    
    </FORM>
    
{elseif $templatewritercp==editw}
<script src="static/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="static/SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="static/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="static/SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="static/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" src="static/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
<script src="static/js/prototype.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" media="all" href="static/css/calendar-blue2.css" title="win2k-cold-1" />


    <FORM  name="REPLIER" runat="server"   action=index.php?act=writers_cp&action=update_profile method=POST dir="rtl" enctype="multipart/form-data" >
<table border="0" width="95%" id="table1">
	<tr>
		<td width="90%"><div class=labz >
<TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TBODY>
  <TR>
    <TD class=formleft_small bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF; width:25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">الاسم 
	المستعار للكاتب</font></span></TD>
    <TD style="border: 1px solid #F5F5F5; "><span id="sprytextfield1">
      <input id=name size=30 name=writer_name value="{$writer_name}"  />
	<span class="textfieldRequiredMsg">بجب كتابة اسم الكاتب المستعار .</span></span></TD>
  </TR>
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">اسم المستخدم 
	للكاتب</font></span><font face="Tahoma" size="2" color="#000080"> </font> </TD>
    <TD style="border: 1px solid #F5F5F5; ">
	<div class=labz >
	<span id="sprytextfield2">
      <input id=name0 size=30 disabled name=writer_username value="{$writer_username}" dir="ltr"  />
	<span class="textfieldRequiredMsg">بجب كتابة اسم المستخدم .</span></span></div></TD></TR>


  <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg">
	<font face="Tahoma" size="2" color="#000080">
	كلمة المرور<br>
    </font><font face="Tahoma" size="1" color="#800000">فى حاله الرغبه فى التغير فقط</font><font face="Tahoma" size="2" color="#000080"> </font></span></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
    	<div class=labz >
	<span id="sprytextfield3">
      <input id=name1 size=30 name=writer_password value="" type="password"  />
	<span class="textfieldRequiredMsg">بجب كتابة كلمة المرور .</span></span></div>
</TD>
    </tr>
	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">البريد 
	الالكترونى</font></span></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
    	<div class=labz >
	<span id="sprytextfield5">
      <input id=name3 size=30 name=writer_email value="{$writer_email}"  />
	<span class="textfieldRequiredMsg">بجب كتابة البريد الالكترونى .</span></span></div>
</TD>
    </tr>
	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">الموقع 
	الالكترونى</font></span></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
    	<div class=labz >
	<span id="sprytextfield6">
      <input id=name4 size=30 name=writer_url value="{$writer_url}"  /></span></div>
</TD>
    </tr>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وصف مختصر 
	للكاتب </font></span></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
    	<div class=labz >
	<span id="sprytextfield7">
      <input id=name5 size=30 name=writer_pref value="{$writer_pref}"  /></span></div>
</TD>
    </TR>

    </TBODY></TABLE>
<TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TBODY>
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="100%" colspan="2">
	<p align="center"><span lang="ar-eg"><font color="#FF0000"><b>هيئة الكاتب</b></font></span></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">السماح بعرض الملف الشخصى </font></span></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
	<font face="Tahoma">
	<input type="radio" value="1" name="per_profile" {if $per_profile==1}checked{/if}></font><font face="Tahoma" size="2"> 
	نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="per_profile" {if !$per_profile or $per_profile==0}checked{/if}></font><font face="Tahoma" size="2"> 
	لا</font></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">السماح بعرض البريد الالكترونى</font></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
	<font face="Tahoma"><input type="radio" value="1" name="per_email" {if $per_email==1}checked{/if}></font><font face="Tahoma" size="2"> 
	نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="per_email" {if !$per_email or $per_email==0}checked{/if}></font><font face="Tahoma" size="2"> 
	لا</font></TD>
    </TR>

  <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">السماح بعرض الموقع الاكترونى</font></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
	<font face="Tahoma">
	<input type="radio" value="1" name="per_website" {if $per_website==1}checked{/if}></font><font face="Tahoma" size="2"> 
	نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="per_website" {if !$per_website or $per_website==0}checked{/if}></font><font face="Tahoma" size="2"> 
	لا</font></TD>
    </tr>
	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">السماح بعرض </font>
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">السيرة الذاتية</font></span></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
	<font face="Tahoma"><input type="radio" value="1" name="per_cv" {if $per_cv==1}checked{/if}></font><font face="Tahoma" size="2"> 
	نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="per_cv" {if !$per_cv or $per_cv==0}checked{/if}></font><font face="Tahoma" size="2"> 
	لا</font></TD>
    </tr>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">ا<span lang="ar-eg">لسماح بعرض الاخبار المرسلة</span></font></TD>
    <TD width="84%" style="border: 1px solid #F5F5F5; ">
	<font face="Tahoma"><input type="radio" value="1" name="per_news" {if $per_news==1}checked{/if}></font><font face="Tahoma" size="2"> 
	نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="per_news" {if !$per_news or $per_news==0}checked{/if}></font><font face="Tahoma" size="2"> 
	لا</font></TD>
    </TR>

    </TBODY>
    </TABLE>
            <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

    
  <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">الصوره الشخصيه</font></span></TD>
    <TD width="84%"><div class=labz2>
	<table border="0" width="100%" id="table5">
		<tr>
			<td width="10">
			<input type="radio" name="aboutpic" value="1" checked></td>
			<td colspan="2"><font size="2">عدم تغير الوضع الحالى</font></td>
		</tr>
		<tr>
			<td colspan="3" bgcolor="#E5E5E5">
			</td>
		</tr>
		<tr>
			<td width="10"><input type="radio" name="aboutpic" value="2"></td>
			<td width="108"><span lang="ar-eg"><font size="2">تحميل من الجهاز</font></span></td>
			<td>
	<input type="file" name="file" size="20"></td>
		</tr>
		<tr>
			<td colspan="3" bgcolor="#E5E5E5">
			</td>
		</table>
	</div></TD>

    
  <TR>
    <TD bgcolor="#FFFFFF" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" colspan="2" dir="rtl">
<div align="center">
<!-- TinyMCE -->
<script type="text/javascript" src="lib/components_editor/tiny_mce/tiny_mce.js"></script>
{literal}

<script type="text/javascript">

function toggleEditor(id) {
	if (!tinyMCE.get(id))
		tinyMCE.execCommand('mceAddControl', false, id);
	else
		tinyMCE.execCommand('mceRemoveControl', false, id);
}

function conv(){
if(document.REPLIER.pain.checked==true){
}else
{
toggleEditor('Post');
}
}


	tinyMCE.init({
		// General options
		mode : "exact",
		elements : "Post",
		language : "ar",
		theme : "advanced",
		skin : "o2k7",
    	directionality : "rtl",
    	width : "500px",
       convert_urls : false,
		plugins : "autosave,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager",
   		imagemanager_insert_template : '<DIV style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px;  PADDING-BOTTOM: 2px; PADDING-TOP: 2px; TEXT-ALIGN: center"><DIV style="WIDTH: {$custom.width}px; height:{$custom.height}"><IMG src="{$url}" border="1" ></DIV><DIV class=photo_desc style="WIDTH: {$custom.width}px">عنوان اسفل الصورة</DIV></DIV>',


		
		
		// Theme options
		theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,insertimage,cleanup,help,code,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,justifyleft,justifycenter,justifyright,justifyfull,|,insertdate,inserttime,preview",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		


		// Example content CSS (should be your site CSS)
		content_css : "{/literal}{$smarty_object->url_base()}index.php?act=css&id=3{$templateid}{literal}",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		},
	template_templates : [
		{
			title : "Editor Details",
			src : "editor_details.htm",
			description : "Adds Editor Name and Staff ID"
		},
		{
			title : "Timestamp",
			src : "time.htm",
			description : "Adds an editing timestamp."
		}
	]

		
	
    
	});
	function Footer() {
		var num = prompt("ادخل رقم الهامش", "");
		var txt = prompt("ادخل نص الهامش", "");
		if (num) {
				if (txt) {
					tinyMCE.execCommand('mceInsertContent',true,"<sup><a name='t" + num + "' href='#b" + num + "'>[" + num + "]</a></sup>");
					document.REPLIER.note.value = document.REPLIER.note.value+"<a name='b" + num + "' href='#t" + num + "'>[" + num + "]</a> " + txt +"<br>";
				}
		}
		}
		
		function Quote() {
		var html = prompt("ادخل نص الإقتباس هنا", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class='quote_cont' style='text-align: center;'><div class='quote_up'>&nbsp;</div><div class='quote_author' style='text-align: right;'>" + html + "</div><div class='quote_down'>&nbsp;</div></div>");
		}
	}
	
		function quran() {
		var html = prompt("ادخل النص القرأنى", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<font color=#990033 face='traditional arabic' size=4> &#64831; " + html + " &#64830;   </font>");
		}
	}
	
	function letter() {
		var html = prompt("ادخل النص الاول", "");
		var html2 = prompt("ادخل النص الثانى", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<fieldset><legend> " + html + "</legend><br>" + html2 + "</fieldset>");
		}
	}
	

	function audio() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=audio min150px><spane>[audio]"+ html+"[/audio]</spane><br>" + html2 + "</div>");
		}
	}
	
	
		function video() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=video min150px><spane>[video]"+ html+"[/video]</spane><br>" + html2 + "</div>");
		}
	}
	
			function videoflash() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=videoflash min150px><spane>[videoflash]"+ html+"[/videoflash]</spane><br>" + html2 + "</div>");
		}
	}

	
		function tablz() {

html='<table style="width: 95%;" border="0" cellspacing="1" cellpadding="3">';
html +='<tbody>';
html +='<tr>';
html +='<th>عمود1</th> <th>عمود 2<br /></th> <th>عمود 3<br /></th> <th>عمود 4 </th>';
html +='</tr>';
html +='<tr>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='</tr>';
html +='<tr>';
html +='<td class="row0b">تجربة</td>';
html +='<td class="row0">تجربة</td>';
html +='<td class="row0b">تجربة</td>';
html +='<td class="row0">تجربة</td>';
html +='</tr>';
html +='<tr>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='</tr>';
html +='</tbody>';
html +='</table>';
	tinyMCE.execCommand('mceInsertContent',true,html);
		}

	
</script>
{/literal}

<!-- /TinyMCE -->

	<span lang="ar-eg"><font color="#FF0000"><b>السيرة الذاتية للكاتب</b></font></span><br>

	<textarea rows="10"id="Post" name="Post" style="width:100%"   cols="20"  dir="rtl">{$Post} 
</textarea></TD>
    </TR>
    
    
  <TR  >
    <TD   bgcolor="#FFFFFF" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" colspan="2" dir="rtl" align="center" height="22">
       <div align=center>


       </div>
       <p align="left">
	&nbsp;<INPUT type=submit value="تعديل الخصائص" id="cancel" name=submit2 ></TD>
    </TR>
    </TABLE>
    
		</div></td>
	</tr>
	</table>
<input type="hidden" name="prtoz" value="2">
</FORM><!-- CVS ID: $Id: end.tpl.php,v 1.1 2004/12/03 23:21:50 david Exp $ -->
 

{elseif $templatewritercp==editnewsform}
{if $ACT}

<table align=center border="0" width=200px  class="form_table">
	<tr>
		<td class="table_field_cell">
		<div align="center">{$ACT}</div></td>
	</tr>
	<tr>
		<td class="table_field_cat">
		
		</td>
	</tr>
	</table>
	{else}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">

<script src="static/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="static/SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="static/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="static/SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="static/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" src="static/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
<script src="static/js/prototype.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" media="all" href="static/css/calendar-blue2.css" title="win2k-cold-1" />

  <!-- main calendar program -->
  <script type="text/javascript" src="static/js/calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="static/js/calendar-en.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="static/js/calendar-setup.js"></script>

</head>
{literal}

<script language="javascript">
function insert_page(url) {
	props=window.open(url, 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=450, height=300, left = 150, top = 50');
}
</script>
<script type='text/javascript'>
var inival=0; 
function addTextBox(place,name,name2)
{
var newArea = add_New_Element(place);
var htcontents ='<tr><td width="35%"><div class=labz >عنوان الرابط <br>';
    htcontents+= "<input type='text' dir='ltr'  name='"+name+"[]'/>";
    htcontents+='</div></td><td width="35%"><div class=labz >اسم الرابط<br>';
    htcontents+= "<input type='text' name='"+name2+"[]'/>";
    htcontents+='</div></td><td width="30%"><div class=labz ><a href="javascript:addTextBox('+"'"+place+"'"+','+"'"+name+"'"+','+"'"+name2+"'"+');" ><img src="static/images/Add_Tab-5-32x32-32bpp.png" alt=""  border="0"></a>';
    htcontents+=' | <a href="javascript:remove_element('+"'"+newArea+"'"+');"><img src="static/images/Stop_2-5-32x32-32bpp.png" alt=""  border="0"></a>';
    htcontents+='</div></td></tr>';
document.getElementById(newArea).innerHTML = htcontents;
}

function remove_element(elmname){
document.getElementById(elmname).innerHTML="";
}

function add_New_Element(place) {
inival=inival+1;
var ni = document.getElementById(place);
var newdiv = document.createElement('div');
var divIdName = place+inival+'Div';
newdiv.setAttribute('id',divIdName);
ni.appendChild(newdiv);
return divIdName;
}
</script>
{/literal}


<DIV id=contentarea>
{literal}

<script>
function checkSelection(listbox) {
    var opt = listbox.options[listbox.selectedIndex];
    if (opt.disabled) {
        if (listbox.previousSelection != null) {
            listbox.selectedIndex = listbox.previousSelection;
        } else {
            listbox.selectedIndex = -1;
        }
    } else {
        listbox.previousSelection = listbox.selectedIndex;
    }  
}
</script>
{/literal}
<div align=right  dir=rtl style="width:620px;padding-left:19px" class=errorarea>
{$error}
</div>

<FORM  name="REPLIER" runat="server"   action=index.php?act=writers_cp&action=update_news method=POST dir="rtl" enctype="multipart/form-data" >
<input type=hidden name=news_id value="{$news_id}">
<table border="0" width="95%" id="table1">
	<tr>
		<td width="90%"><div class=labz >
<TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TBODY>
  <tr>
    <TD class=formleft_small bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF; width:25%">
	<font face="Tahoma" size="2" color="#000080">عنوان الخبر</font></TD>
    <TD><span id="sprytextfield2">
      <input id=name33 size=30 name=title value="{$title}"  />
      <span class="textfieldRequiredMsg">عفوا يجب كتابة<span lang="ar-eg">عنوان 
	الخبر</span> .</span></span></TD>
  </tr>
  <TR>
    <TD class=formleft_small bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF; width:25%">
	<font face="Tahoma" size="2" color="#000080">عنوان <span lang="ar-eg">ثانوى</span></font></TD>
    <TD><span id="sprytextfield1">
      <input id=name size=30 name=title2 value="{$title2}"  />
      <span class="textfieldRequiredMsg">عفوا يجب كتابة<span lang="ar-eg">عنوان 
	الخبر</span> .</span></span></TD>
  </TR>
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">القسم </font>
	</span> </TD>
    <TD>
	<div class=labz >
	
	<SELECT id=Category runat="server" onchange="checkSelection(this)"  name=Category  size="1" dir="rtl"> 
	<option>[ اختر التصنيف المناسب ]</option>
	{list_writer_sectione Category=$Category}
 </SELECT></div></TD></TR>


  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">مصدر المقالة</font></span></TD>
    <TD width="84%">
	<font face="Tahoma"><div class=labz2>
	<INPUT id=name28 size=30  alt=blank    name=new_writer_text value="{$new_writer_text}"></div></font>
</TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="98%" colspan="2">
	<p align="center"><font color="#FF0000"><b>خصائص الخبر الادارية</b></font></TD>
    </TR>
    
    </TBODY></TABLE>

<div id=d1 style="display:block">
    <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">تفعيل التعليقات</font></TD>
    <TD width="84%"><div class=labz2 >
	<font face="Tahoma">
	<input type="radio" value="1" name="new_allow_comment" {if $new_allow_comment!='0'}checked{/if} ></font><font face="Tahoma" size="2"> نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="new_allow_comment" {if $new_allow_comment=='0'}checked{/if} ></font><font face="Tahoma" size="2"> لا<br>
	<span lang="ar-eg">انتهاء التعليق فى </span>
	</font>
	<INPUT id=expire_date_comment size=12  alt=blank type=hidden   value="{$expire_date_comment}"     name=expire_date_comment> 
	<span id="show_comment">{if  !$expire_date_comment}-- غير محدد -- {else}{$expire_date_comment}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}

<script type="text/javascript">
    Calendar.setup({
        inputField     :    "expire_date_comment",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_comment",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

	
	</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">وضع كلمة مرور
	<span lang="ar-eg">للمقالة</span></font></TD>
    <TD width="84%" ><div class=labz2>
	<font face="Tahoma"><input type="radio" value="1" {if $new_password_do=='1'}checked{/if} name="new_password_do"></font><font face="Tahoma" size="2"> نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="new_password_do" {php} if (!$new_password_do or $new_password_do=="0"){ echo "checked"; } {/php}></font><font face="Tahoma" size="2"> لا<br>
	<span lang="ar-eg">الغاء كلمة المرور فى </span>
	<INPUT id=expire_date_password size=12  alt=blank type=hidden  value="{$expire_date_password}" name="expire_date_password"    name=expire_date_password> 
	<span id="show_password">{if  !$expire_date_password}-- غير محدد --{else}{$expire_date_password}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e1" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "expire_date_password",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_password",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e1",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

</font></div></TD>
    </TR>

  <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">كلمة المرور</font></TD>
    <TD width="84%" ><div class=labz2>
	<INPUT id=name36 size=30  alt=blank    name=new_password_salt type="password" value="{$new_password_salt}"></div></TD>
    </tr>
	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وقت اضافة 
	المقالة</font></span></TD>
    <TD width="84%" ><div class=labz2>
	<INPUT id=add_date size=22  alt=blank type=hidden value="{$add_date}" name="add_date" >
	<span id="show_date1">{if  !$add_date}-- فى الحال --{else}{$add_date}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e2" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}

<script type="text/javascript">
    Calendar.setup({
        inputField     :    "add_date",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_date1",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e2",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

	
	</div></TD>
    </tr>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وقت نشر 
	المقالة</font></span></TD>
    <TD width="84%" ><div class=labz2>
	<INPUT id=p_date size=22  alt=blank type=hidden value="{$p_date}"    name=p_date>
	<span id="show_date2">{if  !$p_date}-- فى الحال --{else}{$p_date}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e3" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}

<script type="text/javascript">
    Calendar.setup({
        inputField     :    "p_date",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_date2",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e3",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

	
	</div></TD>
    </TR>
    
    </TABLE>
        </div>

    <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">


  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="98%" colspan="2">
	<p align="center"><font color="#FF0000"><b>خصائص محركات البحث (SEO)</b></font></TD>
    </TR>
    
    </TABLE>
    <div id=d2 style="display:block">

        <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">


  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">كلمات مرتبطة بالمقال</font></TD>
    <TD width="84%"><div class=labz2>
	<INPUT id=name31 size=30  alt=blank   emsg='ادخل عنوان الخبر' name=new_metatag value="{$new_metatag}"><br>
	يرجى الفصل بين كل كلمة واخرى بعلامة بترك مسافة مثال (سياسة&nbsp; كرة قدم 
	تاريخ)</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">اسم الرابط <br>
	(لمود الريرايت*)</font></TD>
    <TD width="84%"><div class=labz2>
	<INPUT id=name32 size=30  alt=blank   emsg='ادخل عنوان الخبر' name=new_modre_title value="{$new_modre_title}"><br>
	فى حالة استعمال المود ريرايت يستخدم لوضع اسم وهمى للمقال فى الوصلة الخاصة 
	بالعنوان</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">عنوان الصفحة </font></TD>
    <TD height="28" style="border: 1px solid #F5F5F5"><div class=labz2>
	<fieldset style="border:1px solid #E5E5E5; padding:2px;width:100%; ">
	<legend><span lang="ar-eg">خيارات كتابة عنوان الصفحة</span></legend>
	<table border="0" width="100%" id="table6" >
		<tr>
			<td style="border: 1px solid #F5F5F5">
	<font face="Tahoma">
			<input type="radio" value="1" name="new_pagetitle" {if !$new_pagetitle or $new_pagetitle=="1"}checked{/if}><span lang="ar-eg">
			<font size="2">اسم الموقع </font></span><font size="2">&gt;<span lang="ar-eg">اسم 
			القسم </span>&gt; <span lang="ar-eg">عنوان المقال او الخبر</span></font></font><font face="Tahoma" size="2"> 
			</font></div></td>
		</tr>
		<tr>
			<td style="border: 1px solid #F5F5F5">
	<font face="Tahoma"><input type="radio" value="2" name="new_pagetitle"{if $new_pagetitle=="2"}checked{/if}><span lang="ar-eg">
			</span><font size="2">&nbsp;<span lang="ar-eg">عنوان المقال او الخبر</span></font></font><font face="Tahoma" size="2"> 
			<span lang="ar-eg">فقط</span>
			</font></td>
		</tr>
		<tr>
			<td style="border: 1px solid #F5F5F5">
	<font face="Tahoma"><input type="radio" value="3" name="new_pagetitle"{if $new_pagetitle=="3"}checked{/if}><span lang="ar-eg">
			</span><font size="2">&nbsp;<span lang="ar-eg">عنوان المقال او الخبر</span></font></font><font face="Tahoma" size="2"> 
			<span lang="ar-eg">, + </span>كلمات مرتبطة بالمقال
			</font></td>
		</tr>
	</table>
	</fieldset></TD>
    </TR>
</TABLE>
</div>
<TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TBODY>
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="100%" colspan="2">
	<p align="center"><span lang="ar-eg"><font color="#FF0000"><b>تفاصيل الخبر</b></font></span></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">صورة المقال</font></span></TD>
    <TD width="84%"><div class=labz2>
	<table border="0" width="100%" id="table7">
		<tr>
			<td width="2%">
			<input type="radio" name="aboutpic" value="11" checked></td>
			<td width="17%"><span lang="ar-eg"><font size="2">عدم تغير الوضع الحالى</font></span></td>
			<td width="79%">&nbsp;</td>
		<tr>
			<td colspan="3" bgcolor="#E5E5E5">
			</td>
		<tr>
			<td width="2%">
			<input type="radio" name="aboutpic" value="1"></td>
			<td width="17%"><span lang="ar-eg"><font size="2">حذف</font></span><font size="2"><span lang="ar-eg"> صورة</span></font></td>
			<td width="79%">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3" bgcolor="#E5E5E5">
			</td>
		</tr>
		<tr>
			<td width="2%"><input type="radio" name="aboutpic" value="2"></td>
			<td width="17%"><span lang="ar-eg"><font size="2">تحميل من الجهاز</font></span></td>
			<td width="79%">
	<input type="file" name="file" size="20"></td>
		</tr>
		</table>
	</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وصف الصورة</font></span></TD>
    <TD width="84%"><div class=labz2><font face="Tahoma">
	<textarea rows="1" alt=blank   class=nobig name="new_pic_text" cols="42">{$new_pic_text}
</textarea></font><font face="Tahoma" size="2"><br>
	<span lang="ar-eg">يترك فارغا فى حالة عدم الرغبة فى وضع اى نص اسفل الصورة</span></font></div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">ملخص</font></span><font face="Tahoma" size="2" color="#000080">
	<span lang="ar-eg">المقاله</span></font></TD>
    <TD width="84%"><div class=labz2><font face="Tahoma">
	<textarea rows="3" alt=blank  class=nobig  emsg='ادخل مقدمة الخبر' onkeydown=limitText(this.form.subject1,this.form.countdown,347); onkeyup=limitText(this.form.subject1,this.form.countdown,347); name="subject1" cols="42">{$subject1}
</textarea></font><font face="Tahoma" size="2"><br>
&nbsp;</font>(أقصى عدد للحروف: 347 حرف)<BR>عدد الأحرف المتبقية: 
      <INPUT class=text_box readOnly value=347 name=countdown size="5"></div></TD>
    </TR>
    </TBODY>
    </TABLE>
            <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

    
  <TR>
    <TD bgcolor="#FFFFFF" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" dir="rtl">
<div align="center">
<!-- TinyMCE -->
<script type="text/javascript" src="lib/components_editor/tiny_mce/tiny_mce.js"></script>
{literal}

<script type="text/javascript">

function toggleEditor(id) {
	if (!tinyMCE.get(id))
		tinyMCE.execCommand('mceAddControl', false, id);
	else
		tinyMCE.execCommand('mceRemoveControl', false, id);
}

function conv(){
if(document.REPLIER.pain.checked==true){
}else
{
toggleEditor('Post');
}
}


	tinyMCE.init({
		// General options
		mode : "exact",
		elements : "Post",
		language : "ar",
		theme : "advanced",
		skin : "o2k7",
    	directionality : "rtl",
    	width : "500px",
       convert_urls : false,
		plugins : "autosave,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager",
   		imagemanager_insert_template : '<DIV style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px;  PADDING-BOTTOM: 2px; PADDING-TOP: 2px; TEXT-ALIGN: center"><DIV style="WIDTH: {$custom.width}px; height:{$custom.height}"><IMG src="{$url}" border="1" ></DIV><DIV class=photo_desc style="WIDTH: {$custom.width}px">عنوان اسفل الصورة</DIV></DIV>',


		
		
		// Theme options
		theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,insertimage,cleanup,help,code,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,justifyleft,justifycenter,justifyright,justifyfull,|,insertdate,inserttime,preview",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		


		// Example content CSS (should be your site CSS)
		content_css : "{/literal}{$smarty_object->url_base()}index.php?act=css&id={$templateid}{literal}&geturl=1&bogus="+new Date().getTime(),

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		},
	template_templates : [
		{
			title : "Editor Details",
			src : "editor_details.htm",
			description : "Adds Editor Name and Staff ID"
		},
		{
			title : "Timestamp",
			src : "time.htm",
			description : "Adds an editing timestamp."
		}
	]

		
	
    
	});
	function Footer() {
		var num = prompt("ادخل رقم الهامش", "");
		var txt = prompt("ادخل نص الهامش", "");
		if (num) {
				if (txt) {
					tinyMCE.execCommand('mceInsertContent',true,"<sup><a name='t" + num + "' href='#b" + num + "'>[" + num + "]</a></sup>");
					document.REPLIER.note.value = document.REPLIER.note.value+"<a name='b" + num + "' href='#t" + num + "'>[" + num + "]</a> " + txt +"<br>";
				}
		}
		}
		
		function Quote() {
		var html = prompt("ادخل نص الإقتباس هنا", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class='quote_cont' style='text-align: center;'><div class='quote_up'>&nbsp;</div><div class='quote_author' style='text-align: right;'>" + html + "</div><div class='quote_down'>&nbsp;</div></div>");
		}
	}
	
		function quran() {
		var html = prompt("ادخل النص القرأنى", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<font color=#990033 face='traditional arabic' size=4> &#64831; " + html + " &#64830;   </font>");
		}
	}
	
	function letter() {
		var html = prompt("ادخل النص الاول", "");
		var html2 = prompt("ادخل النص الثانى", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<fieldset><legend> " + html + "</legend><br>" + html2 + "</fieldset>");
		}
	}
	

	function audio() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=audio min150px><spane>[audio]"+ html+"[/audio]</spane><br>" + html2 + "</div>");
		}
	}
	
	
		function video() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=video min150px><spane>[video]"+ html+"[/video]</spane><br>" + html2 + "</div>");
		}
	}
	
			function videoflash() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=videoflash min150px><spane>[videoflash]"+ html+"[/videoflash]</spane><br>" + html2 + "</div>");
		}
	}

	
		function tablz() {

html='<table style="width: 95%;" border="0" cellspacing="1" cellpadding="3">';
html +='<tbody>';
html +='<tr>';
html +='<th>عمود1</th> <th>عمود 2<br /></th> <th>عمود 3<br /></th> <th>عمود 4 </th>';
html +='</tr>';
html +='<tr>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='</tr>';
html +='<tr>';
html +='<td class="row0b">تجربة</td>';
html +='<td class="row0">تجربة</td>';
html +='<td class="row0b">تجربة</td>';
html +='<td class="row0">تجربة</td>';
html +='</tr>';
html +='<tr>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='</tr>';
html +='</tbody>';
html +='</table>';
	tinyMCE.execCommand('mceInsertContent',true,html);
		}

	
</script>
{/literal}

<!-- /TinyMCE -->

	<font color="#FF0000"><b>تفاصيل الخبر</b></font><br>

	<textarea rows="10"id="Post" name="Post" style="width:100%"  cols="10" dir="rtl">{$Post}
</textarea><br>
<span lang="ar-eg"><a href="javascript:Footer();">اضفة هامش</a>
<a href="javascript:Quote();">اضافة اقتباس</a></span>
<a href="javascript:quran();">
<span lang="ar-eg">اضافة نص قرانى</span></a>
<a href="javascript:letter();">
<span lang="ar-eg">اضافة خطاب</span></a> 
<span lang="ar-eg"><a href="javascript:tablz();">اضافة جدول تجريبى</a></span> <span lang="ar-eg">اضافة ترويسة</span>&nbsp; <span lang="ar-eg"><a href="javascript:audio();">اضافة مقظع صوتى</a></span>&nbsp; <span lang="ar-eg"><a href="javascript:video();">اضافة مقظع فيديو</a></span></TD>
    </TR>
        
   
    
  
    </TABLE>
    
    <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">الهوامش</font></TD>
    <TD width="84%"><div class=labz2><font face="Tahoma">
	<textarea rows="3" alt=blank  class=nobig  name="note" cols="42" style="height: 145; width: 356">{$note}
</textarea></font></div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">مقالات ذات صلة</font></TD>
    <TD width="84%">
		<font face="Tahoma"><input type="text" name="listartc" size="41" value="{$listartc}"></font></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="98%" colspan="2">
	<p align="center"><font color="#FF0000"><b>خصائص</b></font><span lang="ar-eg"><font color="#FF0000"><b> 
	مرفقات الخبر</b></font></span></TD>
    </TR>
    
    </TABLE>
    <div id=d3 style="display:block">
    
        <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

          
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%" rowspan="2">
	<font face="Tahoma" size="2" color="#000080">معرض الصور الرئيسى</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma">
		<input type="text" name="galleryid" size="1" id="gallery_input1" value="{$galleryid}"></font><font face="Tahoma" size="2"> 
		</font>
		<font size="1" face="Tahoma">
		<a href="javascript:insert_page('index.php?act=writers_cp&action=popup_gal1');">
		<img border="0" src="static/images/view.gif" width="17" height="17"></a></font><font face="Tahoma" size="2">عرض ضمن المقال </font><font face="Tahoma">
		<input type="radio" value="1" name="galleryidshow" {if $galleryidshow=="1"}checked{/if}></font><font face="Tahoma" size="2">نعم
		</font><font face="Tahoma">
		<input type="radio" name="galleryidshow" value="0" {if !$galleryidshow or $galleryidshow=="0"}checked{/if}></font><font face="Tahoma" size="2">لا</font></div></TD>
    </tr>
    
    
      <tr>
    <TD width="84%">    	<div class=labz >
<font face="Tahoma" size="2">عدد اعمدة العرض </font>
		<select size="1" name="galleryid_col">
		<option value="2" {if $galleryid_col==2}selected{/if}>2</option>
		<option value="3" {if $galleryid_col==3}selected{/if}> 3</option>
		</select><font face="Tahoma" size="2"> عدد الصور المعروضة </font>
		<font face="Tahoma">
<input type="text" name="galleryid_num" size="3" value="{if !$galleryid_num}6{else}{$galleryid_num}{/if}"></font></div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%" height="30">
	<font face="Tahoma" size="2" color="#000080">ارفاق استبيان رئيسى</font></TD>
    <TD width="84%" height="30"><div class=labz2>
		<font face="Tahoma">
		<input type="text" name="poll_id" size="1" id="poll_input" value="{$poll_id}"></font><font face="Tahoma" size="2">&nbsp;</font><font size="1" face="Tahoma"><a href="javascript:insert_page('index.php?act=writers_cp&action=popup_poll');"><img border="0" src="static/images/view.gif" width="17" height="17" alt="اضغط لاستعراض الاستبيانات"></a></font><font face="Tahoma" size="2">عرض الاستبيان ضمن المقال </font><font face="Tahoma">
		<input type="radio" value="1" name="poll_idshow" {php} if ($poll_idshow=="1"){ echo "checked"; } {/php}></font><font face="Tahoma" size="2">نعم
		</font><font face="Tahoma">
		<input type="radio" name="poll_idshow" value="0" {php} if (!$poll_idshow or $poll_idshow=="0"){ echo "checked"; } {/php}></font><font face="Tahoma" size="2">لا</font>
		</div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">ملفات عامة</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma">
		<input type="text" name="listfiles" size="41" id="files_input" value="{$listfiles}"></font><font size="1" face="Tahoma"><a title="اضغط هنا لاستعراض قائمة المعارض" href="javascript:insert_page('index.php?act=writers_cp&action=popup_files');"><img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    </tr>
    
    
  	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">صوتيات</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma" size="1">مجلدات: <font size="1">
		<input type="text" name="v_folders" size="17" value="{$v_folders}" id="audio_input"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_audio');"><img border="0" src="static/images/view.gif" width="17" height="17"></a><br>
		مقاطع:&nbsp;&nbsp; <font size="1">
		<input type="text" name="v_files" size="17" value="{$v_files}" id="audio_input1"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_audio1');"><img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    	</tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">مرئيات</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma" size="1">مجلدات: <font size="1">
		<input type="text" name="book_folders" size="17" value="{$book_folders}" id="video_input"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_video');"><img border="0" src="static/images/view.gif" width="17" height="17"></a><br>
		مقاطع <span lang="ar-eg">&nbsp;</span>&nbsp; <font size="1">
		<input type="text" name="book_files" size="17" value="{$book_files}"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_gal');"><img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">معارض <span lang="ar-eg">الصور</span></font></TD>
    <TD width="84%"><div class=labz2>
		<font size="1" face="Tahoma">
		<input type="text" name="listgallery" size="41" id="gallery_input" value="{$listgallery}">
		<a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_gal');">
		<img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	&nbsp;</TD>
    <TD width="84%">
	<INPUT type=submit value=تعديل name=Submit3 id="submit0">
		<INPUT type=reset value="استعادة الحقول" id="cancel0" name=submit4 ></TD>
    </tr>
    
    
  </TBODY></TABLE>
        <p>&nbsp;</div>
		</div></td>
	</tr>
	</table>
<input type="hidden" name="prtoz" value="2">
</FORM><!-- CVS ID: $Id: end.tpl.php,v 1.1 2004/12/03 23:21:50 david Exp $ -->

{/if}
{else}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">

<script src="static/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="static/SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="static/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="static/SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="static/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" src="static/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
<script src="static/js/prototype.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" media="all" href="static/css/calendar-blue2.css" title="win2k-cold-1" />

  <!-- main calendar program -->
  <script type="text/javascript" src="static/js/calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="static/js/calendar-en.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="static/js/calendar-setup.js"></script>

</head>
{literal}

<script language="javascript">
function insert_page(url) {
	props=window.open(url, 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=450, height=300, left = 150, top = 50');
}
</script>
<script type='text/javascript'>
var inival=0; 
function addTextBox(place,name,name2)
{
var newArea = add_New_Element(place);
var htcontents ='<tr><td width="35%"><div class=labz >عنوان الرابط <br>';
    htcontents+= "<input type='text' dir='ltr'  name='"+name+"[]'/>";
    htcontents+='</div></td><td width="35%"><div class=labz >اسم الرابط<br>';
    htcontents+= "<input type='text' name='"+name2+"[]'/>";
    htcontents+='</div></td><td width="30%"><div class=labz ><a href="javascript:addTextBox('+"'"+place+"'"+','+"'"+name+"'"+','+"'"+name2+"'"+');" ><img src="static/images/Add_Tab-5-32x32-32bpp.png" alt=""  border="0"></a>';
    htcontents+=' | <a href="javascript:remove_element('+"'"+newArea+"'"+');"><img src="static/images/Stop_2-5-32x32-32bpp.png" alt=""  border="0"></a>';
    htcontents+='</div></td></tr>';
document.getElementById(newArea).innerHTML = htcontents;
}

function remove_element(elmname){
document.getElementById(elmname).innerHTML="";
}

function add_New_Element(place) {
inival=inival+1;
var ni = document.getElementById(place);
var newdiv = document.createElement('div');
var divIdName = place+inival+'Div';
newdiv.setAttribute('id',divIdName);
ni.appendChild(newdiv);
return divIdName;
}
</script>
{/literal}


<DIV id=contentarea>
{literal}

<script>
function checkSelection(listbox) {
    var opt = listbox.options[listbox.selectedIndex];
    if (opt.disabled) {
        if (listbox.previousSelection != null) {
            listbox.selectedIndex = listbox.previousSelection;
        } else {
            listbox.selectedIndex = -1;
        }
    } else {
        listbox.previousSelection = listbox.selectedIndex;
    }  
}
</script>
{/literal}
<div align=right  dir=rtl style="width:620px;padding-left:19px" class=errorarea>
{$error}
</div>

<FORM  name="REPLIER" runat="server"   action=index.php?act=writers_cp&action=done_news method=POST dir="rtl" enctype="multipart/form-data" >
<table border="0" width="95%" id="table1">
	<tr>
		<td width="90%"><div class=labz >
<TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TBODY>
  <tr>
    <TD class=formleft_small bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF; width:25%">
	<font face="Tahoma" size="2" color="#000080">عنوان الخبر</font></TD>
    <TD><span id="sprytextfield2">
      <input id=name33 size=30 name=title value="{$title}"  />
      <span class="textfieldRequiredMsg">عفوا يجب كتابة<span lang="ar-eg">عنوان 
	الخبر</span> .</span></span></TD>
  </tr>
  <TR>
    <TD class=formleft_small bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF; width:25%">
	<font face="Tahoma" size="2" color="#000080">عنوان <span lang="ar-eg">ثانوى</span></font></TD>
    <TD><span id="sprytextfield1">
      <input id=name size=30 name=title2 value="{$title2}"  />
      <span class="textfieldRequiredMsg">عفوا يجب كتابة<span lang="ar-eg">عنوان 
	الخبر</span> .</span></span></TD>
  </TR>
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">القسم </font>
	</span> </TD>
    <TD>
	<div class=labz >
	
	<SELECT id=Category runat="server" onchange="checkSelection(this)"  name=Category  size="1" dir="rtl"> 
	<option>[ اختر التصنيف المناسب ]</option>
	{list_writer_section}
 </SELECT></div></TD></TR>


  <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">بواسطة</font></span></TD>
    <TD width="84%">
    	<div class=labz >
	{writercp_name}<span lang="ar-eg"> </span>
	<SELECT id=Category3 name=sourceid size="1" dir="rtl"> 
	<option>[ اختر الجهة الاعلامية ]</option>
	{php}
echo list_GATES($sourceid);

{/php} </SELECT></div>
</TD>
    </tr>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="14%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">مصدر المقالة</font></span></TD>
    <TD width="84%">
	<font face="Tahoma"><div class=labz2>
	<INPUT id=name28 size=30  alt=blank    name=new_writer_text value="{$new_writer_text}"></div></font>
</TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="98%" colspan="2">
	<p align="center"><font color="#FF0000"><b>خصائص الخبر الادارية</b></font></TD>
    </TR>
    
    </TBODY></TABLE>

<div id=d1 style="display:block">
    <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">تفعيل التعليقات</font></TD>
    <TD width="84%"><div class=labz2 >
	<font face="Tahoma">
	<input type="radio" value="1" name="new_allow_comment" {if $new_allow_comment!='0'}checked{/if} ></font><font face="Tahoma" size="2"> نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="new_allow_comment" {if $new_allow_comment=='0'}checked{/if} ></font><font face="Tahoma" size="2"> لا<br>
	<span lang="ar-eg">انتهاء التعليق فى </span>
	</font>
	<INPUT id=expire_date_comment size=12  alt=blank type=hidden   value="{$expire_date_comment}"     name=expire_date_comment> 
	<span id="show_comment">{if  !$expire_date_comment}-- غير محدد -- {else}{$expire_date_comment}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}

<script type="text/javascript">
    Calendar.setup({
        inputField     :    "expire_date_comment",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_comment",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

	
	</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">وضع كلمة مرور
	<span lang="ar-eg">للمقالة</span></font></TD>
    <TD width="84%" ><div class=labz2>
	<font face="Tahoma"><input type="radio" value="1" {if $new_password_do=='1'}checked{/if} name="new_password_do"></font><font face="Tahoma" size="2"> نعم
			</font><font face="Tahoma">
			<input type="radio" value="0" name="new_password_do" {php} if (!$new_password_do or $new_password_do=="0"){ echo "checked"; } {/php}></font><font face="Tahoma" size="2"> لا<br>
	<span lang="ar-eg">الغاء كلمة المرور فى </span>
	<INPUT id=expire_date_password size=12  alt=blank type=hidden  value="{$expire_date_password}" name="expire_date_password"    name=expire_date_password> 
	<span id="show_password">{if  !$expire_date_password}-- غير محدد --{else}{$expire_date_password}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e1" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "expire_date_password",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_password",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e1",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

</font></div></TD>
    </TR>

  <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">كلمة المرور</font></TD>
    <TD width="84%" ><div class=labz2>
	<INPUT id=name36 size=30  alt=blank    name=new_password_salt type="password" value="{$new_password_salt}"></div></TD>
    </tr>
	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وقت اضافة 
	المقالة</font></span></TD>
    <TD width="84%" ><div class=labz2>
	<INPUT id=add_date size=22  alt=blank type=hidden value="{$add_date}" name="add_date" >
	<span id="show_date1">{if  !$add_date}-- فى الحال --{else}{$add_date}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e2" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}

<script type="text/javascript">
    Calendar.setup({
        inputField     :    "add_date",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_date1",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e2",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

	
	</div></TD>
    </tr>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وقت نشر 
	المقالة</font></span></TD>
    <TD width="84%" ><div class=labz2>
	<INPUT id=p_date size=22  alt=blank type=hidden value="{$p_date}"    name=p_date>
	<span id="show_date2">{if  !$p_date}-- فى الحال --{else}{$p_date}{/if}</span> <img
src="static/images/img.gif" id="f_trigger_e3" style="cursor: pointer; " title="تغير واختيار التاريخ" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />.</p>
{literal}

<script type="text/javascript">
    Calendar.setup({
        inputField     :    "p_date",     // id of the input field
        ifFormat       :    "%Y-%m-%d %H:%M:%S",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_date2",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e3",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
{/literal}

	
	</div></TD>
    </TR>
    
    </TABLE>
        </div>

    <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">


  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="98%" colspan="2">
	<p align="center"><font color="#FF0000"><b>خصائص محركات البحث (SEO)</b></font></TD>
    </TR>
    
    </TABLE>
    <div id=d2 style="display:block">

        <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">


  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">كلمات مرتبطة بالمقال</font></TD>
    <TD width="84%"><div class=labz2>
	<INPUT id=name31 size=30  alt=blank   emsg='ادخل عنوان الخبر' name=new_metatag value="{$new_metatag}"><br>
	يرجى الفصل بين كل كلمة واخرى بعلامة بترك مسافة مثال (سياسة&nbsp; كرة قدم 
	تاريخ)</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">اسم الرابط <br>
	(لمود الريرايت*)</font></TD>
    <TD width="84%"><div class=labz2>
	<INPUT id=name32 size=30  alt=blank   emsg='ادخل عنوان الخبر' name=new_modre_title value="{$new_modre_title}"><br>
	فى حالة استعمال المود ريرايت يستخدم لوضع اسم وهمى للمقال فى الوصلة الخاصة 
	بالعنوان</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">عنوان الصفحة </font></TD>
    <TD height="28" style="border: 1px solid #F5F5F5"><div class=labz2>
	<fieldset style="border:1px solid #E5E5E5; padding:2px;width:100%; ">
	<legend><span lang="ar-eg">خيارات كتابة عنوان الصفحة</span></legend>
	<table border="0" width="100%" id="table6" >
		<tr>
			<td style="border: 1px solid #F5F5F5">
	<font face="Tahoma">
			<input type="radio" value="1" name="new_pagetitle" {if !$new_pagetitle or $new_pagetitle=="1"}checked{/if}><span lang="ar-eg">
			<font size="2">اسم الموقع </font></span><font size="2">&gt;<span lang="ar-eg">اسم 
			القسم </span>&gt; <span lang="ar-eg">عنوان المقال او الخبر</span></font></font><font face="Tahoma" size="2"> 
			</font></div></td>
		</tr>
		<tr>
			<td style="border: 1px solid #F5F5F5">
	<font face="Tahoma"><input type="radio" value="2" name="new_pagetitle"{if $new_pagetitle=="2"}checked{/if}><span lang="ar-eg">
			</span><font size="2">&nbsp;<span lang="ar-eg">عنوان المقال او الخبر</span></font></font><font face="Tahoma" size="2"> 
			<span lang="ar-eg">فقط</span>
			</font></td>
		</tr>
		<tr>
			<td style="border: 1px solid #F5F5F5">
	<font face="Tahoma"><input type="radio" value="3" name="new_pagetitle"{if $new_pagetitle=="3"}checked{/if}><span lang="ar-eg">
			</span><font size="2">&nbsp;<span lang="ar-eg">عنوان المقال او الخبر</span></font></font><font face="Tahoma" size="2"> 
			<span lang="ar-eg">, + </span>كلمات مرتبطة بالمقال
			</font></td>
		</tr>
	</table>
	</fieldset></TD>
    </TR>
</TABLE>
</div>
<TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TBODY>
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="100%" colspan="2">
	<p align="center"><span lang="ar-eg"><font color="#FF0000"><b>تفاصيل الخبر</b></font></span></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">صورة المقال</font></span></TD>
    <TD width="84%"><div class=labz2>
	<table border="0" width="100%" id="table7">
		<tr>
			<td width="10">
			<input type="radio" name="aboutpic" value="1" checked></td>
			<td width="108"><font size="2"><span lang="ar-eg">بدون صورة</span></font></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3" bgcolor="#E5E5E5">
			</td>
		</tr>
		<tr>
			<td width="10"><input type="radio" name="aboutpic" value="2"></td>
			<td width="108"><span lang="ar-eg"><font size="2">تحميل من الجهاز</font></span></td>
			<td>
	<input type="file" name="file" size="20"></td>
		</tr>
		</table>
	</div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">وصف الصورة</font></span></TD>
    <TD width="84%"><div class=labz2><font face="Tahoma">
	<textarea rows="1" alt=blank   class=nobig name="new_pic_text" cols="42">{$new_pic_text}
</textarea></font><font face="Tahoma" size="2"><br>
	<span lang="ar-eg">يترك فارغا فى حالة عدم الرغبة فى وضع اى نص اسفل الصورة</span></font></div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<span lang="ar-eg"><font face="Tahoma" size="2" color="#000080">ملخص</font></span><font face="Tahoma" size="2" color="#000080">
	<span lang="ar-eg">المقاله</span></font></TD>
    <TD width="84%"><div class=labz2><font face="Tahoma">
	<textarea rows="3" alt=blank  class=nobig  emsg='ادخل مقدمة الخبر' onkeydown=limitText(this.form.subject1,this.form.countdown,347); onkeyup=limitText(this.form.subject1,this.form.countdown,347); name="subject1" cols="42">{$subject1}
</textarea></font><font face="Tahoma" size="2"><br>
&nbsp;</font>(أقصى عدد للحروف: 347 حرف)<BR>عدد الأحرف المتبقية: 
      <INPUT class=text_box readOnly value=347 name=countdown size="5"></div></TD>
    </TR>
    </TBODY>
    </TABLE>
            <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

    
  <TR>
    <TD bgcolor="#FFFFFF" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" dir="rtl">
<div align="center">
<!-- TinyMCE -->
<script type="text/javascript" src="lib/components_editor/tiny_mce/tiny_mce.js"></script>
{literal}

<script type="text/javascript">

function toggleEditor(id) {
	if (!tinyMCE.get(id))
		tinyMCE.execCommand('mceAddControl', false, id);
	else
		tinyMCE.execCommand('mceRemoveControl', false, id);
}

function conv(){
if(document.REPLIER.pain.checked==true){
}else
{
toggleEditor('Post');
}
}


	tinyMCE.init({
		// General options
		mode : "exact",
		elements : "Post",
		language : "ar",
		theme : "advanced",
		skin : "o2k7",
    	directionality : "rtl",
    	width : "500px",
       convert_urls : false,
		plugins : "autosave,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager",
   		imagemanager_insert_template : '<DIV style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px;  PADDING-BOTTOM: 2px; PADDING-TOP: 2px; TEXT-ALIGN: center"><DIV style="WIDTH: {$custom.width}px; height:{$custom.height}"><IMG src="{$url}" border="1" ></DIV><DIV class=photo_desc style="WIDTH: {$custom.width}px">عنوان اسفل الصورة</DIV></DIV>',


		
		
		// Theme options
		theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,insertimage,cleanup,help,code,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,justifyleft,justifycenter,justifyright,justifyfull,|,insertdate,inserttime,preview",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		


		// Example content CSS (should be your site CSS)
		content_css : "{/literal}{$smarty_object->url_base()}index.php?act=css&id={$templateid}{literal}&geturl=1&bogus="+new Date().getTime(),

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		},
	template_templates : [
		{
			title : "Editor Details",
			src : "editor_details.htm",
			description : "Adds Editor Name and Staff ID"
		},
		{
			title : "Timestamp",
			src : "time.htm",
			description : "Adds an editing timestamp."
		}
	]

		
	
    
	});
	function Footer() {
		var num = prompt("ادخل رقم الهامش", "");
		var txt = prompt("ادخل نص الهامش", "");
		if (num) {
				if (txt) {
					tinyMCE.execCommand('mceInsertContent',true,"<sup><a name='t" + num + "' href='#b" + num + "'>[" + num + "]</a></sup>");
					document.REPLIER.note.value = document.REPLIER.note.value+"<a name='b" + num + "' href='#t" + num + "'>[" + num + "]</a> " + txt +"<br>";
				}
		}
		}
		
		function Quote() {
		var html = prompt("ادخل نص الإقتباس هنا", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class='quote_cont' style='text-align: center;'><div class='quote_up'>&nbsp;</div><div class='quote_author' style='text-align: right;'>" + html + "</div><div class='quote_down'>&nbsp;</div></div>");
		}
	}
	
		function quran() {
		var html = prompt("ادخل النص القرأنى", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<font color=#990033 face='traditional arabic' size=4> &#64831; " + html + " &#64830;   </font>");
		}
	}
	
	function letter() {
		var html = prompt("ادخل النص الاول", "");
		var html2 = prompt("ادخل النص الثانى", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<fieldset><legend> " + html + "</legend><br>" + html2 + "</fieldset>");
		}
	}
	

	function audio() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=audio min150px><spane>[audio]"+ html+"[/audio]</spane><br>" + html2 + "</div>");
		}
	}
	
	
		function video() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=video min150px><spane>[video]"+ html+"[/video]</spane><br>" + html2 + "</div>");
		}
	}
	
			function videoflash() {
		var html = prompt("ادخل رابظ المقطغ", "");
		var html2 = prompt("ادخل النص اسفل المقظع", "");
		if (html) {
				tinyMCE.execCommand('mceInsertContent',true,"<div class=videoflash min150px><spane>[videoflash]"+ html+"[/videoflash]</spane><br>" + html2 + "</div>");
		}
	}

	
		function tablz() {

html='<table style="width: 95%;" border="0" cellspacing="1" cellpadding="3">';
html +='<tbody>';
html +='<tr>';
html +='<th>عمود1</th> <th>عمود 2<br /></th> <th>عمود 3<br /></th> <th>عمود 4 </th>';
html +='</tr>';
html +='<tr>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='</tr>';
html +='<tr>';
html +='<td class="row0b">تجربة</td>';
html +='<td class="row0">تجربة</td>';
html +='<td class="row0b">تجربة</td>';
html +='<td class="row0">تجربة</td>';
html +='</tr>';
html +='<tr>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='<td class="row1b">تجربة</td>';
html +='<td class="row1">تجربة</td>';
html +='</tr>';
html +='</tbody>';
html +='</table>';
	tinyMCE.execCommand('mceInsertContent',true,html);
		}

	
</script>
{/literal}

<!-- /TinyMCE -->

	<font color="#FF0000"><b>تفاصيل الخبر</b></font><br>

	<textarea rows="10"id="Post" name="Post" style="width:100%"  cols="10" dir="rtl">{$Post}
</textarea><br>
<span lang="ar-eg"><a href="javascript:Footer();">اضفة هامش</a>
<a href="javascript:Quote();">اضافة اقتباس</a></span>
<a href="javascript:quran();">
<span lang="ar-eg">اضافة نص قرانى</span></a>
<a href="javascript:letter();">
<span lang="ar-eg">اضافة خطاب</span></a> 
<span lang="ar-eg"><a href="javascript:tablz();">اضافة جدول تجريبى</a></span> <span lang="ar-eg">اضافة ترويسة</span>&nbsp; <span lang="ar-eg"><a href="javascript:audio();">اضافة مقظع صوتى</a></span>&nbsp; <span lang="ar-eg"><a href="javascript:video();">اضافة مقظع فيديو</a></span></TD>
    </TR>
        
   
    
  
    </TABLE>
    
    <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">
  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">الهوامش</font></TD>
    <TD width="84%"><div class=labz2><font face="Tahoma">
	<textarea rows="3" alt=blank  class=nobig  name="note" cols="42" style="height: 145; width: 356">{$note}
</textarea></font></div></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">مقالات ذات صلة</font></TD>
    <TD width="84%">
		<font face="Tahoma"><input type="text" name="listartc" size="41" value="{$listartc}"></font></TD>
    </TR>

  <TR>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="98%" colspan="2">
	<p align="center"><font color="#FF0000"><b>خصائص</b></font><span lang="ar-eg"><font color="#FF0000"><b> 
	مرفقات الخبر</b></font></span></TD>
    </TR>
    
    </TABLE>
    <div id=d3 style="display:block">
    
        <TABLE class=form cellSpacing=0 cellPadding=4 width="100%" id="table3">

          
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%" rowspan="2">
	<font face="Tahoma" size="2" color="#000080">معرض الصور الرئيسى</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma">
		<input type="text" name="galleryid" size="1" id="gallery_input1" value="{$galleryid}"></font><font face="Tahoma" size="2"> 
		</font>
		<font size="1" face="Tahoma">
		<a href="javascript:insert_page('index.php?act=writers_cp&action=popup_gal1');">
		<img border="0" src="static/images/view.gif" width="17" height="17"></a></font><font face="Tahoma" size="2">عرض ضمن المقال </font><font face="Tahoma">
		<input type="radio" value="1" name="galleryidshow" {if $galleryidshow=="1"}checked{/if}></font><font face="Tahoma" size="2">نعم
		</font><font face="Tahoma">
		<input type="radio" name="galleryidshow" value="0" {if !$galleryidshow or $galleryidshow=="0"}checked{/if}></font><font face="Tahoma" size="2">لا</font></div></TD>
    </tr>
    
    
      <tr>
    <TD width="84%">    	<div class=labz >
<font face="Tahoma" size="2">عدد اعمدة العرض </font>
		<select size="1" name="galleryid_col">
		<option value="2" {if $galleryid_col==2}selected{/if}>2</option>
		<option value="3" {if $galleryid_col==3}selected{/if}> 3</option>
		</select><font face="Tahoma" size="2"> عدد الصور المعروضة </font>
		<font face="Tahoma">
<input type="text" name="galleryid_num" size="3" value="{if !$galleryid_num}6{else}{$galleryid_num}{/if}"></font></div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%" height="30">
	<font face="Tahoma" size="2" color="#000080">ارفاق استبيان رئيسى</font></TD>
    <TD width="84%" height="30"><div class=labz2>
		<font face="Tahoma">
		<input type="text" name="poll_id" size="1" id="poll_input" value="{$poll_id}"></font><font face="Tahoma" size="2">&nbsp;</font><font size="1" face="Tahoma"><a href="javascript:insert_page('index.php?act=writers_cp&action=popup_poll');"><img border="0" src="static/images/view.gif" width="17" height="17" alt="اضغط لاستعراض الاستبيانات"></a></font><font face="Tahoma" size="2">عرض الاستبيان ضمن المقال </font><font face="Tahoma">
		<input type="radio" value="1" name="poll_idshow" {php} if ($poll_idshow=="1"){ echo "checked"; } {/php}></font><font face="Tahoma" size="2">نعم
		</font><font face="Tahoma">
		<input type="radio" name="poll_idshow" value="0" {php} if (!$poll_idshow or $poll_idshow=="0"){ echo "checked"; } {/php}></font><font face="Tahoma" size="2">لا</font>
		</div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">ملفات عامة</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma">
		<input type="text" name="listfiles" size="41" id="files_input" value="{$listfiles}"></font><font size="1" face="Tahoma"><a title="اضغط هنا لاستعراض قائمة المعارض" href="javascript:insert_page('index.php?act=writers_cp&action=popup_files');"><img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    </tr>
    
    
  	<tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">صوتيات</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma" size="1">مجلدات: <font size="1">
		<input type="text" name="v_folders" size="17" value="{$v_folders}" id="audio_input"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_audio');"><img border="0" src="static/images/view.gif" width="17" height="17"></a><br>
		مقاطع:&nbsp;&nbsp; <font size="1">
		<input type="text" name="v_files" size="17" value="{$v_files}" id="audio_input1"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_audio1');"><img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    	</tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">مرئيات</font></TD>
    <TD width="84%"><div class=labz2>
		<font face="Tahoma" size="1">مجلدات: <font size="1">
		<input type="text" name="book_folders" size="17" value="{$book_folders}" id="video_input"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_video');"><img border="0" src="static/images/view.gif" width="17" height="17"></a><br>
		مقاطع <span lang="ar-eg">&nbsp;</span>&nbsp; <font size="1">
		<input type="text" name="book_files" size="17" value="{$book_files}"></font><a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_gal');"><img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	<font face="Tahoma" size="2" color="#000080">معارض <span lang="ar-eg">الصور</span></font></TD>
    <TD width="84%"><div class=labz2>
		<font size="1" face="Tahoma">
		<input type="text" name="listgallery" size="41" id="gallery_input" value="{$listgallery}">
		<a title="اضغط هنا لاستعراض قائمة المعارض"  href="javascript:insert_page('index.php?act=writers_cp&action=popup_gal');">
		<img border="0" src="static/images/view.gif" width="17" height="17"></a></font></div></TD>
    </tr>
    
    
      <tr>
    <TD bgcolor="#F5F5F5" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border: 1px solid #FFFFFF" width="25%">
	&nbsp;</TD>
    <TD width="84%">
	<INPUT type=submit value=اضافة name=Submit3 id="submit0">
		<INPUT type=reset value="استعادة الحقول" id="cancel0" name=submit4 ></TD>
    </tr>
    
    
  </TBODY></TABLE>
        <p>&nbsp;</div>
		</div></td>
	</tr>
	</table>
<input type="hidden" name="prtoz" value="2">
</FORM><!-- CVS ID: $Id: end.tpl.php,v 1.1 2004/12/03 23:21:50 david Exp $ -->












{/if}
	
{/if}