| 111 |
case "doc": |
case "doc": |
| 112 |
?> |
?> |
| 113 |
请选择版块,并输入查找内容,"%"为通配符。 |
请选择版块,并输入查找内容,"%"为通配符。 |
| 114 |
<form action="/bbs/bbs.php" method="get" target="_blank"> |
<form action="/bbs/bbs.php" method="get" target="_blank" onsubmit="return (sid.value != 0);"> |
| 115 |
<select name="sid" value="0"> |
<select name="sid" value="0"> |
| 116 |
<option value="0">--请选择版块--</option> |
<option value="0">--请选择版块--</option> |
| 117 |
<? |
<? |
| 118 |
$rs_class=mysql_query("select CID,title from section_class where enable order by sort_order"); |
$sql = "SELECT section_config.SID, section_config.CID, |
| 119 |
while($row_class=mysql_fetch_array($rs_class)) |
section_config.title AS s_title, section_class.title AS c_title |
| 120 |
|
FROM section_config INNER JOIN section_class ON section_config.CID = section_class.CID |
| 121 |
|
WHERE section_config.enable AND section_class.enable AND read_user_level = 0 |
| 122 |
|
ORDER BY section_class.sort_order, section_config.sort_order"; |
| 123 |
|
|
| 124 |
|
$rs = mysqli_query($db_conn, $sql); |
| 125 |
|
|
| 126 |
|
if ($rs == false) |
| 127 |
{ |
{ |
| 128 |
?><option value="0">==<? echo $row_class["title"];?>==</option> |
echo mysqli_error($db_conn); |
| 129 |
<? |
exit(); |
| 130 |
$rs_section=mysql_query("select SID,title from section_config where CID=". |
} |
| 131 |
$row_class["CID"]." and enable and read_user_level<=11 order by sort_order"); |
|
| 132 |
while($row_section=mysql_fetch_array($rs_section)) |
$last_cid = -1; |
| 133 |
|
while ($rs != false && $row = mysqli_fetch_array($rs)) |
| 134 |
|
{ |
| 135 |
|
if ($row["CID"] != $last_cid) |
| 136 |
{ |
{ |
| 137 |
?><option value="<? echo $row_section['SID'];?>"> ├<? echo $row_section["title"]; ?></option> |
$last_cid = $row["CID"]; |
| 138 |
|
?> |
| 139 |
|
<option value="0">==<? echo $row["c_title"]; ?>==</option> |
| 140 |
|
<? |
| 141 |
|
} |
| 142 |
|
?> |
| 143 |
|
<option value="<? echo $row["SID"];?>"> ├<? echo $row["s_title"]; ?></option> |
| 144 |
<? |
<? |
| 145 |
} |
} |
| 146 |
mysql_free_result($rs_section); |
mysqli_free_result($rs); |
|
} |
|
|
mysql_free_result($rs_class); |
|
| 147 |
?> |
?> |
| 148 |
</select> |
</select> |
| 149 |
<input name="search_text" value=""> |
<input name="search_text" value=""> |
| 150 |
<input type="submit" value="搜索" onclick="return (sid.value!='0');"> |
<input type="submit" value="搜索"> |
| 151 |
</form> |
</form> |
| 152 |
<? |
<? |
| 153 |
break; |
break; |