📄 index.php
字号:
<?
include_once("inc/auth.php");
mysql_select_db("BUS", $connection);
?>
<html>
<head>
<title>电话区号查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function CheckForm1()
{
if(document.form1.AREA.value=="")
{
alert("查询条件不能为空");
return false;
}
else
return true;
}
function CheckForm2()
{
if(document.form2.TEL_NO.value=="")
{
alert("查询条件不能为空");
return false;
}
else
return true;
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.AREA.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/infofind.gif" align="absmiddle"><span class="big3"> 电话区号查询</span>
</td>
</tr>
</table>
<br>
<div align="center">
<table class="TableBlock" width="450" align="center">
<tr class="TableHeader">
<td nowrap align="center" colspan="5"><b>中国 - 省(直辖市/自治区)</b></td>
</tr>
<?
//============================ 显示省名 =======================================
$query = "SELECT PROVINCE from POST_TEL where NO<61811 group by PROVINCE";
$cursor= exequery($connection,$query);
$PROVINCE_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$PROVINCE_COUNT++;
$PROVINCE=$ROW["PROVINCE"];
if($PROVINCE_COUNT%5==1)
{
?>
<tr class="TableData">
<?
}
?>
<td nowrap align="center"><a href="tel_info.php?PROVINCE=<?=$PROVINCE?>"><?=$PROVINCE?></td>
<?
if($PROVINCE_COUNT%5==0)
{
?>
</tr>
<?
}
}
$REMAIN=5-$PROVINCE_COUNT%5;
if($REMAIN==5)
$REMAIN=0;
for($I=1;$I<=$REMAIN;$I++)
{
?>
<td nowrap align="center"> </td>
<?
}
?>
</tr>
</table>
<br>
<table class="TableBlock" width="450" align="center">
<tr class="TableHeader">
<td nowrap align="center" colspan="5"><b>国际 - 大洲</b></td>
</tr>
<?
//============================ 显示大洲名 =======================================
$query = "SELECT PROVINCE from POST_TEL where NO>=61811 group by PROVINCE";
$cursor= exequery($connection,$query);
$PROVINCE_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$PROVINCE_COUNT++;
$PROVINCE=$ROW["PROVINCE"];
if($PROVINCE_COUNT%5==1)
{
?>
<tr class="TableData">
<?
}
?>
<td nowrap align="center"><a href="tel_info.php?WORLD=1&PROVINCE=<?=$PROVINCE?>"><?=$PROVINCE?></td>
<?
if($PROVINCE_COUNT%5==0)
{
?>
</tr>
<?
}
}
$REMAIN=5-$PROVINCE_COUNT%5;
if($REMAIN==5)
$REMAIN=0;
for($I=1;$I<=$REMAIN;$I++)
{
?>
<td nowrap align="center"> </td>
<?
}
?>
</tr>
</table>
<br>
<table class="TableBlock" width="450" align="center">
<tr class="TableHeader">
<td colspan="3" align="center"><b>模糊查询</b></td>
</tr>
<form name=form1 method="post" action="search.php" onsubmit="return CheckForm1();">
<tr class="TableData">
<td>市/区/县/街道的名称包含:</td>
<td align="center"><input type="text" name="AREA" size="20" class="BigInput"></td>
<td align="center"><input type="submit" value="查询" class="BigButton" title="进行查询" name="button"></td>
</tr>
</form>
<form name=form2 method="post" action="search.php" onsubmit="return CheckForm2();">
<tr class="TableData">
<td>电话区号包含:</td>
<td align="center"><input type="text" name="TEL_NO" size="20" class="BigInput"></td>
<td align="center"><input type="submit" value="查询" class="BigButton" title="进行查询" name="button"></td>
</tr>
</form>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -