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

📄 edit.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
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.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>
';
$connection = openconnection ();
$query = 'SELECT * from SYS_CODE where CODE_ID=' . $CODE_ID;
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
	$CODE_NO = $ROW['CODE_NO'];
	$CODE_NAME = $ROW['CODE_NAME'];
	$CODE_ORDER = $ROW['CODE_ORDER'];
	$PARENT_NO = $ROW['PARENT_NO'];
	$CODE_FLAG = $ROW['CODE_FLAG'];
}
echo '
<body class="bodycolor" topmargin="5" onload="document.form1.CODE_ORDER.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
	<td class="Big"><img src="/images/edit.gif" WIDTH="22" HEIGHT="20" 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="update.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 CODE_NO=\'' . $PARENT_NO . '\' and PARENT_NO=\'\'';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
	$CODE_NO1 = $ROW['CODE_NO'];
	$CODE_NAME1 = $ROW['CODE_NAME'];
	echo '          <option value="';
	echo $CODE_NO1;
	echo '"';
	if ($CODE_NO1 == $PARENT_NO)
	{
		echo ' selected';
	}
	echo '>';
	echo $CODE_NAME1;
	echo '</option>
';
}
echo '        </select>
	</td>
 </tr>
 <tr>
	<td nowrap class="TableData" width="120">代码编号:</td>
	<td nowrap class="TableData">
			<input type="text" name="CODE_NO" class="';
if ($CODE_FLAG == '0')
{
	echo 'BigStatic';
}
else
{
	echo 'BigInput';
}
echo '" size="20" maxlength="100" value="';
echo $CODE_NO;
echo '"';
if ($CODE_FLAG == '0')
{
	echo ' readonly';
}
echo '>&nbsp;
	</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="';
echo $CODE_ORDER;
echo '">
	</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="';
echo $CODE_NAME;
echo '">&nbsp;
	</td>
 </tr>
 <tr>
	<td nowrap  class="TableControl" colspan="2" align="center">
			<input type="hidden" value="';
echo $CODE_ID;
echo '" name="CODE_ID">
			<input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
			<input type="button" value="返回" class="BigButton" onclick="history.back();">
	</td>
</form>
</table>
</body>
</html>';
?>

⌨️ 快捷键说明

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