115 lines
4.3 KiB
PHP
115 lines
4.3 KiB
PHP
|
<!-- Patient profile panel starts -->
|
||
|
<div class="panel panel-default">
|
||
|
<div class="panel-heading panel-heading1" id="panel-heading-profile">
|
||
|
<h5 class="panel-title panel-title1" id="panel-title1"
|
||
|
style="display: block; font-size: 12px; color: #337ab7; height: 17px; text-decoration: none; font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;">
|
||
|
<a role="button" data-toggle="collapse" href="#profilePanel"
|
||
|
aria-expanded="true" aria-controls="collapseOne"> Profile</a>
|
||
|
</h5>
|
||
|
</div>
|
||
|
<div id="profilePanel" class="panel-collapse collapse"
|
||
|
aria-expanded="false">
|
||
|
<div class="panel-body">
|
||
|
<?php
|
||
|
// print_r($_POST);
|
||
|
$search_patient_id = $_POST ['patient_id'];
|
||
|
if($search_patient_id==null && $_POST ['medical_exam_id']!=null){
|
||
|
$search_patient_id = getFieldFromTable("patient_id", "medical_examination", 'medical_exam_id',$_POST ['medical_exam_id']);
|
||
|
}
|
||
|
$new_sql = "select *,TIMESTAMPDIFF(YEAR, dob, CURDATE()) AS age from patient_master where id = '" . $search_patient_id . "' ";
|
||
|
//echo $new_sql;
|
||
|
$result = mysqli_query($conn,$new_sql );
|
||
|
if (mysqli_num_rows ( $result ) > 0) {
|
||
|
$row_profile = @mysqli_fetch_array ( $result );
|
||
|
// echo $row['age'];
|
||
|
?>
|
||
|
<div class="col-xs-12 col-sm-2">
|
||
|
<?php
|
||
|
if ($row_profile ['gender'] != 'M') {
|
||
|
?>
|
||
|
<span class="profile-picture"> <img
|
||
|
class="editable img-responsive" style="width: 120px; height: 120px"
|
||
|
alt="Patient Profile Pic" id="avatar"
|
||
|
src="images/female-profile.png" />
|
||
|
</span>
|
||
|
<?php
|
||
|
} else {
|
||
|
?>
|
||
|
<span class="profile-picture"> <img
|
||
|
class="editable img-responsive" style="width: 120px; height: 120px"
|
||
|
alt="Patient Profile Pic" id="avatar" src="images/male-profile.png" />
|
||
|
</span>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</div>
|
||
|
<div class="col-sm-12 col-sm-10">
|
||
|
<div class="profile-user-info profile-user-info-striped">
|
||
|
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6 " style="width: 300px;">E.Code/Gate
|
||
|
Pass No.</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['emp_code']?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6" style="width: 300px;">Patient
|
||
|
Name</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['patient_name']?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6 " style="width: 300px;">Father's
|
||
|
Name</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['father_name']?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6" style="width: 300px;">Date
|
||
|
of Birth/Age</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo date_format(date_create($row_profile['dob']),"d-M-Y ")?>( <?php echo $row_profile['age']; ?>Years)</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6" style="width: 300px;">Gender</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['gender']?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6" style="width: 300px;">Blood
|
||
|
Group</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['blood_group'] ?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6" style="width: 300px;">Phone</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['primary_phone'] ?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="profile-info-row">
|
||
|
<div class="profile-info-name col-sm-6" style="width: 300px;">Aadhar</div>
|
||
|
<div class="profile-info-value col-sm-6">
|
||
|
<span><?php echo $row_profile['aadhar_no'] ?></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Patient profile panel ends -->
|