<?php


////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('view_appointment')) {
	function view_appointment($id){
	$array_cols=array(id_col,patient_name,patient_phone,patient_email,appointment_msg,doctor_name,appointment_date,appointment_branch,appointment_department,appointment_time,status,ref,);	
	//$loaded=get_content3('mmh_appointment',id_col,$array_cols,mmh_table,100);
	$loaded=get_content2(routine_appointment_alias,id_col,$array_cols,mmh_table,100,$id);
	 
   ?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
   <div id="page-right-content">

                    <div class="container">
                        <div class="row">
							<div class="col-sm-12">
								<div>
									<div class="row">
										
							
	<?php if($loaded){ 
	foreach($loaded as $item){
	$patient_name=$item[patient_name];	
	$patient_phone=$item[patient_phone];	
	$patient_email=$item[patient_email];	
	$patient_message=$item[appointment_msg];	
	$doctor_name=$item[doctor_name];	
	$branch_name=$item[appointment_branch];	
	$department_name=$item[appointment_department];	
	$appointment_date=$item[appointment_date];	
	$appointment_time=$item[appointment_time];	
	}
	?>
	<div class="text-center">
                                                <h3 class="font-600">Appointment with <?php echo $doctor_name; ?></h3>
                                                <p class="text-muted"> <?php echo $department_name; ?></p>
                                                <p class="text-muted"> <?php echo $branch_name; ?></p>

                                                <button type="button" class="btn btn-success m-t-10" onclick="history.go(-1);">Close View</button>
                                              <!--  <button type="button" class="btn btn-danger m-t-10">Mark Delete</button> -->

                                            </div>
								<div class="tab-content">
                                <div class="tab-pane active" id="home-b1">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <!-- Personal-Information -->
                                            <div class="panel panel-default panel-fill">
                                                <div class="panel-heading">
                                                    <h3 class="panel-title">Appointment #MMH-<?php echo $id; ?></h3>
                                                </div>
                                                <div class="panel-body">
                                                    <div class="m-b-20">
                                                        <strong>Patient Name</strong>
                                                        <br>
                                                        <p class="text-muted"><?php echo $patient_name; ?></p>
                                                    </div>
                                                    <div class="m-b-20">
                                                        <strong>Mobile</strong>
                                                        <br>
                                                        <p class="text-muted"><?php echo $patient_phone; ?></p>
                                                    </div>
                                                    <div class="m-b-20">
                                                        <strong>Email</strong>
                                                        <br>
                                                        <p class="text-muted"><?php echo $patient_email; ?></p>
                                                    </div>
                                                    <div class="about-info-p m-b-0">
                                                        <strong>Appointment Date</strong>
                                                        <br>
                                                        <p class="text-muted"><?php echo $appointment_date; ?></p>
                                                    </div>
													<div class="about-info-p m-b-0">
                                                        <strong>Appointment Time</strong>
                                                        <br>
                                                        <p class="text-muted"><?php echo $appointment_time; ?></p>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- Personal-Information -->

                                            <!-- Social -->
                                            
                                            <!-- Social -->
                                        </div>


                                        <div class="col-md-8">
                                            <!-- Personal-Information -->
                                            <div class="panel panel-default panel-fill">
                                                <div class="panel-heading">
                                                    <h3 class="panel-title">Other Details</h3>
                                                </div>
                                                <div class="panel-body">
                                                    <h5 class="header-title text-uppercase">Message / Comment</h5>
                                                    <p><?php echo $patient_message; ?></p>

                                                  
                                                    
                                                </div>
                                            </div>
                                            <!-- Personal-Information -->

                                        </div>

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

	<?php } ?>







							
									
									</div>
								</div>
								</div>
								</div>
								</div>
							
 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine -->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////





















?>