/[LeafOK_CVS]/fenglin/www/search.php
ViewVC logotype

Diff of /fenglin/www/search.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 by sysadm, Sat Mar 1 09:08:07 2025 UTC Revision 1.9 by sysadm, Fri Mar 28 11:27:52 2025 UTC
# Line 1  Line 1 
1  <?  <?
2          require_once "./whereis.inc.php";          require_once "../lib/db_open.inc.php";
3  ?>  ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
4  <?  <?
5          if (isset($_GET["type"]))          if (isset($_GET["type"]))
6                  $type=$_GET["type"];                  $type=$_GET["type"];
# Line 19  Line 18 
18                  case "author":                  case "author":
19                          $title="作者搜索";                          $title="作者搜索";
20                          break;                          break;
                 case "fulltext":  
                         $title="全文检索";  
                         break;  
                 case "s_e":  
                         $title="资源搜索";  
                         break;  
                 case "whereis":  
                         $title="地址搜索";  
                         break;  
                 case "google":  
                         $title="搜索引擎";  
                         break;  
                 case "site_reg":  
                         $title="网站登录";  
                         break;  
21                  default:                  default:
22                          $title="选择类别";                          $title="选择类别";
23                          break;                          break;
# Line 111  Line 95 
95                                                                  <select name="jid" value="0">                                                                  <select name="jid" value="0">
96                                                                  <option value="0">--请选择发布时间--</option>                                                                  <option value="0">--请选择发布时间--</option>
97  <?  <?
                         $db_conn=include "./db_open.inc.php";  
98                          $rs=mysql_query("select * from journal_index where enable order by dt");                          $rs=mysql_query("select * from journal_index where enable order by dt");
99                          while($row=mysql_fetch_array($rs))                          while($row=mysql_fetch_array($rs))
100                          {                          {
# Line 119  Line 102 
102  <?  <?
103                          }                          }
104                          mysql_free_result($rs);                          mysql_free_result($rs);
                         mysql_close($db_conn);  
105  ?>  ?>
106                                                                  </select>                                                                  </select>
107                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">
# Line 133  Line 115 
115                                                                  <select name="sid" value="0">                                                                  <select name="sid" value="0">
116                                                                  <option value="0">--请选择版块--</option>                                                                  <option value="0">--请选择版块--</option>
117  <?  <?
                         $db_conn=include "./db_open.inc.php";  
118                          $rs_class=mysql_query("select CID,title from section_class where enable order by sort_order");                          $rs_class=mysql_query("select CID,title from section_class where enable order by sort_order");
119                          while($row_class=mysql_fetch_array($rs_class))                          while($row_class=mysql_fetch_array($rs_class))
120                          {                          {
# Line 149  Line 130 
130                                  mysql_free_result($rs_section);                                  mysql_free_result($rs_section);
131                          }                          }
132                          mysql_free_result($rs_class);                          mysql_free_result($rs_class);
                         mysql_close($db_conn);  
133  ?>  ?>
134                                                                  </select>                                                                  </select>
135                                                                  <input name="search_text" value="">                                                                  <input name="search_text" value="">
# Line 181  Line 161 
161    
162  </table>  </table>
163  <?  <?
164            mysql_close($db_conn);
165    
166          include "./foot.inc.php";          include "./foot.inc.php";
167  ?>  ?>
168  </center>  </center>


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1