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

📄 index.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php
 

include_once( "inc/auth.php" );
include_once( "inc/utility_all.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<script Language=\"JavaScript\">\r\nfunction IsNumber(str)\r\n{\r\n   return str.match(/^[0-9]*\$/)!=null;\r\n}\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.CHANCE_NAME.value==\"\")\r\n   { alert(\"机会主题不能为空!\");\r\n     return (false);\r\n   }\r\n\r\n   if (document.form1.BARGAIN_MONEY.value!=\"\"&&!IsNumber(document.form1.BARGAIN_MONEY.value))\r\n   { alert(\"预计成交金额只能是数字!\");\r\n     return (false);\r\n   }\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n  URL=\"/module/user_select_single\";\r\n  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n  loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;\r\n  window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction LoadWindow1()\r\n{\r\n  URL=\"/general/sale_manage/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.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\n\r\nfunction td_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:215px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n</script>\r\n</head>\r\n";
$query = "select * from SALE_MANAGER where MANAGER_ID=1";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$MANAGER_ID = $ROW['MANAGER_ID'];
	$MANAGERS = $ROW['MANAGERS'];
}
$query2 = "select * from USER where USER_ID='".$LOGIN_USER_ID."'";
$cursor2 = exequery( $connection, $query2 );
if ( $ROW = mysql_fetch_array( $cursor2 ) )
{
	$SELLER1_NAME = $ROW['USER_NAME'];
}
echo "<body class=\"bodycolor\" topmargin=\"5\">\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_new.gif\" align=\"absmiddle\"><span class=\"big3\"> 新建机会</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"85%\"  class=\"small\"  bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n  <form action=\"add.php\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n  <TR>\r\n      <TD class=\"TableData\">机会主题:</TD>\r\n      <TD class=\"TableData\">\r\n       <INPUT name=\"CHANCE_NAME\" id=\"CHANCE_NAME\" size=50 class=\"SmallInput\">\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">客户单位:</TD>\r\n      <TD class=\"TableData\">\r\n        <input type=\"hidden\" name=\"CUSTOMER_ID\" value=\"\" size=\"20\" maxlength=\"50\" class=\"SmallInput\">\r\n        <input type=\"text\" name=\"CUSTOMER_NAME\" value=\"\" size=\"20\" maxlength=\"50\" class=\"SmallStatic\">\r\n      <input type=\"button\" value=\"选 择\" class=\"SmallButton\" onClick=\"LoadWindow1()\" title=\"选择客户\" name=\"button\">\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">机会等级:</TD>\r\n      <TD class=\"TableData\">\r\n\t<select name=\"CHANCE_RANK\" class=\"SmallSelect\">\r\n\t  <option value=\"\" ></option>\r\n    ";
echo code_list( "CHANCE_RANK", $CHANCE_RANK );
echo "\t</select>\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">机会状态:</TD>\r\n      <TD class=\"TableData\">\r\n\t<select name=\"CHANCE_STATUS\" class=\"SmallSelect\">\r\n\t  <option value=\"\" ></option>\r\n    ";
echo code_list( "CHANCE_STATUS", $CHANCE_STATUS );
echo "\t</select>\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">预计成交时间:</TD>\r\n      <TD class=\"TableData\">\r\n        <input type=\"text\" name=\"BARGAIN_DATE\" value=\"\" size=\"20\" maxlength=\"50\" class=\"SmallInput\">\r\n        <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BARGAIN_DATE');\">\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">预计成交金额:</TD>\r\n      <TD class=\"TableData\">\r\n        <input type=\"text\" name=\"BARGAIN_MONEY\" value=\"\" size=\"30\" maxlength=\"50\" class=\"SmallInput\">\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">业务员:</TD>\r\n      <TD class=\"TableData\">\r\n         <input type=\"text\" name=\"TO_NAME\" size=\"15\" class=\"BigStatic\" readonly value=\"";
echo $SELLER1_NAME;
echo "\">\r\n";
if ( find_id( $MANAGERS, $LOGIN_USER_ID ) )
{
	echo "         <input type=\"button\" value=\"选择\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"指定销售员\" name=\"button\">\r\n";
}
echo "       <input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $LOGIN_USER_ID;
echo "\">\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD class=\"TableData\">完成度:</TD>\r\n      <TD class=\"TableData\">\r\n        <input type=\"text\" name=\"FINISH\" value=\"\" size=\"10\" maxlength=\"50\" class=\"SmallInput\"> %\r\n     </TD>\r\n  </TR>\r\n  <TR>\r\n      <TD nowrap class=\"TableData\">达成率:</TD>\r\n      <TD class=\"TableData\">\r\n        <input type=\"text\" name=\"ACHIEVE\" value=\"\" size=\"10\" maxlength=\"50\" class=\"SmallInput\"> %\r\n      </TD>\r\n  </TR>\r\n  <TR>\r\n    <TD nowrap class=\"TableData\">机会描述:</TD>\r\n    <TD class=\"TableData\">\r\n      <input type=\"text\" name=\"DESC\" value=\"\" size=\"50\" maxlength=\"50\" class=\"SmallInput\">\r\n    </TD>\r\n  </TR>\r\n  <TR>\r\n    <TD nowrap class=\"TableData\">备注:</TD>\r\n    <TD class=\"TableData\">\r\n      <input type=\"text\" name=\"REMARK\" value=\"\" size=\"50\" maxlength=\"50\" class=\"SmallInput\">\r\n    </TD>\r\n   </TR>\r\n   <tr>\r\n    <td nowrap  class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n        <input type=\"submit\" value=\"确定\" class=\"BigButton\" title=\"新建机会\" name=\"button\">&nbsp;\r\n        <input type=\"button\" value=\"清空\" class=\"BigButton\" onclick=\"location='index.php'\">\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 + -