【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“hwys.php”一文,供大家参考学习!
<?php session_start(); include("conn/conn.php");
if($_SESSION[admin_user]==true){
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>物流配送信息网</title>
</head>
<body>
<table class="ziti" width="685" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#666666">
<form name="form1" method="post" action="indexs.php?lmbs=发货单查询">
<tr>
<td width="187" align="right" bgcolor="#FFFFFF">发货单
查询:</td>
<td width="110" bgcolor="#FFFFFF"><select name="select1" id="select1">
<option value="发货单编号">发货单编号</option>
<option value="发货人">发货人</option>
</select>
</td>
<td width="125" bgcolor="#FFFFFF"><input name="select" type="text" id="select" size="15"></td>
<td width="240" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="提交"></td>
</tr>
</form>
</table>
<?php
if($select1=="发货单编号" and $select!=""){
$query="select * from tb_shopping where fahuo_id='$select'";
$result=mysql_query($query);
$myrow=mysql_fetch_array($result);
}
if($select1=="发货人" and $select!=""){
$query="select * from tb_shopping where fahuo_user='$select'";
$result=my
sql_query($query);
$myrow=
mysql_fetch_array($result);
}
?>
<table class="ziti" width="685" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#666666">
<tr>
<td colspan="5" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="83" align="center" bgcolor="#FFFFFF">发货单编号:</td>
<td width="144" bgcolor="#FFFFFF"><input name="fahuo_id" type="text" size="18" value="<?php echo $myrow[fahuo_id];?>"></td>
<td width="71" bgcolor="#FFFFFF">车牌号码:</td>
<td width="146" bgcolor="#FFFFFF"><input name="car_number" type="text" size="18" value="<?php echo $myrow[car_number];?>"/></td>
<td width="213" bgcolor="#FFFFFF">联系电话:
<input name="car_tel" type="text" size="18" value="<?php echo $myrow[car_tel];?>"/></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">发货人:</td>
<td bgcolor="#FFFFFF"><input name="fahuo_user" type="text" size="18" value="<?php echo $myrow[fahuo_user];?>" /></td>
<td bgcolor="#FFFFFF">电话:</td>
<td bgcolor="#FFFFFF"><input name="fahuo_tel" type="text" size="18" value="<?php echo $myrow[fahuo_tel];?>"/></td>
<td bgcolor="#FFFFFF">付款方式:
<select name="fahuo_fk">
<option value="<?php echo $myrow[fahuo_fk];?>"><?php echo $myrow[fahuo_fk];?></option>
</select> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">货物描述:</td>
<td colspan="4" bgcolor="#FFFFFF"><textarea name="fahuo_content"><?php echo $myrow[fahuo_content];?></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">发货地址</td>
<td colspan="4" bgcolor="#FFFFFF"><textarea name="fahuo_address"><?php echo $myrow[fahuo_address];?></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">收货人:</td>
<td bgcolor="#FFFFFF"><input name="shouhuo_user" type="text" size="18" value="<?php echo $myrow[shouhuo_user];?>"/></td>
<td bgcolor="#FFFFFF"> </td>
<td colspan="2" bgcolor="#FFFFFF">收货人电话:
<input name="shouhuo_tel" type="text" size="18" value="<?php echo $myrow[shouhuo_tel];?>" /></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">收货地址:</td>
<td colspan="4" bgcolor="#FFFFFF"><textarea name="shouhuo_address"><?php echo $myrow[shouhuo_address];?></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">发货单处理:</td>
<td colspan="4" bgcolor="#FFFFFF"><?php echo $myrow[fahuo_ys];?></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">说明:</td>
<td colspan="4" bgcolor="#FFFFFF"><textarea name="car_log">
<?php
$querys="select * from tb_car_log where fahuo_id='$myrow[fahuo_id]'";
$results=mysql_query($querys);
$myrows=mysql_fetch_array($results);
echo $myrows[car_log];
?>
</textarea></td>
</tr>
<tr>
<td height="26" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><a href="fhd_qr.php?delete=<?php echo $myrow[id];?>">删除发货单</a></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
</table>
</body>
</html>
<?php
}else{
echo "<script>alert('请您正确登录!'); window.location.href='index.php';</script>";
}
?>