?
Path : /home/yogsadhna/public_html/admin/ |
Current File : /home/yogsadhna/public_html/admin/addProduct.php |
<? include "include/header.php"; if($_GET['id']) { $res=$obj->query("select * from category where `catId`='".$_GET['id']."'"); $cat=$obj->fetch_query($res); } if($_GET['st']=="success") $msg="Successfully Added"; if($_GET['st']=="error") $msg="This Product Name Already Exist"; ?> <!--main page--> <link href="style.css" rel="stylesheet" type="text/css"> <table width="100%" border="0" cellspacing="2" cellpadding="3"> <tr> <td width="20%" class="border" valign="top"><? include "include/leftmenu.php" ?></td> <td bgcolor="#e6e4ef" id="welcomenote" valign="top"> <table cellpadding="5" cellspacing="0" border="0" class="normaltext" align="center" width="80%"> <tr bgcolor="#FFFFFF" height="30"> <td align="center" colspan="2"><strong>Add <?=$cat->catName?>Book</strong></td> </tr> <tr height="40"><td colspan="2" id="error"> <?=$msg?></td></tr> <form name="product" action="insert.php" method="post" onSubmit="return validproduct()" enctype="multipart/form-data"> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Name Of Book</td> <td><input name="name" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">ISBN</td> <td><input name="isbn" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Author</td> <td><input name="author" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Publisher</td> <td><input name="publisher" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Year</td> <td><input name="year" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Pages</td> <td><input name="pages" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Price</td> <td><input name="price" type="text" class="inputboxp" value=""></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Binding</td> <td><label> <input type="checkbox" name="hardbound" id="checkbox" value="1" /> Hardbound <input type="checkbox" name="paperback" id="checkbox2" value="0"/> Paperback</label></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Language</td> <td><label> <input type="checkbox" name="hindi" id="checkbox" value="1"/> Hindi <input type="checkbox" name="english" id="checkbox2" value="2" /> English </label></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"> <td class="textboxcap">Features</td> <td><label> <input type="checkbox" name="new" id="checkbox" value="1" /> New Release <br /> <input type="checkbox" name="best" id="checkbox3" value="1" /> Bestselling <br /> <input type="checkbox" name="forth" id="checkbox2" value="1" /> Forthcoming<br /> <input type="checkbox" name="award" id="checkbox4" value="1" /> Award Winning Book</label></td> </tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"><td class="textboxcap">Upload Image</td><td><input name="image" type="file" class="inputboxp"></td></tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"><td class="textboxcap">Upload Thumbnail</td><td><input name="imagethum" type="file" class="inputboxp"></td></tr> <tr height="40"><td colspan="2"> </td></tr> <tr><td colspan="2" align="center"> <input type="hidden" value="<?=$cat->catId?>" name="ptype"> <input name="submit" type="image" src="images/Submit.jpg" class="submitbox" value="Submit"></td></tr> </form> </table> </td> </tr> </table> <!--end main page--> <? include "include/footer.php";?>