search.php
来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 82 行
PHP
82 行
<?
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 length(POST_NO)=6 and AREA like '%$AREA%' order by post_no";
else
$query = "SELECT * from POST_TEL where length(POST_NO)=6 and POST_NO='$POST_NO'";
$connection=OpenConnection();
$cursor= exequery($connection,$query);
$AREA_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$AREA_COUNT++;
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>
</tr>
<?
}
$PROVINCE=$ROW["PROVINCE"];
$AREA=$ROW["AREA"];
$POST_NO=$ROW["POST_NO"];
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"><?=$POST_NO?></td>
</tr>
<?
}
if($AREA_COUNT>0)
{
?>
</table>
<?
}
else
Message("提示","没有符合条件的结果");
?>
</div>
<?
Button_Back();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?