📄 product_info.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>办公用品</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<? include_once("inc/menu_button.js");?>
<script Language="JavaScript">
var parent_window = parent.dialogArguments;
function add_product(PROID)
{
for(var i=1;i<parent_window.form1.PRO_ID.options.length;i++)
{
parent_window.form1.PRO_ID.selectedIndex=i;
if(parent_window.form1.PRO_ID.value==PROID)
break;
}
parent_window.form1.PRO_ID.selected;
parent.close();
}
</script>
</head>
<body class="bodycolor" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)" onclick="borderize_on1(event)" topmargin="5">
<?
$query = "SELECT * from OFFICE_PRODUCTS where PRO_NAME like '%$PRODUCT_NAME%' order by PRO_NAME";
$cursor= exequery($connection,$query);
$PRODUCT_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$PRODUCT_COUNT++;
$PROID=$ROW["PRO_ID"];
$PRONAME=$ROW["PRO_NAME"];
$PROSTOCK=$ROW["PRO_STOCK"];
$PROUNIT=$ROW["PRO_UNIT"];
if($PRODUCT_COUNT==1)
{
?>
<table border="1" cellspacing="0" width="95%" class="small" cellpadding="3" bordercolorlight="#000000" bordercolordark="#FFFFFF" align="center">
<?
}
?>
<tr class="TableControl">
<td class="menulines" align="center" onclick="javascript:add_product('<?=$PROID?>')" style="cursor:hand"><?=$PRONAME?>/库存<?=$PROSTOCK?><?=$PROUNIT?></a></td>
</tr>
<?
if($PRODUCT_COUNT>=50)
break;
}
if($PRODUCT_COUNT==0)
Message("提示","没有定义产品");
else
{
?>
<thead class="TableControl">
<th bgcolor="#d6e7ef" align="center"><b>选择产品(最多显示50条)</b></th>
</thead>
</table>
<?
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -