ESH/patient_profile_panel.php
2024-10-23 18:28:06 +05:30

184 lines
6.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">
Patient Profile</a></h5>
</div>
<div id="profilePanel" class="panel-collapse collapse" aria-expanded="false" style="height: 0px;">
<div class="panel-body" style="padding:1px; margin:1px">
<?php $new_sql = "select a.*,TIMESTAMPDIFF(YEAR, a.dob, CURDATE()) AS age from patient_master a left join medical_examination b on b.patient_id = a.id where b.medical_exam_id = '".$_REQUEST['medical_exam_id']."' ";
$result = mysqli_query($conn,$new_sql);
if(mysqli_num_rows($result) > 0) {
$row = @mysqli_fetch_array($result);
// echo $row['age'];
?>
<div class="row">
<div class="col-xs-12 col-sm-2">
<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>
</div>
<div class="col-sm-12 col-sm-10">
<div class="form-group" style="margin-left:20px">
<label class="col-sm-2 control-label no-padding-right"
for="form-field-first" style>Patient Name</label>
<div class="col-sm-10" style="margin-bottom:10px" >
<input type="text" class="form-control" id="patient_name" name="patient_name" autocomplete="off" style= "text-transform:uppercase;margin-left:5px" placeholder="Patient Name" title="Enter Patient Name" maxlength="100" value="<?php echo $row['patient_name']; ?>" readonly>
</div>
</div>
<div class="form-group" style="margin-left:20px">
<label class="col-sm-2 control-label no-padding-right"
for="form-field-first" style>Father's Name</label>
<div class="col-sm-10" style="margin-bottom:10px" >
<input type="text" class="form-control" id="father_name" name="father_name" autocomplete="off" style= "text-transform:uppercase;margin-left:5px" placeholder="Father's Name" title="Father Name" maxlength="100" value="<?php echo $row['father_name']; ?>" readonly>
</div>
</div>
<div class="col-sm-12 col-sm-10" >
<div class="form-group" style="margin-left:11px">
<label class="col-sm-2 control-label no-padding-right"
for="form-field-comment">Age/Birth Date</label>
<div class="col-sm-4" style="margin-bottom:10px;margin-left:11px">
<input class="col-xs-12 col-sm-3 form-control"
type="number" id="emp_age" name="emp_age"
placeholder="Enter Age if Date of Birth Not Known" value="<?php echo $row['age']; ?>" readonly/>
</div>
<label class="col-sm-2 control-label no-padding-right"
for="gender" style="vertical-align: top;margin-left:2rem">Gender</label>
<div class="col-sm-1" >
<input class=" form-control" style="margin-left:-5rem"
type="text" id="gender" name="gender"
value="<?php echo $row['gender']; ?>" readonly />
</div>
</div>
</div>
<div class="col-sm-12 col-sm-10">
<div class="form-group" style="margin-left:11px">
<label class="col-sm-2 control-label no-padding-right" for="form-field-comment">Code/G.Pass No</label>
<div class="col-sm-4" style="margin-bottom:10px;margin-left:11px">
<input class="form-control" type="text" id="emp_code" name="emp_code" placeholder="Employee Code" maxlength="20" value="<?php echo $row['emp_code']; ?>"readonly >
</div>
</div>
</div>
<div id="employee_div" style="display: block">
<div class="col-sm-12 col-sm-10">
<div class="form-group" style="margin-left:11px">
<label class="col-sm-2 control-label no-padding-right"
for="form-field-comment">Blood Group</label>
<div class="col-sm-4" style="margin-bottom:10px;margin-left:11px">
<input class="form-control" name="blood_group"
id="blood_group" value="<?php echo $row['blood_group']; ?>" readonly>
</input>
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-sm-10">
<div class="form-group" style="margin-left:11px">
<label class="col-sm-2 control-label no-padding-right"
for="form-field-comment">Phone Number </label>
<div class="col-sm-4" style="margin-bottom:10px;margin-left:11px">
<input class="form-control" type="tel" id="phone_no"
name="phone_no" maxlength="10" placeholder="Enter Phone No" value="<?php echo $row['primary_phone']; ?>" readonly/>
</div>
<label class="col-sm-2 control-label no-padding-right"
for="gender" style="vertical-align: top;margin-left:2rem">Aadhar No.</label>
<div class="col-sm-3" >
<input class=" form-control" style="margin-left:-5rem"
type="text" id="aadhar_no" name="aadhar_no"
value="<?php echo $row['aadhar_no']; ?>" readonly />
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div><!--end of panel body-->
</div><!--end of profilepanel-->
</div>
<!-- Patient profile panel ends -->