MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.189.145.188
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home1/a1673wkz/propstonerealty.com/Admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home1/a1673wkz/propstonerealty.com/Admin/followup.php
 
<!DOCTYPE html>
<html>
    <body>
        <?php
//header link
include("header_link.php");
//database file link
include("config.php");
?>
<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css" rel="stylesheet">
 
 
        <!-- Main Wrapper -->
        <div class="main-wrapper">
            <!-- Page Wrapper -->
            <div class="page-wrapper">
                <!-- Page Content -->
                <div class="content container-fluid">
                    <!-- Page Header -->
                    <div class="page-header">
                        <div class="row align-items-center">
                            <div class="col">
                                <h3 class="page-title">Followup</h3>
                                <ul class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="index.html">Dashboard</a></li>
                                    <li class="breadcrumb-item active">Banner</li>
                                </ul>
                            </div>
                            <div class="col-auto float-right ml-auto">
                                <a href="#" class="btn add-btn" data-toggle="modal" data-target="#add_holiday"><i class="fa fa-plus"></i> Add Followup</a>
                            </div>
                        </div>
                    </div>
                    <!-- /Page Header -->
                    <script src="js/jquery-3.2.1.min.js"></script>
                    <div class="row">
                        <div class="col-md-8 offset-sm-2">
                            <div class="table-responsive">
                                      <?php
                                        $cnt='0';
                                        $selct=$obj->fetch("SELECT * FROM followup ORDER BY id ASC"); foreach($selct as $val){ ?>       
                                <div class="card">
                        <div class="card-title"><i class="fa fa-calendar"></i> <?php echo $val['insert_date'];?></div>
                                    <div class="card-body">
                                        <table>
                                            <thead>
                                            <tr>
                                            <th>#</th>
                                            <th>Lead Name</th>
                                            <th>Remarks</th>
                                            <th>Next Followup</th>
                                            <tr>
                                         </thead>
                                         <tbody>    
                                            <tr>
                                                <td><?php echo $val['id'];?></td>
                                                <td><?php echo $val['lead_name'];?></td>
                                                <td><?php echo $val['remarks'];?></td>
                                                <td><?php echo $val['next_followup'];?></td>

                                            </tr>
                                           
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                  <?php } ?>
                             </div>
                        </div>
                    </div>
                </div>
                <!-- /Page Content -->

                <!-- Add banner Modal -->
                <div class="modal custom-modal fade" id="add_holiday" role="dialog">
                    <div class="modal-dialog modal-dialog-centered" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h5 class="modal-title">Add Followup</h5>
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                            </div>
                            <div class="modal-body">
                                <form id="fupForm" enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label>Lead Name</label>
                                        <input class="form-control" type="text" name="name" id="name" />
                                    </div>
                                    <div class="form-group">
                                        <label>Remarks</label>
                                        <input class="form-control" type="text" name="remarks" id="remarks" />
                                    </div>
                                    
                                      <div class="form-group">
                                        <label>Next Followup</label>
                                        <input class="form-control" type="date" name="followup" id="followup" />
                                    </div>
                                    <div class="submit-section">
                                        <input type="submit" name="submit" class="btn btn-primary submit-btn" id="submit" value="Submit" />
                                    </div>
                                    <div class="statusMsg" style="text-align: center;"></div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /Add banner Modal -->

                <?php
 // header
include("header.php");
?>
            </div>
        </div>
        <?php
//footer link
include("footer_link.php");

//footer
include("footer.php");

?>
    </body>
</html>
<script type="text/javascript">
    $(document).ready(function (e) {
        // Submit form data via Ajax
        $("#fupForm").on("submit", function (e) {
            e.preventDefault();
            $.ajax({
                type: "POST",
                url: "add_followup.php",
                data: new FormData(this),
                contentType: false,
                cache: false,
                processData: false,
                // beforeSend: function(){
                //     $('.submitBtn').attr("disabled","disabled");
                //     $('#fupForm').css("opacity",".5");
                // },
                success: function (data) {
                    //console.log(response);

                    // var mydata = JSON.parse(response);
                    //alert(data);
                    // console.log(response.message);
                    $(".statusMsg").html(data);
                    setTimeout(location.reload.bind(location), 1500);
                    // if(response.status == 1){
                    //     $('#fupForm')[0].reset();
                    //     $('.statusMsg').html('<p class="alert alert-success">'+response.message+'</p>');
                    // }else{
                    //     $('.statusMsg').html('<p class="alert alert-danger">'+response.message+'</p>');
                    // }
                    // $('#fupForm').css("opacity","");
                    // $(".submitBtn").removeAttr("disabled");
                },
            });
        });
    });
</script>

<script type="text/javascript">
    $(".file").on("change", function (e) {
        e.preventDefault();
        var src = URL.createObjectURL(event.target.files[0]);
        //alert(src);
        $("#img").prop("src", src);
    });
</script>
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
 <script>
    $(document).ready(function() {
        $('.summernote').summernote();
    });
  </script>


 





 

MMCT - 2023