?? new.php
字號:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>代碼編輯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function CheckForm()
{
if(document.form1.PARENT_NO.value=="")
{ alert("主分類不能為空!");
return (false);
}
if(document.form1.CODE_NO.value=="")
{ alert("編號不能為空!");
return (false);
}
if(document.form1.CODE_ORDER.value=="")
{ alert("排序號不能為空!");
return (false);
}
if(document.form1.CODE_NAME.value=="")
{ alert("名稱不能為空!");
return (false);
}
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.CODE_NO.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 增加數據項</span>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="insert.php" method="post" name="form1" onsubmit="return CheckForm();">
<tr height="30">
<td nowrap class="TableData" width="120">數據主分類:</td>
<td nowrap class="TableData">
<select name="PARENT_NO" class="BigSelect">
<?
$query = "SELECT * from SYS_CODE where PARENT_NO='' order by CODE_ORDER";
$cursor= exequery($connection,$query);
while($ROW=mysql_fetch_array($cursor))
{
$CODE_NO=$ROW["CODE_NO"];
$CODE_NAME=$ROW["CODE_NAME"];
?>
<option value="<?=$CODE_NO?>"<? if($CODE_NO==$PARENT_NO) echo " selected";?>><?=$CODE_NAME?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td nowrap class="TableData" width="120">編號:</td>
<td nowrap class="TableData">
<input type="text" name="CODE_NO" class="BigInput" size="20" maxlength="100" value="">
</td>
</tr>
<tr>
<td nowrap class="TableData" width="120">排序號:</td>
<td nowrap class="TableData">
<input type="text" name="CODE_ORDER" class="BigInput" size="20" maxlength="100" value="">
</td>
</tr>
<tr>
<td nowrap class="TableData">名稱:</td>
<td nowrap class="TableData">
<input type="text" name="CODE_NAME" class="BigInput" size="20" maxlength="100" value="">
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="確定" class="BigButton">
<input type="button" value="返回" class="BigButton" onclick="history.back();">
</td>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -