Commit f07a0ef2 by Jithin

service in progress

parent 664e0135
......@@ -26,7 +26,7 @@ function __construct()
$this->load->model('Home_model');
$this->load->model('Patient_model');
global $default_date ;
$this->default_date = '01/01/2017';
$this->default_date = '01/01/1970';
......@@ -576,32 +576,112 @@ public function recordsedit()
/*CONTROLLER - SERVICE/CONSULTATION */
public function service()
{
if($this->session->userdata('UserData')&&($this->session->userdata('UserData')['type']=="DOCTOR")&&(!empty($this->uri->segment(3))))
{
$booking_id = $this->uri->segment(3);
$current_booking_status = $this->Doctor_model->get_current_booking_status($booking_id);
if($current_booking_status['booking_status']==1)
{
$this->Doctor_model->change_booking_status($booking_id,2);
$check_record = $this->Doctor_model->check_medical_record($booking_id);
if($check_record['count']>0)
{
$template['record_id'] = $check_record['record_id'];
}
else
{
$record_id = $this->Doctor_model->insert_medical_record($booking_id);
$array = array('medical_record_id' =>$record_id);
$this->Doctor_model->update_booking($booking_id,$array);
$template['record_id'] = $record_id;
}
$booking_details = $this->Doctor_model->get_booking_details($booking_id);
$main_complaints = $this->Doctor_model->get_main_complaints();
$major_problems = $this->Doctor_model->get_major_problems();
//print_r($major_problems);die();
foreach ($major_problems as $key => $value)
{
$val = $this->Doctor_model->get_major_subproblems($value['id']);
$major_problems[$key]['sub_problem'] = $val;
}
$medicines = $this->Doctor_model->get_distinct_medicines(); //for use of medicines
$exams = $this->Doctor_model->get_distinct_exams(); //for use of medicines
$procedure = $this->Doctor_model->get_distinct_procedure(); //for use of medicines
$cidnumbers = $this->Doctor_model->get_distinct_cid(); //for use of medicines
$certificate_letter = $this->Doctor_model->get_certificate_letters(); //for use of medicines
//$medicine_list = $this->Doctor_model->get_all_medicines();
$userdata = $this->session->userdata('UserData');
$template['booking_details'] = $booking_details;
$template['page'] = "doctor_dash_start_service";
$template['page_title'] = "Service";
$template['main_complaints'] = $main_complaints;
$template['major_problems'] = $major_problems;
$template['medicines'] = $medicines;
$template['exams'] = $exams;
$template['procedure'] = $procedure;
$template['cidnumbers'] = $cidnumbers;
$template['certificate_letter'] = $certificate_letter;
//print_r($medicines);die();
$this->load->view('template/template', $template);
}
else
{
header('Location: '.base_url().'Doctor');
}
}
else
{
$this->session->set_flashdata('message', array('message' => 'Invalid Session, Kindly Try Again', 'title' => 'Error', 'class' => 'danger'));
header('Location: '.base_url());
}
}
/*Desc : FUNCTION FOR ADDING MEDICAL RECORD DATA INTO DATABASE - START SERVICE*/
public function endservice()
{
$booking_id = $this->uri->segment(3);
$this->Doctor_model->change_booking_status($booking_id,3);
redirect(base_url().'Doctor/recordsummary/'.$booking_id);
}
/*Desc : FUNCTION FOR ADDING MEDICAL RECORD DATA INTO DATABASE - START SERVICE*/
public function recordsummary()
{
if($this->session->userdata('UserData')&&($this->session->userdata('UserData')['type']=="DOCTOR")&&(!empty($this->uri->segment(3))))
{
$booking_id = $this->uri->segment(3);
$this->Doctor_model->change_booking_status($booking_id,2);
$booking_details = $this->Doctor_model->get_booking_details($booking_id);
$record_data = $this->Doctor_model->get_medical_record_for_booking($booking_id);
$doctor_data = $this->Doctor_model->get_single_doctor($booking_details['doc_id']);
$patient_data = $this->Patient_model->get_single_patient($booking_details['pat_id']);
$main_complaints = $this->Doctor_model->get_main_complaints();
$major_problems = $this->Doctor_model->get_major_problems();
//print_r($major_problems);die();
foreach ($major_problems as $key => $value)
{
$val = $this->Doctor_model->get_major_subproblems($value['id']);
$major_problems[$key]['sub_problem'] = $val;
}
$record_data['diseases'] = json_decode($record_data['diseases']);
$record_data['prescribtions'] = json_decode($record_data['prescribtions']);
$record_data['exams'] = json_decode($record_data['exams']);
$record_data['budget'] = json_decode($record_data['budget']);
$medicines = $this->Doctor_model->get_distinct_medicines();
$userdata = $this->session->userdata('UserData');
$template['booking_details'] = $booking_details;
$template['page'] = "doctor_dash_start_service";
//print_r($record_data);die();
$template['page'] = "doctor_dash_start_service_summary";
$template['page_title'] = "Service";
$template['main_complaints'] = $main_complaints;
$template['major_problems'] = $major_problems;
$template['medicines'] = $medicines;
$template['record_data'] = $record_data;
$template['booking_details'] = $booking_details;
$template['doctor_data'] = $doctor_data;
$template['patient_data'] = $patient_data;
$this->load->view('template/template', $template);
}
else
......@@ -609,6 +689,305 @@ public function service()
$this->session->set_flashdata('message', array('message' => 'Invalid Session, Kindly Try Again', 'title' => 'Error', 'class' => 'danger'));
header('Location: '.base_url());
}
}
/*Desc : FUNCTION FOR ADDING MEDICAL RECORD DATA INTO DATABASE - START SERVICE*/
public function save_medicalrecord_data()
{
//print_r($_POST);
//print_r($_FILES);
$insert_array = array();
$res = array();
if(!empty($_POST) and $_POST['section']=='anamnesis')
{
if(isset($_POST['Kidney_Problem'])&&!empty($_POST['Kidney_Problem']))
{
$anamnese['Kidney_Problem'] = $_POST['Kidney_Problem'];
}
if(isset($_POST['Heart_Problem'])&&!empty($_POST['Heart_Problem']))
{
$anamnese['Heart_Problem'] = $_POST['Heart_Problem'];
}
if(isset($_POST['Joint_Problem'])&&!empty($_POST['Joint_Problem']))
{
$anamnese['Joint_Problem'] = $_POST['Joint_Problem'];
}
if(isset($_POST['Breathing_Problem'])&&!empty($_POST['Breathing_Problem']))
{
$anamnese['Breathing_Problem'] = $_POST['Breathing_Problem'];
}
if(isset($_POST['Gastric_Problem'])&&!empty($_POST['Gastric_Problem']))
{
$anamnese['Gastric_Problem'] = $_POST['Gastric_Problem'];
}
if(isset($_POST['Allergies'])&&!empty($_POST['Allergies']))
{
$anamnese['Allergies'] = $_POST['Allergies'];
}
if(isset($_POST['Medications'])&&!empty($_POST['Medications']))
{
$anamnese['Medications'] = $_POST['Medications'];
}
if(isset($_POST['others'])&&!empty($_POST['others']))
{
$anamnese['others'] = $_POST['others'];
}
if(!empty($anamnese)&&isset($anamnese))
{
$disease['anamnese'] = $anamnese;
$myJSON = json_encode($disease);
$insert_array['diseases'] = $myJSON;
}
if(!empty($_POST['description']) and (isset($_POST['description'])))
{
$insert_array['description'] = $_POST['description'];
}
$insert_array['main_complaint'] = $_POST['main_complaint'];
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Anamnese Updated' );
}
else
{
$res= array('status' => 'error','msg'=> 'Updation Failed' );
}
}
elseif(!empty($_POST) and $_POST['section']=='medicine' and !empty($_POST['medicine_list']))
{
//print_r($_POST['medicine_list']);die();
foreach ($_POST['medicine_list'] as $key => $elem)
{
$medicine[$key] = json_decode($elem); //decoding json medicine
}
$myJSON = json_encode($medicine); //json encoding for db entry
$insert_array['prescribtions'] = $myJSON;
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Medicine Updated' );
}
else
{
$res= array('status' => 'error','msg'=> 'Updation Failed' );
}
}
elseif(!empty($_POST) and $_POST['section']=='exams')
{
//print_r($_POST);die();
$exam = array();
$exam['procedure'] = $_POST['exam_procedure'];
$exam['observation'] = $_POST['observation'];
$new =array();
$new[] = $exam;
//print_r(json_encode($new));exit();
$myJSON = json_encode($new); //json encoding for db entry
$insert_array['exams'] = $myJSON;
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Exams Updated' );
}
else
{
$res= array('status' => 'error','msg'=> 'Updation Failed' );
}
}
elseif(!empty($_POST) and $_POST['section']=='budget' and !empty($_POST['budget']))
{
//print_r($_POST);die();
foreach ($_POST['budget'] as $key => $elem)
{
$budget[$key] = json_decode($elem); //decoding json medicine
}
$myJSON = json_encode($budget); //json encoding for db entry
$insert_array['budget'] = $myJSON;
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Procedures Updated' );
}
else
{
$res= array('status' => 'error','msg'=> 'Updation Failed' );
}
}
elseif(!empty($_POST) and $_POST['section']=='certificate' and !empty($_POST['certificate']))
{
//print_r($_POST);die();
$insert_array['letters'] = $_POST['certificate'];
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Certificate Updated' );
}
else
{
$res= array('status' => 'error','msg'=> 'Updation Failed' );
}
}
elseif(!empty($_POST) and $_POST['section']=='review' and !empty($_POST['review']))
{
//print_r($_POST);die();
$insert_array['patient_review'] = $_POST['review'];
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Review Added' );
}
else
{
$res= array('status' => 'error','msg'=> 'Insertion Failed' );
}
}
print json_encode($res);
}
/*Desc:FUNCTION FOR RETURNING MEDICINE DETAILS FOR GIVEN MEDICINE NAME - SERVICE*/
public function save_medicalrecord_finaldata()
{
//print_r($_FILES);
//print_r($_POST);
//die();
$insert_array = array();
if(!empty($_POST) )
{
$booking_id = $_POST['booking_id'];
if(!empty($_FILES))
{
if (!file_exists('./assets/uploads/medicalrecord/booking'.$booking_id))
{
mkdir('./assets/uploads/medicalrecord/booking'.$booking_id, 0777, true);
}
$files = $_FILES;
$config = set_upload_options('./assets/uploads/medicalrecord/booking'.$booking_id);
$this->load->library('upload', $config);
for ($i=0; $i < count($files['images']['name']) ; $i++)
{
$_FILES['images']['name'] = $files['images']['name'][$i];
$_FILES['images']['type'] = $files['images']['type'][$i];
$_FILES['images']['tmp_name'] = $files['images']['tmp_name'][$i];
$_FILES['images']['error'] = $files['images']['error'][$i];
$_FILES['images']['size'] = $files['images']['size'][$i];
if($this->upload->do_upload('images'))
{
$dataInfo[$i] = $this->upload->data();
$obsr_images[$i] = 'assets/uploads/medicalrecord/booking'.$booking_id.'/'.$dataInfo[$i]['file_name'];
}
else
{
$error = array('error' => $this->upload->display_errors('', ''));
$res_img = array(
"status"=> "error",
"error"=> "Upload Error",
"msg"=> "Sorry! Images not uploaded. ".$error['error']
);
print json_encode($res_img);
exit();
}
}
}
if(!empty($obsr_images))
{
$insert_array['images'] = json_encode($obsr_images,JSON_UNESCAPED_SLASHES);
}
if(!empty($_POST['obsr']))
{
$insert_array['other_observations'] = $_POST['obsr'];
}
if(!empty($_POST['main_complaint']))
{
$insert_array['main_complaint'] = $_POST['main_complaint'];
}
if(!empty($insert_array))
{
$update = $this->Doctor_model->update_records($_POST['booking_id'],$insert_array);
if($update)
{
$res= array('status' => 'success','msg'=> 'Updation Success','booking_id'=>$booking_id );
}
else
{
$res= array('status' => 'error','msg'=> 'Updation Failed' );
}
}
else
{
$res= array('status' => 'success','msg'=> 'Updation Success','booking_id'=>$booking_id );
}
print json_encode($res);
}
}
/*Desc:FUNCTION FOR RETURNING MEDICINE DETAILS FOR GIVEN MEDICINE NAME - SERVICE*/
public function get_medicine_details()
{
$name = $_POST['medicine_name'];
$medicine = $this->Doctor_model->get_medicine_for_name($name);
print json_encode($medicine);
}
/*Desc:FUNCTION FOR RETURNING EXAM DETAILS FOR GIVEN EXAM NAME - SERVICE*/
public function get_exam_details()
{
$name = $_POST['exam_name'];
$exam = $this->Doctor_model->get_exam_for_name($name);
print json_encode($exam);
}
/*Desc:FUNCTION FOR RETURNING EXAM DETAILS FOR GIVEN EXAM NAME - SERVICE*/
public function get_budget_details()
{
$name = $_POST['procedure_name'];
$budget = $this->Doctor_model->get_budget_for_name($name);
print json_encode($budget);
}
/*CONTROLLER - EDIT PROFILE*/
......
......@@ -96,15 +96,20 @@ public function check_cancelBooking()
$result = $this->Patient_model->get_Booking($_POST['booking_id']);
$policy = $this->Patient_model->get_all_policy();
$nowin_server = date("Y-m-d TH:i:s");
if($_POST['UTCoffset']['sign']=='+')
{
$nowin_server_addoffset = date('Y-m-d H:i:s',strtotime('+'.$_POST['UTCoffset']['hour'].' hour +'.$_POST['UTCoffset']['minute'].' minutes',strtotime($nowin_server)));
}
elseif ($_POST['UTCoffset']['sign']=='-')
{
$nowin_server_addoffset = date('Y-m-d H:i:s',strtotime('-'.$_POST['UTCoffset']['hour'].' hour -'.$_POST['UTCoffset']['minute'].' minutes',strtotime($nowin_server)));
}
$day = date('Y-m-d H:i:s',$result['time_start']);
$newdate = date("Y-m-d H:i:s",strtotime($day." -".$policy['duration']." hours"));
$now = date("Y-m-d TH:i:s");
$cenvertedTime = date('Y-m-d H:i:s',strtotime('+5 hour +30 minutes',strtotime($now)));
if(strtotime($cenvertedTime)<strtotime($newdate))
if(strtotime($nowin_server_addoffset)<strtotime($newdate))
{
$res = array('status' => 'success', 'msg'=>'booking can canceled');
}
......@@ -453,7 +458,7 @@ public function check_current_user_credential()
$enterd_pass = md5($_POST['password']);
if($db_pass['password']==$enterd_pass)
{
$this->db->sentConfirmationcode($userdata);
$this->sentConfirmationcode($userdata);
$res = array('status' =>'success' , 'msg'=>'Valid Credentials');
}
else
......
......@@ -162,7 +162,38 @@ class Searchdoctor extends CI_Controller {
$result_availability = $this->Search_doctor_model->doctor_availability($_POST['doctor_id'],$_POST['clinic_id']);
$consult_duration = $this->Doctor_model->check_consult_duration($_POST['doctor_id']);
//print_r($_POST);
$res_new = array();
$nowin_server = date("Y-m-d TH:i:s");
if($_POST['UTCoffset']['sign']=='+')
{
//$clienttime_UTC = date("Y-m-d H:i:s",strtotime($_POST['currenttime']." -".$_POST['UTCoffset']['hour']." hours -".$_POST['UTCoffset']['minute']." minutes"));
//print_r($clienttime_UTC);
$nowin_server_addoffset = date('Y-m-d H:i:s',strtotime('+'.$_POST['UTCoffset']['hour'].' hour +'.$_POST['UTCoffset']['minute'].' minutes',strtotime($nowin_server)));
}
elseif ($_POST['UTCoffset']['sign']=='-')
{
//$clienttime_UTC = date("Y-m-d H:i:s",strtotime($_POST['currenttime']." +".$_POST['UTCoffset']['hour']." hours +".$_POST['UTCoffset']['minute']." minutes"));
//print_r($clienttime_UTC);
$nowin_server_addoffset = date('Y-m-d H:i:s',strtotime('-'.$_POST['UTCoffset']['hour'].' hour -'.$_POST['UTCoffset']['minute'].' minutes',strtotime($nowin_server)));
}
//$clienttime_UTC_add1hr = date("Y-m-d H:i:s",strtotime($clienttime_UTC." + 1hours "));
//if(strtotime($clienttime_UTC_add1hr)>strtotime($nowin_server))
//{
/*print_r($clienttime_UTC);
print_r($clienttime_UTC_add1hr);
print_r($nowin_server);
print_r($nowin_server_addoffset);*/
//}
if($result_availability['data']['active_schedule']=='0')
{
$schedule = $result_availability['data']['date'];
......@@ -172,7 +203,6 @@ class Searchdoctor extends CI_Controller {
$schedule = $result_availability['data']['date_secondary'];
}
$res_new = array();
if(($result_availability['status']) == 'success' and ($schedule!='""'))
{
......@@ -195,7 +225,7 @@ class Searchdoctor extends CI_Controller {
if(isset($value['time']['break_from']) && isset($value['time']['break_to']) && ($value['time']['break_from'] != 'null' ) && ($value['time']['break_to'] != 'null') && strlen($value['time']['break_from']) && strlen($value['time']['break_to']))
{
if(!((($initial < strtotime($value['time']['break_from'])) &&($end > strtotime($value['time']['break_from'])))||(($initial < strtotime($value['time']['break_to'])) &&($end > strtotime($value['time']['break_to']))))&&(strtotime($_POST['currenttime'])<$initial))
if(!((($initial < strtotime($value['time']['break_from'])) &&($end > strtotime($value['time']['break_from'])))||(($initial < strtotime($value['time']['break_to'])) &&($end > strtotime($value['time']['break_to']))))&&($initial>strtotime($nowin_server_addoffset)))
{
if($end <= $end_time)
......@@ -206,7 +236,7 @@ class Searchdoctor extends CI_Controller {
}
else
{
if(($end <= $end_time)&&(strtotime($_POST['currenttime'])<$initial))
if(($end <= $end_time)&&($initial>strtotime($nowin_server_addoffset)))
{
array_push($res, array('time'=>date('h:i a',$initial).' - '.date('h:i a',$end),'start'=>$initial,'end'=>$end));
}
......
......@@ -364,7 +364,8 @@ public function get_booking_details($book_id)
tbl_booking.time as book_time,
tbl_booking.amount as book_price,
tbl_registration.id as pat_id,
tbl_registration.name as pat_name");
tbl_registration.name as pat_name,
tbl_booking.doctor_id as doc_id");
$this->db->from('tbl_booking');
$this->db->join('tbl_registration', 'tbl_booking.patient_id = tbl_registration.id','inner');
$this->db->where('tbl_booking.id',$book_id);
......@@ -493,12 +494,134 @@ function get_major_subproblems($id)
function get_distinct_medicines()
{
$this->db->select('medicine_name');
$this->db->select('medicine_name,
id as medicine_id');
$this->db->from('tbl_medicine');
$this->db->group_by('medicine_name');
$query = $this->db->get();
return $query->result_array();
}
function get_distinct_exams()
{
$this->db->select('exam_procedure as exam_name,
id as exam_id');
$this->db->from('tbl_exams');
$this->db->group_by('exam_procedure');
$query = $this->db->get();
return $query->result_array();
}
function get_distinct_procedure()
{
$this->db->select('budget_procedure as procedure_name,
id as procedure_id');
$this->db->from('tbl_budget');
$this->db->group_by('budget_procedure');
$query = $this->db->get();
return $query->result_array();
}
function get_distinct_cid()
{
$this->db->select('disease_name,
code');
$this->db->from('tbl_disease_code');
$this->db->group_by('disease_name');
$query = $this->db->get();
return $query->result_array();
}
function check_medical_record($booking_id)
{
$this->db->select('count(id) as count,
id as record_id');
$this->db->from('tbl_medical_records');
$this->db->where('booking_id',$booking_id);
$query = $this->db->get();
return $query->row_array();
}
function insert_medical_record($booking_id)
{
$array = array('booking_id' => $booking_id );
$this->db->insert('tbl_medical_records',$array);
return $this->db->insert_id();
}
function update_booking($booking_id,$array)
{
$this->db->where('tbl_booking.id',$booking_id);
$this->db->update('tbl_booking',$array);
}
function update_records($booking_id,$array)
{
$this->db->where('booking_id',$booking_id);
if($this->db->update('tbl_medical_records',$array))
return true;
else
return false;
}
function get_medicine_for_name($name)
{
$this->db->select('medicine_dosage,
medicine_procedure');
$this->db->from('tbl_medicine');
$this->db->where('medicine_name',$name);
$query = $this->db->get();
return $query->result_array();
}
function get_exam_for_name($name)
{
$this->db->select('observation');
$this->db->from('tbl_exams');
$this->db->where('exam_procedure',$name);
$query = $this->db->get();
return $query->result_array();
}
function get_budget_for_name($name)
{
$this->db->select('amount,
quantity');
$this->db->from('tbl_budget');
$this->db->where('budget_procedure',$name);
$query = $this->db->get();
return $query->result_array();
}
function get_medical_record_for_booking($booking_id)
{
$this->db->select('*');
$this->db->from('tbl_medical_records');
$this->db->where('booking_id',$booking_id);
$query = $this->db->get();
return $query->row_array();
}
function get_certificate_letters()
{
$this->db->select('cid_letter,
letter');
$this->db->from('tbl_policy');
$query = $this->db->get();
return $query->row_array();
}
function get_current_booking_status($booking_id)
{
$this->db->select('booking_status');
$this->db->from('tbl_booking');
$this->db->where('id',$booking_id);
$query = $this->db->get();
return $query->row_array();
}
}
?>
\ No newline at end of file
......@@ -8,34 +8,19 @@
<li>Medical Records<span><img src="<?php echo base_url();?>assets/images/ip_tab_list_arw.png"></span></li>
</ul>
</div>
<div class="alert alert-danger alert-dismissible flash-msg hidden" id="final-save-error">
</div>
<div class="ip_edit_record_wrapper">
<div class="row">
<div class="col-md-8">
<div class="ip_edit_record_name" style="padding-top: 40px;">
<h5><?php echo $booking_details['pat_name'];?></h5>
<h5 id="patdetail" patid="<?php echo $booking_details['pat_id'];?>"><?php echo $booking_details['pat_name'];?></h5>
<p><?php echo date('d M',$booking_details['book_date']);?>, <?php echo $booking_details['book_time'];?><img src="<?php echo base_url();?>assets/images/ip_menu5.png"></p>
</div>
</div>
<div class="col-md-4">
<div class="ip_coutdown_timmer_wrap">
<button class="ip_circle_btn bal_btn">END OF SERVICE</button>
<div class="ip_coutdown_timmer_body">
<div class="ip_count_timmer_inner">
<div class="ip_count_timmer">
<span id="doc_service_timer" >00:00:00</span>
<p>Consultation duration</p>
</div>
<div class="ip_count_clock">
<img src="<?php echo base_url();?>assets/images/ip_clock.png">
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8">
<br><br>
<div class="ip_edit_record_cover">
<div class="ip_edit_record_head" data-toggle="collapse" data-target="#records">
Anamnesis
......@@ -45,14 +30,16 @@
<div class="ip_edit_record_detail">
<div class="ip_edit_row">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="anamnesis">
<select class="ip_bank_input" name="main_complaint" data-parsley-required="" data-parsley-error-message="Choose Complaint" >
<option selected disabled>Main Complaint</option>
<?php if(!empty($main_complaints))
{
foreach ($main_complaints as $key => $complaint)
{
?>
<option value="<?php echo $complaint['id']?>"><?php echo $complaint['complaint_name']?></option>
<option value="<?php echo $complaint['complaint_name']?>"><?php echo $complaint['complaint_name']?></option>
<?php
}
}
......@@ -60,35 +47,19 @@
</select>
</div>
</div>
<!-- <div class="ip_edit_text_bay">
<div class="ip_edit_record_text">
<ul>
<li><img src="<?php echo base_url();?>assets/images/ip_edit1.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit2.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit3.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit4.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit5.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit6.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit7.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit8.png"></li>
<div class="clear"></div>
</ul>
</div>
<textarea class="ip_edit_record_content_textarea" rows="4"></textarea>
</div> -->
<textarea id="editor1" type="text" name="cancelation_policy" rows="10" cols="80" ></textarea>
<textarea id="editor1" type="text" rows="10" cols="80" ></textarea>
<div class="ip_edit_bottom_btn_bay">
<!-- <div class="ip_edit_bottom_btn_bay">
<button type="button" class="ip_edit_save_btn floatRight" id="record-sec-1-btn">SAVE</button>
<button class="ip_edit_cancel_btn floatRight">CANCEL</button>
<div class="clear"></div>
</div>
</div> -->
<br><br>
<div class="ip_edit_row">
<p class="ip_row_p">Kidney Problems :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<select class="ip_bank_input" name="Kidney_Problem">
<option selected disabled>Selecy Any</option>
<?php if(!empty($major_problems['1'])&&!empty($major_problems['1']['sub_problem']))
{
......@@ -107,7 +78,7 @@
<div class="ip_edit_row">
<p class="ip_row_p">Joint problems or rheumatism :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<select class="ip_bank_input" name="Joint_Problem">
<option selected disabled>Selecy Any</option>
<?php if(!empty($major_problems['2'])&&!empty($major_problems['2']['sub_problem']))
{
......@@ -126,7 +97,7 @@
<div class="ip_edit_row">
<p class="ip_row_p">Heart problems :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<select class="ip_bank_input" name="Heart_Problem">
<option selected disabled>Selecy Any</option>
<?php if(!empty($major_problems['0'])&&!empty($major_problems['0']['sub_problem']))
{
......@@ -145,7 +116,7 @@
<div class="ip_edit_row">
<p class="ip_row_p">Breathing problems :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<select class="ip_bank_input" name="Breathing_Problem">
<option selected disabled>Selecy Any</option>
<?php if(!empty($major_problems['3'])&&!empty($major_problems['3']['sub_problem']))
{
......@@ -164,7 +135,7 @@
<div class="ip_edit_row">
<p class="ip_row_p">Gastric problems :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<select class="ip_bank_input" name="Gastric_Problem">
<option selected disabled>Selecy Any</option>
<?php if(!empty($major_problems['4'])&&!empty($major_problems['4']['sub_problem']))
{
......@@ -183,7 +154,7 @@
<div class="ip_edit_row">
<p class="ip_row_p">Allergies :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<select class="ip_bank_input" name="Allergies">
<option selected disabled>Selecy Any</option>
<?php if(!empty($major_problems['5'])&&!empty($major_problems['5']['sub_problem']))
{
......@@ -202,8 +173,8 @@
<div class="ip_edit_row">
<p class="ip_row_p">Use of medicines :</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option selected disabled>Selecy Any</option>
<select class="ip_bank_input chosen-select" placeholder="Select Any" name="Medications[]" multiple="multiple" tabindex="4">
<?php if(!empty($medicines))
{
foreach ($medicines as $key => $elem)
......@@ -220,58 +191,55 @@
</div>
<div class="ip_edit_row">
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-21" class="ip_custom_checkbox1" name="hepatitis" type="checkbox" checked="">
<input id="checkbox-21" class="ip_custom_checkbox1" name="others[]" type="checkbox" value="hepatitis">
<label for="checkbox-21" class="ip_custom_checkbox_label1">Hepatitis</label>
</div>
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-22" class="ip_custom_checkbox1" name="pregnancy" type="checkbox" checked="">
<input id="checkbox-22" class="ip_custom_checkbox1" name="others[]" value="pregnancy" type="checkbox" >
<label for="checkbox-22" class="ip_custom_checkbox_label1">Pregnancy</label>
</div>
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-23" class="ip_custom_checkbox1" name="diabetis" type="checkbox" checked="">
<input id="checkbox-23" class="ip_custom_checkbox1" name="others[]" value="diabetis" type="checkbox" >
<label for="checkbox-23" class="ip_custom_checkbox_label1">Diabetis</label>
</div>
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-24" class="ip_custom_checkbox1" name="healing_problems" type="checkbox" checked="">
<input id="checkbox-24" class="ip_custom_checkbox1" name="others[]" value="healing_problems" type="checkbox" >
<label for="checkbox-24" class="ip_custom_checkbox_label1">Healing problems</label>
</div>
<div class="clear"></div>
</div>
<div class="ip_edit_bottom_btn_bay">
<a href="javascript:void(0)">
<button type="button" class="ip_edit_save_btn floatRight" id="record-sec-1-btn">SAVE</button></a>
<div class="clear"></div>
</div>
<br>
<div class="alert hidden alert-success textCenter" id="anamnesis-success"></div>
<div class="alert hidden alert-danger textCenter" id="anamnesis-error"></div>
</div>
</form>
</div>
</div>
<div class="ip_edit_record_cover">
<div class="ip_edit_record_head" data-toggle="collapse" data-target="#prescription">
Prescriptions
</div>
<div id="prescription" class="collapse in">
<div class="ip_edit_record_detail">
<div class="ip_edit_row">
<p class="ip_row_p">Models of prescriptions
<button class="ip_edit_gray_btn floatRight">Edit templates</button>
<div class="clear"></div>
</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Select</option>
</select>
<div class="ip_edit_record_detail">
<div class="ip_medical_prescription" >
<form role="form" data-parsley-validate="" id="selected-medicine-form">
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="medicine">
<div id="show-medicine-main">
<!-- DIV SHOWING ADDED MEDICINE -->
</div>
</div>
</div>
<hr>
<div class="ip_edit_record_detail">
<div class="ip_medical_prescription">
<li>
<h6>Broncoflux 30mg</h6>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum is simply dummy</p>
<div class="ip_medical_pres_btn_bay">
<button class="ip_medical_pres_btn">Edit</button>
<button class="ip_medical_pres_btn2">Delete</button>
</div>
</li>
<li>
</form>
<!-- <li>
<h6>Broncoflux 30mg</h6>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum is simply dummy</p>
......@@ -280,61 +248,141 @@
<button class="ip_medical_pres_btn2">Delete</button>
</div>
</li>
-->
<div class="clear"></div>
</div>
</div>
<hr>
<div class="ip_edit_record_detail">
<div class="ip_edit_record_detail" id="add-medicine-main">
<form role="form" data-parsley-validate="" id="add-medicine-form">
<div class="ip_edit_row">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Medicine</option>
</select>
<select class="ip_bank_input select-in-medi-rec" type="medicine" placeholder="Select Any" name="name" id="medicine-select" data-parsley-required="" >
<option disabled selected value="0">Select Any</option>
<?php if(!empty($medicines))
{
foreach ($medicines as $key => $elem)
{
?>
<option value="<?php echo $elem['medicine_name']?>"><?php echo $elem['medicine_name']?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="ip_edit_row">
<div class="row">
<div class="col-md-6">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input" name="quantity" id="medicine-quantity" data-parsley-required="">
<option disabled selected >Select Quantity</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input" id="medicine-dosage" name="procedure" data-parsley-required="">
<option disabled selected>Select Dosage and administration</option>
</select>
</div>
</div>
</div>
</div>
<div class="ip_edit_row">
<button type="button" id="add-medicine-btn" class="ip_edit_set_btn">Add medicine</button>
</div>
</form>
</div>
<div class="ip_edit_record_detail hidden" id="edit-medicine-main">
<form role="form" data-parsley-validate="" id="edit-medicine-form">
<div class="ip_edit_row">
<div class="ip_bank_detail_frame">
<input type="hidden" id="edit-medcine-id">
<select class="ip_bank_input select-in-medi-rec" type="medicine-edit" placeholder="Select Any" name="name" id="edit-medicine-select" data-parsley-required="" >
<option disabled selected value="0">Select Any</option>
<?php if(!empty($medicines))
{
foreach ($medicines as $key => $elem)
{
?>
<option value="<?php echo $elem['medicine_name']?>"><?php echo $elem['medicine_name']?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="ip_edit_row">
<div class="row">
<div class="col-md-6">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Amount</option>
<select class="ip_bank_input" name="quantity" id="edit-medicine-quantity" data-parsley-required="">
<option disabled selected >Select Quantity</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Dosage and administration</option>
<select class="ip_bank_input" id="edit-medicine-dosage" name="procedure" data-parsley-required="">
<option disabled selected>Select Dosage and administration</option>
</select>
</div>
</div>
</div>
</div>
<div class="ip_edit_row">
<button class="ip_edit_set_btn">Add medicine</button>
<button type="button" id="edit-medicine-btn" class="ip_edit_set_btn">Edit Medicine</button>
</div>
</form>
</div>
<hr>
<div class="ip_edit_record_detail">
<div class="row m0">
<div class="col-md-2 p5"><button class="ip_edit_set_btn1">PRINT</button></div>
<div class="col-md-3 p5"><button class="ip_edit_set_btn2">SEND BY EMAIL</button></div>
<div class="col-md-5 p5"><button class="ip_edit_set_btn2">SAVE AS A MODEL</button></div>
<div class="col-md-2 p5"><button class="ip_edit_set_btn">SAVE</button></div>
<div class="col-md-5 p5"><!-- <button class="ip_edit_set_btn2">SAVE AS A MODEL</button> --></div>
<div class="col-md-2 p5"><a href="javascript:void(0)"><button class="ip_edit_set_btn" id="selected-medicine-final-save" type="button">SAVE</button></a></div>
</div>
<div class="alert hidden alert-success textCenter" id="medicine-success"></div>
<div class="alert hidden alert-danger textCenter" id="medicine-error"></div>
</div>
</div>
</div>
<div class="ip_edit_record_cover">
<div class="ip_edit_record_head" data-toggle="collapse" data-target="#exam">
Exams
</div>
<div id="exam" class="collapse in">
<div class="ip_edit_record_detail">
<form role="form" data-parsley-validate="" id="add-exam-form">
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="exams">
<div class="ip_edit_row">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Examination or procedure</option>
<select class="ip_bank_input select-in-medi-rec" data-parsley-required="" name="exam_procedure" type="exams" id="exam-select">
<option disabled selected value="0">Examination or procedure</option>
<?php if(!empty($exams))
{
foreach ($exams as $key => $elem)
{
?>
<option value="<?php echo $elem['exam_name']?>"><?php echo $elem['exam_name']?></option>
<?php
}
}
?>
</select>
</div>
</div>
......@@ -342,8 +390,8 @@
<div class="row m0">
<div class="col-md-8 p0">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Note</option>
<select class="ip_bank_input" data-parsley-required="" name="observation" id="exam-observation">
<option selected disabled>Note</option>
</select>
</div>
</div>
......@@ -352,18 +400,24 @@
</div>
<div class="ip_edit_row">
<div class="row m0">
<div class="col-md-3 p5">
<div class="col-md-2 p5">
<button class="ip_edit_set_btn1">PRINT</button>
</div>
<div class="col-md-3 p5">
<button class="ip_edit_set_btn2">SEND BY EMAIL</button>
</div>
<div class="col-md-5 p5">
</div>
<div class="col-md-2 p5">
<button class="ip_edit_set_btn">SAVE</button>
<button class="ip_edit_set_btn" type="button" id="add-exam-btn">SAVE</button>
</div>
<div class="col-md-4 p5"></div>
</div>
<div class="alert hidden alert-success textCenter" id="exam-success"></div>
<div class="alert hidden alert-danger textCenter" id="exam-error"></div>
</div>
</form>
</div>
</div>
</div>
......@@ -375,43 +429,97 @@
<div id="budjet" class="collapse in">
<div class="ip_edit_record_detail">
<div class="ip_edit_row">
<div class="ip_budject_list">
<form role="form" data-parsley-validate="" id="selected-budget-form">
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="budget">
<div id="show-budget-main">
<!-- DIV SHOWING ADDED BUDGET -->
</div>
</form>
<!--
<li>
<div class="child1">1-Varicose vein removal surgery</div>
<div class="child2">R$240,00</div>
<div class="clear"></div>
<hr>
<button class="ip_exclude" type="button">Delete</button>
</li>-->
<li class="select">
<div class="child1">TOTAL</div>
<div class="child2 select">R$<span id="budget-total-price">0</span></div>
<div class="clear"></div>
</li>
</div>
</div>
</div>
<hr>
<div class="ip_edit_record_detail">
<form role="form" data-parsley-validate="" id="add-procedure-form">
<div class="ip_edit_row">
<p class="ip_row_p">Item or procedure</p>
<div class="ip_bank_detail_frame">
<input class="ip_bank_input" type="text" placeholder="">
<select class="ip_bank_input select-in-medi-rec" data-parsley-required="" name="procedure_name" type="budget" id="budget-select">
<option selected disabled value="0">Item or Procedure</option>
<?php if(!empty($procedure))
{
foreach ($procedure as $key => $elem)
{
?>
<option value="<?php echo $elem['procedure_name']?>"><?php echo $elem['procedure_name']?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="ip_edit_row">
<div class="row">
<div class="col-md-8">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Value</option>
<select class="ip_bank_input" data-parsley-required="" name="procedure-quantity" id="budget-quantity">
<option selected disabled>Value</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Amount</option>
<select class="ip_bank_input" data-parsley-required="" name="procedure-amount" id="budget-amount">
<option selected disabled>Amount</option>
</select>
</div>
</div>
</div>
</div>
<button class="ip_edit_set_btn">Add item or procedure</button>
<a href="javascript:void(0)">
<button class="ip_edit_set_btn" type="button" id="add-procedure-btn" >Add item or procedure</button>
</a>
</form>
</div>
<hr>
<div class="ip_edit_record_detail">
<div class="row m0">
<div class="col-md-3 p5"><button class="ip_edit_set_btn1">FINAL BUDJECT</button></div>
<!-- <div class="col-md-3 p5"><button class="ip_edit_set_btn1">FINAL BUDJECT</button></div> -->
<div class="col-md-2 p5"><button class="ip_edit_set_btn1">PRINT</button></div>
<div class="col-md-5 p5"><button class="ip_edit_set_btn2">SEND BY MAIL</button></div>
<div class="col-md-2 p5"><button class="ip_edit_set_btn">SAVE</button></div>
<div class="col-md-3 p5"><button class="ip_edit_set_btn2">SEND BY MAIL</button></div>
<div class="col-md-5 p5"></div>
<div class="col-md-2 p5">
<a href="javascript:void(0)">
<button class="ip_edit_set_btn" type="button" id="selected-budget-final-save">SAVE</button>
</a>
</div>
</div>
<div class="alert hidden alert-success textCenter" id="budget-success"></div>
<div class="alert hidden alert-danger textCenter" id="budget-error"></div>
</div>
</div>
</div>
<div class="ip_edit_record_cover">
<div class="ip_edit_record_head" data-toggle="collapse" data-target="#letters">
Attached letters
......@@ -423,11 +531,11 @@
<div class="col-md-7">
<div class="ip_edit_row">
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-31" class="ip_custom_checkbox1" name="checkbox-31" type="checkbox" checked="">
<input id="checkbox-31" class="ip_custom_checkbox1 certificate-type" name="choose-certificate-type" type="radio" value="standard">
<label for="checkbox-31" class="ip_custom_checkbox_label1">Standard certificate</label>
</div>
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-32" class="ip_custom_checkbox1" name="checkbox-32" type="checkbox" checked="">
<input id="checkbox-32" class="ip_custom_checkbox1 certificate-type" name="choose-certificate-type" type="radio" value="standardcid">
<label for="checkbox-32" class="ip_custom_checkbox_label1">Standard certificate with CID</label>
</div>
<div class="clear"></div>
......@@ -437,8 +545,16 @@
<div class="ip_edit_row">
<p class="ip_row_p">Days of removal</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>05 Days</option>
<select class="ip_bank_input certificate-type" id="certificate-days">
<option value="0" disabled selected>Select Day</option>
<?php
for($i=1;$i<=30;$i++)
{
?>
<option value="<?php echo$i?>"><?php echo$i?> Days</option>
<?php
}
?>
</select>
</div>
</div>
......@@ -448,44 +564,70 @@
<div class="ip_edit_row">
<p class="ip_row_p">Diagnostic (CID)</p>
<div class="ip_bank_detail_frame">
<select class="ip_bank_input">
<option>Start Dieting</option>
<select class="ip_bank_input certificate-type" id="certificate-cid">
<option value="0" selected disabled>Start Dieting</option>
cidnumbers
<?php if(!empty($cidnumbers))
{
foreach ($cidnumbers as $key => $elem)
{
?>
<option value="<?php echo $elem['code']?>"><?php echo $elem['disease_name']?>-<?php echo $elem['code']?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="ip_edit_text_bay">
<div class="ip_edit_record_text">
<ul>
<li><img src="<?php echo base_url();?>assets/images/ip_edit1.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit2.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit3.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit4.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit5.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit6.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit7.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit8.png"></li>
<div class="clear"></div>
</ul>
</div>
<textarea class="ip_edit_record_content_textarea" rows="4"></textarea>
</div>
<textarea id="certificate" type="text" rows="10" cols="80"></textarea>
</div>
<hr>
<div class="ip_edit_record_detail">
<div class="row m0">
<div class="col-md-2 p5"><button class="ip_edit_set_btn1">PRINT</button></div>
<div class="col-md-3 p5"><button class="ip_edit_set_btn2">SEND BY EMAIL</button></div>
<div class="col-md-5 p5"><button class="ip_edit_set_btn2">SAVE AS A MODEL</button></div>
<div class="col-md-2 p5"><button class="ip_edit_set_btn">SAVE</button></div>
<div class="col-md-5 p5"><!-- <button class="ip_edit_set_btn2">SAVE AS A MODEL</button> --></div>
<div class="col-md-2 p5">
<a href="javascript:void(0)">
<button class="ip_edit_set_btn" section="certificate" bookid="<?php echo $booking_details['book_id'];?>" id="certificate-save-btn" type="button">SAVE</button>
</a>
</div>
</div>
</div>
<div class="alert hidden alert-success textCenter" id="certificate-success"></div>
<div class="alert hidden alert-danger textCenter" id="certificate-error"></div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<form role="form" id="record-final-save-form" method="POST" action="<?php echo base_url();?>Doctor/endservice/<?php echo $booking_details['book_id'];?>" enctype="multipart/form-data">
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="finalsave">
<div class="ip_coutdown_timmer_wrap">
<a href="javascript:void(0)">
<button class="ip_circle_btn bal_btn" id="record-final-save-btn" type="button">END OF SERVICE</button>
</a>
<div class="ip_coutdown_timmer_body">
<div class="ip_count_timmer_inner">
<div class="ip_count_timmer">
<span id="doc_service_timer" >00:00:00</span>
<p>Consultation duration</p>
</div>
<div class="ip_count_clock">
<img src="<?php echo base_url();?>assets/images/ip_clock.png">
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="ip_edit_record_cover">
<div class="ip_edit_record_head" data-toggle="collapse" data-target="#other">
Others
......@@ -497,70 +639,48 @@
<select class="ip_bank_input">
<option>Other observation</option>
</select>
<!-- <p class="ip_bank_input">Other observation</p> -->
</div>
</div>
<div class="ip_edit_text_bay">
<div class="ip_edit_record_text">
<ul>
<li><img src="<?php echo base_url();?>assets/images/ip_edit1.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit2.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit3.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit4.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit5.png"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_edit6.png"></li>
<div class="clear"></div>
</ul>
</div>
<textarea class="ip_edit_record_content_textarea" rows="3"></textarea>
</div>
<textarea class="ip_edit_record_content_textarea" name="other-observation-desc" id="otherobservation" rows="3"></textarea>
</div>
</div>
<hr>
<div class="ip_edit_attachement">
<div class="ip_edit_record_detail pt0">
<h6><img src="<?php echo base_url();?>assets/images/ip_attachment.png">Attach images</h6>
<ul>
<li>
<div class="ip_attach_file_name">67asd4hbhb.psd</div>
<div class="ip_attach_file_size">657 KB</div>
<div class="ip_attach_close"><img src="<?php echo base_url();?>assets/images/ip_attach_close.png"></div>
<div class="clear"></div>
</li>
<li>
<ul id="certificate-show-details">
<!-- <li>
<div class="ip_attach_file_name">67asd4hbhb.psd</div>
<div class="ip_attach_file_size">657 KB</div>
<div class="ip_attach_close"><img src="<?php echo base_url();?>assets/images/ip_attach_close.png"></div>
<div class="clear"></div>
</li>
<li>
<div class="ip_attach_file_name">ui3464778.psd</div>
<div class="ip_attach_file_size">784 KB</div>
<div class="ip_attach_close"><img src="<?php echo base_url();?>assets/images/ip_attach_close.png"></div>
<div class="clear"></div>
</li>
<li>
<div class="ip_attach_file_name">y32578u.psd</div>
<div class="ip_attach_file_size">352 KB</div>
<div class="ip_attach_close"><img src="<?php echo base_url();?>assets/images/ip_attach_close.png"></div>
<div class="clear"></div>
</li>
</li> -->
</ul>
</div>
</div>
<div class="ip_image_attach">
<ul>
<li><img src="<?php echo base_url();?>assets/images/ip_image1.jpg"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_image2.jpg"></li>
<li><img src="<?php echo base_url();?>assets/images/ip_upload.png"></li>
<ul id="certificate-show-img">
<!-- <li><img src="<?php echo base_url();?>assets/images/ip_image1.jpg"></li>-->
</ul>
<div><img src="<?php echo base_url();?>assets/images/ip_upload.png"> <input type="file" name="images[]" id="obsr-images" onchange="certificate_images_loadthumbnail(this)" multiple="multiple"></div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" id="certificatedata" standard="<?php echo $certificate_letter['letter']?>" standardcid="<?php echo $certificate_letter['cid_letter']?>">
<script>
var seconds = 0, minutes = 0, hours = 0,t;
......
......@@ -14,5 +14,7 @@
$(function()
{
CKEDITOR.replace('editor1');
CKEDITOR.replace('certificate');
CKEDITOR.replace('otherobservation');
})
</script>
\ No newline at end of file
<div class="ip_set_two_wrapper">
<div class="container ip_custom_container">
<div class="ip_main_path_stream">
<ul>
<a href="<?php echo base_url();?>Home/Dashboard">
<li>Dashboard<span><img src="<?php echo base_url();?>assets/images/ip_tab_list_arw.png"></span>
</li>
</a>
<li>Service Summary<span><img src="<?php echo base_url();?>assets/images/ip_tab_list_arw.png"></span></li>
</ul>
</div>
<div class="ip_records_tab">
<div class="row m0">
<div class="col-md-2 p0">
<div class="ip_record_section_header">
<!-- 08 Sept, 13.00 - 14:00 -->
<?php echo date('d M',$booking_details['book_date'])?>, <?php echo $booking_details['book_time'];?>
</div>
</div>
<div class="col-md-10 p0">
<div class="ip_record_header1">
<div class="ip_record_back">
<div class="ip_pres_image">
<img src="<?php echo base_url();echo $patient_data['pt_pic']?>">
</div>
</div>
<div class="ip_record_search_box backgroundnone">
<h4><?php echo $patient_data['pt_name']?></h4>
</div>
<div class="ip_record_settings">
<span class="settings"><img src="<?php echo base_url();?>assets/images/ip_settings.png"></span>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="ip_bio_tab_div m0">
<div class="row m0">
<div class="col-md-2 p0 height100">
<div class="ip_bio_tab_bay height100">
<ul>
<li class="active" data-toggle="tab" href="#record">Anamnesis</li>
<li data-toggle="tab" href="#prescription">Prescription</li>
<li data-toggle="tab" href="#exam">Exams</li>
<li data-toggle="tab" href="#other">Letters and certificates</li>
<li data-toggle="tab" href="#budjet">Budget</li>
<li data-toggle="tab" href="#ratting">Evaluation</li>
</ul>
</div>
</div>
<div class="col-md-10 p0">
<div class="ip_bio_tab_content">
<div class="tab-content">
<div class="ip_profile_tab_top p0">
<div class="ip_profile_tab_name">
<h3><?php if(!empty($record_data['main_complaint'])) echo $record_data['main_complaint'];?></h3>
</div>
<div class="clear"></div>
</div>
<div id="record" class="tab-pane fade in active">
<div class="ip_profile_tab_detail">
<?php if(!empty($record_data['description']))echo $record_data['description'];?>
<br>
<div class="ip_prescription_div">
<ul>
<?php
if(!empty($record_data['diseases']->anamnese))
{
foreach ($record_data['diseases']->anamnese as $key => $value)
{
if($key!='others' and $key!='Medications')
{
$key = str_replace('_', ' ', $key);
?>
<li class="p0">
<h5><?php echo $key;?></h5>
<p><?php echo $value;?></p>
</li>
<?php
}
if($key=='Medications')
{
?>
<li class="p0">
<h5><?php echo $key;?></h5>
<p><?php echo implode(",",$value);?></p>
</li>
<?php
}
}
}
?>
<!-- <li class="p0">
<h5>Renal Problems</h5>
<p>been the industry's standard </p>
</li> -->
<!-- <li class="p0">
<h5>Alergies</h5>
<p>been the industry's standard </p>
</li> -->
<div class="clear"></div>
<br>
<?php
if(!empty($record_data['diseases']->anamnese->others))
{
foreach ($record_data['diseases']->anamnese->others as $key => $value){
?>
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-2" class="ip_custom_checkbox1" name="checkbox-2" type="checkbox" checked="" disabled>
<label for="checkbox-2" class="ip_custom_checkbox_label1"><?php echo $value;?></label>
</div>
<?php
}
}
?>
<div class="clear"></div>
</ul>
</div>
</div>
</div>
<div id="prescription" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_prescription_div">
<ul>
<?php if(!empty($record_data['prescribtions']))
{
foreach ($record_data['prescribtions'] as $key => $value)
{
?>
<li>
<h5><?php echo $value->name;?> <?php echo $value->quantity;?></h5>
<!-- <p>been the industry's standard </p> -->
<h6><?php echo $value->procedure;?></h6>
</li>
<?php
}
}
?>
<!-- <li>
<h5>Broncoflux 30mg</h5>
<p>been the industry's standard </p>
<h6>since the 1500s, when an unknown printer took a</h6>
</li> -->
<div class="clear"></div>
</ul>
</div>
</div>
</div>
<div id="exam" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_prescription_div">
<ul>
<?php if(!empty($record_data['exams'][0]))
{
?>
<li>
<h5><?php echo $record_data['exams'][0]->procedure;?></h5>
<h6><?php echo $record_data['exams'][0]->observation;?></h6>
</li>
<?php
}
?>
<!-- <li>
<h5>USG Obstetrica / doppler</h5>
<h6>since the 1500s, when an unknown printer took a</h6>
</li> -->
</ul>
</div>
</div>
</div>
<div id="other" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<?php if(!empty($record_data['letters']))
{
?>
<p><?php echo $record_data['letters'];?></p>
<?php
}
?>
</div>
</div>
<div id="budjet" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_edit_row">
<div class="ip_budject_list">
<?php
if(!empty($record_data['budget']))
{
foreach ($record_data['budget']as $key => $value)
{
?>
<li>
<div class="child1"><?php echo $value->quantity;?>-<?php echo $value->procedure;?></div>
<div class="child2">R$<?php echo $value->amount;?></div>
<div class="clear"></div>
</li>
<?php
$total_budget[$key] = $value->amount * $value->quantity;
}
}
?>
<!-- <li>
<div class="child1">2-Leisure peeling sessions</div>
<div class="child2">R$150,00</div>
<div class="clear"></div>
</li> -->
<li class="select">
<div class="child1">TOTAL</div>
<div class="child2 select">R$<?php if(!empty($total_budget)) {echo array_sum($total_budget);}?></div>
<div class="clear"></div>
</li>
</div>
</div>
</div>
</div>
<div id="ratting" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_ratting_tab_content">
<div class="row m0">
<div class="ip_profile_tab_circle">
<img src="<?php echo base_url();echo $doctor_data['dr_pic']?>">
</div>
<div class="ip_profile_tab_name">
<h3>Dr. <?php echo $doctor_data['dr_name']?></h3>
<!-- <form id="ip_user_rating_form">
<div id="ip_selected_rating" class="ip_selected_rating floatLeft">5.0</div>
<span class="ip_user_rating floatLeft">
<input type="radio" name="rating" value="5.0"><span class="star"></span>
<input type="radio" name="rating" value="4.0"><span class="star"></span>
<input type="radio" name="rating" value="3.0"><span class="star"></span>
<input type="radio" name="rating" value="2.0"><span class="star"></span>
<input type="radio" name="rating" value="1.0"><span class="star"></span>
</span>
<div class="clear"></div>
</form> -->
</div>
<div class="ip_profile_tab_name_detail">
<p><?php if(!empty($record_data['patient_review'])) {echo $record_data['patient_review']; } ?></p>
</div>
<div class="clear"></div>
</form>
<br>
</div>
</div>
</div>
</div>
<div class="ip_prescription_bottom_btn_bay">
<button class="ip_prescription_btn2 floatRight">SEND BY EMAIL</button>
<button class="ip_prescription_btn1 floatRight">PRINT OUT</button>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ip_set_two_wrapper">
<div class="container ip_custom_container">
<div class="ip_main_path_stream">
<ul>
<li>Dashboard<span><img src="<?php echo base_url();?>assets/images/ip_tab_list_arw.png"></span></li>
<li>Service Summary<span><img src="<?php echo base_url();?>assets/images/ip_tab_list_arw.png"></span></li>
</ul>
</div>
<div class="ip_records_tab">
<div class="row m0">
<div class="col-md-2 p0">
<div class="ip_record_section_header">
<!-- 08 Sept, 13.00 - 14:00 -->
<?php echo date('d M',$booking_details['book_date'])?>, <?php echo $booking_details['book_time'];?>
</div>
</div>
<div class="col-md-10 p0">
<div class="ip_record_header1">
<div class="ip_record_back">
<div class="ip_pres_image">
<img src="<?php echo base_url();echo $doctor_data['dr_pic']?>">
</div>
</div>
<div class="ip_record_search_box backgroundnone">
<h4>Dr.<?php echo $doctor_data['dr_name']?> | <?php echo $doctor_data['dr_specialization']?></h4>
</div>
<div class="ip_record_settings">
<span class="settings"><img src="<?php echo base_url();?>assets/images/ip_settings.png"></span>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="ip_bio_tab_div m0">
<div class="row m0">
<div class="col-md-2 p0 height100">
<div class="ip_bio_tab_bay height100">
<ul>
<li class="active" data-toggle="tab" href="#record">Anamnesis</li>
<li data-toggle="tab" href="#prescription">Prescription</li>
<li data-toggle="tab" href="#exam">Exams</li>
<li data-toggle="tab" href="#other">Letters and certificates</li>
<li data-toggle="tab" href="#budjet">Budget</li>
<li data-toggle="tab" href="#ratting">Evaluation</li>
</ul>
</div>
</div>
<div class="col-md-10 p0">
<div class="ip_bio_tab_content">
<div class="tab-content">
<div class="ip_profile_tab_top p0">
<div class="ip_profile_tab_name">
<h3><?php if(!empty($record_data['main_complaint'])) echo $record_data['main_complaint'];?></h3>
</div>
<div class="clear"></div>
</div>
<div id="record" class="tab-pane fade in active">
<div class="ip_profile_tab_detail">
<?php if(!empty($record_data['description']))echo $record_data['description'];?>
<br>
<div class="ip_prescription_div">
<ul>
<?php
if(!empty($record_data['diseases']->anamnese))
{
foreach ($record_data['diseases']->anamnese as $key => $value)
{
if($key!='others' and $key!='Medications')
{
$key = str_replace('_', ' ', $key);
?>
<li class="p0">
<h5><?php echo $key;?></h5>
<p><?php echo $value;?></p>
</li>
<?php
}
if($key=='Medications')
{
?>
<li class="p0">
<h5><?php echo $key;?></h5>
<p><?php echo implode(",",$value);?></p>
</li>
<?php
}
}
}
?>
<!-- <li class="p0">
<h5>Renal Problems</h5>
<p>been the industry's standard </p>
</li> -->
<!-- <li class="p0">
<h5>Alergies</h5>
<p>been the industry's standard </p>
</li> -->
<div class="clear"></div>
<br>
<?php
if(!empty($record_data['diseases']->anamnese->others))
{
foreach ($record_data['diseases']->anamnese->others as $key => $value){
?>
<div class="ip_day_time_schedule_details_data p0 floatLeft">
<input id="checkbox-2" class="ip_custom_checkbox1" name="checkbox-2" type="checkbox" checked="" disabled>
<label for="checkbox-2" class="ip_custom_checkbox_label1"><?php echo $value;?></label>
</div>
<?php
}
}
?>
<div class="clear"></div>
</ul>
</div>
</div>
</div>
<div id="prescription" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_prescription_div">
<ul>
<?php if(!empty($record_data['prescribtions']))
{
foreach ($record_data['prescribtions'] as $key => $value)
{
?>
<li>
<h5><?php echo $value->name;?> <?php echo $value->quantity;?></h5>
<!-- <p>been the industry's standard </p> -->
<h6><?php echo $value->procedure;?></h6>
</li>
<?php
}
}
?>
<!-- <li>
<h5>Broncoflux 30mg</h5>
<p>been the industry's standard </p>
<h6>since the 1500s, when an unknown printer took a</h6>
</li> -->
<div class="clear"></div>
</ul>
</div>
</div>
</div>
<div id="exam" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_prescription_div">
<ul>
<?php if(!empty($record_data['exams'][0]))
{
?>
<li>
<h5><?php echo $record_data['exams'][0]->procedure;?></h5>
<h6><?php echo $record_data['exams'][0]->observation;?></h6>
</li>
<?php
}
?>
<!-- <li>
<h5>USG Obstetrica / doppler</h5>
<h6>since the 1500s, when an unknown printer took a</h6>
</li> -->
</ul>
</div>
</div>
</div>
<div id="other" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<?php if(!empty($record_data['letters']))
{
?>
<p><?php echo $record_data['letters'];?></p>
<?php
}
?>
</div>
</div>
<div id="budjet" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_edit_row">
<div class="ip_budject_list">
<?php
if(!empty($record_data['budget']))
{
foreach ($record_data['budget']as $key => $value)
{
?>
<li>
<div class="child1"><?php echo $value->quantity;?>-<?php echo $value->procedure;?></div>
<div class="child2">R$<?php echo $value->amount;?></div>
<div class="clear"></div>
</li>
<?php
$total_budget[$key] = $value->amount * $value->quantity;
}
}
?>
<!-- <li>
<div class="child1">2-Leisure peeling sessions</div>
<div class="child2">R$150,00</div>
<div class="clear"></div>
</li> -->
<li class="select">
<div class="child1">TOTAL</div>
<div class="child2 select">R$<?php if(!empty($total_budget)) {echo array_sum($total_budget);}?></div>
<div class="clear"></div>
</li>
</div>
</div>
</div>
</div>
<div id="ratting" class="tab-pane fade">
<div class="ip_profile_tab_detail">
<div class="ip_ratting_tab_content">
<div class="row m0">
<div class="ip_profile_tab_circle">
<img src="<?php echo base_url();echo $doctor_data['dr_pic']?>">
</div>
<div class="ip_profile_tab_name">
<h3>Dr. <?php echo $doctor_data['dr_name']?></h3>
<!-- <form id="ip_user_rating_form">
<div id="ip_selected_rating" class="ip_selected_rating floatLeft">5.0</div>
<span class="ip_user_rating floatLeft">
<input type="radio" name="rating" value="5.0"><span class="star"></span>
<input type="radio" name="rating" value="4.0"><span class="star"></span>
<input type="radio" name="rating" value="3.0"><span class="star"></span>
<input type="radio" name="rating" value="2.0"><span class="star"></span>
<input type="radio" name="rating" value="1.0"><span class="star"></span>
</span>
<div class="clear"></div>
</form> -->
</div>
<div class="ip_profile_tab_name_detail">
<form id="patient_review_record" role="form" data-parsley-validate="">
<input type="hidden" name="booking_id" value="<?php echo $booking_details['book_id'];?>">
<input type="hidden" name="section" value="review">
<textarea data-parsley-required="" name="review" ><?php if(!empty($record_data['patient_review'])) {echo $record_data['patient_review']; } ?></textarea>
<!-- <p> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy </p> -->
</div>
<div class="clear"></div>
<button type="button" id="patient_review_record_btn" >Save</button>
</form>
<br>
<div id="review-success" class="alert alert-success hidden"></div>
<div id="review-error" class="alert alert-danger hidden"></div>
</div>
</div>
</div>
</div>
<div class="ip_prescription_bottom_btn_bay">
<button class="ip_prescription_btn2 floatRight">SEND BY EMAIL</button>
<button class="ip_prescription_btn1 floatRight">PRINT OUT</button>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......@@ -13,18 +13,20 @@
<script src="<?php echo base_url();?>assets/js/ie-emulation-modes-warning.js.download"></script>
<script src="<?php echo base_url();?>assets/js/jquery.min.js"></script>
<script src="<?php echo base_url();?>assets/js/moment.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.4.1/moment-timezone-with-data-2010-2020.min.js"></script> -->
<!-- <script src="../assets/js/fullcalendar.min.js"></script> -->
<script>window.jQuery || document.write('<script src="<?php echo base_url();?>assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="<?php echo base_url();?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo base_url();?>assets/js/ie10-viewport-bug-workaround.js.download"></script>
<script src="<?php echo base_url();?>assets/js/jquery-ui.js"></script>
<script src="<?php echo base_url();?>assets/js/chosen.jquery.min.js"></script>
<!-- <script src="<?php echo base_url();?>assets/js/gmap.js"></script> -->
<script src="<?php echo base_url();?>assets/js/slick.min.js"></script>
<script src="<?php echo base_url();?>assets/js/parsley.min.js"></script>
<script src="<?php echo base_url();?>assets/js/custom.js"></script>
<script src="<?php echo base_url();?>assets/js/ckeditor.js"></script>
<!-- <script src="https://cdn.ckeditor.com/4.5.7/basic/ckeditor.js"></script>; -->
<script src="<?php echo base_url();?>assets/ckeditor/ckeditor.js"></script>
<!-- <script src="https://cdn.ckeditor.com/4.5.7/basic/ckeditor.js"></script> -->
<script src="<?php echo base_url();?>assets/js/bootstrap-datepicker.js"></script>
......
......@@ -5,6 +5,7 @@
<link href= "<?php echo base_url();?>assets/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- <link href="../assets/css/fullcalendar.min.css" rel="stylesheet"> -->
<link href="<?php echo base_url();?>assets/css/chosen.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/css/parsley.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/css/custom.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/css/responsive.css" rel="stylesheet">
......
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.4.2
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2015 Harvest http://getharvest.com
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
This file is generated by `grunt build`, do not edit it by hand.
*/
/* @group Base */
.chosen-container {
position: relative;
display: inline-block;
vertical-align: middle;
font-size: 13px;
zoom: 1;
*display: inline;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.chosen-container * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.chosen-container .chosen-drop {
position: absolute;
top: 100%;
left: -9999px;
z-index: 1010;
width: 100%;
border: 1px solid #aaa;
border-top: 0;
background: #fff;
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}
.chosen-container.chosen-with-drop .chosen-drop {
left: 0;
}
.chosen-container a {
cursor: pointer;
}
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
margin-right: 4px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: normal;
color: #999999;
}
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
content: ":";
padding-left: 2px;
vertical-align: top;
}
/* @end */
/* @group Single Chosen */
.chosen-container-single .chosen-single {
position: relative;
display: block;
overflow: hidden;
padding: 0 0 0 8px;
height: 25px;
border: 1px solid #aaa;
border-radius: 5px;
background-color: #fff;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
background-clip: padding-box;
box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
color: #444;
text-decoration: none;
white-space: nowrap;
line-height: 24px;
}
.chosen-container-single .chosen-default {
color: #999;
}
.chosen-container-single .chosen-single span {
display: block;
overflow: hidden;
margin-right: 26px;
text-overflow: ellipsis;
white-space: nowrap;
}
.chosen-container-single .chosen-single-with-deselect span {
margin-right: 38px;
}
.chosen-container-single .chosen-single abbr {
position: absolute;
top: 6px;
right: 26px;
display: block;
width: 12px;
height: 12px;
background: url('../images/chosen-sprite.png') -42px 1px no-repeat;
font-size: 1px;
}
.chosen-container-single .chosen-single abbr:hover {
background-position: -42px -10px;
}
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
background-position: -42px -10px;
}
.chosen-container-single .chosen-single div {
position: absolute;
top: 0;
right: 0;
display: block;
width: 18px;
height: 100%;
}
.chosen-container-single .chosen-single div b {
display: block;
width: 100%;
height: 100%;
background: url('../images/chosen-sprite.png') no-repeat 0px 2px;
}
.chosen-container-single .chosen-search {
position: relative;
z-index: 1010;
margin: 0;
padding: 3px 4px;
white-space: nowrap;
}
.chosen-container-single .chosen-search input[type="text"] {
margin: 1px 0;
padding: 4px 20px 4px 5px;
width: 100%;
height: auto;
outline: 0;
border: 1px solid #aaa;
background: white url('../images/chosen-sprite.png') no-repeat 100% -20px;
background: url('../images/chosen-sprite.png') no-repeat 100% -20px;
font-size: 1em;
font-family: sans-serif;
line-height: normal;
border-radius: 0;
}
.chosen-container-single .chosen-drop {
margin-top: -1px;
border-radius: 0 0 4px 4px;
background-clip: padding-box;
}
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
position: absolute;
left: -9999px;
}
/* @end */
/* @group Results */
.chosen-container .chosen-results {
color: #444;
position: relative;
overflow-x: hidden;
overflow-y: auto;
margin: 0 4px 4px 0;
padding: 0 0 0 4px;
max-height: 240px;
-webkit-overflow-scrolling: touch;
}
.chosen-container .chosen-results li {
display: none;
margin: 0;
padding: 5px 6px;
list-style: none;
line-height: 15px;
word-wrap: break-word;
-webkit-touch-callout: none;
}
.chosen-container .chosen-results li.active-result {
display: list-item;
cursor: pointer;
}
.chosen-container .chosen-results li.disabled-result {
display: list-item;
color: #ccc;
cursor: default;
}
.chosen-container .chosen-results li.highlighted {
background-color: #3875d7;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
color: #fff;
}
.chosen-container .chosen-results li.no-results {
color: #777;
display: list-item;
background: #f4f4f4;
}
.chosen-container .chosen-results li.group-result {
display: list-item;
font-weight: bold;
cursor: default;
}
.chosen-container .chosen-results li.group-option {
padding-left: 15px;
}
.chosen-container .chosen-results li em {
font-style: normal;
text-decoration: underline;
}
/* @end */
/* @group Multi Chosen */
.chosen-container-multi .chosen-choices {
position: relative;
overflow: hidden;
margin: 0;
padding: 0 5px;
width: 100%;
height: auto !important;
height: 1%;
border: 1px solid #aaa;
background-color: #fff;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
cursor: text;
}
.chosen-container-multi .chosen-choices li {
float: left;
list-style: none;
}
.chosen-container-multi .chosen-choices li.search-field {
margin: 0;
padding: 0;
white-space: nowrap;
}
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
margin: 1px 0;
padding: 0;
height: 25px;
outline: 0;
border: 0 !important;
background: transparent !important;
box-shadow: none;
color: #999;
font-size: 100%;
font-family: sans-serif;
line-height: normal;
border-radius: 0;
}
.chosen-container-multi .chosen-choices li.search-choice {
position: relative;
margin: 3px 5px 3px 0;
padding: 3px 20px 3px 5px;
border: 1px solid #aaa;
max-width: 100%;
border-radius: 3px;
background-color: #eeeeee;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-size: 100% 19px;
background-repeat: repeat-x;
background-clip: padding-box;
box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
color: #333;
line-height: 13px;
cursor: default;
}
.chosen-container-multi .chosen-choices li.search-choice span {
word-wrap: break-word;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
position: absolute;
top: 4px;
right: 3px;
display: block;
width: 12px;
height: 12px;
background: url('../images/chosen-sprite.png') -42px 1px no-repeat;
font-size: 1px;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
background-position: -42px -10px;
}
.chosen-container-multi .chosen-choices li.search-choice-disabled {
padding-right: 5px;
border: 1px solid #ccc;
background-color: #e4e4e4;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
color: #666;
}
.chosen-container-multi .chosen-choices li.search-choice-focus {
background: #d4d4d4;
}
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
background-position: -42px -10px;
}
.chosen-container-multi .chosen-results {
margin: 0;
padding: 0;
}
.chosen-container-multi .chosen-drop .result-selected {
display: list-item;
color: #ccc;
cursor: default;
}
/* @end */
/* @group Active */
.chosen-container-active .chosen-single {
border: 1px solid #5897fb;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.chosen-container-active.chosen-with-drop .chosen-single {
border: 1px solid #aaa;
-moz-border-radius-bottomright: 0;
border-bottom-right-radius: 0;
-moz-border-radius-bottomleft: 0;
border-bottom-left-radius: 0;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
box-shadow: 0 1px 0 #fff inset;
}
.chosen-container-active.chosen-with-drop .chosen-single div {
border-left: none;
background: transparent;
}
.chosen-container-active.chosen-with-drop .chosen-single div b {
background-position: -18px 2px;
}
.chosen-container-active .chosen-choices {
border: 1px solid #5897fb;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
color: #222 !important;
}
/* @end */
/* @group Disabled Support */
.chosen-disabled {
opacity: 0.5 !important;
cursor: default;
}
.chosen-disabled .chosen-single {
cursor: default;
}
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
cursor: default;
}
/* @end */
/* @group Right to Left */
.chosen-rtl {
text-align: right;
}
.chosen-rtl .chosen-single {
overflow: visible;
padding: 0 8px 0 0;
}
.chosen-rtl .chosen-single span {
margin-right: 0;
margin-left: 26px;
direction: rtl;
}
.chosen-rtl .chosen-single-with-deselect span {
margin-left: 38px;
}
.chosen-rtl .chosen-single div {
right: auto;
left: 3px;
}
.chosen-rtl .chosen-single abbr {
right: auto;
left: 26px;
}
.chosen-rtl .chosen-choices li {
float: right;
}
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
direction: rtl;
}
.chosen-rtl .chosen-choices li.search-choice {
margin: 3px 5px 3px 0;
padding: 3px 5px 3px 19px;
}
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
right: auto;
left: 4px;
}
.chosen-rtl.chosen-container-single-nosearch .chosen-search,
.chosen-rtl .chosen-drop {
left: 9999px;
}
.chosen-rtl.chosen-container-single .chosen-results {
margin: 0 0 4px 4px;
padding: 0 4px 0 0;
}
.chosen-rtl .chosen-results li.group-option {
padding-right: 15px;
padding-left: 0;
}
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
border-right: none;
}
.chosen-rtl .chosen-search input[type="text"] {
padding: 4px 5px 4px 20px;
background: white url('../images/chosen-sprite.png') no-repeat -30px -20px;
background: url('../images/chosen-sprite.png') no-repeat -30px -20px;
direction: rtl;
}
.chosen-rtl.chosen-container-single .chosen-single div b {
background-position: 6px 2px;
}
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
background-position: -12px 2px;
}
/* @end */
/* @group Retina compatibility */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
.chosen-rtl .chosen-search input[type="text"],
.chosen-container-single .chosen-single abbr,
.chosen-container-single .chosen-single div b,
.chosen-container-single .chosen-search input[type="text"],
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
.chosen-container .chosen-results-scroll-down span,
.chosen-container .chosen-results-scroll-up span {
background-image: url('[email protected]') !important;
background-size: 52px 37px !important;
background-repeat: no-repeat !important;
}
}
/* @end */
......@@ -960,7 +960,7 @@ unicode-bidi: bidi-override;display: inline-block;position: relative;bottom: 5px
.ip_edit_set_btn1{width:100%;height:35px;outline:none;border-radius:3px;color: #fff;text-align: center;background:#d9d9d9;border:none;font-weight:900;}
.ip_edit_set_btn2{width:100%;height:35px;outline:none;border-radius:3px;color: #d9d9d9;text-align: center;background:#ffffff;border:none;font-weight:900;border:2px solid #d9d9d9;}
.ip_budject_list{width:100%;}
.ip_budject_list li{width:100%;color: #797979;border-bottom:2px solid #f5f5f5;list-style: none;padding-bottom: 10px;padding-top: 10px;font-weight: 900;}
.ip_budject_list li{width:100%;color: #797979;border-bottom:0px solid #f5f5f5;list-style: none;padding-bottom: 10px;padding-top: 10px;font-weight: 900;}
.ip_budject_list li .child1{float: left;text-align: left;width:50%;}
.ip_budject_list li .child2{float: right;text-align: right;width:50%;}
.ip_budject_list .select{border-bottom:1px solid #b31aaa;}
......
/* Chosen v1.4.2 | (c) 2011-2015 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
(function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),title:a.title?a.title:void 0,children:0,disabled:a.disabled,classes:a.className}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,title:a.title?a.title:void 0,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,group_label:null!=b?this.parsed[b].label:null,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&amp;"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.choice_label=function(a){return this.include_group_label_in_selected&&null!=a.group_label?"<b class='group-name'>"+a.group_label+"</b>"+a.html:a.html},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(c)));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,a.title&&(c.title=a.title),this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b,c;return a.search_match||a.group_match?a.active_options>0?(b=[],b.push("group-result"),a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.innerHTML=a.search_text,a.title&&(c.title=a.title),this.outerHTML(c)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l;for(this.no_results_clear(),d=0,f=this.get_search_text(),a=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=new RegExp(a,"i"),c=this.get_search_regex(a),l=this.results_data,j=0,k=l.length;k>j;j++)b=l[j],b.search_match=!1,e=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(e=this.results_data[b.group_array_index],0===e.active_options&&e.search_match&&(d+=1),e.active_options+=1),b.search_text=b.group?b.label:b.html,(!b.group||this.group_search)&&(b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(d+=1),b.search_match?(f.length&&(g=b.search_text.search(i),h=b.search_text.substr(0,g+f.length)+"</em>"+b.search_text.substr(g+f.length),b.search_text=h.substr(0,g)+"<em>"+h.substr(g)),null!=e&&(e.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>d&&f.length?(this.update_results_content(""),this.no_results(f)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.get_search_regex=function(a){var b;return b=this.search_contains?"":"^",new RegExp(b+a,"i")},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d instanceof Chosen?d.destroy():d instanceof Chosen||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},Chosen.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("touchstart.chosen",function(b){return a.container_mousedown(b),b.preventDefault()}),this.container.bind("touchend.chosen",function(b){return a.container_mouseup(b),b.preventDefault()}),this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(b)+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),b.addClass("result-selected"),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(this.choice_label(c)),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,a.preventDefault(),this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:this.results_showing&&a.preventDefault();break;case 32:this.disable_search&&a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}).call(this);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
$(".chosen-select").chosen(); //js for multiselect
function post_ajax(url, data) {
var result = '';
......@@ -214,31 +218,600 @@ function doc_edit_loadthumbnail(file)
return stamp;
}
function getTimezoneOffset(){
function z(n){return (n<10? '0' : '') + n}
var offset = new Date().getTimezoneOffset();
var sign = offset < 0? '+' : '-';
offset = Math.abs(offset);
var diff ={'sign':sign, 'hour':z(offset/60 | 0), 'minute':z(offset%60)}
return diff;
}
var offset = getTimezoneOffset();
var array_other_obsr_file = [];
function certificate_images_loadthumbnail(file)
{
$('#certificate-show-img,#certificate-show-details').empty();
array_other_obsr_file = [];
elem = file.files;
for (var i = 0; i < elem.length; i++)
{
var tmppath = URL.createObjectURL(elem[i]);
array_other_obsr_file[i] = elem[i];
var img_div = '<li id="othr-obsr-img'+i+'" pos="'+i+'"><img src="'+tmppath+'"></li>'
$('#certificate-show-img').append(img_div);
var name_div = '<li id="othr-obsr-det'+i+'" pos="'+i+'"><div class="ip_attach_file_name">'+elem[i].name+'</div><div class="ip_attach_file_size">'+(elem[i].size)/1000+' KB</div><div class="ip_attach_close remove_othr_obsr_img" pos="'+i+'"><img src="'+base_url+'assets/images/ip_attach_close.png"></div><div class="clear"></div></li>'
$('#certificate-show-details').append(name_div);
}
//console.log(array_other_obsr_file)
}
$(function(){
/*DOCTOR - START SERVICE*/
/*----------------------------------------*/
$('#patient_review_record_btn').click(function()
{
if($('#patient_review_record').parsley().validate())
{ var obj =$('#patient_review_record').serializeArray();
var result = post_ajax(base_url+'Doctor/save_medicalrecord_data',obj);
var items = JSON.parse(result);
//console.log(items)
if(items.status=='success')
{
$('#review-success').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#review-success').addClass('hidden');
},10000)
}
else
{
$('#review-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#review-error').addClass('hidden');
},10000)
}
}
})
/*----------------------------------------*/
/*DOCTOR - START SERVICE*/
/*----------------------------------------*/
/*FUNCTION FOR DELETE IMAGES FROM OTHER OBSERVATION - SERVICE*/
$(document).on("click",".remove_othr_obsr_img",function()
{
elem = this;
index = elem.getAttribute('pos');
array_other_obsr_file.splice(index, 1);
$('#othr-obsr-img'+index+',#othr-obsr-det'+i).remove();
//replacing the appending div with new array elements
$('#certificate-show-img,#certificate-show-details').empty();
for (var i = 0; i < array_other_obsr_file.length; i++)
{
var tmppath = URL.createObjectURL(array_other_obsr_file[i]);
var img_div = '<li id="othr-obsr-img'+i+'" pos="'+i+'"><img src="'+tmppath+'"></li>'
$('#certificate-show-img').append(img_div);
var name_div = '<li id="othr-obsr-det'+i+'" pos="'+i+'"><div class="ip_attach_file_name">'+array_other_obsr_file[i].name+'</div><div class="ip_attach_file_size">'+(array_other_obsr_file[i].size)/1000+' KB</div><div class="ip_attach_close remove_othr_obsr_img" pos="'+i+'"><img src="'+base_url+'assets/images/ip_attach_close.png"></div><div class="clear"></div></li>'
$('#certificate-show-details').append(name_div);
}
})
/*FUNCTION FOR FINAL SAVE BUTTON - SERVICE*/
$('#record-final-save-btn').click(function(){
var form_obj = $('#record-final-save-form').serializeArray();
var files = array_other_obsr_file;
if($('#doc-service-record').parsley().validate())
{
console.log($('#doc-service-record').serializeArray())
var obsr_desc = $("#certificate").val(CKEDITOR.instances.otherobservation.getData());
var formData = new FormData(); // Currently empty
formData.append('booking_id', form_obj[0].value); //
formData.append('section', form_obj[1].value); //
formData.append('obsr', obsr_desc[0].value); //
formData.append('main_complaint', $('#doc-service-record').serializeArray()[2].value); //
for (var i = 0; i < files.length; i++)
{
formData.append('images[]', files[i]); //
}
/*for (var key of formData.entries()) {
console.log(key[0] + ', ' + key[1]);
}*/
var result = post_ajax_serialize(base_url+'Doctor/save_medicalrecord_finaldata',formData);
var items = JSON.parse(result);
//console.log(items)
if(items.status=='success')
{
window.location.href = base_url+'Doctor/endservice/'+items.booking_id;
}
else
{
$('#final-save-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#final-save-error').addClass('hidden');
},10000)
}
}
})
/*FUNCTION FOR SAVING CERTIFICATE DATA IN DB - SERVICE*/
$('#certificate-save-btn').click(function(){
var certificate_desc = $("#certificate").val(CKEDITOR.instances.certificate.getData());
console.log(certificate_desc[0].value.length);
if(certificate_desc[0].value.length<20)
{
$('#certificate-error').removeClass('hidden').html('Please enter Certificate Data! Minimum 20 Characters');
setTimeout(function()
{
$('#certificate-error').addClass('hidden');
},10000)
}
else
{
var data = {'certificate' : certificate_desc[0].value,
'booking_id' : this.getAttribute('bookid'),
'section' : this.getAttribute('section')}
var result = post_ajax(base_url+'Doctor/save_medicalrecord_data',data);
var items = JSON.parse(result);
if(items.status=="success")
{
$('#certificate-success').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#certificate-success').addClass('hidden');
},10000)
}
else
{
$('#certificate-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#certificate-error').addClass('hidden');
},10000)
}
}
})
/*FUNCTION FOR LOADING TEXTAREA DATA - CERTIFICATE*/
$('.certificate-type').change(function()
{
type = $("input[name='choose-certificate-type']:checked").val();
//type = this.getAttribute('value');
pat_id = $('#patdetail').attr('patid');
pat_name = $('#patdetail').text();
day_count = $('#certificate-days').val();
if(day_count === null)
{
day_count = 'XX';
}
cid = $('#certificate-cid').val();
if(cid === null)
{
cid = 'XXXXXXXXXXXXXX';
}
if(type=='standard')
{
var text = $('#certificatedata').attr("standard");
var text = text.replace("@@@@", pat_name);
var text = text.replace("$$$$", pat_id);
// var text = text.replace("%%%%", cid);
var text = text.replace("****", day_count);
console.log(text);
//var text = 'I certify for the proper purposes at the request of the interested party that the patient '+pat_name+', bearer of the identity document '+pat_id+' was submitted to medical consultation on this date.As a result, he must stay away from his work for a period of '+day_count+' days from this date.';
}
else if(type=="standardcid")
{
var text = $('#certificatedata').attr("standardcid");
var text = text.replace("@@@@", pat_name);
var text = text.replace("$$$$", pat_id);
var text = text.replace("%%%%", cid);
var text = text.replace("****", day_count);
console.log(text);
//var text = 'I certify for the proper purposes at the request of the interested party that the patient '+pat_name+', bearer of the identity document '+pat_id+' was submitted to medical consultation on this date, being a CID-10 affection '+cid+'.As a result, he must stay away from his work for a period of '+day_count+' days from this date.';
}
CKEDITOR.instances.certificate.setData( text, function()
{
this.checkDirty(); // true
});
})
/*FUNCTION FOR ADDING SELECTED MEDICINE TO DB*/
$('#selected-budget-final-save').click(function()
{
count = json_array_budget.length;
if(count>0)
{
//console.log($('#selected-medicine-form').serialize());
var result = post_ajax(base_url+'Doctor/save_medicalrecord_data',$('#selected-budget-form').serialize());
var items = JSON.parse(result);
if(items.status=="success")
{
$('#budget-success').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#budget-success').addClass('hidden');
},10000)
}
else
{
$('#budget-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#budget-error').addClass('hidden');
},10000)
}
}
else
{
$('#budget-error').removeClass('hidden').html("Please Add Procedures");
setTimeout(function(){
$('#budget-error').addClass('hidden');
},10000)
}
})
/*FUNCTION FOR DELETE ADDED BUDGET*/
$(document).on("click",".budget-delete",function()
{
var elem = this;
var divid = elem.getAttribute('divid');
var array_pos = elem.getAttribute('pos');
$('#'+divid).remove();
json_array_budget[array_pos].amount = 0;
sum = 0;
for (var i = 0; i < json_array_budget.length; i++)
{
sum = sum + (json_array_budget[i].amount * json_array_budget[i].quantity);
}
$('#budget-total-price').html(sum);
})
/*----------------------------------------*/
/*FUNCTION FOR ADDING SELECTED PROCEDURE TO JSON ARRAY*/
var json_array_budget = [];
$("#add-procedure-btn").click(function()
{
if($('#add-procedure-form').parsley().validate())
{
form_data = $('#add-procedure-form').serializeArray();
var obj = {'procedure':form_data[0]['value'],
'quantity':form_data[1]['value'],
'amount':form_data[2]['value']}
json_array_budget.push(obj)
index = json_array_budget.length-1;
console.log(json_array_budget)
var div = '<li id="bud'+index+'"><div class="child1">'+form_data[1]['value']+'- '+form_data[0]['value']+'</div><div class="child2">R$'+form_data[2]['value']+'</div><div class="clear"></div><input type="hidden" name="budget[]" value='+"'"+JSON.stringify(obj)+"'"+'><hr><button class="ip_exclude budget-delete" type="button" divid="bud'+index+'" pos="'+index+'">Delete</button></li>';
$('#show-budget-main').append(div);
sum = 0;
for (var i = 0; i < json_array_budget.length; i++)
{
sum = sum + (json_array_budget[i].amount * json_array_budget[i].quantity);
}
$('#budget-total-price').html(sum);
$('#budget-select').val('0').trigger('change');
}
})
/*FUNCTION FOR ADDING EXAM TO DB*/
$('#add-exam-btn').click(function(){
if($('#add-exam-form').parsley().validate())
{
var result = post_ajax(base_url+'Doctor/save_medicalrecord_data',$('#add-exam-form').serialize());
var items = JSON.parse(result);
if(items.status=="success")
{
$('#exam-success').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#exam-success').addClass('hidden');
},10000)
}
else
{
$('#exam-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#exam-error').addClass('hidden');
},10000)
}
}
})
/*FUNCTION FOR ADDING SELECTED MEDICINE TO DB*/
$('#selected-medicine-final-save').click(function()
{
count = json_array_medicine.length;
if(count>0)
{
//console.log($('#selected-medicine-form').serialize());
var result = post_ajax(base_url+'Doctor/save_medicalrecord_data',$('#selected-medicine-form').serialize());
var items = JSON.parse(result);
if(items.status=="success")
{
$('#medicine-success').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#medicine-success').addClass('hidden');
},10000)
}
else
{
$('#medicine-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#medicine-error').addClass('hidden');
},10000)
}
}
else
{
$('#medicine-error').removeClass('hidden').html("Please Select Medicine");
setTimeout(function(){
$('#medicine-error').addClass('hidden');
},10000)
}
})
/*FUNCTION FOR SAVING EDITED MEDICINE*/
$('#edit-medicine-btn').click(function()
{
array_pos = $('#edit-medcine-id').val();
divid = $('#edit-medcine-id').attr('editdiv');
if($('#edit-medicine-form').parsley().validate())
{
var form_data = $('#edit-medicine-form').serializeArray();
obj = {'name':form_data[0]['value'],
'quantity':form_data[1]['value'],
'procedure':form_data[2]['value']}
json_array_medicine[array_pos] = obj;
index = array_pos;
var div = '<h6>'+form_data[0]['value']+' '+form_data[1]['value']+'</h6><p>'+form_data[2]['value']+'</p><div class="ip_medical_pres_btn_bay"><input type="hidden" name="medicine_list[]" value='+"'"+JSON.stringify(obj)+"'"+'><button class="ip_medical_pres_btn medicine-edit" divid=med'+index+' pos="'+index+'" type="button">Edit</button><button class="ip_medical_pres_btn2 medicine-delete" divid=med'+index+' pos="'+index+'" type="button">Delete</button></div>'
$('#med'+index).html(div);
$('#edit-medicine-select').val('0').trigger('change');//clearing edit medicine form
$('#edit-medicine-main').addClass('hidden'); //hiding edit form
$('#add-medicine-main').removeClass('hidden'); //showing add form
}
})
/*----------------------------------------*/
/*FUNCTION FOR EDIT SELECTED MEDICINE*/
$(document).on("click",".medicine-edit",function()
{
var elem = this;
var divid = elem.getAttribute('divid');
var array_pos = elem.getAttribute('pos');
edit_json = $('#'+divid+' .ip_medical_pres_btn_bay input').val();
data = JSON.parse(edit_json);
//console.log(data)
$('#edit-medcine-id').val(array_pos);
$('#edit-medcine-id').attr('editdiv',divid);
$('#edit-medicine-select').val(data.name).trigger('change');
$('#edit-medicine-quantity').val(data.quantity).trigger('change');
$('#edit-medicine-dosage').val(data.procedure).trigger('change');
$('#add-medicine-main').addClass('hidden'); //hiding add form
$('#edit-medicine-main').removeClass('hidden'); //showing edit form
})
/*----------------------------------------*/
/*FUNCTION FOR DELETE SELECTED MEDICINE*/
$(document).on("click",".medicine-delete",function()
{
var elem = this;
var divid = elem.getAttribute('divid');
var array_pos = elem.getAttribute('pos');
//json_array_medicine.splice(array_pos, 1);
$('#'+divid).remove();
})
/*----------------------------------------*/
/*FUNCTION FOR ADD MEDICINE AND HANDLING MEDICINE JSON DATA*/
var json_array_medicine =[];
$('#add-medicine-btn').click(function(){
if($('#add-medicine-form').parsley().validate())
{
var form_data = $('#add-medicine-form').serializeArray();
obj = {'name':form_data[0]['value'],
'quantity':form_data[1]['value'],
'procedure':form_data[2]['value']}
json_array_medicine.push(obj)
index = json_array_medicine.length-1;
var div = '<li id=med'+index+'><h6>'+form_data[0]['value']+' '+form_data[1]['value']+'</h6><p>'+form_data[2]['value']+'</p><div class="ip_medical_pres_btn_bay"><input type="hidden" name="medicine_list[]" value='+"'"+JSON.stringify(obj)+"'"+'><button class="ip_medical_pres_btn medicine-edit" divid=med'+index+' pos="'+index+'" type="button">Edit</button><button class="ip_medical_pres_btn2 medicine-delete" divid=med'+index+' pos="'+index+'" type="button">Delete</button></div></li>'
$('#show-medicine-main').append(div);
$('#medicine-select').val('0').trigger('change');
}
})
/*----------------------------------------*/
/*FUNCTION FOR DETECT CHANGE IN MEDICAL RECORD SELECT*/
$('.select-in-medi-rec').change(function()
{
var elem = this;
var type = elem.getAttribute( "type" );
if(type=="medicine")
{
var object = {'medicine_name':$('#medicine-select').val() }
var result = post_ajax(base_url+'Doctor/get_medicine_details',object);
var items = JSON.parse(result);
$('#medicine-quantity').html("<option disabled selected >Select Quantity</option>");
$('#medicine-dosage').html("<option disabled selected>Select Dosage and administration</option>");
$.each(items, function (i, item) {
$('#medicine-quantity').append($('<option>', {
value: item.medicine_dosage,
text : item.medicine_dosage
}));
$('#medicine-dosage').append($('<option>', {
value: item.medicine_procedure,
text : item.medicine_procedure
}));
})
}
else if(type=="medicine-edit")
{
var object = {'medicine_name':$('#edit-medicine-select').val() }
// console.log(object)
var result = post_ajax(base_url+'Doctor/get_medicine_details',object);
var items = JSON.parse(result);
$('#edit-medicine-quantity').html("<option disabled selected >Select Quantity</option>");
$('#edit-medicine-dosage').html("<option disabled selected>Select Dosage and administration</option>");
$.each(items, function (i, item) {
$('#edit-medicine-quantity').append($('<option>', {
value: item.medicine_dosage,
text : item.medicine_dosage
}));
$('#edit-medicine-dosage').append($('<option>', {
value: item.medicine_procedure,
text : item.medicine_procedure
}));
})
}
else if(type=="exams")
{
var object = {'exam_name':$('#exam-select').val() }
var result = post_ajax(base_url+'Doctor/get_exam_details',object);
var items = JSON.parse(result);
$('#exam-observation').html("<option disabled selected >Note</option>");
$.each(items, function (i, item)
{
$('#exam-observation').append($('<option>', {
value: item.observation,
text : item.observation
}));
})
}
else if(type=="budget")
{
var object = {'procedure_name':$('#budget-select').val() }
var result = post_ajax(base_url+'Doctor/get_budget_details',object);
var items = JSON.parse(result);
$('#budget-quantity').html("<option disabled selected >Value</option>");
$('#budget-amount').html("<option disabled selected >Amount</option>");
$.each(items, function (i, item)
{
$('#budget-quantity').append($('<option>', {
value: item.quantity,
text : item.quantity
}));
$('#budget-amount').append($('<option>', {
value: item.amount,
text : item.amount
}));
})
}
})
/*SAVE BUTTON FOR ANAMNESIS*/
$('#record-sec-1-btn').click(function()
{
if ($('#doc-service-record').parsley().validate() )
{
console.log(CKEDITOR.instances.editor1.getData());
console.log($('#doc-service-record').serialize());
/*var result = post_ajax(base_url+'Patient/check_current_user_confirmationcode',$('#pat_profile_delete_confirmation').serializeArray());
var medical_desc = $("#editor1").val(CKEDITOR.instances.editor1.getData());
console.log(medical_desc[0].value);
var data = $('#doc-service-record').serializeArray();
console.log(data);
data[data.length] = { name: "description", value: medical_desc[0].value };
var result = post_ajax(base_url+'Doctor/save_medicalrecord_data',data);
var items = JSON.parse(result);
if(items.status=="success")
{
$('#delete-con').modal('hide');
$('#delete-complete').modal('show');
$('#anamnesis-success').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#anamnesis-success').addClass('hidden');
},10000)
}
else
{
$('#pat_profile_delete_code_error').removeClass('hidden').html(items.msg);
}*/
$('#anamnesis-error').removeClass('hidden').html(items.msg);
setTimeout(function(){
$('#anamnesis-error').addClass('hidden');
},10000)
}
}
})
......@@ -483,7 +1056,7 @@ $('.patient_dash_canceled_consult').on("click", function(){
$('#cancel-consult-modal-btn').click(function()
{
var bookingid = $(this).attr('bookingid');
var object = {'booking_id':bookingid}
var object = {'booking_id':bookingid,'UTCoffset':offset}
var result = post_ajax(base_url+'Patient/check_cancelBooking',object);
var items = JSON.parse(result);
if(items.status=="success")
......@@ -585,11 +1158,9 @@ $('#tab_payment_back').click(function(){
$('#confirm_book_date').on('changeDate', function(ev) {
$('#schedule-consult-timeslot').html('<option disabled selected>Time Slots</option>');
//console.log($('#confirm_book_date').val());
var stamp = get_current_datetime_format();
console.log(stamp);
var object = {'book_date':$('#confirm_book_date').val(),'clinic_id':$('#confirm_book_clinic').val(),
'doctor_id':$('#confirm_book_doctor').val(),'currenttime':stamp}
'doctor_id':$('#confirm_book_doctor').val(),'currenttime':stamp,'UTCoffset':offset}
var result = post_ajax(base_url+'Searchdoctor/getDoctorClinic_timeslot',object);
var elements = JSON.parse(result);
//console.log(elements);
......@@ -618,7 +1189,6 @@ $('#confirm_booking_continue_btn').click(function()
if ($('#confirm_book_form').parsley().validate() )
{
var stamp = get_current_datetime_format();
console.log($('#confirm_book_form').serialize())
var result = post_ajax(base_url+'Searchdoctor/checkDoctorAvailability',$('#confirm_book_form').serialize()+'&currenttime='+stamp);
var items = JSON.parse(result);
if(items.status=="success"&&items.isLogin=="false")
......@@ -682,7 +1252,8 @@ $('#enter_waiting_list_btn').click(function()
if ($('#confirm_book_form').parsley().validate() )
{
//
var result = post_ajax(base_url+'Searchdoctor/checkDoctorAvailability',$('#confirm_book_form').serializeArray());
var stamp = get_current_datetime_format();
var result = post_ajax(base_url+'Searchdoctor/checkDoctorAvailability',$('#confirm_book_form').serialize()+'&currenttime='+stamp);
var items = JSON.parse(result);
if(items.status=="success")
{
......@@ -760,7 +1331,8 @@ $('#confirm-book-login_submit').click(function()
}
else if(items.status=="success")
{
var result_inner = post_ajax(base_url+'Searchdoctor/checkDoctorAvailability',$('#confirm_book_form').serializeArray());
var stamp = get_current_datetime_format();
var result_inner = post_ajax(base_url+'Searchdoctor/checkDoctorAvailability',$('#confirm_book_form').serialize()+'&currenttime='+stamp);
var items_inner = JSON.parse(result_inner);
console.log(items_inner)
if((items_inner.status=="success")||(items_inner.status=="waiting"))
......@@ -1440,6 +2012,11 @@ $('#edit-doctor input').datepicker({
/*----------------------------*/
/* BOOKING DATEPICKER JS */
/*----------------------------*/
$('#booking-container input').datepicker({
autoclose: true,
onSelect: function(dateText) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment