]][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"); foreach($ob->rows() as $data) ?> <?php add_news(); ?> <form method="post" action="<?php $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" onSubmit="return vl();"> <input type="hidden" name="id" value="" /> <legend>Add News</legend> <div class="control-group"> <label for="email">Title </label> <div> <textarea type="text" name="title" id="name" value=""></textarea> </div> </div> </div> </div> <div> <label for="news">Description</label> <div> <textarea name="desc" rows="3"></textarea> </div> </div> <br /> <div class="control-group"> <div class="controls"> <input type="submit" value="Add" name="add_news" class="btn btn-large" /> <input type="reset" value="Reset" name="reset" class="btn btn-large" /> </div> </div> </form> <!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" /> <title>Untitled Document</title> </head> <body> <?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>