<div id="menu"> <?php include "includes/menu.php"; ?> </div> <div id="container"> <div id="login-form"> <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1"> <ul> <li> <label for="category">Category</label> <select name="category" id="category"> <option selected="selected">Select Category</option> <?php echo $adminOb->ToOption($adminOb->populateCate()); ?> </select> </li> <li> <div id="dynamicInput"><label for="file0">Scrap 1</label><input name="myinput0" type="file" /></div></li> <li><label> </label><input type="button" value=" Add More " onClick="addInput('dynamicInput');"></li> <li><label> </label><input type="submit" name="submit" value="Go" /> <input type="reset" /></li> </ul> </form> </div> </div>
<?php session_start(); require "admin-class.php"; $adminOb = new adminclass(); $getCate = $adminOb->populateCate(); if (isset($_SESSION['user'])) { //do nothing } else { $adminOb->redirect("index.php"); } if (isset($_POST['submit'])) { for ($i = 0; $i < count($getCate); $i++) { $a = $getCate[$i]['cid']; $arr[$i]['result'] = $_POST[$a]; $arr[$i]['cid'] = $getCate[$i]['cid']; } echo $adminOb->updateFeaturedCate($arr); } ?> <!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=utf-8" /> <link rel="stylesheet" href="style.css" type="text/css"/> <link rel="shortcut icon" href="../images/icon.ico"/> <title>Orkut Papa-Home</title> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>