Advertisement
apl-mhd

Admin pannel

Sep 14th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.32 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: apelmahmud
  5.  * Date: 02/04/2017
  6.  * Time: 3:24 PM
  7.  */
  8.  
  9. include('connect.php');
  10. include('header.php');
  11.  
  12. ?>
  13.  
  14.  
  15. <body>
  16. </div>
  17.  
  18.  
  19. <div class="wrapper">
  20.  
  21.     <div class="leftadmin">
  22.         <div class="adminmenu">
  23.             <ul class="menuouter">
  24.                 <li><a href="#">All Users</a> </li>
  25.                 <li><a href="#">Pending Post</a></li>
  26.                 <li><a href="#">statistic</a></li>
  27.  
  28.             </ul>
  29.         </div>
  30.  
  31.     </div>
  32.  
  33.     <div class="container-fluid admincontent bgg">
  34.         <div class="row">
  35.             <?php
  36.  
  37.             $sql = "SELECT * FROM post where poststatus =1";
  38.  
  39.             $result = $con->query($sql);
  40.  
  41.             while ($row = $result->fetch_assoc()){
  42.  
  43.                 $id = $row['postid'];
  44.                 $img = $row['imglink'];
  45.  
  46.                 $img = str_replace(' ', '', $img);
  47.                 echo  '
  48.  
  49.                     <div class="col-md-4 lead">
  50.  
  51.  
  52.                <div class="thumbnail thumb">'
  53.  
  54.                     . '
  55.                    <img style="height:300px;" class="img" src="img/'. $img . '">'.'
  56.  
  57.                    <div class="caption">'.'
  58.                        <h3><del> '  . $row['discountrate']  . '% </del>'. ' Discount ' .'</h3>
  59.                        <h3>'.'' . $row['expire'] . ' Days left' .'</h3>
  60.                     <button type="button" class="btn btn-success ">
  61.                        <a href="postdetails.php?postid=' .$id .' ">Approve</a> </button>  
  62.                        <button type="button" class="btn btn-danger ">
  63.                        <a href="postdetails.php?postid=' .$id .' ">Delete</a> </button>  
  64.  
  65.  
  66.                    </div>
  67.                </div>
  68.            </div>
  69.                    
  70.                    ';
  71.  
  72.             }
  73.  
  74.             ?>
  75.         </div>
  76.     </div>
  77.  
  78.  
  79. </div>
  80.  
  81.  
  82.  
  83.  
  84. <script>
  85.  
  86. /*
  87.  
  88.     $(document).ready(function () {
  89.  
  90.         $("h2").click(function () {
  91.  
  92.             $(".leftsidebar").animate({
  93.                 width : 'toggle'
  94.             });
  95.             $("h2").hide();
  96.  
  97.         });
  98.  
  99.         $(".close").click(function () {
  100.             $(".leftsidebar").animate({
  101.                 width : 'toggle',
  102.  
  103.             });
  104.             $("h2").show();
  105.  
  106.         })
  107.  
  108.     });
  109. */
  110.  
  111. </script>
  112.  
  113. </body>
  114.  
  115. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement