MMCT TEAM
1Server IP : 217.21.90.164  /  Your IP : 18.227.48.72
Web Server : LiteSpeed
System : Linux in-mum-web840.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u367232671 ( 367232671)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u367232671/domains/zeropaindentist.com/public_html/img/product/offer/../../../admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u367232671/domains/zeropaindentist.com/public_html/img/product/offer/../../../admin/blogs.php
<?php
include './../inc/config.php';
include './inc/config.php';
include './../dbh/conn.php';
?>
<!doctype html>
<html lang="en">

<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="title" content="<?php echo  $TITLE; ?>">
  <meta name="description" content="<?php echo  $META_DESCRIPTION; ?>">
  <meta name="keywords" content="<?php echo  $META_DESCRIPTION_KEY; ?>">

  <meta name="robots" content="index, follow">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="language" content="English">
  <meta name="revisit-after" content="3 days">
  <meta name="copyright" content="visiontechnology.co.in">
  <meta name="author" content="Vision technology">

  <!-- Open Graph / Facebook -->
  <meta property="og:type" content="<?php echo  $OG_TYPE; ?>">
  <meta property="og:url" content="<?php echo $URL; ?>">
  <meta property="og:title" content="<?php echo  $TITLE; ?>">
  <meta property="og:description" content="<?php echo  $META_DESCRIPTION; ?>">
  <meta property="og:image" content="../assets/meta-tags-16a33a6a8531e519cc0936fbba0ad904e52d35f34a46c97a2c9f6f7dd7d336f2.png">
  <meta property="profile:first_name" content="Kirdar">
  <meta property="profile:last_name" content="Ansari">
  <meta property="business:contact_data:country_name" content="India">
  <!-- Twitter -->
  <meta property="twitter:card" content="summary_large_image">
  <meta property="twitter:url" content="<?php echo  $URL; ?>">
  <meta property="twitter:title" content="<?php echo  $TITLE; ?>">
  <meta property="twitter:description" content="<?php echo  $META_DESCRIPTION; ?>">
  <meta property="twitter:image" content="../assets/meta-tags-16a33a6a8531e519cc0936fbba0ad904e52d35f34a46c97a2c9f6f7dd7d336f2.png">


  <link rel="manifest" href="visiontechnology.webmanifest">
  <link rel="shortcut icon" type="image/x-icon" href="./../img/logo/favicon.ico">
  <!-- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" /> -->
  <link href="./../css/bootstrap.min.css" rel="stylesheet">
  <link href="../css/common-variable.css" rel="stylesheet">
  <link href="./css/style.css" rel="stylesheet">
  <title>Vision Technology</title>
</head>
<style>
  body {
    background-image: url("../img/bg/doodles-pattern.png");
  }
</style>

<body>
  <?php include dirname(__FILE__) . '/inc/nav.php'; ?>


  <div class="container">
    <div class="d-flex justify-content-between align-items-center py-3">
      <h1 class=" display-3 fw-bold text-primary">
        Blogs
      </h1>
      <div>
        <button class="btn btn-primary  px-5 rounded-pill fw-bold btn-lg py-2" data-bs-toggle="modal" data-bs-target="#addBlogs">
          Add Blogs
        </button>
      </div>
    </div>

    <div class="row">

      <?php
      $sql  = "SELECT * FROM `blogs` ORDER BY `id` DESC";
      $result = mysqli_query($conn, $sql);
      while ($data = mysqli_fetch_assoc($result)) {
        $img = $data['img'];
        $title = $data['title'];
        $shortDec = $data['shortDec'];
        $date = $data['date'];
        $id = $data['id'];

        echo  "
      <div class='col-12 col-sm-6 col-md-4 col-lg-3 col-xl-3 p-2'>
      <div class='bg-white rounded-5 shadow overflow-hidden'>
      <a href='blog.php?name=$title' class='text-decoration-none'>
          <img src='./../img/blogs/$img' class='w-100'>
          <div class='p-3 pt-2'>
            <h4 class='text-danger fw-bold mb-2'>$title</h4>
            <p class='text-secondary'>
              $shortDec
            </p>
            <div class='d-flex mt-2'>
              <div class=''>
                <img src='./../img/logo/logo.png' class='' style='width: 35px;' alt=''>
              </div>
              <div class='px-2 lh-sm'>
                <p class='text-danger small'>Zero Pain
                  <br>
                  <span class='text-secondary'>$date</span>
      </p>
    </div>
  </div>
  </div>
  </a>
  <a href='deleteBlogs.php?id=$id' class='btn btn-danger w-100 fw-bold rounded-0'>Delete</a>
  </div>
  </div>
  ";
      }
      ?>



    </div>

  </div>



  <!-- Modal -->
  <div class="modal fade" id="addBlogs" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h1 class="modal-title fs-5" id="exampleModalLabel">Adding New Blog</h1>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body">
          <form action="./addBlogs.php" method="post" enctype="multipart/form-data">
            <div class="form-group my-2">
              <label for="" class="fw-bold">Title / Meta Title</label>
              <input type="text" name="title" class="form-control form-control-lg border border-primary" placeholder="" aria-describedby="helpId">
            </div>
            <div class="form-group my-2">
              <label for="" class="fw-bold">Meta Description</label>
              <textarea name="shortDesc" class="form-control form-control-lg border border-primary" id="" rows="2"></textarea>
            </div>
            <div class="form-group my-2">
              <label for="" class="fw-bold">Description</label>
              <textarea name="desc" id="summernote" class="form-control form-control-lg border border-primary" id="" rows="3"></textarea>
            </div>
            <div class="form-group my-2">
              <label for="" class="fw-bold">Image</label>
              <input type="file" name="files" class="form-control form-control-lg border border-primary" placeholder="" aria-describedby="helpId">
            </div>
            <div class="form-group my-2">
              <label for="" class="fw-bold">Author</label>
              <input type="text" name="author" class="form-control form-control-lg border border-primary" placeholder="" aria-describedby="helpId">
            </div>
            <div class="form-group my-2">

              <button type="submit" class="btn btn-primary btn-lg fw-bold w-100">Submit</button>
            </div>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>

  <?php include dirname(__FILE__) . '/inc/footer.php'; ?>
  <script src="../js/bootstrap.bundle.min.js"></script>
  <script src="..//js/fontawsome.js"></script>
  <script src="../js/main.js"></script>
</body>

</html>

MMCT - 2023