]][ahhhhhhhasdasdassasdkksdadddsddfgh
במ12[aspddfsdfsdfdfnsd g ggk ffghaskjjsaddddkdasdasd asdadghdgh;';';'
/
home
/
swordshipmanagem
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('function.php'); //require('database.php'); head(); ?> <body> <div class="box-content"> <?php upd_cat(); $ob = new database(); $ob->query("SELECT * FROM category where id='$_GET[id]'"); foreach($ob->rows() as $data) { ?> <form method="post" action="<?php $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" onSubmit="return vl();"> <legend>Update category</legend> <div> <label class="control-label" for="name">Title </label> <div class="controls"> <input type="text" name='title' class="focused input-xlarge" id="title" value="<?php echo $data['title'] ?>"/> </div> </div> <div class="controls"> <img src="<?php echo $data['image'] ?>" /> </div> <br /> <div> <label class="control-label" for="name">Upload </label> <div class="controls"> <input type="file" name='img' class="focused input-xlarge" id="img"/> </div> </div> <br /> <div class="control-group"> <div class="controls"> <input type="submit" value="Update" name="upd_cat" class="btn btn-large" /> <input type="reset" value="Reset" name="reset" class="btn btn-large" /> </div> </div> </form> <?php } ?> </div> <?php copyright(); ?> <!--/.fluid-container--> <!-- external javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <?php footer(); ?> <?php fancy(); ?> <script type="text/javascript"> function vl() { var error = ""; var link = document.getElementById("title").value; if (link == "" || link == " " ) { error += "Category is Missing.\n"; } if (error != "") { alert(error); return false; } else { return true; } } </script> </body> </html>