<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <form name="form2" method="post" action="?action=quick_search">
  <tr>
    <td colspan="2" class="tit1"><?echo $lang['str.info1']?></td>
  </tr>
  <tr>
    <td class="forumrow" style="text-align:center;" width="15%"><input type="submit" name="Submit" value="<? echo $lang['str.info2']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;"></td>
    <td width="85%" class="forumrow"><?echo $lang['str.info3']?></td>
  </tr>
  <tr>
    <td class="forumrow1" height="30"><?echo $lang['str.info4']?></td>
    <td class="forumrow1">
	<select name="q_search" onchange="javascript:submit()">
	<option value="0"><?=$lang['sys.info14']?></option>
	<option value="1" <?if($q_search==1) echo "selected"?>><?=$lang['sys.info15']?></option>
	<option value="2" <?if($q_search==2) echo "selected"?>><?=$lang['sys.info16']?></option>
	<option value="3" <?if($q_search==3) echo "selected"?>><?=$lang['sys.info17']?></option>
	<option value="4"<?if($q_search==4) echo "selected"?>><?=$lang['sys.info18']?></option>
	<option value="5" <?if($q_search==5) echo "selected"?>><?=$lang['sys.info19']?></option>
	<option value="6" <?if($q_search==6) echo "selected"?>><?=$lang['sys.info20']?></option> 
	</select>
	</td>
  </tr>
   </form>
