<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $cfg_webname?> - 高级搜索</title>
<link href="../templets/style/dede.css" rel="stylesheet" type="text/css" />
<link href="../templets/style/spage.css" rel="stylesheet" type="text/css" />
</head>
</head>
<body>

<div class="stop">
	<span class="toptitle">高级搜索</span>
	<span class="toplink"><a href="/">返回主页</a></span></div>

<div class="smain">
	<div class="mtitle">
		<div class="mtname"><strong><a href='<?php echo $cfg_indexurl?>'> 
              <?php echo $cfg_webname?></a>- 高级搜索：</strong></div>
		</div>
	<div class="mbox">
		<div class="flbox"><br />
          <table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D1DDCE">
            <form action="search.php" method="get" name="form1" id="form1">
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center" width="20%">网站栏目：</td>
                <td height="30">&nbsp;                  <?php 
              $tl = new TypeLink(0);
              $typeOptions = $tl->GetOptionArray(0,0,0);
              echo "<select name='typeid' style='width:200'>\r\n";
              echo "<option value='0' selected>--不限栏目--</option>\r\n";
              echo $typeOptions;
              echo "</select>";
			  $tl->Close();
            ?>                </td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">关 键 字：</td>
                <td width="490" height="30">&nbsp;
<input name="keyword" type="text" id="keyword" style="width:200" /></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">发布时间：</td>
                <td height="30">&nbsp;
<select name="starttime" id="starttime" style="width:100">
                    <option value="-1" selected="selected">--不限--</option>
                    <option value="7">一周以内</option>
                    <option value="30">一个月内</option>
                    <option value="90">三个月内</option>
                    <option value="180">半年以内</option>
                </select></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">内容类型：</td>
                <td height="30">&nbsp;
<select name="channeltype" id="channeltype" style="width:100">
                    <option value="0" selected="selected">--不限--</option>
                    <?php 
					 $dsql = new DedeSql(false);
					 $dsql->SetQuery("Select ID,typename From #@__channeltype order by ID desc");
					 $dsql->Execute();
					 while($row = $dsql->GetObject())
					 {
					   echo "<option value='".$row->ID."'>".$row->typename."</option>\r\n";
					 }
					 $dsql->Close();
					 ?>
                  </select>                </td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">排序方式：</td>
                <td height="30">&nbsp;
<select name="orderby" id="orderby" style="width:100">
                    <option value="sortrank" selected="selected">--默认--</option>
                    <option value="senddate">收录时间</option>
                    <option value="pubdate">发布时间</option>
                    <option value="ID">文档ID</option>
                  </select>                </td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">显示条数：</td>
                <td height="30">&nbsp;
<input name="pagesize" type="text" id="pagesize" value="10" size="4" /></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">关键字模式：</td>
                <td height="30">&nbsp;
<input name="kwtype" type="radio" value="1" checked="checked" />
                  或
                  <input type="radio" name="kwtype" value="0" />
                  与</td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="30" align="center">搜索内容：</td>
                <td height="30">&nbsp;
<select name="searchtype" id="searchtype" class="op1">
                    <option value="titlekeyword" selected="selected">默认搜索</option>
                    <option value="title">仅搜索标题</option>
                  </select>                </td>
              </tr>
              <tr bgcolor="#F4FCE4">
                <td height="31" colspan="2" align="center" bgcolor="#F4F9F2"><input type="submit" name="button" id="button" value="搜索" class="submit"/>
                </td>
              </tr>
            </form>
          </table>
</div>		
  </div>
</div>


</body>
</html>
