edit.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 84 行

PHP
84
字号
<?
  include_once 'inc/auth.php';
  echo '
<html>
<head>
<title>编辑网址</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript Language="JavaScript">
function CheckForm()
{
   if(document.form1.URL_DESC.value=="")
   { alert("说明不能为空!");
     return (false);
   }
   if(document.form1.URL.value=="")
   { alert("网址不能为空!");
     return (false);
   }
}
</script>
</head>
';
  $query = ((''.'SELECT * from URL where URL_ID=').$URL_ID);
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $URL_ID = $ROW['URL_ID'];
    $URL_NO = $ROW['URL_NO'];
    $URL_DESC = $ROW['URL_DESC'];
    $URL = $ROW['URL'];
  }
  echo '
<body class="bodycolor" topmargin="5" onload="document.form1.URL_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">';
  echo '<s';
  echo 'pan 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="URL_NO" class="BigIn';
  echo 'put" size="10" maxlength="25" value="';
  echo $URL_NO;
  echo '">
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">说明:</td>
    <td nowrap class="TableData">
        <input type="text" name="URL_DESC" class="BigInput" size="25" maxlength="200" value="';
  echo $URL_DESC;
  echo '">
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">网址:</td>
    <td nowrap class="TableData">
        <input type="text" name="URL" class="BigInput" size="25" maxlength="200" value="';
  echo $URL;
  echo '">
    </td>
   </tr>
   <tr>
    <td nowrap  class="TableControl" colspan="2" align="center">
        <input type="hidden" value="';
  echo $URL_ID;
  echo '" name="URL_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 + =
减小字号Ctrl + -
显示快捷键?