</table>
<?
	if($action=="quick_search" or $action=="highgrade_search"){//ËÑË÷½á¹û;
?>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <form name="form1" method="post" action="">
	<input type="hidden" name="doaction" value="">
  <tr>
    <td colspan="8" class="tit1"><?echo $lang['str.info26']?></td>
  </tr>
  <tr class="forumrow1">
    <td style="text-align:center;"><?echo $lang['str.info27']?></td>
    <td style="text-align:center;"><?echo $lang['str.info28']?></td>
    <td style="text-align:center;"><?echo $lang['str.info29']?></td>
    <td style="text-align:center;"><?echo $lang['str.info30']?></td>
    <td style="text-align:center;"><?echo $lang['str.info31']?></td>
    <td style="text-align:center;"><?echo $lang['str.info32']?></td>
    <td style="text-align:center;"><?echo $lang['str.info33']?></td>
    <td style="text-align:center;"><?echo $lang['str.info34']?></td>
  </tr>
  <?
	if(!empty($adjunct_list)){
		if(is_array($adjunct_list)){
			foreach($adjunct_list as $adjunct_arr){
				$f_filetype_sign=str_replace('_','',$adjunct_arr['f_filetype']);
  ?>
  <tr class="forumrow">
    <td style="text-align:center;" height="22">
	<img src="../images/filetype/<? echo $f_filetype_sign?>.gif" border=0>
</td>
    <td style="text-align:center;" height="22"><?echo $adjunct_arr['f_username']?></td>
    <td style="text-align:center;" height="22"><a href="<?echo '../'.$uploaddir.'/'.$adjunct_arr['f_filename']?>" target="_blank"><?echo $adjunct_arr['f_filename']?></a></td>
    <td style="text-align:center;" height="22"><?echo $adjunct_arr['boardtype']?></td>
    <td style="text-align:center;" height="22"><?echo $adjunct_arr['f_filesize']?></td>
    <td style="text-align:center;" height="22"><?echo gmdate('Y-m-d H:i:s', $adjunct_arr['f_addtime']+getUserTimeZoneOffset())."/".$adjunct_arr['f_viewnum']."/".$adjunct_arr['f_downnum']?></td>
    <td style="text-align:center;" height="22"><?echo $adjunct_arr['f_type']?></td>
    <td style="text-align:center;" height="22">
	<input type="checkbox" name="delid[]" value="<? echo $adjunct_arr['f_id']?>">
</td>
  </tr>
  <?
			$offset++;
			}
		}
	}
  ?>
</table>
<BR>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td colspan="2" class="tit1"><?echo $lang['str.info35']?></td>
    </tr>
  <tr>
    <td width="70%" class="forumrow"  style="text-align:left;">&nbsp;&nbsp;<?echo $lang['str.info36']?></td>
    <td class="forumrow" width="30%"><input type="submit" onclick="this.form.doaction.value='del_selfile'" name="Submit" value="<?echo $lang['str.info40']?>"></td>
  </tr>
  <tr>
    <td width="70%" class="forumrow" style="text-align:left;">&nbsp;&nbsp;<?echo $lang['str.info37']?><br><?echo $lang['str.info38']?></td>
    <td width="30%" class="forumrow"  align="left">
	  <input type="radio" name="clearfile_type" value="1" checked>&nbsp;&nbsp;<?echo $lang['str.info42']?>
      <input type="radio" name="radiobutton" value="2"><?echo $lang['str.info43']?>&nbsp;&nbsp;
	  <input type="submit" name="Submit" onclick="this.form.doaction.value='clr_currec'" value="<?echo $lang['str.info41']?>"></td>
  </tr>
  <tr>
    <td width="70%" class="forumrow"  style="text-align:left;">&nbsp;&nbsp;<?echo $lang['str.info39']?></td>
    <td width="30%" align="left" class="forumrow" >
	<input type="submit" name="Submit" onclick="this.form.doaction.value='clr_allrec'" value="<?echo $lang['str.info6']?>"></td>
  </tr>
   </form>
  <form name="form1" method="post" action="?action=norecord">
  <tr>
    <td colspan="2" class="tit1"><?echo $lang['str.info44']?></td>
    </tr>
  <tr>
    <td class="forumrow" colspan="2"><?echo $lang['str.info45'].$lang['str.info46'].'../'.$uploaddir.'/forum/'.$lang['str.info47']?></td>
  </tr>
  <tr>
    <td width="70%" class="forumrow">&nbsp;&nbsp;<?echo $lang['str.info48']?>
	<input type="text" name="upfile_dir" value="<?echo '../'.$uploaddir.'/forum/'?>">
      <select name="upfiledir_type" onchange="Changepath(this.options[this.selectedIndex].value)">
		<?
		list($year, $month) = explode('-', gmdate('Y-m', time()+getUserTimeZoneOffset()));
		for($i=1;$i<$month+1;$i++){
			if(strlen($i)==2){
				echo "<option value=".$year."-".$i.">".$year."-".$i."</option>";				
			}
			else{
				echo "<option value=".$year."-0".$i.">".$year."-0".$i."</option>";
			}
		}
		?>
      </select>
	  </td>
    <td class="forumrow"><input type="submit" name="Submit" value="<?echo $lang['str.info49']?>"></td>
  </tr>
  <tr>
    <td width="70%" class="forumrow">&nbsp;</td>
    <td class="forumrow">&nbsp;</td>
  </tr>
 </form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function Changepath(addTitle) {
document.getElementById("upfile_dir").value=addTitle; 
document.getElementById("upfile_dir").focus(); 
return; }
//-->
</SCRIPT>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
    <tr>
	<td><?
	if($total>0)
		{
			$pa = new page();
			$pa->setall($page,$total,$page_size,$lang['swap.info14'],$lang['template.info'],'100%','center','biz');
			$pa->printpage(null,1);
		}
	?></td>
  </tr>
</table>
<?}else{?>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
 <form name="form2" method="post" action="?action=highgrade_search">
  <tr>
    <td colspan="2" class="tit1"><?echo $lang['str.info5']?></td>
    </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info2']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow"><?echo $lang['str.info7']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info8']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	<select name="bordertype" id="bordertype">
	<?php
	echo boardjumplist($GLOBALS['bordertype'],$lang['sys.info21']);
	?>
    </select>
	</td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info9']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	  <input type="text" size="50" name="filedown_num">
      <input type="radio" name="filedown_num_type" value="1"><?echo $lang['str.info10']?>
      <input type="radio" name="filedown_num_type" value="2"><?echo $lang['str.info11']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info12']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	  <input type="text" size="50" name="adjunctview_num">
      <input type="radio" name="adjunctview_num_type" value="1"><?echo $lang['str.info10']?>
     <input type="radio" name="adjunctview_num_type" value="2"> <?echo $lang['str.info11']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info13']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	  <input type="text" size="50" name="update_num">
     <input type="radio" name="update_num_type" value="1"> <?echo $lang['str.info10']?>
      <input type="radio" name="update_num_type" value="2"><?echo $lang['str.info11']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info14']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	<input type="text" size="50" name="adjunct_write">
	<input type="checkbox" name="adjunct_write_type" value="Y"> <?echo $lang['str.info16']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info15']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	<input type="text" size="50" name="adjunct_explain"> 
	<input type="checkbox" name="adjunct_explain_type" value="Y"> <?echo $lang['str.info18']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info19']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	<input type="text" size="50" name="adjunct_size"><?echo $lang['str.info20']?>
      <input type="radio" name="adjunct_size_type" value="1"><?echo $lang['str.info21']?>
     <input type="radio" name="adjunct_size_type" value="2"> <?echo $lang['str.info22']?></td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info23']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	<select name="adjunct_sort" id="adjunct_sort">
	<option value="all"><?= $lang['sys.info22']?></option>
	<option value="1"><?= $lang['sys.info23']?></option>
	<option value="2"><?= $lang['sys.info24']?></option>
	<option value="3"><?= $lang['sys.info25']?></option>
	<option value="4"><?= $lang['sys.info26']?></option>
	<option value="0"><?= $lang['sys.info27']?></option>
    </select>
	</td>
  </tr>
  <tr>
    <td width="20%" height="30" class="forumrow"><?echo $lang['str.info24']?></td>
    <td width="80%" height="30" style="text-align:left;" class="forumrow">
	<select name="adjunct_type" id="adjunct_type">
	<option value=""><?= $lang['sys.info28']?></option>
	<option value="gif">gif</option><option value="jpg">jpg</option>
	<option value="bmp">bmp</option><option value="zip">zip</option>
	<option value="rar">rar</option><option value="exe">exe</option>
	<option value="swf">swf</option><option value="swi">swi</option>
	<option value="mid">mid</option><option value="mp3">mp3</option>
	<option value="rm">rm</option><option value="txt">txt</option>
	<option value="doc">doc</option><option value="exl">exl</option>
    </select></td>
  </tr>
  <tr>
    <td class="forumrow1" style="text-align:center;" colspan="2"><input type="submit" class="button" name="Submit" value="<?echo $lang['str.info50']?>"></td>
    </tr>
  </form>
</table>
<?}?>
