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

📄 edit.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once("inc/auth.php");
include_once("inc/conn.php");
?>

<html>
<head>
<title>邮件箱编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script Language="JavaScript">
function CheckForm()
{
   if(document.form1.BOX_NO.value=="")
   { alert("系统编号不能为空!");
     return (false);
   }
   
   if(document.form1.BOX_NAME.value=="")
   { alert("系统名称不能为空!");
     return (false);
   }
}
</script>
</head>

<?
 $query = "SELECT * from EMAIL_BOX where BOX_ID=$BOX_ID";
 $connection=OpenConnection();
 $cursor= exequery($connection,$query);

 if($ROW=mysql_fetch_array($cursor))
 {
    $BOX_ID=$ROW["BOX_ID"];
    $BOX_NO=$ROW["BOX_NO"];
    $BOX_NAME=$ROW["BOX_NAME"];
}
?>

<body class="bodycolor" topmargin="5" onload="document.form1.BOX_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 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>
    <td nowrap class="TableData">序号:</td>
    <td nowrap class="TableData">
        <input type="text" name="BOX_NO" class="BigInput" size="25" maxlength="25" value="<?=$BOX_NO?>">
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">名称:</td>
    <td nowrap class="TableData">
        <input type="text" name="BOX_NAME" class="BigInput" size="25" maxlength="25" value="<?=$BOX_NAME?>">
    </td>
   </tr>
   <tr>
    <td nowrap  class="TableControl" colspan="2" align="center">
        <input type="hidden" value="<?=$BOX_ID?>" name="BOX_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 + -