ok

Mini Shell

Direktori : /home2/selectio/public_html/thedentalpark.com/admin/
Upload File :
Current File : /home2/selectio/public_html/thedentalpark.com/admin/callreport.php

<?php  include("header.php"); ?>
    <div class="content-wrapper" style="background-color: white;">
        <div class="clearfix"></div>
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div>
                        <div class="box-header">
                            <h3 class="box-title"><b>Patient's List </b></h3>
                        </div>
                        <div class="box box-info">
                            <div class="box-body" style="box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;">
                                <div class="col-lg-12">
                                    <div id="content-div">
                                        <form action="" enctype="multipart/form-data" method="post" id="appointment_form" accept-charset="utf-8">
                                            <div class="row">
                                                <div class="col-md-4">
                                                    <div class="form-group">
                                                        <label class="required" for="patient_name">Patient's name</label>                                
                                                        <input type="text" name="patient_name"  id="patient_name" value="" placeholder="Enter Patient Name" class="form-control" required/>
                                                    </div>
                                                </div>
                                                <div class="col-md-4">
                                                    <div class="form-group">
                                                        <label class="required" for="patient_number1">Patient's Phone Number</label>                                
                                                        <input type="number" name="patient_number1"  id="patient_number1" value="" placeholder="Enter Patient's Phone Number" class="form-control" required/>
                                                    </div>
                                                </div>
                                        </form>
                                </div>
                            </div>
                        </div> 
                    </div>
                </div>
            </div>
             <br>
	<div class="row">
		<div class="col-md-12">
			<div class="box box-warning" <?=$border_style?>>
			<div class="box-body table-responsive">
					  <div class="table-responsive">
                        <table id="StData" class="table table-striped table-bordered table-condensed table-hover" style="margin-bottom:5px;">
                            <thead>
                                 <tr>
                                    <td colspan="10" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table"  placeholder="Search Here" style="width:100%;background-color: darkblue;color: white;"></td>
                                </tr>
                                <tr>
								<th>S.No</th>
								<th>Patient's Name</th>
								<th>Patient's Phone Number</th>
								<th>Date</th>
								<th>Time</th>
								<th>Status</th>
								<th>Reason</th>
								<th>Call Report</th>
							</tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="10" class="dataTables_empty"><center> Loading Pls Wait Data</center></td>
                                </tr>
                            </tbody>
                            
                        </table>
                    </div>
			</div>
			</div>
		</div>
	</div>
        </section>


<?php include "footer.php";?>

<script type="text/javascript">

<?php
$columns = "0, 1, 2, 3, 4, 5, 6, 7, 8";
$data_table = " var patient_number1 = $('#patient_number1').val();
                var search_table = $('#search_table').val();
                var patient_name = $('#patient_name').val();
                var table = $('#StData').DataTable({
    
                        'ajax' : { 
                            url: 'data-tables/call_list.php', 
                            data:{patient_number1:patient_number1, patient_name:patient_name,search:search_table}, 
                            type: 'POST'},
                            bFilter: true,
                            bDestroy: true,
                            searching: true,pageLength: 10,
                        'buttons': []
    
                    });";

?>

$(document).ready(function() {
    get_data();
    function get_data(){
            <?=$data_table?>
        }
    $('#patient_number1').change(function() {
            get_data();
    });
    $('#patient_name').change(function() {
            get_data();
    });
    $('#search_table').keyup(function() {  
            get_data();
            document.getElementById("search_table").focus();
        });
    
});
    

</script>

Zerion Mini Shell 1.0