📄 search.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>电话区号查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/infofind.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 电话区号查询结果</span>
</td>
</tr>
</table>
<br>
<div align="center">
<?
//============================ 显示市名 =======================================
if($AREA!="")
$query = "SELECT * from POST_TEL where AREA like '%$AREA%' order by tel_no";
else
$query = "SELECT * from POST_TEL where TEL_NO='$TEL_NO'";
$cursor= exequery($connection,$query);
$AREA_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$AREA_COUNT++;
$PROVINCE=$ROW["PROVINCE"];
$AREA=$ROW["AREA"];
$TEL_NO=$ROW["TEL_NO"];
$POST_NO=$ROW["POST_NO"];
if(strlen($POST_NO)==6 || $POST_NO=="")
$POST_NO="0";
else if($POST_NO>0)
$POST_NO="+".$POST_NO;
else if($POST_NO=="NULL")
$POST_NO="";
if($AREA_COUNT==1)
{
?>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3">
<tr class="TableHeader">
<td nowrap align="center">省(直辖市/自治区)或大洲</td>
<td nowrap align="center">市(县/区)或国家</td>
<td nowrap align="center">电话区号</td>
<td nowrap align="center">与北京时差</td>
</tr>
<?
}
if($AREA_COUNT%2==1)
$TableLine="TableLine1";
else
$TableLine="TableLine2";
?>
<tr class="<?=$TableLine?>">
<td nowrap align="center"><?=$PROVINCE?></td>
<td nowrap align="center"><?=$AREA?></td>
<td nowrap align="center"><?=$TEL_NO?></td>
<td nowrap align="center"><?=$POST_NO?></td>
</tr>
<?
}
if($AREA_COUNT>0)
{
?>
</table>
<?
}
else
Message("提示","没有符合条件的结果");
?>
</div>
<?
Button_Back();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -