viewargsh.php
来自「一个php的公司信息系统」· PHP 代码 · 共 143 行
PHP
143 行
<?
require('session.inc');
require('connect.inc');
if ($usern=="none")
{
html_header("非法登录,拒绝访问 - ACCESS DENIED",'<META http-equiv="refresh" content="3; url=index.php">');
echo "<td align=right valign=center><br>
Sorry, 您正想非法登录本系统,请正常登录!<br>系统会在3秒后自动返回登录页面。
<br><br><br><a href=index.php>返回登录</a></td>";
html_footer();
}
else
{
?>
<html>
<head>
<title>::: DATABASE 化妆品公司数据库管理系统 - 查询调货单明细 :::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="common.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="770" border="0" cellspacing="0" cellpadding="0" align="center" height="450">
<tr>
<td background="images/bg2.jpg">
<table width="770" border="0" cellspacing="0" cellpadding="0" height="450">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="450">
<tr>
<td height="140" class="bigh"><font color="#FF3333">查询调货单明细</font></td>
</tr>
<tr>
<td valign=top>
<div align="right"><br>
<?
$str_sql="select * from ARRANGERRC where shid = '$shid';";
$result=mysql_db_query($db,$str_sql,$link_id);
if (!$result) html_error_exit('MySQL查询命令失败!');
$nor=@mysql_num_rows($result);
$num=$page*8;
$dp=$page+1;
$num0=$num+1;
$maxp=ceil($nor/8);
if ($page<$maxp-1) $num1=$dp*8;
else $num1=$nor;
$str_sql="select * from ARRANGERRC where shid = '$shid' limit $num,8;";
$result=mysql_db_query($db,$str_sql,$link_id);
if (!$result) html_error_exit('MySQL查询命令失败!');
echo "编号<font face=Arial color=#ff3333><b> $shid </b></font>
发货<font color=#ff3333><b> $outname </b></font>
收货<font color=#ff3333><b> $inname </b></font>
调拨日期 <font face=Arial>$checkdate </font>
发货日期 <font face=Arial>$outdate </font>
收货日期 <font face=Arial>$indate </font><br>
批核人 $checkp 发货人 $outp 收货人 $inp";
?>
<table width="100%" border="0" cellspacing="2" cellpadding="1">
<tr bgcolor="#000000">
<td width=25%>
<div align="center"><b><font color="#FFFFFF">产 品</font></b></div>
</td>
<td width=25%>
<div align="center"><b><font color="#FFFFFF">价 格</font></b></div>
</td>
<td width=25%>
<div align="center"><b><font color="#FFFFFF">收 货 量</font></b></div>
</td>
<td>
<div align="center"><b><font color="#FFFFFF">发 货 量</font></b></div>
</td>
</tr>
<?
$html='';
$bgc='DDDDDD';
while ($record=mysql_fetch_object($result))
{
if ($bgc=='DDDDDD')
$bgc='EEEEEE';
else
$bgc='DDDDDD';
$pid=$record->pid;
$pprice=$record->pprice;
$inamount=$record->inamount;
$outamount=$record->outamount;
$str_sql="select pname from PRODUCTTB where pid = '$pid';";
$res=mysql_db_query($db,$str_sql,$link_id);
if (!$res) html_error_exit('MySQL查询命令失败!');
$rec=mysql_fetch_object($res);
$pname=$rec->pname;
$html.=' <tr bgcolor='.$bgc.'>
<td>'.$pname.'</td>
<td>'.$pprice.'</td>
<td>'.$inamount.'</td>
<td>'.$outamount.'</td>
</tr>';
}
$html.='</table><br><div align=center>';
echo $html;
if ($page!=0) {
$n=$page-1;
echo "<a href=viewargsh.php?shid=$shid&outname=$outname&inname=$inname&checkdate=$checkdate&outdate=$outdate&indate=$indate&checkp=$checkp&outp=$outp&inp=$inp&pp=$pp&page=0>第一页</a> <a href=viewargsh.php?shid=$shid&outname=$outname&inname=$inname&checkdate=$checkdate&outdate=$outdate&indate=$indate&checkp=$checkp&outp=$outp&inp=$inp&pp=$pp&page=$n>上一页</a> ";
}
echo " <a href=viewarg.php?page=$pp>返回调货单查询</a> <a href=index2.php>返回首页</a> ";
if (($maxp!=0)&&($page<($lp=$maxp-1))) {
$n=$page+1;
echo " <a href=viewargsh.php?shid=$shid&outname=$outname&inname=$inname&checkdate=$checkdate&outdate=$outdate&indate=$indate&checkp=$checkp&outp=$outp&inp=$inp&pp=$pp&page=$n>下一页</a> <a href=viewargsh.php?shid=$shid&outname=$outname&inname=$inname&checkdate=$checkdate&outdate=$outdate&indate=$indate&checkp=$checkp&outp=$outp&inp=$inp&pp=$pp&page=$lp>最后页</a>";
}
echo "</div>";
?> <br>
</div>
</td>
</tr>
<tr>
<td height="40">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
<tr>
<td valign="bottom" align="right"><font face="Arial"><b>Powered
by <img src="images/php.gif" width="39" height="20" align="absmiddle">
& <img src="images/mysql.gif" width="82" height="20" align="absmiddle"></b></font></td>
<td align="right" valign="bottom" width="200"><font face="Arial">©
<a href="mailto:lonelyp@etang.com">Lonely Passenger</a>,2001<br>
All rights reserved!</font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<?
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?