/[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.8 by sysadm, Fri Mar 28 05:50:18 2025 UTC Revision 1.14 by sysadm, Sun Apr 13 03:29:02 2025 UTC
# Line 1  Line 1 
1  <?  <?
2            require_once "../lib/common.inc.php";
3          require_once "../lib/db_open.inc.php";          require_once "../lib/db_open.inc.php";
4            require_once "../bbs/session_init.inc.php";
5  ?>  ?>
6  <?  <?
7          if (isset($_GET["type"]))          if (isset($_GET["type"]))
# Line 18  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 41  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 53  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 126  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                          $rs_class=mysql_query("select CID,title from section_class where enable order by sort_order");                          require_once "../bbs/section_list_dst.inc.php";
119                          while($row_class=mysql_fetch_array($rs_class))  
120                          {                          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);  
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;


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

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