📄 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.LINKMAN_NAME.value==\"\")\r\n {\r\n \t\talert(\"姓名不能为空!\");\r\n \treturn (false);\r\n }\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n URL=\"/general/crm/linkman/customer_select\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n window.showModalDial";
echo "og(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:245px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from LINKMAN where LINKMAN_ID={$LINKMAN_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$CUSTOMER_ID1 = $ROW['CUSTOMER_ID'];
$LINKMAN_NAME1 = $ROW['LINKMAN_NAME'];
$SEX1 = $ROW['SEX'];
$BIRTHDAY1 = $ROW['BIRTHDAY'];
$POST_PRIV1 = $ROW['POST_PRIV'];
$HOBBY1 = $ROW['HOBBY'];
$ADD_HOME1 = $ROW['ADD_HOME'];
$POSTALCODE_HOME1 = $ROW['POSTALCODE_HOME'];
$TEL_NO_WORK1 = $ROW['TEL_NO_WORK'];
$TEL_NO_HOME1 = $ROW['TEL_NO_HOME'];
$MOBILE1 = $ROW['MOBILE'];
$EMAIL1 = $ROW['EMAIL'];
$OICQ1 = $ROW['OICQ'];
$ICQ1 = $ROW['ICQ'];
$MEMO1 = $ROW['MEMO'];
}
$query = "SELECT CUSTOMER_NAME from CUSTOMER where CUSTOMER_ID={$CUSTOMER_ID1}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$CUSTOMER_NAME = $ROW['CUSTOMER_NAME'];
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.LINKMAN_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 class=\"TableData\">\r\n <input type=\"hidden\" name=\"CUSTOMER_ID\" va";
echo "lue=\"";
echo $CUSTOMER_ID1;
echo "\">\r\n <input type=\"text\" name=\"CUSTOMER_NAME\" class=\"BigStatic\" size=\"33\" maxlength=\"100\" readonly value=\"";
echo $CUSTOMER_NAME;
echo "\"> \r\n <input type=\"button\" value=\"选 择\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"选择客户\" name=\"button\">\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=\"LINKMAN_NAME\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $LINKMAN_NAME1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 性别:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"SEX\" class=\"BigSelect\">\r\n <option value=\"0\" ";
if ( $SEX1 == 0 )
{
echo "selected";
}
echo ">男</option>\r\n <option value=\"1\" ";
if ( $SEX1 == 1 )
{
echo "selected";
}
echo ">女</option>\r\n </select>\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=\"BIRTHDAY\" class=\"BigInput\" size=\"33\" maxlength=\"10\" value=\"";
echo $BIRTHDAY1;
echo "\"> \r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BIRTHDAY');\">\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=\"POST_PRIV\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $POST_PRIV1;
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=\"HOBBY\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $HOBBY1;
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=\"ADD_HOME\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $ADD_HOME1;
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_HOME\" class=\"BigInput\" size=\"33\" maxlength=\"25\" value=\"";
echo $POSTALCODE_HOME1;
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_WORK\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $TEL_NO_WORK1;
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_HOME\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $TEL_NO_HOME1;
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=\"MOBILE\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $MOBILE1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">EMAIL: </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\">OICQ号码: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"OICQ\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $OICQ1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">ICQ号码: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"ICQ\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $ICQ1;
echo "\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\" width=\"120\">备注:</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 $LINKMAN_ID;
echo "\" name=\"LINKMAN_ID\">\r\n <input type=\"hidden\" value=\"CUSTOMER_ID=";
echo $CUSTOMER_ID;
echo "&LINKMAN_NAME=";
echo $LINKMAN_NAME;
echo "&SEX=";
echo $SEX;
echo "&BIRTHDAY=";
echo $BIRTHDAY;
echo "&POST_PRIV=";
echo $POST_PRIV;
echo "&HOBBY=";
echo $HOBBY;
echo "&ADD_HOME=";
echo $ADD_HOME;
echo "&POSTALCODE_HOME=";
echo $POSTALCODE_HOME;
echo "&TEL_NO_WORK=";
echo $TEL_NO_WORK;
echo "&TEL_NO_HOME=";
echo $TEL_NO_HOME;
echo "&MOBILE=";
echo $MOBILE;
echo "&EMAIL=";
echo $EMAIL;
echo "&OICQ=";
echo $OICQ;
echo "&ICQ=";
echo $ICQ;
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_ID=";
echo $CUSTOMER_ID;
echo "&LINKMAN_NAME=";
echo $LINKMAN_NAME;
echo "&SEX=";
echo $SEX;
echo "&BIRTHDAY=";
echo $BIRTHDAY;
echo "&POST_PRIV=";
echo $POST_PRIV;
echo "&HOBBY=";
echo $HOBBY;
echo "&ADD_HOME=";
echo $ADD_HOME;
echo "&POSTALCODE_HOME=";
echo $POSTALCODE_HOME;
echo "&TEL_NO_WORK=";
echo $TEL_NO_WORK;
echo "&TEL_NO_HOME=";
echo $TEL_NO_HOME;
echo "&MOBILE=";
echo $MOBILE;
echo "&EMAIL=";
echo $EMAIL;
echo "&OICQ=";
echo $OICQ;
echo "&ICQ=";
echo $ICQ;
echo "&MEMO=";
echo $MEMO;
echo "&PAGE_START=";
echo $PAGE_START;
echo "'\">\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -