⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once("inc/auth.php");
?>

<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.POST_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" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 邮政编码查询</span>
    </td>

  </tr>
</table>

<br>
<div align="center">

  <table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3">
    <tr class="TableHeader">
      <td nowrap align="center" colspan="5"><b>省(直辖市/自治区)</b></td>
    </tr>

<?
 //============================ 显示省名 =======================================
 $query = "SELECT PROVINCE from POST_TEL where length(POST_NO)=6 group by PROVINCE";
 $connection=OpenConnection();
 $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="post_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">&nbsp;</td>
<?
 }
?>
    </tr>
  </table>
<br>


<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3">
<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="POST_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 + -