查看文件: city_zone_show1.php
大小: 3.83 KB
类型: application/octet-stream
<?php require('system/login.php'); ?> <?php require_once('../Connections/BE2.php'); ?> <?php if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $city = $_POST['city']; foreach ($city as $scity=>$value) { echo "city : ".$value."<br />"; } echo " <br />"; if (isset($_POST['city'])) { print_r($_POST['city']); } /* $write=''; $updateSQL = sprintf("INSERT INTO kbdoc (k1,kbdoc)VALUES(%s,%s)", GetSQLValueString($_POST['ydoc'], "text"), GetSQLValueString($_POST['kbdoc'], "text"), GetSQLValueString($_POST['ykid'], "text"), GetSQLValueString($_POST['ylink'], "text"), GetSQLValueString($_POST['yflag'], "text"), GetSQLValueString($imagename, "text"), GetSQLValueString($_POST['yindex'], "int")); mysql_select_db($database_BE2, $BE2); $Result1 = mysql_query($updateSQL, $BE2) or die(mysql_error()); // $updateGoTo =$_POST['url']; // echo "<script>alert('上傳完成 ..');location.href='".$updateGoTo."';</script>"; */ } mysql_select_db($database_BE2, $BE2); $query_R2 = "SELECT * FROM `addrcity` WHERE k1 <25"; $R2 = mysql_query($query_R2, $BE2) or die(mysql_error()); $row_R2 = mysql_fetch_assoc($R2); ?> <form action="" method="post" name="form1" id="form1" > <table width="50%" align="center"> <tr valign="baseline"> <th height="38" colspan="3" align="center" valign="middle" nowrap="nowrap"><span class="font2">城市分區表 新增</span><span class="font2">分區</span></th> </tr> <tr valign="baseline"> <th width="16%" height="42" align="center" valign="middle" nowrap="nowrap"> </th> <td width="71%" valign="middle"> </td> <td width="13%" valign="baseline"> </td> </tr> <tr valign="baseline"> <th height="42" align="center" valign="middle" nowrap="nowrap"><span class="font2">分區說明</span>:</th> <td valign="middle"><input name="kbdoc" type="text" id="kbdoc" value="" size="32" /></td> <td width="13%" valign="baseline"> </td> </tr> <tr valign="baseline"> <th height="38" align="center" valign="middle" nowrap="nowrap"><span class="font2">城市選擇:</span></th> <td valign="middle"> <table width="100" border="1" cellpadding="1"> <tr> <? $i=0; do{ $i++; if($i%3==0){ echo '</tr><tr>' ;} ?> <td width="52"><input name="city[]" type="checkbox" id="city[]" value="<?= $row_R2['k1'] ?>" /> <label for="city[]"> <?= $row_R2['county']; ?> </label></td> <?php } while ($row_R2 = mysql_fetch_assoc($R2)); ?> </tr> </table></td> <td valign="baseline"> </td> </tr> <tr valign="baseline"> <th height="42" align="center" valign="middle" nowrap="nowrap"> </th> <td valign="middle"> </td> <td valign="baseline"> </td> </tr> <tr valign="baseline"> <td height="30" align="center" valign="middle" nowrap="nowrap"> </td> <td height="30" align="left" valign="middle" nowrap="nowrap"><label for="select"></label></td> <td align="left" valign="middle" nowrap="nowrap"> </td> </tr> <tr valign="baseline"> <td height="34" colspan="3" align="center" valign="middle" nowrap="nowrap"><br></td> </tr> <tr valign="baseline"> <td height="40" colspan="3" align="center" valign="middle" nowrap="nowrap"><input type="submit" value="更新" /></td> </tr> </table> <input type="hidden" name="MM_update" id="MM_update" value="form1" /> <input name="url" type="hidden" id="url" value="<?= $_SERVER['HTTP_REFERER']; ?>" /> </form> <? mysql_free_result($R2); ?>
保存
取消
返回文件列表