【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“insert_dds.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>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<form name="form5" method="post" action="insert_dd_ok.php" >
<table class="ziti" width="667" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#666666">
<tr>
<td width="90" height="26" align="center" bgcolor="#FFFFFF">发货单编号:</td>
<td width="145" bgcolor="#FFFFFF"><input name="fahuo_id" type="text" id="fahuo_id" value="<?php echo date("YmdHis");?><?php echo $ljid;?>" size="20"/> </td>
<?php
$query="select * from tb_car where id='$ljid'";
$result=my
sql_query($query);
$myrow=
mysql_fetch_array($result);
?>
<td width="196" align="center" bgcolor="#FFFFFF">车牌号码:
<input name="car_number" type="text" size="12" value="<?php echo $myrow[car_number]?>"/></td>
<td width="213" align="center" bgcolor="#FFFFFF">车主电话:
<input name="car_tel" type="text" size="12" value="<?php echo $myrow[tel];?>"/></td>
</tr>
<tr>
<td height="26" align="center" bgcolor="#FFFFFF">发货人:</td>
<td bgcolor="#FFFFFF"><input name="fahuo_user" type="text" size="15" /></td>
<td align="center" bgcolor="#FFFFFF">发货人电话:
<input name="fahuo_tel" type="text" size="12" /></td>
<td align="center" bgcolor="#FFFFFF">付款方式:
<select name="fahuo_fk">
<option selected="selected"></option>
<option>发货人付款</option>
<option>第三方付款</option>
</select> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">货物描述:</td>
<td colspan="3" bgcolor="#FFFFFF"><textarea name="fahuo_content" cols="65" rows="5"></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">发货地址</td>
<td colspan="3" bgcolor="#FFFFFF"><textarea name="fahuo_address" cols="65" rows="3"></textarea></td>
</tr>
<tr>
<td height="26" align="center" bgcolor="#FFFFFF">收货人:</td>
<td bgcolor="#FFFFFF"><input name="shouhuo_user" type="text" size="15" /></td>
<td colspan="2" bgcolor="#FFFFFF">收货人电话:
<input name="shouhuo_tel" type="text" size="15" /></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">收货地址:</td>
<td colspan="3" bgcolor="#FFFFFF"><textarea name="shouhuo_address" cols="65" rows="3"></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">说明:</td>
<td colspan="3" bgcolor="#FFFFFF"><textarea name="car_log" cols="65" rows="5"></textarea></td>
</tr>
</table>
</form>
</body>
</html>
<?php
}else{
echo "<script>alert('请您正确登录!'); window.location.href='index.php';</script>";
}
?>