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

📄 edit.php

📁 通达OA官方提供的30源代码,感觉很实在
💻 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.TYPE_NAME.value=="")
   { alert("类型名称不能为空!");
     return (false);
   }
}
</script>
</head>

<?
 $query = "SELECT * from PLAN_TYPE where TYPE_ID='$TYPE_ID'";
 $cursor= exequery($connection,$query);

 if($ROW=mysql_fetch_array($cursor))
 {
    $TYPE_NAME=$ROW["TYPE_NAME"];
    $TYPE_NO=$ROW["TYPE_NO"];
 }
?>

<body class="bodycolor" topmargin="5" onload="document.form1.TYPE_NO.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>

<table class="TableBlock"  width="450" align="center" >
  <form action="update.php"  method="post" name="form1" onsubmit="return CheckForm();">
   <tr>
    <td nowrap class="TableData">排序号:</td>
    <td nowrap class="TableData">
        <input type="text" name="TYPE_NO" class="BigInput" size="2" maxlength="10" value="<?=$TYPE_NO?>">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">计划类型名称:</td>
    <td nowrap class="TableData">
        <input type="text" name="TYPE_NAME" class="BigInput" size="25" maxlength="25" value="<?=$TYPE_NAME?>">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap  class="TableControl" colspan="2" align="center">
        <input type="hidden" value="<?=$TYPE_ID?>" name="TYPE_ID">
        <input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
        <input type="button" value="返回" class="BigButton" onclick="location='index.php'">
    </td>
  </form>
</table>

</body>
</html>

⌨️ 快捷键说明

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