📄 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/sale/product/manage/provider_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\n</SC";
echo "RIPT>\r\n</head>\r\n\r\n<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\">";
echo "<s";
echo "pan class=\"big3\"> 新建产品 </span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<div align=\"center\">\r\n<input type=\"button\" value=\"新建产品\" class=\"BigButton\" onClick=\"location='new.php';\" title=\"添加新的产品\">\r\n</div>\r\n\r\n<br>\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n";
$connection = openconnection( );
$query = "SELECT COUNT(*) from PRODUCT";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRODUCT_COUNT = $ROW[0];
}
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\"> 产品管理(产品总数 <font color=\"FF0000\">";
echo $PRODUCT_COUNT;
echo " </font>)</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 nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"PRODUCT_NAME\" class=\"BigInput\" size=";
echo "\"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=\"PRODUCT_TYPE\" 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=\"MEASURE_UNIT\" class=\"B";
echo "igInput\" 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=\"COST_PRICE\" class=\"BigInput\" size=\"33\" maxlength=\"25\"> \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=\"STANDARD_PRICE\"";
echo " class=\"BigInput\" size=\"33\" maxlength=\"25\"> \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=\"PRODUCT_DESC\" 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 class=\"TableData\">\r\n <input type=\"hidden\" name=\"PROVIDER_";
echo "ID\" value=\"";
echo $PROVIDER_ID;
echo "\">\r\n <input type=\"text\" name=\"PROVIDER_NAME\" class=\"BigStatic\" size=\"33\" maxlength=\"100\" readonly value=\"";
echo $PROVIDER_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=\"TableControl\" 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 + -