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

📄 edit.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.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==\"\" || document.form1.LINKMAN_NAME.value.substr(0, 1) == \" \")\r\n   { \r\n   \t alert(\"姓名不能为空且开头不可以有空格!\");\r\n     return false;\r\n   }\r\n   document.form1.submit();\r\n}\r\n\r\nfunction td_calendar(fieldname)\r\n{\r\n  myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n  mytop=document.body.s";
echo "crollTop+event.clientY-event.offsetY+140;\r\n\r\n  window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:205px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\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  ";
echo "loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n  window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:400px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n  display1();\r\n}\r\n\r\n\r\nfunction display2()\r\n{\r\n\tvar linkman_name\t= document.form1.LINKMAN_NAME.value;\r\n\tvar show_display\t= document.getElementById('display2');\r\n\r\n\tif(";
echo "linkman_name == \"\" || linkman_name.substr(0, 1) == \" \")\r\n\t{\r\n\t\tshow_display.style.display\t= \"\";\r\n\t}else{\r\n\t\tshow_display.style.display\t= \"none\";\r\n\t}\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"display2()\">\r\n";
$connection = openconnection( );
$query = "select l.*, c.CUSTOMER_NAME from linkman as l, customer as c where l.LINKMAN_ID=".$_REQUEST['linkman_id']." and l.CUSTOMER_ID=c.CUSTOMER_ID";
$cursor = exequery( $connection, $query );
if ( !( $row = mysql_fetch_array( $cursor ) ) )
{
	exit( "数据库查询错误!" );
}
echo "<form action=\"update.php\"  method=\"post\" name=\"form1\">\r\n<input type=\"hidden\" name=\"r_b\" value=\"";
echo $_REQUEST['r_b'];
echo "\">\r\n<input type=\"hidden\" name=\"linkman_id\" value=\"";
echo $_REQUEST['linkman_id'];
echo "\">\r\n<input type=\"hidden\" name=\"customer_id\" value=\"";
echo $_REQUEST['customer_id'];
echo "\">\r\n<input type=\"hidden\" name=\"customer_id3\" value=\"";
echo $_REQUEST['customer_id3'];
echo "\">\r\n<input type=\"hidden\" name=\"edit_types\" value=\"";
echo $_REQUEST['edit_types'];
echo "\">\r\n<input type=\"hidden\" name=\"cur_page\" value=\"";
echo $_REQUEST['cur_page'];
echo "\">\r\n<input type=\"hidden\" name=\"sens\" value=\"";
echo $_REQUEST['sens'];
echo "\">\r\n<input type=\"hidden\" name=\"order\" value=\"";
echo $_REQUEST['order'];
echo "\">\r\n<input type=\"hidden\" name=\"CUSTOMER_ID2\" value=\"";
echo $_REQUEST['CUSTOMER_ID2'];
echo "\">\r\n<input type=\"hidden\" name=\"LINKMAN_NAME2\" value=\"";
echo $_REQUEST['LINKMAN_NAME2'];
echo "\">\r\n<input type=\"hidden\" name=\"BIRTHDAY2\" value=\"";
echo $_REQUEST['BIRTHDAY'];
echo "\">\r\n<input type=\"hidden\" name=\"POST_PRIV\" value=\"";
echo $_REQUEST['POST_PRIV'];
echo "\">\r\n<input type=\"hidden\" name=\"HOBBY\" value=\"";
echo $_REQUEST['HOBBY'];
echo "\">\r\n<input type=\"hidden\" name=\"ADD_HOME\" value=\"";
echo $_REQUEST['ADD_HOME'];
echo "\">\r\n<input type=\"hidden\" name=\"POSTALCODE_HOME\" value=\"";
echo $_REQUEST['POSTALCODE_HOME'];
echo "\">\r\n<input type=\"hidden\" name=\"TEL_NO_WORK\" value=\"";
echo $_REQUEST['TEL_NO_WORK'];
echo "\">\r\n<input type=\"hidden\" name=\"TEL_NO_HOME\" value=\"";
echo $_REQUEST['TEL_NO_HOME'];
echo "\">\r\n<input type=\"hidden\" name=\"MOBILE\" value=\"";
echo $_REQUEST['MOBILE'];
echo "\">\r\n<input type=\"hidden\" name=\"EMAIL\" value=\"";
echo $_REQUEST['EMAIL'];
echo "\">\r\n<input type=\"hidden\" name=\"OICQ\" value=\"";
echo $_REQUEST['OICQ'];
echo "\">\r\n<input type=\"hidden\" name=\"ICQ\" value=\"";
echo $_REQUEST['ICQ'];
echo "\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td><img src=\"/images/notify_new.gif\" align=\"absmiddle\">联系人信息编辑</td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n    <td><BUTTON class=btn onClick=\"CheckForm();\" title=\"保存\"><table><tr valign=top ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\"></td> <td>";
echo "<s";
echo "pan id=\"showallid\">保存</span></td></tr></table></BUTTON> <BUTTON class=btn onClick=\"location='index.php';\" title=\"返回\"><table><tr valign=top ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\"></td> <td>";
echo "<s";
echo "pan id=\"showallid\">返回</span></td></tr></table></BUTTON></a>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\" >  \r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">姓名: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"LINKMAN_NAME\" onkeyup='display2()' class=\"BigInput\" size=\"20\" maxlength=\"100\" value=\"";
echo $row['LINKMAN_NAME'];
echo "\">&nbsp;";
echo "<s";
echo "pan style=\"color:#FF0000;font:bold;\" id='display2'>!</span>\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\">生日: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"BIRTHDAY\" class=\"BigInput\" size=\"20\" value=\"";
echo $row['BIRTHDAY'];
echo "\" maxlength=\"10\">&nbsp;\r\n        <img src=\"/images/menu/calendar1.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BIRTHDAY');\">\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n\t<td nowrap class=\"TableLine2\"> 性别:</td>\r\n\t<td class=\"TableLine1\">\r\n\t";
echo "<s";
echo "elect name=\"SEX\" class=\"BigSelect\">\r\n\t\t<option value=\"0\" ";
if ( $row['SEX'] == 0 )
{
	echo "selected";
}
echo ">男</option>\r\n\t\t<option value=\"1\" ";
if ( $row['SEX'] == 1 )
{
	echo "selected";
}
echo ">女</option>\r\n\t</select>\r\n\t</td>\r\n\t<td nowrap class=\"TableLine2\">家庭住址: </td>\r\n\t<td nowrap class=\"TableLine1\">\r\n\t\t<input type=\"text\" value=\"";
echo $row['ADD_HOME'];
echo "\" name=\"ADD_HOME\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n\t</td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">职位: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['POST_PRIV'];
echo "\" name=\"POST_PRIV\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\">家庭邮编: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['POSTALCODE_HOME'];
echo "\" name=\"POSTALCODE_HOME\" class=\"BigInput\" size=\"20\" maxlength=\"25\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">电话: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['TEL_NO_WORK'];
echo "\" name=\"TEL_NO_WORK\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\">家庭电话: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['TEL_NO_HOME'];
echo "\" name=\"TEL_NO_HOME\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">手机: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['MOBILE'];
echo "\" name=\"MOBILE\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\">爱好: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['HOBBY'];
echo "\" name=\"HOBBY\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">EMAIL: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['EMAIL'];
echo "\" name=\"EMAIL\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\">QQ: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['OICQ'];
echo "\" name=\"OICQ\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">MSN: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" value=\"";
echo $row['ICQ'];
echo "\" name=\"ICQ\" class=\"BigInput\" size=\"20\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\">主要联系人: </td>\r\n\t<td nowrap class=\"TableLine1\"><input ";
if ( $row['MOSTLY_LINKMAN'] == 1 )
{
	echo "checked";
}
echo " type=\"checkbox\" name=\"mostly_linkman\" id=\"mostly_linkman\" value=\"1\">&nbsp;";
echo "<s";
echo "pan style='color:#FF0000;font:bold;'>主要联系人不能超过一个</span></td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">备注:</td>\r\n    <td nowrap class=\"TableLine1\" colspan=\"3\">\r\n      <textarea cols=37 rows=3 name=\"MEMO\" class=\"BigInput\" wrap=\"yes\">";
echo $row['MEMO'];
echo "</textarea>\r\n    </td>\r\n   </tr>\r\n</table>\r\n </form>\r\n";
echo "<s";
echo "cript>\r\nvar linkman_n\t= document.getElementById('LINKMAN_NAME');\r\nvar show_display2\t= document.getElementById('display2');\r\n\r\nif(linkman_n.value != null){\r\n\tshow_display2.style.display\t= \"none\";\r\n}else{\r\n\tshow_display2.style.display\t= \"\";\r\n}\r\n</script>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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