Psyduck - 可達鴨 之 鴨力山大 v0.1

Current Path : home/irplbiz/www/lnselgallery/control/
Upload File :
Current File : /home/irplbiz/www/lnselgallery/control/category-add.php

<?php

session_start();

include('includes/db_connect.php');









?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="style.css" rel="stylesheet" type="text/css" />

<link href="css/form-style.css" rel="stylesheet" type="text/css" />

<title>Welcome to Our  Website::Admin Panel</title>

</head>

<?php

$msg = "";

if($_POST["mode"] == "add")

{

	$insCategory = "INSERT INTO `ln_tbl_category` SET 

`name` = '".$_POST["name"]."'";

mysql_query($insCategory);

$msg = "Successfully Added.";





}

?>

<body>

<div class="main">

<div class="inner-panel">

<table width="978" border="0" cellspacing="0" cellpadding="0" align="center" >

    <?php include('includes/header.php'); ?>



  <tr>

    <td width="200">&nbsp;</td>

    <td align="right" width="10">&nbsp;</td>

    <td align="right" width="768">&nbsp;</td>

  </tr>

  <tr>

    <td width="200" valign="top"><?php include('includes/sidebar.php'); ?></td>

    <td width="10" style="background-color:none;">&nbsp;</td>

    <td width="768" bgcolor="#FFFFFF" valign="top" align="right">

    	<div class="right-bar-style">

		<table width="97%" border="0" align="left" cellpadding="0" cellspacing="0"  bgcolor="#fff"  style="padding:0px; margin:2px 10px;">

            <tr>

            <td colspan="3"><div class="heading fs-32">Add Category

            <div style="position:absolute; right:0px; top:5px;"><a href="category-add.php" class="btn">Add Category</a></div>

            </div></td></tr>



            <td colspan="3">&nbsp;</td>

            </tr>

    <tr>

	  	<td align="center" style="color: green; font-weight: bold;">

			<?php echo $msg; ?>		</td>

	  </tr>

      

  

 

    <table width="100%">

      <tr>

        <td>

			<table width="97%" border="0" align="left" cellpadding="0" cellspacing="0"  bgcolor="#fff"  style="padding:0px; margin:2px 10px;">

				

				<tr><td><form action="" method="post" name="form" enctype="multipart/form-data" id="frmValidation">

				<input type="hidden" name="mode" value="add">

      

    <table width="100%">

      <tr>

        <td>

		<table width="100%">

            

            <tr>

            <td style="border:1px dotted #ccc;">Category Name <span style="color:#F00;">*</span></td>

            <td style="border:1px dotted #ccc;"><input type="text" name="name" id="name" class="validate[required]"/>

			</td>

            </tr>

            

			

            <td style="border:1px dotted #ccc;" colspan="2" align="center"><input name="submit" type="submit" class="submit1" value="Add Category" style="width:185px;"/></td>

            </tr>

            </table></td>

      </tr>

    </table>



 </form> 

 

  

 

          

	 </td>

      

      

      

      </tr>

      

	  </table>

		</td>

      </tr>

    </table>

      

	 </td>

      

      

      

      </tr>

      

	  </table>

	  	</div>

	

   </td>

  </tr>

</table>

</div>

</div>

</body>

</html>