?? change_gloves.php
字號:
<?
include("../config.php");
include("aup.php");
?>
<html>
<head>
<title>WoP Admin Panel - Change Gloves</title>
<link href="..\styles\phaos.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
if(@$_REQUEST['changeme'])
{
mysql_query("UPDATE phaos_gloves SET name='$name', armor_class='$armor_class', buy_price='$buy_price', sell_price='$sell_price', image_path='$image_path' WHERE id='$id'");
echo "<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td align=center valign=middle height=\"100%\" width=\"100%\">
<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\">
<tr>
<td colspan=\"2\" align=center>
<b>Gloves have been changed!</b>
</td>
</tr>
<tr>
<td colspan=\"2\" align=center>
<form><input type='button' onClick=\"parent.location='admin_edit_Gloves.php'\" value='OK'></form>
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
else
{
$self=mysql_query("SELECT * FROM phaos_gloves WHERE id=$gloves");
while ($row = mysql_fetch_array($self)) {
$id = $row["id"];
$name = $row["name"];
$armor_class = $row["armor_class"];
$buy_price = $row["buy_price"];
$sell_price = $row["sell_price"];
$image_path = $row["image_path"];
}
?>
<form action="change_gloves.php?changeme=yes" method=post>
<input type="hidden" name="id" value="<?=$id?>">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align=center valign=middle height="100%" width="100%">
<table width="600" border="1" cellspacing="0" cellpadding="3">
<tr style=background:#006600;>
<td colspan="2">
<div align="center"><b>Edit Gloves</b></div>
</td>
</tr>
<tr>
<td width="50%"><b><font color="#FFFFFF">Name</font></b></td>
<td width="50%">
<input type="text" name="name" value="<?=$name?>">
</td>
</tr>
<tr>
<td width="50%"><b><font color="#FFFFFF">Armor Class</font></b></td>
<td width="50%">
<input type="text" name="armor_class" value="<?=$armor_class?>">
</td>
</tr>
<tr>
<td width="50%"><b><font color="#FFFFFF">Buy Price</font></b></td>
<td width="50%">
<input type="text" name="buy_price" value="<?=$buy_price?>">
</td>
</tr>
<tr>
<td width="50%"><b><font color="#FFFFFF">Sell Price</font></b></td>
<td width="50%">
<input type="text" name="sell_price" value="<?=$sell_price?>">
</td>
</tr>
<tr>
<td width="50%"><b><font color="#FFFFFF">Image</font></b></td>
<td width="50%"> Active Picture <img src="../<?=$image_path?>"><br><br>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=center>
<img src="../images/icons/gloves/chain_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/chain_gloves.gif">
</td>
<td align=center>
<img src="../images/icons/gloves/cloth_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/cloth_gloves.gif">
</td>
<td align=center>
<img src="../images/icons/gloves/full_plate_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/full_plate_gloves.gif">
</td>
<td align=center>
<img src="../images/icons/gloves/half_plate_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/half_plate_gloves.gif">
</td>
</tr>
<tr>
<td align=center>
<img src="../images/icons/gloves/leather_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/leather_gloves.gif">
</td>
<td align=center>
<img src="../images/icons/gloves/padded_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/padded_gloves.gif">
</td>
<td align=center>
<img src="../images/icons/gloves/scale_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/scale_gloves.gif">
</td>
<td align=center>
<img src="../images/icons/gloves/studded_leather_gloves.gif">
<input CHECKED type="radio" name="image_path" value="images/icons/gloves/studded_leather_gloves.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="Change">
<input type='button' onClick="parent.location='admin_edit_Gloves.php'" value='Back to list'>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<?
}
?>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -