/[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.14 by sysadm, Sun Apr 13 03:29:02 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  <body>  <body>
35  <center>  <center>
36  <?  <?
# Line 54  Line 39 
39  <table width="760" border="0" cellpadding="0" cellspacing="0">  <table width="760" border="0" cellpadding="0" cellspacing="0">
40          <tr height=20 bgcolor=#F3F9FC>          <tr height=20 bgcolor=#F3F9FC>
41                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
42                  <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>
43                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
44          </tr>          </tr>
45          <tr>          <tr>
# Line 111  Line 96 
96                                                                  <select name="jid" value="0">                                                                  <select name="jid" value="0">
97                                                                  <option value="0">--请选择发布时间--</option>                                                                  <option value="0">--请选择发布时间--</option>
98  <?  <?
                         $db_conn=include "./db_open.inc.php";  
99                          $rs=mysql_query("select * from journal_index where enable order by dt");                          $rs=mysql_query("select * from journal_index where enable order by dt");
100                          while($row=mysql_fetch_array($rs))                          while($row=mysql_fetch_array($rs))
101                          {                          {
# Line 119  Line 103 
103  <?  <?
104                          }                          }
105                          mysql_free_result($rs);                          mysql_free_result($rs);
                         mysql_close($db_conn);  
106  ?>  ?>
107                                                                  </select>                                                                  </select>
108                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">
# Line 129  Line 112 
112                  case "doc":                  case "doc":
113  ?>  ?>
114                                                          请选择版块,并输入查找内容,"%"为通配符。                                                          请选择版块,并输入查找内容,"%"为通配符。
115                                                          <form action="/bbs/bbs.php" method="get" target="_blank">                                                          <form action="/bbs/list.php" method="get" target="_blank" onsubmit="return (sid.value != 0);">
116                                                                  <select name="sid" value="0">                                                                  <select name="sid" value="0">
                                                                 <option value="0">--请选择版块--</option>  
117  <?  <?
118                          $db_conn=include "./db_open.inc.php";                          require_once "../bbs/section_list_dst.inc.php";
119                          $rs_class=mysql_query("select CID,title from section_class where enable order by sort_order");  
120                          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);  
121  ?>  ?>
122                                                                  </select>                                                                  </select>
123                                                                  <input name="search_text" value="">                                                                  <input name="search_text" value="">
124                                                                  <input type="submit" value="搜索" onclick="return (sid.value!='0');">                                                                  <input type="submit" value="搜索">
125                                                          </form>                                                          </form>
126  <?  <?
127                          break;                          break;
# Line 181  Line 149 
149    
150  </table>  </table>
151  <?  <?
152            mysql_close($db_conn);
153    
154          include "./foot.inc.php";          include "./foot.inc.php";
155  ?>  ?>
156  </center>  </center>


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

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