📄 take_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(take_id, take_bill){\r\n\tparent_window.form1.take_id.value = take_id;\r\n\tparent_window.form1.take_bill.value\t= take_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_take";
$cursor = exequery( $connection, $query );
$count = 0;
while ( $row = mysql_fetch_array( $cursor ) )
{
++$count;
$take_id = $row['TAKE_ID'];
$appellation_id = $row['APPELLATION_ID'];
$take_bill = $row['TAKE_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 $take_id;
echo "','";
echo $take_bill;
echo "')\">\r\n\t\t<td>";
echo $appellation;
echo "</td>\r\n\t\t<td>";
echo $take_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 + -