<!--
<?php
$listdb || $style_list="none;";
print <<<EOT
-->
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+'window.location.href=?mid='+this.options[this.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}
 
function ck_searchpage(){
	form=document.form_searchpage; 
	if(form.fid.value=='0'){
		//alert("请选择一个栏目!!");
		//return false;		
	}
	if(form.keyword.value==''){
		alert("关键字不能为空!!");
		return false;		
	}
	
}
//-->
</SCRIPT>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td width="100%" height="393" valign="top" class="Main"> 
       <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" id="viewarticle">
        <tr> 
          <td class="head">
            <h3 class="L"></h3>
            <span class="TAG"><a >搜索</a></span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle">  
            <table width="99%" border="0" cellspacing="1" cellpadding="3" id="bigtable">
              <form name="form_searchpage" method="post" action="" onsubmit="return ck_searchpage();">
                <tr align="center"> 
                  <td colspan="2">高级搜索</td>
                </tr>
                
                <tr> 
                  <td width="21%">关键字:</td>
                  <td width="79%"> 
                    <input type="text" name="keyword" value="$keyword">
                  </td>
                </tr>
                <tr> 
                  <td width="21%" height="23">搜索类型:</td>
                  <td width="79%" height="23"> 
                    <input type="radio" name="type" value="title" $typedb[title]>
                    姓名 
                    <input type="radio" name="type" value="username" $typedb[username] >
                    帐号
                    <!---->
                  </td>
                </tr>
                
                <tr>
                  <td>性别</td>
                  <td><select name='postdb[sex]' id='atc_sex'><option value=''>不限</option><option value='1' {$rsdb[sex]['1']}>男</option><option value='2' {$rsdb[sex]['2']}>女</option></select>  </td>
                </tr>
                
                <tr>
                  <td>工作年限</td>
                  <td><select name='postdb[workyear]' id='atc_workyear'><option value=''>不限</option><option value='0' {$rsdb[workyear]['0']}>应届毕业生</option><option value='1' {$rsdb[workyear]['1']}>一年</option><option value='2' {$rsdb[workyear]['2']}>两年</option><option value='3' {$rsdb[workyear]['3']}>三年以上</option></select>  </td>
                </tr>
                <!---->
                <tr> 
                  <td width="21%">&nbsp;</td>
                  <td width="79%"> 
                    <input type="button" name="Submit2" value="重新搜索" onclick="window.location.href='?mid=$mid'">
                    　　 
                    <input type="submit" name="Submit" value="提交">
                    <input type="hidden" name="mid" value="$mid">
                    <input type="hidden" name="action" value="search">
                  </td>
                </tr>
              </form>
            </table>
            <br>
            <table width="99%" border="0" cellspacing="1" cellpadding="3" id="bigtable" style="display:$style_list;">
              <tr align="center" bgcolor="#F0F0F0"> 
                <td width="5%">ID</td>
                
				 <td>姓名</td> <td>性别</td> <td>年龄</td> <td>工作年限</td><!---->
                <td width="6%">会员</td>
                
               
                <td width="13%">日期</td>
				 <td width="6%">查看</td>
              </tr>
              <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
              <tr> 
                <td   align="center" style="border-bottom:1px dotted #ccc;">$rs[id]</td>
               
				 <td align="center" style="border-bottom:1px dotted #ccc;">{$rs[truename]} </td> <td align="center" style="border-bottom:1px dotted #ccc;">{$rs[sex]} </td> <td align="center" style="border-bottom:1px dotted #ccc;">{$rs[age]} 岁</td> <td align="center" style="border-bottom:1px dotted #ccc;">{$rs[workyear]} </td><!---->
                <td   align="center" style="border-bottom:1px dotted #ccc;"><a href="joinshow.php?id=$rs[id]" target="_blank">$rs[username]</a></td>
                 
               
                <td   align="center" style="border-bottom:1px dotted #ccc;">$rs[posttime]</td>
				<td   align="center" style="border-bottom:1px dotted #ccc;"><a href="joinshow.php?id=$rs[id]" target="_blank">查看</a></td>
              </tr>
              <!--
EOT;
}
print <<<EOT
-->
            </table>
<!--
EOT;
if($action=="search"&&!$listdb){
print <<<EOT
-->
<div id="searchNO">
很抱歉,没有找到你要查询的内容!!
</div>
<!--
EOT;
}
print <<<EOT
-->
			
            <table width="100%" border="0" cellspacing="0" cellpadding="7">
              <tr>
                <td align="center">$showpage</td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td class="foot">
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
 
    </td>
     
  </tr>
</table>
<!--
EOT;
?>
-->