]][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> View Catgeory</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> View Category</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="category.php" class="btn btn-large">Add New</a> <br /><br /> <?php $ob = new database(); $ob->query("SELECT * FROM category"); if ($ob->numRows() >= 1) { echo '<table class="table table-striped table-bordered bootstrap-datatable" style="width:95%;float:left;">'; echo '<tr>'; echo '<th>Category</th><th>Sub Category</th><th>Sub Sub Category</th><th>Modify</th><th>Delete</th>'; echo '</tr>'; foreach($ob->rows() as $data) { ?> <tr> <td><?php echo $data['title'] ?> </td> <?php $ob->query("SELECT * FROM sub_category WHERE cat_id='$data[id]'"); if($ob->numrows() >= 1) { ?> <td><?php echo $ob->numRows(); ?> <a href="view_subcat.php?id=<?php echo $data['id'] ?>" class="btn btn-info">Manage</a></td> <?php } else { ?> <td>No Sub Category</td> <?php } $ob->query("SELECT * FROM sub_sub_category WHERE cat_id='$data[id]'"); if($ob->numRows() >= 1) { ?> <td><?php echo $ob->numRows(); ?> <a href="view_subsub_cat.php?id=<?php echo $data['id'] ?>" class="btn btn-info"><i class="icon-edit icon-white"></i> Manage</a> </td> <?php } else { ?> <td>No Sub Sub category</td> <?php } ?> <td> <a href="edit_category.php?id=<?php echo $data['id'] ?>" class="fancybox btn btn-info fancybox.iframe"><i class="icon-edit icon-white"></i> Edit</a> </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(); ?> <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'); //alert(va); var r = confirm("Confirm Delete This Item."); if (r == true) { $.get('delete_category.php',{id:va}); setTimeout(function(){location.reload()},1000); } else { return false; } //parent.location.assign("delete_category.php?id="+va+""); }); }); </script> </body> </html>