<div align="center">{lang.results}<br />
</div>
  <table dir="rtl" width="585" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="18" height="15" background="images/content_right.jpg"><img src="style/{masterstyle}/images/content_head_right.jpg" width="18" height="15" /></td>
      <td width="551" height="15" background="style/{masterstyle}/images/content_head.jpg"></td>
      <td width="16" height="15" background="images/content_left.jpg"><img src="style/{masterstyle}/images/content_head_left.jpg" width="16" height="15" /></td>
    </tr>
    <tr>
      <td width="18" height="41" background="style/{masterstyle}/images/content_right.jpg"></td>
      <td align="center" bgcolor="#F9F9F9"><div dir="{LANGDIR}"><div id="searchform">
          <form action="index.php?action=search" method="post" name="search" id="search" onsubmit="return check_search();">
            <img src="style/pink/images/find.png" width="16" height="16" /> {lang.typesearchword} :
            <input name="searchword" type="text" title="{lang.typesearchword}" value="{SEARCH_WORD}" />
            <div class="errorSpeedy" id="errorsearch" style="display:none;">اكتب كلمة البحث</div>
            <label>
            <input type="submit" name="Submit" title="{lang.startsearch}" value="{lang.startsearch}" />
            <br />
            <input type="radio" name="searchwhere" value="0" />
              {lang.onlyfiles} </label>
            <label>
            <input type="radio" name="searchwhere" value="1" />
              {lang.onlyimages}</label>
            <label>
            <input name="searchwhere" type="radio" value="2" checked="checked" />
              {lang.inall}</label>
          </form>
      </div>
          <div id="loading" style="display:none;">جاري البحث <img src="style/{masterstyle}/images/loading.gif" /></div>
          <br />
          {lang.allresults} "<b>{SEARCH_WORD}</b>"<br /></div></td>
      <td width="16" background="style/{masterstyle}/images/content_left.jpg"></td>
    </tr>
    <tr>
      <td width="18" height="19" background="images/content_right.jpg"><img src="style/{masterstyle}/images/content_down_right.jpg" width="18" height="19" /></td>
      <td height="19" background="style/{masterstyle}/images/content_down.jpg"></td>
      <td width="16" height="19" background="images/content_left.jpg"><img src="style/{masterstyle}/images/content_down_left.jpg" width="16" height="19" /></td>
    </tr>
  </table>
  <br />
<LOOP NAME="{file}" SQL="{QS}" LIMIT="10">  <table dir="rtl" width="585" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="18" height="15" background="images/content_right.jpg"><img src="style/{masterstyle}/images/content_head_right.jpg" width="18" height="15" /></td>
    <td width="551" height="15" background="style/{masterstyle}/images/content_head.jpg"></td>
    <td width="16" height="15" background="images/content_left.jpg"><img src="style/{masterstyle}/images/content_head_left.jpg" width="16" height="15" /></td>
  </tr>
  <tr>
    <td width="18" height="41" background="style/{masterstyle}/images/content_right.jpg"></td>
    <td align="center" bgcolor="#F9F9F9"><div dir="{LANGDIR}"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      
        <tr>
          <td width="20%" height="86" align="center" dir="rtl"><IF NAME="{file.type} eq image"><a href="uploaded/image/{file.newname}" target="_blank"><img src="uploaded/image/thumb/{file.newname}" width="100" height="100" border="0" /></a>
                  <ELSE>
                  <a href="index.php?action=file&amp;id={file.newname}" target="_blank"><img src="style/types/{{extension}}.png" border="0" title="{lang.type} [{file.extension}]" /></a><br />
            (<a href="index.php?action=file&amp;id={file.newname}">{lang.download}</a>)</IF></td>
          <td width="80%" align="justify" >{lang.filename} :
            <b><a href="<IF NAME="{{type}} eq file">index.php?action=file&fid={{newname}}<ELSE>uploaded/image/{{newname}}</IF>"><FUN NAME="substr" VARS="{file.name},0,40"></a></b>
            ,  {lang.type} [<b>{file.extension}</b>] <br />
            <IF NAME="{file.type} eq file">{lang.downloads} : <b>{file.visitors}</b> <br />
            </IF>
            {lang.uploaddate} :
            {lang.indate} <b>
            <FUN NAME="timeAgo" VARS="{file.time}"></b>
            {lang.uploadby} [
            <b><IF NAME="{file.uploadedby}"><FUN NAME="file_user" VARS="{file.uploadedby},name,{db.prefix}">
              <ELSE>
              {lang.guestupload}</IF></b>
            ]<br />
            <IF NAME="{file.title}">(
            <FUN NAME="str_replace" VARS="{SEARCH_WORD},{REP_WORD},{file.title}">
              )</IF></td>
        </tr>
      
    </table></div></td>
    <td width="16" background="style/{masterstyle}/images/content_left.jpg"></td>
  </tr>
  <tr>
    <td width="18" height="19" background="images/content_right.jpg"><img src="style/{masterstyle}/images/content_down_right.jpg" width="18" height="19" /></td>
    <td height="19" background="style/{masterstyle}/images/content_down.jpg"></td>
    <td width="16" height="19" background="images/content_left.jpg"><img src="style/{masterstyle}/images/content_down_left.jpg" width="16" height="19" /></td>
  </tr>
</table></LOOP>
<br />
    <br />
    <br>
