Advertisement
Bucurzoom

order.php

Apr 10th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Admin</title>
  5. <meta content="width=device-width, initial-scale=1.0" name="viewport" >
  6. <link rel="icon" href="../favicon.png" type="image/png" sizes="16x16">
  7. <link rel="stylesheet" href="../assets/css/bootstrap.min.css" type="text/css" />
  8. <link rel="stylesheet" href="../assets/css/admin.css" type="text/css" />
  9. <link rel="stylesheet" href="../assets/css/jquery-ui.css" type="text/css" />
  10. <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
  11.  
  12. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  13. <script src="../assets/js/bootstrap.min.js"></script>
  14. <script src="https://code.jquery.com/ui/1.12.0-rc.1/jquery-ui.js"></script>
  15.  
  16. <script type="text/javascript">
  17.  
  18. $(document).ready(function(){
  19. function slideout(){
  20. setTimeout(function(){
  21. $("#response").slideUp("slow", function () {
  22. });
  23.  
  24. }, 3000);}
  25.  
  26. $("#response").hide();
  27. $(function() {
  28. $("#list ul").sortable({ opacity: 0.8, cursor: 'move', update: function() {
  29.  
  30. var order = $(this).sortable("serialize") + '&update=order';
  31. $.post("updateList.php", order, function(response){
  32. $("#response").html(response);
  33. $("#response").slideDown('slow');
  34. slideout();
  35. });
  36. }
  37. });
  38. });
  39.  
  40. });
  41.  
  42.  
  43. </script>
  44.  
  45. </head>
  46. <body class="bodyadmin">
  47.  
  48.  
  49. <div id="header">
  50. <div class="logo">
  51. <a href="#">Welcome <span>Source Admin</span></a>
  52. </div>
  53.  
  54. </div>
  55.  
  56.  
  57. <a class="mobile">MENU</a>
  58.  
  59.  
  60. <div id="container">
  61.  
  62. <div class="sidebar">
  63. <ul id="nav">
  64. <li><a class="selected" href="#">Dashboard sidebar</a></li>
  65. <li><a href="<?php echo BASE_URL; ?>" target="_blank">Visit site</a></li>
  66. <li><a href="../logout.php">Log Out</a></li>
  67. <li><a href="_all.php">All Pages</a></li>
  68. <li><a href="_add.php">Add new Page</a></li>
  69. <li><a href="media.php">Media</a></li>
  70. <li><a href="_options.php">Options</a></li>
  71. <li><a href="add_menu.php">Meniu</a></li>
  72. <li><a href="delete_menu.php">Manage Link meniu</a></li>
  73. <li><a href="_order.php">Manage order meniu</a></li>
  74. </ul>
  75.  
  76. </div>
  77.  
  78. <div class="content">
  79. <h1>Dashboard</h1>
  80.  
  81. <div id="box">
  82. <div class="box-top">Last Pages</div>
  83. <div class="box-panel">
  84.  
  85. <div id="list">
  86.  
  87. <div id="response"> </div>
  88.  
  89. <ul>
  90. <?php
  91.  
  92. include_once '../dbconnect.php';
  93.  
  94. $result = $con->query("SELECT * FROM main_menu ORDER BY listnumber ASC");
  95.  
  96. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
  97.  
  98. $m_menu_id = stripslashes($row['m_menu_id']);
  99. $m_menu_name = stripslashes($row['m_menu_name']);
  100.  
  101. ?>
  102.  
  103. <li id="listOrder_<?php echo $m_menu_id ?>">
  104. <?php echo $m_menu_name; ?>
  105. </li>
  106. <?php
  107. }
  108. ?>
  109. </ul>
  110.  
  111.  
  112. </div>
  113.  
  114.  
  115.  
  116.  
  117.  
  118. </div><!-- .box-panel -->
  119. </div><!-- .box-top -->
  120. </div>
  121.  
  122. </div><!-- #container -->
  123.  
  124.  
  125. </body>
  126. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement