【php开源代码栏目提醒】:网学会员php开源代码为您提供adminedit.php参考,解决您在adminedit.php学习中工作中的难题,参考学习。
<meta name="generator" content="Namo WebEditor(Trial)">
<?
if($_SESSION[Admin]<="2"){echo("<meta http-equiv=refresh content=\"0;URL=Login.php\"></meta>");}
else
{
$sql="select Stock.Stock_id,Stock.Agents_id,Movies_name_cht,Stock_number,Stock_price from Stock,Movies,Agents where Stock.Stock_id=Movies.Stock_id and Stock.Agents_id=Agents.Agents_id and Stock.Stock_id=$_GET[Stock_id]";
$result=mysql_query($sql,$link);
$row=mysql_fetch_array($result);
?>
<table width="100%" border="0">
<form method="post" action="Stock/StockSave.php">
<tr>
<td colspan="2" align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;"><a href="admin.php?about=Stock">э</a></td>
</tr>
<tr>
<td width="30%" align="right" bgcolor="#B0D9FF" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;"></td>
<td width="70%" align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"><input name="Stock_id" type="hidden" value="<?=$row[0]?>">
<?=$row[0]?></td>
</tr>
<tr>
<td align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;" bgcolor="#B0D9FF"></td>
<td align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"><?=$row[2]?></td>
</tr>
<tr>
<td align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;" bgcolor="#B0D9FF"></td>
<td align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"><input name="Stock_number" type="text" value="<?=$row[3]?>" size="5" maxlength="5"></td>
</tr>
<tr>
<td align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;" bgcolor="#B0D9FF">ㄑ菜单</td>
<td align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"> <?
$
sql="Select Agents_id,Agents_Agent from Agents";
$result=
mysql_query($sql,$link);
$nums=mysql_num_rows($result);
if($nums)
{
?>
<select name="Agents_id">
<option value="0">边框</option>
<?
for($i=1;$i<=$nums;$i++)
{
$sto=mysql_fetch_array($result);
if($row[1]==$sto[Agents_id]){
?>
<option value="<?=$sto[Agents_id]?>" selected>
<?=$sto[Agents_Agent]?>
</option>
<? }else{?>
<option value="<?=$sto[Agents_id]?>">
<?=$sto[Agents_Agent]?>
</option>
<?
}
}
?>
</select>
<? }else{echo("欢迎光临!!");}?> </td>
</tr>
<tr>
<td align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;" bgcolor="#B0D9FF"></td>
<td align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"><input name="Stock_price" type="text" value="<?=$row[4]?>" size="5" maxlength="5"></td>
</tr>
<tr>
<td align="center" colspan="2" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;"> <input type="submit" name="Submit" value="">
<input type="reset" name="Submit2" value=""></td>
</tr>
</form>
</table>
<?}?>