170 lines
8.1 KiB
PHP
Executable File
170 lines
8.1 KiB
PHP
Executable File
<?php
|
|
|
|
$documentsarr=array();
|
|
$documentsrem=array();
|
|
$documentsid=array();
|
|
$documentsno=array();
|
|
foreach($documents as $document){
|
|
$documentsarr[$document->documents_type][]=$document->path.$document->file_name;
|
|
$documentsrem[$document->documents_type][]=$document->remarks;
|
|
$documentsid[$document->documents_type][]=$document->id;
|
|
$documentsno[$document->documents_type][]=$document->documents_no;
|
|
//echo '<pre>'; print_r($document); echo '</pre>';
|
|
}
|
|
$traing_doc_count=count($documentsarr[_DOC_TRAININGCODE_]);
|
|
$other_doc_count=count($documentsarr[_DOC_OTHERCODE_]);
|
|
$additional_certificate_count=count($documentsarr[_ADDL_CERTIFICATE_]);
|
|
//die;
|
|
//echo '<pre>'; print_r($nurse); echo '</pre>';die;
|
|
?>
|
|
<!--sidebar end-->
|
|
<!--main content start-->
|
|
<style type="text/css">
|
|
.required-field:after {
|
|
content: "*";
|
|
color: red;
|
|
}
|
|
.form-control.multiselect-class{
|
|
height: 100px !important;
|
|
}
|
|
.app-content .wizard > .steps > ul > li.active .step {
|
|
background-color: #666EE8;
|
|
border-color: #666EE8;
|
|
color: #fff;
|
|
}
|
|
.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="password"], .has-error input[type="date"], .has-error select[multiple], .has-error select {
|
|
border: 1px solid #a94442;
|
|
}
|
|
.help-block.with-errors {
|
|
color: #a94442;
|
|
}
|
|
.full-height-view{
|
|
height: 500px !important;
|
|
}
|
|
</style>
|
|
<div class="app-content content">
|
|
<section class="content-wrapper">
|
|
<div class="content-body">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header card-header-title-part card_mrgn">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<header class="panel-heading font-weight-bold">
|
|
<h3 class="mar_cus">
|
|
<?php
|
|
|
|
echo lang('Initial Assesment');
|
|
?>
|
|
</h3>
|
|
</header>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr class="mt-0 mb-0" />
|
|
<section id="main-content">
|
|
<section class="wrapper site-min-height mt-20">
|
|
<!-- page start-->
|
|
<section class="row col-md-12">
|
|
<div class="panel-body col-md-12">
|
|
<?php if($this->session->flashdata('feedback_error')){ ?>
|
|
<script>
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'error',
|
|
title: '<?php echo $this->session->flashdata('feedback_error'); ?>',
|
|
showConfirmButton: false,
|
|
timer: 3500
|
|
})
|
|
</script>
|
|
<?php } ?>
|
|
<?php if($this->session->flashdata('feedback_success')){ ?>
|
|
<script>
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: '<?php echo $this->session->flashdata('feedback_success'); ?>',
|
|
showConfirmButton: false,
|
|
timer: 3500
|
|
})
|
|
</script>
|
|
<?php } ?>
|
|
<!-- <div class="col-lg-3"></div>
|
|
<div class="col-lg-6"> -->
|
|
<?php echo validation_errors(); ?>
|
|
<?php //echo $this->session->flashdata('feedback'); ?>
|
|
</div>
|
|
<div class="col-lg-12">
|
|
<?php if (!empty($nurse->caregiver_table_id)){ ?>
|
|
<a href="<?php echo base_url(); ?>caregivers/ChangePassword?id=<?php echo $nurse->caregiver_table_id; ?>" class=" float-right"><?php echo lang('Change Password of this Caregiver');?></a>
|
|
<?php } $tab=1; ?>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="wizard wizard-circle">
|
|
<div class="steps">
|
|
<ul class="nav nav-tabs" id="myTab" role="tablist" style="border: none;">
|
|
<li class="nav-item <?php if ($tab==1) echo 'active'; ?> first current">
|
|
<a class="nav-link " id="tab1-tab" data-toggle="tab" href="#tab1" role="tab" aria-selected="true" style="padding-top: 52px !important; border: none; cursor: pointer;"><span class="step">1</span>Visit Info</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="tab-content" id="myTabContent">
|
|
<div class="tab-pane fade <?php if ($tab==1) echo 'active in show'; ?>" id="tab1" role="tabpanel" aria-labelledby="" style="padding: 20px;">
|
|
<form role="form" action="" id="visitInfoForm" method="post" enctype="multipart/form-data" class="needs-validation" >
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
|
<input type="hidden" name="form_status" value="1">
|
|
<input type="hidden" name="form_mode" value="">
|
|
|
|
<div class="row">
|
|
<div class="row col-md-12">
|
|
<div class="form-group col-md-4">
|
|
<label for="exampleInputEmail1" class="required-field"><?php echo lang('Date of Visit'); ?></label>
|
|
<input type="date" class="form-control" name="visit_date" id="" value="" required data-error="Please enter a valid Date of Visit.">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="exampleInputEmail1" class="required-field"><?php echo lang('Start time'); ?></label>
|
|
<input type="date" class="form-control" name="visit_start_time" value="" required data-error="Please enter a valid start time.">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="exampleInputEmail1" class="required-field"><?php echo lang('End Time'); ?></label>
|
|
<input type="date" class="form-control" name="visit_end_time" value="" required data-error="Please enter a valid end time.">
|
|
</div>
|
|
<div class="col-md-12">
|
|
<button type="submit" name="submit" class="btn btn-info"><?php echo lang('submit'); ?></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- page end-->
|
|
</section>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$( document ).ready(function() {
|
|
$(".nav-item").click(function(){
|
|
$(".nav-item").removeClass("active");
|
|
$(this).addClass("active");
|
|
})
|
|
});
|
|
</script>
|
|
|
|
<!--main content end-->
|
|
<!--footer start-->
|