]][ahhhhhhhasdasdassasdkksdadddsddfgh
במ12[aspddfsdfsdfdfnsd g ggk ffghaskjjsaddddkdasdasd asdadghdgh;';';'
/
home
/
swordshipmanagem
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('function.php'); //require('database.php'); check_login(); head(); ?> <body> <!-- topbar starts --> <?php navigation(); ?> <!-- topbar ends --> <div class="container-fluid"> <div class="row-fluid"> <!-- left menu starts --> <?php menu(); ?> <!-- left menu ends --> <noscript> <div class="alert alert-block span10"> <h4 class="alert-heading">Warning!</h4> <p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p> </div> </noscript> <div id="content" class="span10"> <!-- content starts --> <div> <ul class="breadcrumb"> <li> <a href="home.php">Dashboard</a> <span class="divider">/</span> </li> <li> <a> Products</a> </li> </ul> </div> <div class="row-fluid sortable"> <div class="box span12"> <div class="box-header well" data-original-title> <h2><i class="icon-signal"></i> Products</h2> <div class="box-icon"> <!--<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>--> <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> <!--<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>--> </div> </div> <div class="box-content"> <a href="add_img.php?code=<?php echo $_GET['code'] ?>" class="btn btn-large"> Add More Images</a> <br /><br /> <?php $ob = new database(); $ob->query("SELECT * FROM product_image WHERE code='$_GET[code]'"); if ($ob->numRows() >= 1) { echo '<table class="table table-striped table-bordered bootstrap-datatable" style="width:95%;float:left;">'; echo '<tr>'; echo '<th>Image</th><th>Delete</th>'; echo '</tr>'; foreach($ob->rows() as $data) { ?> <tr> <td><img src="<?php echo $data['image'] ?>" style="width:150px;height:150px;"/></td> <td><span va="<?php echo $data['id'] ?>" class="delete btn btn-danger"> <i class="icon-trash icon-white"></i> Delete</span></td> </tr> <?php } echo '</table>'; } ?> <!--/span--> </div><!--/row--> </div><!--/fluid-row--> <hr> <div class="modal hide fade" id="myModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Settings</h3> </div> <div class="modal-body"> <p>Here settings can be configured...</p> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">Save changes</a> </div> </div> <?php copyright(); ?> </div><!--/.fluid-container--> <!-- external javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <?php footer(); ?> <?php fancy(); ?> </body> <script type="text/javascript"> function vl() { var error = ""; var image = document.getElementById("image").value; var link = document.getElementById("link").value; if (image == "" || image == " ") { error += "Please Select an Image.\n"; } if (link == "" || link == " ") { error += "Link is Missing.\n"; } if (error != "") { alert(error); return false; }else{ return true; } } $(document).ready(function() { $('.delete').click(function() { var va = $(this).attr('va'); var r = confirm("Confirm Delete This Item."); if (r == true) { //alert(va); $.get('delete_img.php',{id:va}); setTimeout(function(){location.reload()},1000); } else { return false; } }); }); </script> </html>