📄 index.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";
echo "<s";
echo "cript>\r\nfunction LoadWindow()\r\n{\r\n URL=\"/general/crm/customer/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.showModalDialog(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\nfunction td_";
echo "calendar(fieldname)\r\n{\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+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</script>\r\n</head>\r\n\r\n<body class";
echo "=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$connection = openconnection( );
$query = "SELECT COUNT(*) from CONTACT";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$CONTACT_COUNT = $ROW[0];
}
if ( $CUSTOMER_ID2 != "" )
{
$query = "SELECT CUSTOMER_NAME from CUSTOMER where CUSTOMER_ID={$CUSTOMER_ID2}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$CUSTOMER_NAME = $ROW['CUSTOMER_NAME'];
}
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_open.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 交往记录查询 </span>\r\n </td>\r\n </tr>\r\n</table>\r\n<br>\r\n<div align=\"center\">\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n <form action=\"list.php\" method=\"post\" name=\"form1\" > \r\n <tr>\r\n <td nowrap class=\"TableData\">客户名称: </td>\r\n <td class=\"TableData\">\r\n <input type=\"hidden\" name=\"CUSTOMER_ID\" value=\"";
echo $CUSTOMER_ID;
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=\"CONTACT_DATE\" class=\"BigInput\" size=\"33\" maxlength=\"10\" value=\"";
echo $CONTACT_DATE;
echo "\"> \r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.CONTACT_DATE');\">\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=\"CONTACT_CONTENT\" class=\"BigInput\" wrap=\"yes\"></textarea>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableD";
echo "ata\">联系人: </td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"LINKMAN_NAME\" class=\"BigInput\" size=\"33\" maxlength=\"100\"> \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=\"MEMO\" class=\"BigInput\" size=\"33\" maxlength=\"100\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"Table";
echo "Control\" colspan=\"2\" align=\"center\">\r\n <input type=\"submit\" value=\"查询\" class=\"BigButton\" title=\"模糊查询\" name=\"button\">\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n\r\n</div>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -