/[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.8 by sysadm, Fri Mar 28 05:50:18 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 111  Line 110 
110                                                                  <select name="jid" value="0">                                                                  <select name="jid" value="0">
111                                                                  <option value="0">--请选择发布时间--</option>                                                                  <option value="0">--请选择发布时间--</option>
112  <?  <?
                         $db_conn=include "./db_open.inc.php";  
113                          $rs=mysql_query("select * from journal_index where enable order by dt");                          $rs=mysql_query("select * from journal_index where enable order by dt");
114                          while($row=mysql_fetch_array($rs))                          while($row=mysql_fetch_array($rs))
115                          {                          {
# Line 119  Line 117 
117  <?  <?
118                          }                          }
119                          mysql_free_result($rs);                          mysql_free_result($rs);
                         mysql_close($db_conn);  
120  ?>  ?>
121                                                                  </select>                                                                  </select>
122                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">                                                                  <input type="submit" value="浏览" onclick="return (jid.value!='0');">
# Line 133  Line 130 
130                                                                  <select name="sid" value="0">                                                                  <select name="sid" value="0">
131                                                                  <option value="0">--请选择版块--</option>                                                                  <option value="0">--请选择版块--</option>
132  <?  <?
                         $db_conn=include "./db_open.inc.php";  
133                          $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");
134                          while($row_class=mysql_fetch_array($rs_class))                          while($row_class=mysql_fetch_array($rs_class))
135                          {                          {
# Line 149  Line 145 
145                                  mysql_free_result($rs_section);                                  mysql_free_result($rs_section);
146                          }                          }
147                          mysql_free_result($rs_class);                          mysql_free_result($rs_class);
                         mysql_close($db_conn);  
148  ?>  ?>
149                                                                  </select>                                                                  </select>
150                                                                  <input name="search_text" value="">                                                                  <input name="search_text" value="">
# Line 181  Line 176 
176    
177  </table>  </table>
178  <?  <?
179            mysql_close($db_conn);
180    
181          include "./foot.inc.php";          include "./foot.inc.php";
182  ?>  ?>
183  </center>  </center>


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

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