📄 bill.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>选择名称</title>\r\n";
echo "<s";
echo "cript>\r\nvar parent_window\t= parent.dialogArguments;\r\nfunction show(appellation_id, bill){\r\n\tparent_window.form1.appellation_id.value = appellation_id;\r\n\tparent_window.form1.bill.value\t= bill;\r\n}\r\n</script>\r\n</head>\r\n\r\n<body>\r\n<table border=\"0\" width=\"100%\" class=\"small\" cellspacing=\"1\" cellpadding=\"5\">\r\n\t<tr class=\"TableHeader\">\r\n\t\t<td>名称</td>\r\n\t\t<td>入库单据号</td>\r\n\t</tr>\r\n";
$connection = openconnection( );
$query = "select * from officeitem_joinstoreroom";
$cursor = exequery( $connection, $query );
$count = 0;
while ( $row = mysql_fetch_array( $cursor ) )
{
++$count;
$appellation_id = $row['APPELLATION_ID'];
$bill = $row['BILL'];
$query2 = "select APPELLATION from officeitem_appellation where APPELLATION_ID=".$appellation_id;
$cursor2 = exequery( $connection, $query2 );
if ( $row2 = mysql_fetch_row( $cursor2 ) )
{
$appellation = $row2[0];
}
if ( $count % 2 == 1 )
{
$TableLine = "TableLine1";
}
else
{
$TableLine = "TableLine2";
}
echo "\t<tbody style=\"cursor:hand\" class=\"";
echo $TableLine;
echo "\" onclick=\"show('";
echo $appellation_id;
echo "','";
echo $bill;
echo "')\">\r\n\t\t<td>";
echo $appellation;
echo "</td>\r\n\t\t<td>";
echo $bill;
echo "</td>\r\n\t</tbody>\r\n";
}
echo "</table>\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -