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

Contents of /fenglin/www/search.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Sat Mar 1 09:08:07 2025 UTC (12 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.6: +25 -140 lines
Convert GB2312 to UTF-8

1 <?
2 require_once "./whereis.inc.php";
3 ?>
4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <?
6 if (isset($_GET["type"]))
7 $type=$_GET["type"];
8 else
9 $type="";
10
11 switch($type)
12 {
13 case "journal":
14 $title="精品导读";
15 break;
16 case "doc":
17 $title="文档搜索";
18 break;
19 case "author":
20 $title="作者搜索";
21 break;
22 case "fulltext":
23 $title="全文检索";
24 break;
25 case "s_e":
26 $title="资源搜索";
27 break;
28 case "whereis":
29 $title="地址搜索";
30 break;
31 case "google":
32 $title="搜索引擎";
33 break;
34 case "site_reg":
35 $title="网站登录";
36 break;
37 default:
38 $title="选择类别";
39 break;
40 }
41 ?>
42 <html>
43 <head>
44 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
45 <title>枫林在线 - 搜索</title>
46 <link rel="stylesheet" href="css/default.css" type="text/css">
47 </head>
48
49 <body>
50 <center>
51 <?
52 include "./head.inc.php";
53 ?>
54 <table width="760" border="0" cellpadding="0" cellspacing="0">
55 <tr height=20 bgcolor=#F3F9FC>
56 <td width="20">&nbsp;</td>
57 <td>枫林在线 &gt;&gt; <a href="search.php">搜索</a> &gt;&gt; <? echo $title; ?></td>
58 <td width="20">&nbsp;</td>
59 </tr>
60 <tr>
61 <td colspan=3 height=1 bgcolor=gray></td>
62 </tr>
63 <tr height=5>
64 <td>&nbsp;</td>
65 </tr>
66 </table>
67 <table width="760" border="0" cellpadding="0" cellspacing="0">
68 <tr>
69 <td width="20%" align="center" valign="top" class="td2">
70 <table width="80%" border="0" cellpadding="0" cellspacing="0">
71 <tr height=20>
72 <td></td>
73 </tr>
74 <tr height=30 class="title_bar_5">
75 <td align="center">- 论坛搜索 -</td>
76 </tr>
77 <tr height=5>
78 <td></td>
79 </tr>
80 <tr height=20>
81 <td align="center"><a href="search.php?type=journal">精品导读</a></td>
82 </tr>
83 <tr height=20>
84 <td align="center"><a href="search.php?type=doc">文档搜索</a></td>
85 </tr>
86 <tr height=20>
87 <td align="center"><a href="search.php?type=author">作者搜索</a></td>
88 </tr>
89 <tr height=20>
90 <td></td>
91 </tr>
92 </table>
93 </td>
94 <td width="80%" align="center" valign="top">
95 <table width="80%" border="0" cellpadding="0" cellspacing="0">
96 <tr height="20">
97 <td></td>
98 </tr>
99 <tr height="30" class="title_bar_6">
100 <td><? echo $title; ?></td>
101 </tr>
102 <tr>
103 <td class="td4">
104 <div style="margin:10px;" align="center">
105 <?
106 switch($type)
107 {
108 case "journal":
109 ?>
110 <form action="journal.php" method="get" target="_blank">
111 <select name="jid" value="0">
112 <option value="0">--请选择发布时间--</option>
113 <?
114 $db_conn=include "./db_open.inc.php";
115 $rs=mysql_query("select * from journal_index where enable order by dt");
116 while($row=mysql_fetch_array($rs))
117 {
118 ?><option value="<? echo $row["JID"]; ?>"><? echo date("Y-m-d",strtotime($row["dt"]));?></option>
119 <?
120 }
121 mysql_free_result($rs);
122 mysql_close($db_conn);
123 ?>
124 </select>
125 <input type="submit" value="浏览" onclick="return (jid.value!='0');">
126 </form>
127 <?
128 break;
129 case "doc":
130 ?>
131 请选择版块,并输入查找内容,"%"为通配符。
132 <form action="/bbs/bbs.php" method="get" target="_blank">
133 <select name="sid" value="0">
134 <option value="0">--请选择版块--</option>
135 <?
136 $db_conn=include "./db_open.inc.php";
137 $rs_class=mysql_query("select CID,title from section_class where enable order by sort_order");
138 while($row_class=mysql_fetch_array($rs_class))
139 {
140 ?><option value="0">==<? echo $row_class["title"];?>==</option>
141 <?
142 $rs_section=mysql_query("select SID,title from section_config where CID=".
143 $row_class["CID"]." and enable and read_user_level<=11 order by sort_order");
144 while($row_section=mysql_fetch_array($rs_section))
145 {
146 ?><option value="<? echo $row_section['SID'];?>">&nbsp;&nbsp;├<? echo $row_section["title"]; ?></option>
147 <?
148 }
149 mysql_free_result($rs_section);
150 }
151 mysql_free_result($rs_class);
152 mysql_close($db_conn);
153 ?>
154 </select>
155 <input name="search_text" value="">
156 <input type="submit" value="搜索" onclick="return (sid.value!='0');">
157 </form>
158 <?
159 break;
160 case "author":
161 ?>
162 请输入查找内容,"%"为通配符。
163 <form action="/bbs/search_user.php" method="get" target="_blank">
164 <input name="search_text" value="">
165 <input type="submit" value="搜索">
166 </form>
167 <?
168 break;
169 default:
170 ?>
171 请从左侧列表选择查找类型。
172 <?
173 }
174 ?>
175 </div>
176 </td>
177 </tr>
178 </table>
179 </td>
180 </tr>
181
182 </table>
183 <?
184 include "./foot.inc.php";
185 ?>
186 </center>
187 </body>
188 </html>

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