]][ahhhhhhhasdasdassasdkksdadddsddfgh
במ12[aspddfsdfsdfdfnsd g ggk ffghaskjjsaddddkdasdasd asdadghdgh;';';'
/
home
/
swordshipmanagem
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('function.php'); //require('database.php'); head(); ?> <body> <?php //upd_menu(); $ob = new database(); $ob->query("SELECT * FROM news where id='$_GET[id]'"); foreach($ob->rows() as $data) ?> <?php edit_news(); ?> <form method="post" action="<?php $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" onSubmit="return vl();"> <input type="hidden" name="id" value="<?php echo $_GET['id'] ?>" /> <legend>Update About Our Work</legend> <div class="control-group"> <label for="email">Title </label> <div> <textarea name="title" id="name" value=""><?php echo $data['title'] ?></textarea> </div> </div> <div> <label for="news">Content</label> <div> <textarea name="desc" id="editor1" rows="3" cols="50" class="focused"><?php echo $data['description'] ?></textarea> </div> </div> <br /> <div class="control-group"> <div class="controls"> <input type="submit" value="Update" name="edit_news" class="btn btn-large" /> <input type="reset" value="Reset" name="reset" class="btn btn-large" /> </div> </div> </form> <!-- external javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <?php footer(); ?> <script type="text/javascript"> function vl() { var error = ""; var email = document.getElementById("name").value; var news = document.getElementById("content").value; if (email == "" || email == " " ) { error += "Title Must be Filled.\n"; } if (news == "" || news == " " || news == "<html>" || news == "<br>") { error += "Content cann't be Empty.\n"; } if (error != "") { alert(error); return false; } else { return true; } } $(document).ready(function() { $('#editor1').cleditor(); }); </script> <?php fancy(); ?> </body> </html>