new.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 71 行

PHP
71
字号
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>菜单编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function CheckForm()
{
 if(document.form1.MENU_ID.value=="")
 { alert("菜单ID不能为空!");
	 return (false);
 }
 if(document.form1.MENU_ID.value.length!=2)
 { alert("菜单ID应为2位数字!");
	 return (false);
 }
 if(document.form1.MENU_NAME.value=="")
 { alert("菜单名称不能为空!");
	 return (false);
 }
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.MENU_ID.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>
	<td nowrap class="TableData" width="120">主菜单分类代码:</td>
	<td nowrap class="TableData">
			<input type="text" name="MENU_ID" class="BigInput" size="2" maxlength="2" value="';
echo $MENU_ID;
echo '">
			代码请尽量间隔开,2位数字
	</td>
 </tr>
 <tr>
	<td nowrap class="TableData">菜单名称:</td>
	<td nowrap class="TableData">
			<input type="text" name="MENU_NAME" class="BigInput" size="20" maxlength="50" value="';
echo $MENU_NAME;
echo '">&nbsp;
	</td>
 </tr>
 <tr>
	<td nowrap class="TableData">图片名:</td>
	<td nowrap class="TableData">
			<input type="text" name="IMAGE" class="BigInput" size="20" maxlength="50" value="';
echo $IMAGE;
echo '">&nbsp;
	</td>
 </tr>
 <tr>
	<td nowrap  class="TableControl" colspan="2" align="center">
			<input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
			<input type="button" value="返回" class="BigButton" onclick="location=\'blank.php\'">
	</td>
</form>
</table>
</body>
</html>';
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?