⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin.htm

📁 《PHP专业项目实例开发》源代码
💻 HTM
字号:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="82%" border="0" align="center" cellpadding="0" cellspacing="0" height="277">
  <tr> 
    <td bgcolor="#000000"> 
      <div align="center"><b><font color="#FFFFFF">ADD CATEGORY</font></b></div>
    </td>
    <td>&nbsp;</td>
    <td bgcolor="#000000"> 
      <div align="center"><b><font color="#FFFFFF">ADD PRODUCT</font></b></div>
    </td>
  </tr>
  <tr> 
    <td width="48%" height="99" bgcolor="#CCCCCC"> 
      <form name="form1" method="post" action="add.php?type=category">
        <table width="75%" border="0" align="center">
          <tr> 
            <td width="36%"><b> Name</b></td>
            <td width="64%"> 
              <div align="center"> 
                <input type="text" name="name" size="20">
              </div>
            </td>
          </tr>
          <tr> 
            <td width="36%"><b>Description</b></td>
            <td width="64%"> 
              <div align="center"> 
                <input type="text" name="description" size="20">
              </div>
            </td>
          </tr>
          <tr> 
            <td width="36%"><b>Price</b></td>
            <td width="64%"> 
              <div align="center"> 
                <input type="text" name="price" size="20">
              </div>
            </td>
          </tr>
          <tr> 
            <td width="36%"><b> Parent Category</b></td>
            <td width="64%"> 
              <div align="center"> 
<?php

$x=mysql_connect($host,$username,$password);
$x1=mysql_select_db($database);
$query="select categoryid from category";
$result=mysql_query($query);

echo "                <select name=\"parentcategory\">";
echo "                 <option>Select Product Category</option>";
while($row=mysql_fetch_array($result))
{
echo "                 <option>". $row["categoryid"]."</option>";
}

?>
                



              </div>
            </td>
          </tr>
          <tr> 
            <td colspan="2"> 
              <div align="center"> 
                <input type="submit" name="Submit22" value="Submit">
              </div>
            </td>
          </tr>
        </table>
        </form>
    </td>
    <td height="99">&nbsp;</td>
    <td width="48%" height="99" bgcolor="#CCCCCC"> 
      <form name="form2" method="post" action="add.php?type=product">
        <table width="75%" border="0" align="center">
          <tr> 
            <td width="36%"><b> Name</b></td>
            <td width="64%"> 
              <div align="center"> 
                <input type="text" name="name" size="20">
              </div>
            </td>
          </tr>
          <tr> 
            <td width="36%"><b>Description</b></td>
            <td width="64%"> 
              <div align="center"> 
                <input type="text" name="description" size="20">
              </div>
            </td>
          </tr>
          <tr> 
            <td width="36%"><b>Price</b></td>
            <td width="64%"> 
              <div align="center"> 
                <input type="text" name="price" size="20">
              </div>
            </td>
          </tr>
          <tr> 
            <td width="36%"><b>Product Category</b></td>
            <td width="64%"> 
              <div align="center"> 
<?php

$x=mysql_connect($host,$username,$password);
$x1=mysql_select_db($database);
$query="select categoryid from category";
$result=mysql_query($query);

echo "                <select name=\"parentcategory\">";
echo "                 <option>Select Product Category</option>";
while($row=mysql_fetch_array($result))
{
echo "                 <option>". $row["categoryid"]."</option>";
}

?>

                
              </div>
            </td>
          </tr>
          <tr> 
            <td colspan="2"> 
              <div align="center"> 
                <input type="submit" name="Submit2" value="Submit">
              </div>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr> 
    <td height="7">&nbsp;</td>
    <td height="7">&nbsp;</td>
    <td height="7">&nbsp;</td>
  </tr>
  <tr> 
    <td bgcolor="#000000">
      <table width="82%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td bgcolor="#000000"> 
            <div align="center"><b><font color="#FFFFFF">REMOVE CATEGORY</font></b></div>
          </td>
        </tr>
      </table>
    </td>
    <td>&nbsp;</td>
    <td bgcolor="#000000"> 
      <div align="center"><b><font color="#FFFFFF">REMOVE PRODUCT </font></b></div>
    </td>
  </tr>
  <tr>
    <td width="46%" height="17" bgcolor="#CCCCCC"> 
      <form name="form3" method="post" action="remove.php?type=category">
        <p align="center"><b>Category ID 
          <input type="text" name="categoryid" size="10">
          <input type="submit" name="Submit32" value="Submit">
          </b></p>
      </form>
    </td>
    <td height="17">&nbsp;</td>
    <td bgcolor="#CCCCCC" height="17"> 
      <form name="form3" method="post" action="remove.php?type=product">
        <p align="center"><b>Product ID 
          <input type="text" name="productid" size="10">
          <input type="submit" name="Submit3" value="Submit">
          </b></p>
      </form>
    </td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td colspan="3"> 
      <div align="center"><b>See Pending Orders</b></div>
    </td>
  </tr>
  <tr> 
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr> 
    <td colspan="3"> 
      <div align="center"><b>LOGOUT</b></div>
    </td>
  </tr>
  <tr> 
    <td colspan="3" height="20">&nbsp;</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -