📄 faq_search.php
字号:
<?
switch($totype){
case "web":
$topfile="../web/top.php";
$footfile="../web/foot.php";
$leftfile="../index/left_web.php";
break;
case "adser":
$topfile="../adser/top.php";
$footfile="../adser/foot.php";
$leftfile="../index/left_adser.php";
break;
default:
$topfile="../index/top.php";
$footfile="../index/foot.php";
$leftfile="../index/left.php";
break;
}
include_once("$topfile");
?>
<script>
function postfaq(){
if(document.search_form.key.value==""){
alert("请输入要查找的关键字!");
document.search_form.key.focus();
return false;
}else{
return true;
}
}
</script>
<style>
td{
color:#232323
}
</style>
<table width="1001" border="0" cellpadding="0" cellspacing="0" align="center">
<tr align="left" valign="top">
<td width="200" bgcolor="#d3deea" >
<?
include_once("$leftfile");
?>
</td>
<td width="801" align="center"><table width="100%" border="0" cellspacing="6" cellpadding="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7" height="7" align="left" valign="top"><img src="images/search_3.jpg" width="7" height="7"></td>
<td bgcolor="5786BA"></td>
<td width="7" height="7" align="right" valign="top"><img src="images/search_5.jpg" width="7" height="7"></td>
</tr>
<tr bgcolor="#6699CC">
<td height="62" bgcolor="5786BA"> </td>
<td bgcolor="5786BA"><table width="89%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" rowspan="2" align="center" valign="middle"><img src="images/searchgirl.gif" width="63" height="56"></td>
<td width="85%" height="24" class="whitetext"> 在这里您可以查询关于我们站点的任何相关信息</td>
</tr>
<tr>
<td><table width="98%" border="0" cellspacing="0" cellpadding="0">
<form name="search_form" method="post" action="faq_search.php" onSubmit="return postfaq()">
<tr align="left" valign="middle">
<td width="18%" align="center" class="whitetext">搜索</td>
<td width="48%" align="center"><input name="key" type="text" class="search_input" size="22" maxlength="22" value="<?=$key?>"></td>
<td width="30%" align="center"><select name="totype">
<option value="all" <? echo ($totype=="all" || empty($totype))?" selected":"";?>>全 部</option>
<option value="adser"<? echo ($totype=="adser")?" selected":"";?>>广告主</option>
<option value="web"<? echo ($totype=="web")?" selected":"";?>>网站主</option>
</select>
</td>
<td width="6%" align="center"><input name="imageField2" type="image" src="images/bot15.gif" width="23" height="23" border="0"></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
<td bgcolor="5786BA"> </td>
</tr>
<tr>
<td width="7" height="7" align="left" valign="bottom"><img src="images/search_9.jpg" width="7" height="7"></td>
<td bgcolor="5786BA"></td>
<td align="right" valign="bottom" width="7" height="7"><img src="images/search_10.jpg" width="7" height="7"></td>
</tr>
</table></td>
<td width=4 bgcolor="#FFFFFF"></td>
<td align="center" valign="middle" bgcolor="#5786BA"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7" height="7" align="left" valign="top"><img src="images/search_3.jpg" width="7" height="7"></td>
<td bgcolor="5786BA"></td>
<td width="7" height="7" align="right" valign="top"><img src="images/search_5.jpg" width="7" height="7"></td>
</tr>
<tr bgcolor="#6699CC">
<td height="62" bgcolor="5786BA"> </td>
<td bgcolor="5786BA"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="left" valign="middle">
<td width="12%" align="center"><img src="images/quetion_15.gif" width="16" height="14"></td>
<td width="88%" class="whitetext">我们将常见问题在此列出,如果您还有其他问题,</td>
</tr>
<tr align="left" valign="middle">
<td> </td>
<td class="whitetext">可在系统菜单中【留言管理】中给我们留言,我们</td>
</tr>
<tr align="left" valign="middle">
<td> </td>
<td class="whitetext">会尽快给您回复。</td>
</tr>
</table></td>
<td bgcolor="5786BA"> </td>
</tr>
<tr>
<td width="7" height="7" align="left" valign="bottom"><img src="images/search_9.jpg" width="7" height="7"></td>
<td bgcolor="5786BA"></td>
<td align="right" valign="bottom" width="7" height="7"><img src="images/search_10.jpg" width="7" height="7"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="300" valign="top"><br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<?
include_once("../public/db_conn.php");
switch($_POST["totype"]){
case "adser":
$sqlf_to=" and (username='<adser>' and to_type='4' or username='<all>')";
break;
case "web":
$sqlf_to=" and (username='<web>' and to_type='2' or username='<all>')";
break;
default:
$sqlf_to=" AND (username = '<web>' AND to_type = '2' OR username = '<adser>' AND to_type = '4' OR username = '<all>')";
}
$sql="select * from message where s_id='0' and userid='0' $sqlf_to and (tit like '%$_POST[key]%' or conn like '%$_POST[key]%') order by time desc";
$rs=mysql_query($sql);
$num=mysql_num_rows($rs);
if($num>0){
while($row=mysql_fetch_array($rs)){
$conn=nl2br($row["conn"]);
?>
<tr align="center" valign="middle">
<td width="4%" height="25" class="questiontd"><img src="images/bot2.jpg" width="6" height="6"></td>
<td width="96%" align="left" valign="bottom" class="questiontd" >
<?=$row["tit"]?>
</td>
</tr>
<tr align="center" valign="top">
<td colspan="2" align="left"><table width="100%" border="0" cellspacing="5" cellpadding="2">
<tr>
<td><?=$conn?></td>
</tr>
</table>
<br>
<br>
</td>
</tr>
<? }
}else{
?>
<tr align="center" valign="top">
<td colspan="2" align="left" valign="top"><table width="100%" height="100" border="0" cellspacing="5" cellpadding="2">
<tr>
<td align="center" valign="top"><font size="-1">没有找到"
<?=$_POST["key"]?>
"相关信息!</font></td>
</tr>
</table>
<br>
<br>
</td>
</tr>
<? }?>
</table> <br></td></tr>
<tr>
<td><table width="100%" height="81" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1%" align="left" valign="top"><img src="images/systemint_25.jpg" width="8" height="87"></td>
<td width="98%" align="center" valign="top" bgcolor="#eeeeee">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="36" align="left" valign="middle"><img src="images/systemint_26.gif" width="233" height="36"></td>
</tr>
<tr>
<td height="45" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0">
<tr valign="middle">
<td width="3%" height="18" align="center"><img src="images/bot2.jpg" width="6" height="6"></td>
<td width="35%" align="left" class="bluetext2"><strong>如果您对您的产品做了网络广告方面的预算</strong></td>
<td width="2%" align="center"><img src="images/bot2.jpg" width="6" height="6"></td>
<td width="23%" align="left" class="bluetext2"><strong>如果您拥有一个不错的站点</strong></td>
<td width="2%" align="center"><img src="images/bot2.jpg" width="6" height="6"></td>
<td width="35%" align="left" class="bluetext2"><strong>如果您正想着通过网络赚取利润</strong></td>
</tr>
</table></td>
</tr>
<tr>
<td height="18" align="left" class="bluetext2"> <strong>我们可以实现您的想法,我们将利用我们强大的信息平台,让您的产品或者您的站点为您创造更多的利润
</strong></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%"> </td>
<td width="20%" align="left" class="bluetext2"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="1%" align="left" valign="top"><img src="images/systemint_28.jpg" width="8" height="87"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<?
include_once("$footfile");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -