117 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			117 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<!--sidebar end-->
 | 
						|
<!--main content start-->
 | 
						|
<?php 
 | 
						|
    // $dayArr=array();
 | 
						|
    // $dayTimeArr=array();
 | 
						|
    // foreach($master_schdule as $schedule){ 
 | 
						|
    //     $dayArr[$schedule->week_day][]=$schedule->id;
 | 
						|
    //     $dayTimeArr[$schedule->week_day][]=$schedule->from_time.' - '.$schedule->to_time;
 | 
						|
    // }
 | 
						|
?>
 | 
						|
<style type="text/css">
 | 
						|
    .selectedTD{
 | 
						|
        background-color: skyblue !important;
 | 
						|
        cursor: pointer !important;
 | 
						|
    }
 | 
						|
</style>
 | 
						|
 | 
						|
 | 
						|
<div class="app-content content">
 | 
						|
    <section class="content-wrapper">
 | 
						|
        <div class="row">
 | 
						|
            <div class="col-12">
 | 
						|
                <div class="">
 | 
						|
                    
 | 
						|
                    <div class="col-12 ">
 | 
						|
                        <?php if($nurse->submited_for_verification=='yes' && $nurse->verification_status=='verified'){ ?>
 | 
						|
                        <div class="state-overview col-md-12" >
 | 
						|
                            <div class="clearfix">
 | 
						|
                                <div class="col-md-12 table-responsive card">
 | 
						|
                                    <div class="card-header">
 | 
						|
                                        <div class="row">
 | 
						|
                                            <div class="col-md-6">
 | 
						|
                                                <h3 class="font-weight-bold"><?php echo lang('Patient List'); ?></h3>
 | 
						|
                                            </div>
 | 
						|
                                        </div>
 | 
						|
                                    </div>
 | 
						|
                                    <table class="table table-striped table-hover table-bordered" id="Patient-DataTable">
 | 
						|
                                        <thead>
 | 
						|
                                            <tr>
 | 
						|
                                                <th><?php echo lang('PatientId'); ?></th>
 | 
						|
                                                <th><?php echo lang('name'); ?></th>
 | 
						|
                                                <th><?php echo lang('Treatment Required'); ?></th>
 | 
						|
                                                <th><?php echo lang('phone'); ?></th>
 | 
						|
                                                <th><?php echo lang('options'); ?></th>
 | 
						|
                                            </tr>
 | 
						|
                                        </thead>
 | 
						|
                                        <tbody>
 | 
						|
                                            <?php foreach($patient as $p){?>
 | 
						|
                                            <tr>
 | 
						|
                                                <td><?php echo $p->patientID; ?></td>
 | 
						|
                                                <td><?php echo $p->first_name.' '.$p->last_name; ?></td>
 | 
						|
                                                <td><?php echo $p->level_of_care; ?></td>
 | 
						|
                                                <td><?php echo $p->cellphone; ?></td>
 | 
						|
                                                <td>
 | 
						|
                                                    <!-- <a href="CaregiversDashboard/viewPatient" class="btn btn-success">View</a> -->
 | 
						|
                                                    <a href="<?php echo base_url()?>CaregiversDashboard/patientView?id=<?php echo $p->patient_id;?>" class="btn btn-success">View</a>
 | 
						|
                                                </td>
 | 
						|
                                            </tr>
 | 
						|
                                            <?php } ?>    
 | 
						|
                                        </tbody>    
 | 
						|
                                    </table>
 | 
						|
                                </div>
 | 
						|
                            </div>
 | 
						|
 | 
						|
                         
 | 
						|
 | 
						|
 | 
						|
                        
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
                        </div> 
 | 
						|
                        <?php } ?> 
 | 
						|
                    </div>
 | 
						|
                </div>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </section>
 | 
						|
</div>
 | 
						|
 | 
						|
 <script>
 | 
						|
    $(document).ready(function () {
 | 
						|
        $('#Patient-DataTable').DataTable();
 | 
						|
        //$('#schedule-DataTable').DataTable();
 | 
						|
        
 | 
						|
 | 
						|
        $(".acceptDeline").click(function(){
 | 
						|
            var schId = $(this).attr("attr_id");
 | 
						|
            $("#scheduleIdmdl").val(schId);
 | 
						|
        });
 | 
						|
 | 
						|
 | 
						|
    });
 | 
						|
 | 
						|
 | 
						|
</script>  
 | 
						|
<!--main content end-->
 | 
						|
<!--footer start-->
 | 
						|
<?php
 | 
						|
if(isset($_SESSION['UpdateAlert'])){
 | 
						|
?>
 | 
						|
<script>
 | 
						|
    $(function(){
 | 
						|
        Swal.fire({
 | 
						|
          position: 'center',
 | 
						|
          icon: 'success',
 | 
						|
          title: 'Successfully Updated',
 | 
						|
          showConfirmButton: false,
 | 
						|
          timer: 2000
 | 
						|
        })
 | 
						|
    })
 | 
						|
</script>
 | 
						|
<?php
 | 
						|
}
 | 
						|
?>
 |