📄 edit.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/check_type.php" );
echo "\r\n<html>\r\n<head>\r\n<title>客户编辑 </title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n if(document.form1.CUSTOMER_NAME.value==\"\")\r\n {\r\n \t\talert(\"客户名称不能为空!\");\r\n \treturn (false);\r\n }\r\n}\r\n\r\n</script>\r\n</head>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from CUSTOMER where CUSTOMER_ID={$CUSTOMER_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$CUSTOMER_NAME1 = $ROW['CUSTOMER_NAME'];
$TEL_NO1 = $ROW['TEL_NO'];
$FAX_NO1 = $ROW['FAX_NO'];
$CUSTOMER_WWW1 = $ROW['CUSTOMER_WWW'];
$EMAIL1 = $ROW['EMAIL'];
$CUSTOMER_ADD1 = $ROW['CUSTOMER_ADD'];
$POSTALCODE1 = $ROW['POSTALCODE'];
$MEMO1 = $ROW['MEMO'];
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.CUSTOMER_NAME.focus();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 客户信息编辑 </span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"500\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n <form action=\"update.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\">客户名称: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"CUSTOMER_N";
echo "AME\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $CUSTOMER_NAME1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">电话: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"TEL_NO\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $TEL_NO1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">传真: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"FAX_NO\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $FAX_NO1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">网址: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"CUSTOMER_WWW\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $CUSTOMER_WWW1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">电子邮件: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"EMAIL\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $EMAIL1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">地址: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"CUSTOMER_ADD\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $CUSTOMER_ADD1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">邮政编码: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"POSTALCODE\" class=\"BigInput\" size=\"33\" maxlength=\"25\" value=\"";
echo $POSTALCODE1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">备注: </td>\r\n <td nowrap class=\"TableData\">\r\n <textarea cols=37 rows=3 name=\"MEMO\" class=\"BigInput\" wrap=\"yes\">";
echo $MEMO1;
echo "</textarea>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n <input type=\"hidden\" value=\"";
echo $CUSTOMER_ID;
echo "\" name=\"CUSTOMER_ID\">\r\n <input type=\"hidden\" value=\"CUSTOMER_NAME=";
echo $CUSTOMER_NAME;
echo "&TEL_NO=";
echo $TEL_NO;
echo "&FAX_NO=";
echo $FAX_NO;
echo "&CUSTOMER_WWW=";
echo $CUSTOMER_WWW;
echo "&EMAIL=";
echo $EMAIL;
echo "&CUSTOMER_ADD=";
echo $CUSTOMER_ADD;
echo "&POSTALCODE=";
echo $POSTALCODE;
echo "&MEMO=";
echo $MEMO;
echo "&PAGE_START=";
echo $PAGE_START;
echo "\" name=\"QUERY_LIST\">\r\n <input type=\"submit\" value=\"确定\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onclick=\"location='list.php?CUSTOMER_NAME=";
echo $CUSTOMER_NAME;
echo "&TEL_NO=";
echo $TEL_NO;
echo "&FAX_NO=";
echo $FAX_NO;
echo "&CUSTOMER_WWW=";
echo $CUSTOMER_WWW;
echo "&EMAIL=";
echo $EMAIL;
echo "&CUSTOMER_ADD=";
echo $CUSTOMER_ADD;
echo "&POSTALCODE=";
echo $POSTALCODE;
echo "&MEMO=";
echo $MEMO;
echo "&PAGE_START=";
echo $PAGE_START;
echo "'\">\r\n </td>\r\n </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -