146 lines
3.2 KiB
PHP
146 lines
3.2 KiB
PHP
<?php include('techsyn_header.php'); ?>
|
|
|
|
<!-- Main Content Container for side bar and body-->
|
|
<style>
|
|
b {
|
|
margin-left: 40px;
|
|
}
|
|
</style>
|
|
<div class="main-container ace-save-state" id="main-container">
|
|
|
|
<script type="text/javascript">
|
|
|
|
try{ace.settings.loadState('main-container')}catch(e){}
|
|
|
|
</script>
|
|
|
|
<?php include('techsyn_sidebar.php'); ?>
|
|
|
|
<div class="main-content">
|
|
|
|
<div class="main-content-inner">
|
|
|
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="active">Covid Screeing</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="page-content">
|
|
<div class="panel panel-default"
|
|
style="padding: 10px; margin: 2px 0px 50px 5px; width: 99.5%;">
|
|
<div class="panel-group" id="accordion">
|
|
|
|
<form class="form-horizontal" id="medical_covid_form"
|
|
name="medical_examination_form" enctype="multipart/form-data"
|
|
action="#" method="post">
|
|
<div class="panel-body">
|
|
|
|
<div class="panel panel-default" >
|
|
|
|
|
|
<div id="covidPanel" class="panel panel-collapse" aria-expanded="false">
|
|
<div class="panel-body">
|
|
<table class="table table-hover" >
|
|
<tr>
|
|
|
|
<?php
|
|
|
|
$sql_covid_section = "select * from covid_exam where question_id not in (11) order by question_id asc";
|
|
$count=1;
|
|
|
|
$result_covid_section = mysqli_query($conn,$sql_covid_section);
|
|
while ($row_covid_section = mysqli_fetch_assoc($result_covid_section)) {
|
|
if($count%2!=0){
|
|
?>
|
|
<tr><?php
|
|
|
|
}?>
|
|
<td>
|
|
|
|
<input type="checkbox" id="<?php echo $row_covid_section['question_hindi']; ?>" name="question_hindi" value="<?php echo $row_covid_section['question_id']; ?>" >
|
|
|
|
<b> <?php echo $row_covid_section['question_hindi'];
|
|
?></b>
|
|
</td>
|
|
<?php if($count%2==0){
|
|
?></tr><?php
|
|
}
|
|
$count++;
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box-footer" style="text-align: center">
|
|
|
|
<button class="btn btn-primary" type="button" id="save_button"
|
|
onclick="save_covid_exam()">
|
|
|
|
<i class="ace-icon fa fa-save"></i> Save
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<?php include('techsyn_footer.php'); ?>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
function save_covid_exam(){
|
|
var covid_array=[];
|
|
$("input:checkbox[name='question_hindi']:checked").each(function(){
|
|
covid_array.push($(this).val());
|
|
$("input[name=covid_parameter]").val(covid_array.join(', '));
|
|
});
|
|
$.ajax({
|
|
url:'save_covid_exam.php',
|
|
type:'POST',
|
|
data:$("#medical_covid_form").serialize(),
|
|
dataType:'json',
|
|
success:function(data){
|
|
BootstrapDialog.alert("Covid Illness Saved Successfully");
|
|
|
|
},
|
|
error:function(data){
|
|
BootstrapDialog.alert(" Error In Saving Past Covid Illness");
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
</script>
|