<!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=utf-8" />
<title><?php echo $cfg_webname?> - 高级搜索 - powered by dedecms</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="<?php echo $cfg_indexurl?>">返回主页</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="post" 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="channelid" 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"><input type="radio" name="kwtype" value="1" checked="checked" />
                  逻辑与&nbsp;
<input name="kwtype" type="radio" value="0" />
                  逻辑或
                  </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>
