D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
dash
/
Filename :
view-blogs.php
back
Copy
<?php session_start(); include 'config.php'; if($_SESSION['design1'] == ''){ echo "<script>location.replace('index.php')</script>"; } ?> <!DOCTYPE html> <html lang="zxx"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="robots" content="nofollow,noindex"> <meta name="author" content=""> <link rel="icon" href="assets/img/basic/favicon.ico" type="image/x-icon"> <title>DesignPitara | Admin Panel</title> <!-- CSS --> <link rel="stylesheet" href="assets/css/app.css"> <script src='tinymce/tinymce.min.js' type='text/javascript'></script> <script src="jquery.js"></script> </head> <body class="light"> <div id="app"> <?php include 'left-menu.php'; ?> <!--Sidebar End--> <?php include 'top.php'; ?> <!-- Right Sidebar --> <div class="page has-sidebar-left height-full"> <div class="container-fluid relative animatedParent animateOnce"> <div class="tab-content pb-3" id="v-pills-tabContent"> <div class="row"> <?php $sql = "select * from blog order by id desc"; $result = mysqli_query($conn,$sql); while( $row = mysqli_fetch_assoc($result)){ ?> <div class="col-md-3"> <div class="card shadow my-3 no-b"> <div class="card-body"> <div class="d-flex align-items-center"> <img src="../image/<?php echo $row['image']?>" alt="" height="160px" class="w-100"> </div> </div> <div class="card-body"> <div class="d-flex align-items-center justify-content-around s-12"> <strong></i><?php echo substr($row['heading'],0,30) ?></strong> </div> </div> <div class="card-footer white text-center"> <strong class="s-12 my-1"><a href="view-blog-details.php?id=<?php echo base64_encode( $row['id'] ); ?>">View Details</a></strong> </div> </div> </div> <?php } ?> </div> </div> </div> </div> </div> <!--/#app --> <script src="assets/js/app.js"></script> </body> </html>