/[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.13 by sysadm, Sat Apr 12 05:06:36 2025 UTC
# Line 1  Line 1 
1  <?  <?
2          require_once "./whereis.inc.php";          require_once "../lib/common.inc.php";
3            require_once "../lib/db_open.inc.php";
4            require_once "../bbs/session_init.inc.php";
5  ?>  ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
6  <?  <?
7          if (isset($_GET["type"]))          if (isset($_GET["type"]))
8                  $type=$_GET["type"];                  $type=$_GET["type"];
# Line 19  Line 20 
20                  case "author":                  case "author":
21                          $title="作者搜索";                          $title="作者搜索";
22                          break;                          break;
                 case "fulltext":  
                         $title="全文检索";  
                         break;  
                 case "s_e":  
                         $title="资源搜索";  
                         break;  
                 case "whereis":  
                         $title="地址搜索";  
                         break;  
                 case "google":  
                         $title="搜索引擎";  
                         break;  
                 case "site_reg":  
                         $title="网站登录";  
                         break;  
23                  default:                  default:
24                          $title="选择类别";                          $title="选择类别";
25                          break;                          break;
# Line 42  Line 28 
28  <html>  <html>
29  <head>  <head>
30  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
31  <title>枫林在线 - 搜索</title>  <title><? echo $BBS_name; ?> - 搜索</title>
32  <link rel="stylesheet" href="css/default.css" type="text/css">  <link rel="stylesheet" href="css/default.css" type="text/css">
33  </head>  </head>
34    
# Line 54  Line 40 
40  <table width="760" border="0" cellpadding="0" cellspacing="0">  <table width="760" border="0" cellpadding="0" cellspacing="0">
41          <tr height=20 bgcolor=#F3F9FC>          <tr height=20 bgcolor=#F3F9FC>
42                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
43                  <td>枫林在线 &gt;&gt; <a href="search.php">搜索</a> &gt;&gt; <? echo $title; ?></td>                  <td><? echo $BBS_name; ?> &gt;&gt; <a href="search.php">搜索</a> &gt;&gt; <? echo $title; ?></td>
44                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
45          </tr>          </tr>
46          <tr>          <tr>
# Line 111  Line 97 
97                                                                  <select name="jid" value="0">                                                                  <select name="jid" value="0">
98                                                                  <option value="0">--请选择发布时间--</option>                                                                  <option value="0">--请选择发布时间--</option>
99  <?  <?
                         $db_conn=include "./db_open.inc.php";  
100                          $rs=mysql_query("select * from journal_index where enable order by dt");                          $rs=mysql_query("select * from journal_index where enable order by dt");
101                          while($row=mysql_fetch_array($rs))                          while($row=mysql_fetch_array($rs))
102                          {                          {
# Line 119  Line 104 
104  <?  <?
105                          }                          }
106                          mysql_free_result($rs);                          mysql_free_result($rs);
                         mysql_close($db_conn);  
107  ?>  ?>
108                                                                  </select>                                                                  </select>
109                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">
# Line 129  Line 113 
113                  case "doc":                  case "doc":
114  ?>  ?>
115                                                          请选择版块,并输入查找内容,"%"为通配符。                                                          请选择版块,并输入查找内容,"%"为通配符。
116                                                          <form action="/bbs/bbs.php" method="get" target="_blank">                                                          <form action="/bbs/list.php" method="get" target="_blank" onsubmit="return (sid.value != 0);">
117                                                                  <select name="sid" value="0">                                                                  <select name="sid" value="0">
                                                                 <option value="0">--请选择版块--</option>  
118  <?  <?
119                          $db_conn=include "./db_open.inc.php";                          require_once "../bbs/section_list_dst.inc.php";
120                          $rs_class=mysql_query("select CID,title from section_class where enable order by sort_order");  
121                          while($row_class=mysql_fetch_array($rs_class))                          echo section_list_dst($db_conn);
                         {  
 ?><option value="0">==<? echo $row_class["title"];?>==</option>  
 <?  
                                 $rs_section=mysql_query("select SID,title from section_config where CID=".  
                                         $row_class["CID"]." and enable and read_user_level<=11 order by sort_order");    
                                 while($row_section=mysql_fetch_array($rs_section))  
                                 {  
 ?><option value="<? echo $row_section['SID'];?>">&nbsp;&nbsp;├<? echo $row_section["title"]; ?></option>  
 <?  
                                 }  
                                 mysql_free_result($rs_section);  
                         }  
                         mysql_free_result($rs_class);  
                         mysql_close($db_conn);  
122  ?>  ?>
123                                                                  </select>                                                                  </select>
124                                                                  <input name="search_text" value="">                                                                  <input name="search_text" value="">
125                                                                  <input type="submit" value="搜索" onclick="return (sid.value!='0');">                                                                  <input type="submit" value="搜索">
126                                                          </form>                                                          </form>
127  <?  <?
128                          break;                          break;
# Line 181  Line 150 
150    
151  </table>  </table>
152  <?  <?
153            mysql_close($db_conn);
154    
155          include "./foot.inc.php";          include "./foot.inc.php";
156  ?>  ?>
157  </center>  </center>


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

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