<div class="nav_top"> » <a href="{motamizseo url="index.php?act=homepage"}">الرئيسية</a>  »  <a href="{motamizseo url="index.php?act=Search"}">البحث</a></div>
<form onsubmit="return validate_form(this);" class="font_normal" name="search_form" action="{motamizseo url="index.php?act=Search_result"}" method="post">
<input type="hidden" value="yes" name="do_search">


<div align="right">
<table align="right" dir="rtl">
{if $msg==1}
	<tr>
		<td class="font_normal">لا يوجد نتائج لبحثك</td>
	</tr>
	{elseif $msg==2}
	<tr>
		<td class="font_normal">يجب ان تكون كلمة البحث اكثر من {$configsearch.118} حروف</td>
	</tr>
	{elseif $msg==3}
	<tr>
		<td class="font_normal">لقد قامت ادارة الموقع بتحديد عملية البحث بمرة كل  {$configsearch.119} ثانية</td>
	</tr>
	{/if}
	

		<tr>
		<td class="font_normal">ابحث عن: <input type="text" name="keyword" value="" class="text_input"> <input type="image" src="{$DIMAGEPATH}/images/search.gif" name="I1" /></td>
	</tr>
</table>
</div>


<script src="data/calendar.js" type="text/javascript"></script>

<script src="data/calendar-en.js" type="text/javascript"></script>

<script src="data/calendar-setup.js" type="text/javascript"></script>

<div style="clear: both"></div>
<fieldset dir="rtl"  >
    <legend align="right">خصائص البحث</legend>
   الترتيب:
    <select size="1" name="ordertype">
        <option value="1">من الاحدث الى الاقدم</option>
        <option value="2">من الاقدم الى الاحدث</option>
    </select><br>
    <br>
    النتائج فى كل صفحة
    <select size="1" name="maxn">
        <option value="5">5</option>
        <option value="10" selected>10</option>
        <option value="20">20</option>
        <option value="30">30</option>
        <option value="50">50</option>
        <option value="100">100</option>
        <option value="200">200</option>
    </select><br>
</fieldset>
<fieldset dir="rtl">
    <legend align="right">البحث في:</legend>
    <input id="sf_title" type="checkbox" disabled checked value="title" name="search_field_title"><label
        for="sf_title">العنوان</label><br>
    <input id="sf_article" type="checkbox" checked value="1" name="search_field_article"><label
        for="sf_article">النص</label><br>
    <input id="sf_writer" type="checkbox" value="1" name="search_field_writer"><label
        for="sf_writer">الكاتب:</label>
    <select size="1" name="wid">
        {section name=id loop=$searchby_userid}
        <option value="{$searchby_userid[id]}">{$searchby_username[id]}</option>
        {/section}
    </select>
</fieldset>
<p>
    &nbsp;</p>
<fieldset dir="rtl" style="height: 111px">
    <legend align="right">بحث بدلالة التاريخ:</legend>
    <input id="sd_all" type="radio" checked value="all" name="search_date"><label for="sd_all">كل
        الأيام</label><br>
    <input id="sd_period0" type="radio" value="period1" name="search_date">اليوم
    <br>
    <input id="sd_period" type="radio" value="period" name="search_date"><label for="sd_period">من:
        <input class="text_input" id="date_from" dir="ltr" style="text-align: center" readonly
            size="10" name="search_date_from">
        <img id="trigger_1" style="cursor: hand" src="{$DIMAGEPATH}/images/cal.gif"  align="absMiddle" border="0"><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;إلى:
        <input class="text_input" id="date_to" dir="ltr" style="text-align: center" readonly
            size="10" name="search_date_to">
        <img id="trigger_2" style="cursor: hand" src="{$DIMAGEPATH}/images/cal.gif"    align="absMiddle" border="0">
        <script type="text/javascript">
  Calendar.setup( {ldelim}
 
        inputField     :    "date_from",      // id of the input field
        ifFormat       :    "%Y-%m-%d",       // format of the input field
        showsTime      :    false,            // will display a time selector
        button         :    "trigger_1",   // trigger for the calendar (button ID)
        singleClick    :    true,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)

    {rdelim});
    Calendar.setup({ldelim}

        inputField     :    "date_to",      // id of the input field
        ifFormat       :    "%Y-%m-%d",       // format of the input field
        showsTime      :    false,            // will display a time selector
        button         :    "trigger_2",   // trigger for the calendar (button ID)
        singleClick    :    true,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)

    {rdelim});
        </script></label></fieldset>
<fieldset dir="rtl" style="height: 111px">
    <legend>البحث بدلالة القسم:</legend>
    <input id="ss_all" type="radio" checked name="search_sec" value=""><label for="ss_all">جميع
        المصادر</label><br>
    <input id="ss_specific" type="radio" value="specific" name="search_sec"><label for="ss_specific">هذه
        المصادر</label><br>
    <select size="3" name="selected_sec">
   {$smarty_object->get_sections()}
    </select>
</fieldset>
<!-- Content End -->
