Dedecms 模板中心

您现在的位置: 首页 > 教程文档 > 织梦技巧 >

织梦高级搜索功能应用,分别对应到不同的栏目,DEDE只搜索指定栏

来源:未知 发布时间:2017-11-20热度:
好织梦小编偷懒全部复制过来了 大家在整理下 !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 head meta http-equiv=Content-Type conten...

 
好织梦小编偷懒全部复制过来了 大家在整理下

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $cfg_webname;?>_高级搜索</title>
<link href="<?php echo $cfg_templets_skin; ?>/style/dedecms.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
.STYLE1 {
font-family: "方正粗圆简体";
font-size: 24px;
}
.STYLE6 {font-family: "方正粗圆简体"; font-size: 18px; }
.STYLE7 {font-size: 26px}
-->
</style>
</head>
<body class="flinkpage">
 
<div class="header">
<div class="top w960 center">
  <div class="title">
   <h1 align="center"> <a href="<?php echo $cfg_basehost;?>">        <img src="/templets/hxl/images/tblogo.gif" alt="{dede:global.cfg_webname/}"/></a> </h1>
   <p> </p>
  </div><!-- /title -->

</div><!-- /top -->
</div><!-- /header -->
<table width="600" height="60" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#cccccc">
                <form name="form1" action="search.php" method="get">
                  <tr bgcolor="#FFFFFF"> 
                    <td height="50" align="center" width="153"><div align="center">
       <div align="right"><span class="STYLE1">
            <span class="STYLE7">
            <?php
              $tl = new TypeLink(0);
              $typeOptions = $tl->GetOptionArray(0,0,0);
              echo "<select name='typeid' style='width:0'>";
              echo "<option value='17' selected>招生简章</option>";
              
              echo "</select>"; ?>
           招生简章</span></span> </div></td>
                    <td width="352" height="50">
                   
             <div align="center">
               <input name="q" type="text" class="STYLE6" id="search-keyword" onfocus="if(this.value=='在此输入院校...'){this.value='';}" onblur="if(this.value==''){this.value='在此输入院校...';}" value="在此输入院校..." size="35" />
              
                   </div></td>
                    <td width="95" height="50">
                      <div align="left">
                        <input name="搜索" type="submit" class="STYLE6" value="查询" border="0" />
                      </div></td>
                  </tr>
                </form>
</table>



<p> </p>
<table width="600" height="60" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#cccccc">
  <form action="search.php" method="get" name="form1" id="form1">
    <tr bgcolor="#FFFFFF">
      <td height="50" align="center" width="153"><div align="center">
          <div align="right"><span class="STYLE1"> <span class="STYLE7">
            <?php
              $tl = new TypeLink(0);
              $typeOptions = $tl->GetOptionArray(0,0,0);
              echo "<select name='typeid' style='width:0'>";
              echo "<option value='18' selected>历年考题</option>";
              
              echo "</select>"; ?>
            历年考题</span></span> </div></td>
      <td width="352" height="50"><div align="center">
        <input name="q2" type="text" class="STYLE6" id="q" onfocus="if(this.value=='在此输入院校...'){this.value='';}" onblur="if(this.value==''){this.value='在此输入院校...';}" value="在此输入院校..." size="35" />
      </div></td>
      <td width="95" height="50"><div align="left">
        <input name="搜索2" type="submit" class="STYLE6" value="查询" border="0" />
      </div></td>
    </tr>
  </form>
</table>
<p> </p>
<table width="600" height="60" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#cccccc">
  <form action="search.php" method="get" name="form1" id="form1">
    <tr bgcolor="#FFFFFF">
      <td height="50" align="center" width="153"><div align="center">
          <div align="right"><span class="STYLE1"> <span class="STYLE7">
            <?php
              $tl = new TypeLink(0);
              $typeOptions = $tl->GetOptionArray(0,0,0);
              echo "<select name='typeid' style='width:0'>";
              echo "<option value='141' selected>历年分数</option>";
              
              echo "</select>"; ?>
            历年分数</span></span> </div></td>
      <td width="352" height="50"><div align="center">
        <input name="q3" type="text" class="STYLE6" id="q2" onfocus="if(this.value=='在此输入院校...'){this.value='';}" onblur="if(this.value==''){this.value='在此输入院校...';}" value="在此输入院校..." size="35" />
      </div></td>
      <td width="95" height="50"><div align="left">
        <input name="搜索3" type="submit" class="STYLE6" value="查询" border="0" />
      </div></td>
    </tr>
  </form>
</table>
<p> </p>
<table width="600" height="60" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#cccccc">
  <form action="search.php" method="get" name="form1" id="form1">
    <tr bgcolor="#FFFFFF">
      <td height="50" align="center" width="153"><div align="center">
          <div align="right"><span class="STYLE1"> <span class="STYLE7">
            <?php
              $tl = new TypeLink(0);
              $typeOptions = $tl->GetOptionArray(0,0,0);
              echo "<select name='typeid' style='width:0'>";
              echo "<option value='141' selected>录取查分</option>";
              
              echo "</select>"; ?>
            录取查分</span></span> </div></td>
      <td width="352" height="50"><div align="center">
        <input name="q4" type="text" class="STYLE6" id="q3" onfocus="if(this.value=='在此输入院校...'){this.value='';}" onblur="if(this.value==''){this.value='在此输入院校...';}" value="在此输入院校..." size="35" />
      </div></td>
      <td width="95" height="50"><div align="left">
        <input name="搜索4" type="submit" class="STYLE6" value="查询" border="0" />
      </div></td>
    </tr>
  </form>
</table>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>

    责任编辑:好织梦