EVOLUTION-NINJA
Edit File: header.php
<?php $name = session()->get('name'); $email = session()->get('email'); $gamer_id = session()->get('gamer_id'); $patient_name = session()->get('pa_name'); $role_id = session()->get('role_id'); $suscription_till = session()->get('suscription_till'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/main.css');?>"/> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/bootstrap.min.css');?>"/> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/font-awesome.min.css');?>"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet"> <link rel='shortcut icon' type='image/x-icon' href='<?php echo base_url('public/assets/images/fav_icon.jpg');?>' /> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/jquery-ui.css');?>"/> <!-- <link rel="stylesheet" type="text/css" href="css/timepicker.css" /> --> <link rel="stylesheet" href="<?php echo base_url('public/assets/css/bootstrap-datetimepicker.css');?>"/> <link rel='shortcut icon' type='image/x-icon' href='<?php echo base_url('public/assets/images/MediuPlues.png');?> ' /> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/w3.css'); ?>"/> <!------------------------------JS--------------------------------------> <script type="text/javascript" src="<?php echo base_url('public/assets/js/jquery-3.6.0.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo base_url('public/assets/js/bootstrap.min.js'); ?>"></script> <script type="text/javascript" src="<?php echo base_url('public/assets/js/jquery-ui.js'); ?>"></script> <script type="text/javascript" src="<?php echo base_url('public/assets/js/timepicker.js'); ?>"></script> <script type="text/javascript" src="<?php echo base_url('public/assets/js/moment.js'); ?>"></script> <script type="text/javascript" src="<?php echo base_url('public/assets/js/popper.min.js'); ?>"></script> <script src="<?php echo base_url('public/assets/sweet_alert/sweet-alert.js');?>"></script> <link rel="stylesheet" href="<?php echo base_url('public/assets/sweet_alert/sweet-alert.css');?>"> <script src="<?php echo base_url('public/assets/toastr/toastr.min.js');?>"></script> <link rel="stylesheet" href="<?php echo base_url('public/assets/toastr/toastr.min.css');?>"> <!-- <script type="text/javascript" src="js/jquery-time-picker.js"></script> --> <!-- css page --> <link rel="stylesheet" type="text/css" href=" <?php echo base_url('public/assets/GameCss/header.css');?>"/> <link rel="stylesheet" type="text/css" href=" <?php echo base_url('public/assets/GameCss/Homesidebar.css');?>"> <link rel="stylesheet" type="text/css" href=" <?php echo base_url('public/assets/GameCss/Flownew.css');?>"> </head> <body> <!------------------------------header--------------------------------> <header> <div class="header"> <div class="container-fluid"> <div class="row"> <div class="col-sm-3 head_logo"> <img src="<?php echo base_url('public/assets/home_images/MediuPlues.png'); ?>" /> </div> <!-- <div class="col-sm-1 mx-auto d-block"> <img src="<?php echo base_url('public/assets/home_images/Gas_logo 1.png'); ?>" alt="game" class="mx-auto d-block"> </div> --> <div class="col-sm-4 pt-2 water-mark"> <div class="container askdiv"> <div class="searchBox"> <input class="searchInput1 input-with-bg" type="text" id='question' autocomplete="off"> <button type="button" class="searchButton button-search" onclick='senquestion1()'> Ask </button> </div> </div> </div> <div class="col-sm-5 pt-3 list-logo"> <ul> <a href="<?php echo base_url('Gas'); ?>"><li><img src="<?php echo base_url('public/assets/home_images/Home.png'); ?>" title="Home" alt="Home" /></li></a> <a href="<?php echo base_url('add-ticket'); ?>"><li><img src="<?php echo base_url('public/assets/home_images/warning_new 1.png'); ?>" class="report-img" title="Report Problem" alt="Report Problem"/></li></a> <a href="<?php echo base_url('user-guide'); ?>" target='_blank'><li><img src="<?php echo base_url('public/assets/home_images/Help.png'); ?>" title="User Guide" alt="Help" /></li></a> <a href="<?php echo base_url('dashboard'); ?>"><li><img src="<?php echo base_url('public/assets/home_images/Dashboard.png'); ?>" title="Dashboard" alt="Dashboard" /></li></a> <a href="<?php echo base_url('Notification'); ?>"><li><img src="<?php echo base_url('public/assets/home_images/Bell.png'); ?>" title="Notification" class="notifi-img" alt="Notification" ></li> <span class="notfi-number" id="num"> </span></img> </a> <!-- <a href="<?php echo base_url('log-out'); ?>"><li class="mob-li"> <img src="<?php echo base_url('public/assets/home_images/Logout.png'); ?>" alt="Logout" title="Logout" class="pt-3" /> <span class="icon-text">Logout</span> </li></a> --> <div class="w3-dropdown-hover"> <li><a href="" class="w3-button "><img class="mt-3" src="<?php echo base_url('public/assets/images/user.png'); ?>"></a><span class="icon-text pt-3"> <?php echo $name; ?></span> <div class="w3-dropdown-content w3-bar-block w3-border"> <p><b><?php echo $gamer_id; ?></b></p> <p><?php echo $email; ?></p> <p><a href="<?php echo base_url('My-Account');?>">Manage my account</a></p> <p><?php $newDate = date("d-m-Y", strtotime($suscription_till)); echo 'Subscription Till : '.$newDate;?> <a class="renewred" href="<?php echo base_url('Renewal-Subscription');?>">RENEW</a> </p> <p><a href="<?php echo base_url('user-profile');?>">Profile</a></p> <p><a href="<?php echo base_url('log-out');?>">Logout</a></p> <!-- <p ><a href="<?php echo base_url('cpd-dashboard');?>"><span class="cpd_back_col"> My CPD Portfolio</span></a></p> --> </div> </div> </ul> </div> <!-- <img src="public/assets/home_images/pngwing 2.png" /> --> </div> </div> </div> </header> <!------------------------------header--------------------------------> <!--row--> <div class="container-fluid"> <div class="row"> <div class="col-sm-9"></div> <!--col-10--> <div class="col-sm-2 mt-4"> <button class="custom-btn btn-2" onclick="back()"> <img src="<?php echo base_url('public/assets/images/Import_fill.png'); ?>" alt="back"> Back</button> </div> </div> </div> <!--row--> <!-- -----------------------------home-Left------------------------------- --> <section class="main"> <div class="container-fluid"> <div class="row"> <div class="col-sm-3"> <div class="box"> <!--------------new add new pateint worlk start------------> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal"> Add New Patient </button> <section class="add-patient"> <div class="modal fade" id="myModal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header" id="add-header"> <h4 class="modal-title">Add New Patient</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body"> <form id="add_patient_inside_cnb"> <div class="row"> <div class="col-sm-2"><label>Name</label></div> <div class="col-sm-8"> <div class="form-group"> <input type="text" class="form-control" name="name"> </div> </div> <div class="col-sm-2"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Patient Email-ID</label></div> <div class="col-sm-8"> <div class="form-group"> <input type="text" class="form-control" name="patient_email_id"> </div> </div> <div class="col-sm-2"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Patient ID <!-- <a href="#" data-toggle="tooltip" title="Enter Hospital Patient-Id here"><i class="fa fa-info-circle" aria-hidden="true"></i></a> --></label></div> <div class="col-sm-8"> <div class="form-group"> <input type="text" class="form-control" name="patient_id"> </div> </div> <div class="col-sm-2"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Gender</label></div> <div class="col-sm-4"> <select class="form-control" name="gender"> <option value="">Select</option> <option value="Male">Male</option> <option value="Female">Female</option> </select> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row" style="padding-top: 15px;"> <div class="col-sm-2"><label>Age <span style="color:red;">*</span></label></div> <div class="col-sm-4"> <div class="form-group"> <input type="number" class="form-control age" name="age" onfocusout="checkage()" > <small class="age1" style="color:red; display:none;">specify your age</small> <small class="age2" style="color:red; display:none;">enterd value should be greater then 1</small> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Weight(kg) <span style="color:red;">*</span> <div class="tooltip-3"> <i class="fa fa-info-circle" aria-hidden="true"></i> <div class="right-3"> <div class="text-content-3"> <h6>Please enter approximate values if exact weight is not known.</h6> <i></i> </div> </div> </div> </label></div> <div class="col-sm-4"> <div class="form-group"> <input type="number" class="form-control weight" name="weight" step="any" onchange="checkweight_cnb()"> <small class="weigh1" style="color:red; display:none;">specify your weight</small> <small class="weigh2" style="color:red; display:none;">enterd weight should be greater then 1</small> </div> <!-- <input type="number" class='weight_hide'> --> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row heigh"> <div class="col-sm-2"><label>Height</label></div> <div class="col-sm-10"> <ul> <li><input type="number" class="form-control feet" name="feet" id="hieght" step="any" readonly><label>Feet</label></li> <li><input type="number" class="form-control inche" name="inche" id="hieght" step="any" readonly><label>Inches or</label></li> <li><input type="number" class="form-control cm" name="cm" id="hieght" step="any" readonly><label>cms</label></li> </ul> </div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>BMI</label></div> <div class="col-sm-4"> <div class="form-group"> <input type="text" class="form-control bmi" name="bmi" readonly> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row" style="padding-top:15px;"> <div class="col-sm-2"><label>Hospital</label></div> <div class="col-sm-4"> <input type="text" class="form-control" id="hospital_m" name="hospital_m"> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-6"></div> <div class="col-sm-6 pt"> <button type="submit" class="btn-save Save">Save</button> <button type="button" class="btn-close" id="cls" >Close</button> </div> </div><!--row--> </form> </div> </div> </div> </div> </section> <!--------------new add new pateint work end-------------> <p style="font-size: 15px;"><b>Select Patient from the list</b></p> <div class="search"> <div class="form-group" style="width:50%;"> <input type="text" class="form-control" id="usr" placeholder="Search Patient" onkeyup="fun()" style="width:120%;border-radius: 20px;"> </div> <div class="add" style="display:none;'"> <a data-toggle="modal" data-target="#myModal" data-toggle="tooltip" title="Add Patient"><!-- <img src="<?php echo base_url('public/assets/images/Add.png'); ?>"> -->Add New<i class="fa fa-plus ml-2" aria-hidden="true" style=""></i></a> </div> </div> <!-- <h5><b>Incomplete Patient List </b>( UIN ) <i class="fa fa-unlock-alt new-Modal" style="color:black;" data-toggle="modal" data-target="#new-Modal" onclick='see(</?php echo $id; ?>)' aria-hidden="true"></i> --> <!-- <div class="tooltip-17"> <i class="fa fa-info-circle" aria-hidden="true"></i> <div class="right-17"> <div class="text-content-17"> <h6>Content here....</h6> <i></i> </div> </div> </div> --> </h5> <div> <ul> <?php foreach ($patient as $p): ?> <li onclick="myfun('<?php echo $p['id']; ?>')" style="cursor: pointer;"> <?php echo $p['rad_id']; ?> </li> <?php endforeach; ?> </ul> </div> <div class="form-check d-none d-sm-block"> <label class="form-check-label" for="check2"> <input type="checkbox" class="form-check-input" id="check2" name="option2" onclick="upload_patient()">Old Patients Record <!-- <div class="tooltip-17"> <i class="fa fa-info-circle" aria-hidden="true"></i> <div class="right-17"> <div class="text-content-17"> <h6>Content here....</h6> <i></i> </div> </div> </div> --> </label> </div> <div class="patient-summary d-none d-sm-block"> <p>Total Patients<span><?php echo count($patient); ?></span></p> <p>Completed Patient Records<span><?php echo count($old_check); ?></span></p> <p>Incompleted Patient Records<span class='incomplete'></span></p> </div> </div><!--box--> <!-- <div class="go-back-mob"> <a href="https://medusys.in/Clinic-Databases">Go back</a> </div> --> </div> <section class="add-patient"> <div class="modal fade" id="myModal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header" id="add-header"> <h4 class="modal-title">Add New Patient</h4> <button type="button" class="close" onclick="resetfun()" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <form id="add_patient"> <div class="row"> <div class="col-sm-2"><label>Name</label></div> <div class="col-sm-4"> <div class="form-group"> <input type="text" class="form-control" name="name"> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Patient Email-ID</label></div> <div class="col-sm-6"> <div class="form-group"> <input type="text" class="form-control patient_email_id" name="patient_email_id" onfocusout="checkemail()"> <small class="email" style="color:red;display:none; ">enter correct email-Id</small> </div> </div> <div class="col-sm-4"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Patient ID</label></div> <div class="col-sm-4"> <div class="form-group"> <input type="text" class="form-control patient_id" name="patient_id" onfocusout="check_id()"> <!-- <input type="hidden" class="patient_id_index"> --> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Gender</label></div> <div class="col-sm-4"> <select class="form-control" name="gender"> <option value="">Select</option> <option value="Male">Male</option> <option value="Female">Female</option> </select> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row" style="padding-top: 15px;"> <div class="col-sm-2"><label>Age<span class="mandat">*</span></label></div> <div class="col-sm-4"> <div class="form-group"> <input type="number" class="form-control age" name="age" onfocusout="checkage()"> <small class="age1" style="color:red; display:none;">specify your age</small> <small class="age3" style="color:red; display:none;">are you sure</small> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Weight(kg)</label></div> <div class="col-sm-4"> <div class="form-group"> <input type="text" class="form-control weight" name="weight" onfocusout="checkweight()"> <small class="weight1" style="color:red; display:none;">are you sure</small> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row heigh"> <div class="col-sm-2"><label>Height</label></div> <div class="col-sm-10"> <ul> <li><input type="text" class="form-control feet" name="feet" id="hieght"><label>Feet</label></li> <li><input type="text" class="form-control inche" name="inche" id="hieght"><label>Inches or</label></li> <li><input type="text" class="form-control cm" name="cm" id="hieght"><label>cms</label></li> </ul> </div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>BMI</label></div> <div class="col-sm-4"> <div class="form-group"> <input type="text" class="form-control bmi" name="bmi" readonly> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Procedure Date and Time<span class="mandat">*</span></label></div> <div class="col-sm-4"> <!-- <div class="form-group"> <input type="text" class="form-control" id='datetimepicker1' name="date_time" onfocusout="checkdatetime()"> <small class="date_time1" style="color:red; display:none;">specify the date</small> </div> --> <div class="form-group"> <div class="input-group date" id="datePicker"> <input type="text" class="form-control" style="border-radius: 15px;" id='datetimepicker1' name="date_time" onfocusout="checkdatetime()" > <span class="input-group-addon" style="margin-left: 20px;"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> <div class="col-sm-6"> <small class="date_time1" style="color:red; display:none;">specify the date</small> </div> <div class="input-group date" id="timePicker"> <input type="text" class="form-control" style="border-radius: 15px;margin-top: 12px;" name="time"> <span class="input-group-addon" style="margin-left: 20px;margin-top: 12px;"><i class="fa fa-clock-o" aria-hidden="true"></i></span> </div> </div> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"></div> <div class="col-sm-4"> <!-- <div class="form-group"> <input type="text" class="form-control" id='mytimeicker' name=""> </div> --> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-2"> <!-- <label style="width:115px;">CNB done by<span class="mandat">*</span> <div class="tooltip1"><a href="" style="color: #fff;padding: 0 6px;font-size: 12px;"><i class="fa fa-info" aria-hidden="true"></i></a> <span class="tooltiptext">Junior Consultant < 5 years experience , Senior Consultant > 5 years experience , Junior Trainee < 2 years experience , Senior Trainee > 2 years experience</span> </div> </label> --> <label style="width:115px;">CNB done by<span class="mandat">*</span> <div class="tooltip" id="tip"> <i class="fa fa-info-circle" aria-hidden="true"></i> <div class="right"> <div class="text-content"> <h6>Junior Consultant < 5 years experience , Senior Consultant > 5 years experience , Junior Trainee < 2 years experience , <br>Senior Trainee > 2 years experience.</h6> <i></i> </div> </div> </div> </label> </div> <div class="col-sm-4"> <select class="form-control cnb_done_by1" id="cnb_done_by1" name="cnb_done_by1" onfocusout="selectcnb()"> <option value="Select" selected="selected">Select</option> <!-- <option value="Consultant">Consultant</option> <option value="Trainee">Trainee</option> --> </select> <div class="col-sm-6"> <small class="cnbdone" style="color:red; display:none;">select the option</small> </div> <select class="form-control cnb_done_by2" id="cnb_done_by2" style="margin: 15px 0;" name="cnb_done_by2"> <option value="Select" selected="selected">Select</option> <!-- <option value="Junior Consultant">Junior Consultant</option> <option value="Senior Consultant">Senior Consultant</option> <option value="Junior Trainee">Junior Trainee</option> <option value="Senior Trianee">Senior Trianee</option> --> </select> </div> </div><!--row--> <div class="row"> <div class="col-sm-2"><label>Supervision<span class="mandat">*</span></label></div> <div class="col-sm-4"> <select class="form-control supervision" name="supervision" onfocusout='checksupervision()'> <option value="Select">Select</option> <option value="Direct Supervision">Direct Supervision</option> <option value="Independent Supervision">Independent Supervision</option> </select> <small class="supervision1" style="color:red; display:none; margin-left:20px;">select the option</small> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row" style="padding-top:15px;"> <div class="col-sm-2"><label>Hospital</label></div> <div class="col-sm-4"> <input type="text" class="form-control" name="hospital"> </div> <div class="col-sm-6"></div> </div><!--row--> <div class="row"> <div class="col-sm-7"></div> <div class="col-sm-5 pt"> <button type="submit" class="btn-save">Save</button> <button type="button" onclick="resetfun()" class="btn-close">Close</button> </div> </div><!--row--> </form> </div><!--Modal body--> </div> </div> </div> </section> <div class="col-sm-9"> <div class="home-right"> <ul class="nav nav-tabs" role="tablist"> <?php if(isset($pat) && isset($pcheck) && ($pat) && ($pcheck)){ ?> <li role="presentation" class="active"><a href="<?php echo base_url('cnb/patientDetails'); ?>" aria-controls="home">Patient Details<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($pat)){ ?> <li role="presentation" class="active"><a href="<?php echo base_url('cnb/patientDetails'); ?>" aria-controls="home">Patient Details</a></li> <?php }else{ ?> <li role="presentation" ><a href="<?php echo base_url('cnb/patientDetails'); ?>" aria-controls="home">Patient Details<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> <?php if(isset($eco) && isset($ecocheck) && ($eco) && ($ecocheck)){ ?> <li role="presentation" class="active"><a href="<?php echo base_url('cnb/E_consent'); ?>" aria-controls="consent" role="tab" >E-Consent<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($eco)){ ?> <li role="presentation" class="active"><a href="<?php echo base_url('cnb/E_consent'); ?>" aria-controls="consent" role="tab" >E-Consent</a></li> <?php }else{ ?> <li role="presentation" ><a href="<?php echo base_url('cnb/E_consent'); ?>" aria-controls="consent" >E-Consent<i class="fa fa-check-circle-o" aria-hidden="true" id="ecocheck" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> <?php if(isset($pre) && isset($precheck) && ($pre) && ($precheck)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Preop'); ?>" aria-controls="profile" role="tab" >Pre Op<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($pre)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Preop'); ?>" aria-controls="profile" role="tab" >Pre Op</a></li> <?php }else{ ?> <li role="presentation"><a class="test1" href="<?php echo base_url('cnb/Preop'); ?>" aria-controls="profile">Pre Op<i class="fa fa-check-circle-o" aria-hidden="true" id="precheck" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> <?php if(isset($procs) && isset($proccheck) && ($procs) && ($proccheck)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Proc'); ?>" aria-controls="messages" role="tab" >Procedure<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($procs)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Proc'); ?>" aria-controls="messages" role="tab" >Procedure</a></li> <?php }else{ ?> <li role="presentation"><a class="test1" href="<?php echo base_url('cnb/Proc'); ?>" aria-controls="messages" role="tab" >Procedure<i class="fa fa-check-circle-o" aria-hidden="true" id="proccheck" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> <?php if(isset($post) && isset($postcheck)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Pacu'); ?>" aria-controls="settings" role="tab" >PACU<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($post)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Pacu'); ?>" aria-controls="settings" role="tab" >PACU</a></li> <?php } else{ ?> <li role="presentation"><a class="test1" href="<?php echo base_url('cnb/Pacu'); ?>" aria-controls="settings">PACU<i class="fa fa-check-circle-o" aria-hidden="true" id="postcheck" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> <?php if(isset($foll) && isset($follcheck)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/followUp'); ?>" aria-controls="about" role="tab" >Follow Up<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($foll)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/followUp'); ?>" aria-controls="about" role="tab" >Follow Up</a></li> <?php } else{ ?> <li role="presentation"><a class="test1" href="<?php echo base_url('cnb/followUp'); ?>" aria-controls="about">Follow Up<i class="fa fa-check-circle-o" aria-hidden="true" id="follcheck" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> <?php if(isset($feed) && isset($feedcheck)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Feedback'); ?>" aria-controls="contact" role="tab" >Feedback<i class="fa fa-check-circle-o" aria-hidden="true" style="color:green;margin-left:5px;"></i></a></li> <?php }elseif(isset($feed)){ ?> <li role="presentation" class="active"><a class="test1" href="<?php echo base_url('cnb/Feedback'); ?>" aria-controls="contact" role="tab" >Feedback</a></li> <?php } else{ ?> <li role="presentation"><a class="test1" href="<?php echo base_url('cnb/Feedback'); ?>" aria-controls="contact" >Feedback<i class="fa fa-check-circle-o" aria-hidden="true" id="feedcheck" style="color:green;margin-left:5px;"></i></a></li> <?php } ?> </ul> </div> <div> <!-- Modal --> <div id="new-Modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content" > <div class="modal-header" id="add-header"> <h4 class="modal-title">Name Identification</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body" id="passw_m"> <input type="hidden" id="patient_id"> <div class="row pt"> <div class="col-sm-2"><label style="font-size:13px;">Password</label></div> <div class="col-sm-8"> <input type="text" id="pass_m" placeholder="Password" class="form-control"> <!-- <div class="input-group-append" id="eye-login101" style="margin-top: -25px;margin-left: 270px;"> <span onclick="password_show_hide101();"> <i class="fa fa-eye d-none101" id="hide_eye101"></i> <i class="fa fa-eye-slash" id="show_eye101"></i> </span> </div> --> </div> <div class="col-sm-2"></div> </div><!--row--> </div> <!-- <div class="modal-body" id="p_name_m" style="display:none;"> <div class="row pt"> <div class="col-sm-2"><label style="font-size:13px;">user name</label></div> <div class="col-sm-8"> <input type="text" id="puname" class="form-control"> </div> <div class="col-sm-2"></div> </div> </div> --> <div class="modal-footer"> <button type="submit" id="password_see" class="btn-close">Submit</button> </div> </div> </div> </div> <!-- </div> </div> </div> </div> </section> </body> </html> --> <!-- <script> function password_show_hide101() { var x = document.getElementById("pass_m"); var show_eye = document.getElementById("show_eye101"); var hide_eye = document.getElementById("hide_eye101"); hide_eye.classList.remove("d-none101"); if (x.type === "password") { x.type = "text"; show_eye.style.display = "none"; hide_eye.style.display = "block"; } else { x.type = "password"; show_eye.style.display = "block"; hide_eye.style.display = "none"; } } </script> --> <!-- back button link --> <script> var questionInput = document.getElementById('question'); questionInput.addEventListener('input', function() { // alert('hbhb') questionInput.style.backgroundImage = 'none'; questionInput.classList.remove('input-with-bg'); }); </script> <style> .input-with-bg { background-image: url('../images/MeduAi_Logo 2.png') !important; background-repeat: no-repeat !important; background-position: center !important; background-size: contain !important; } #question{ padding: 10px 15px !important; border: none !important; border-radius: 5px ; width: 300px !important; /* Adjust width as needed */ height: 40px !important; /* Adjust height as needed */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); font-size: 16px; color: black !important; outline: none; } .askdiv{ padding-left: 25px; margin-top: 20px; } .searchButton:focus{ outline: none; } .searchBox { display: flex; max-width: 395px; align-items: center; justify-content: space-between; gap: 8px; color: black; background: #eff1f4; border-radius: 50px; position: relative; opacity: 0.5; border: 4px solid lightblue; } .searchButton { color: white; position: absolute; right: 8px; width: 35px; height: 35px; border-radius: 50%; background: var(--gradient-2, linear-gradient(90deg, #2AF598 0%, #009EFD 100%)); border: 0; display: inline-block; transition: all 300ms cubic-bezier(.23, 1, 0.32, 1); } /*hover effect*/ .button-search:hover { color: #fff; background-color: #1A1A1A; box-shadow: rgba(0, 0, 0, 0.5) 0 10px 20px; transform: translateY(-3px); } /*button pressing effect*/ .button-search:active { box-shadow: none; transform: translateY(0); } .searchInput1 { border: none; background: none; outline: none; color: black !important; font-weight: 600; font-size: 15px; padding-left: 10px !important; /* padding: 12px 46px 10px 26px; */ margin-bottom: 0px !important; } </style> <script> function senquestion1(){ var question=document.getElementById('question').value; if(question!=''){ window.location.href="<?php echo base_url('aked-question');?>?question="+question; }else{ toastr.warning('Please Enter Something..'); } } </script> <script> function back(){ window.location.href="<?php echo base_url('evidence-care'); ?>" } </script> <script> // ------------------------------------ BMI_Calculation ------------------------------ $('.feet').keyup(function(){ var feet = $('.feet').val(); var feet_cm = feet*30.48; var inch = $('.inche').val(); var inch_cm = inch*2.54; var total = feet_cm+inch_cm; $('.cm').val(total); var weight = $('.weight').val(); var cm_m = $('.cm').val(); var cm_m1 = cm_m*0.01; var total_sqr = cm_m1*cm_m1; var bmi_calculation = (weight/total_sqr); var bmi_calculation_fix = bmi_calculation.toFixed(2); $('.bmi').val(bmi_calculation_fix); }); $('.inche').keyup(function(){ var feet = $('.feet').val(); var feet_cm = feet*30.48; var inch = $('.inche').val(); var inch_cm = inch*2.54; var total = feet_cm+inch_cm; $('.cm').val(total); var weight = $('.weight').val(); var cm_m = $('.cm').val(); var cm_m1 = cm_m*0.01; var total_sqr = cm_m1*cm_m1; var bmi_calculation = (weight/total_sqr); var bmi_calculation_fix = bmi_calculation.toFixed(2); $('.bmi').val(bmi_calculation_fix); }); $('.cm').keyup(function(){ var cm = $('.cm').val(); var total = cm/2.54; var cm_feet = (total/12); var cm_feet_round = Math.trunc(cm_feet); $('.feet').val(cm_feet_round); var cm_inch = total-(12*cm_feet_round); var cm_inch_round = Math.trunc(cm_inch); $('.inche').val(cm_inch_round); var weight = $('.weight').val(); var cm_m = $('.cm').val(); var cm_m1 = cm_m*0.01; var total_sqr = cm_m1*cm_m1; var bmi_calculation = (weight/total_sqr); var bmi_calculation_fix = bmi_calculation.toFixed(2); $('.bmi').val(bmi_calculation_fix); }); // ------------------------- Check AGE -------------------------------------- function checkage(){ var age = $('.age').val(); if(age >= 120){ toastr.warning('are you sure'); } // if(age != '' && age <= 120){ // $('.age1').hide(); // // $('.age3').hide(); // } // else { // // $('.age3').show(); // $('.age1').hide(); // toastr.warning('are you sure'); // } } // ------------------------- Check WEIGHT -------------------------------------- function checkweight_cnb(){ // alert("hello check"); var weight = $('.weight').val(); // $('.weight_hide').val(weight); // var weight100 = $('.weight_hide').val(); $('.feet').val(''); $('.inche').val(''); $('.cm').val(''); $('.bmi').val(''); if(weight == '' || weight <= 0){ toastr.warning('please enter the values to calculate BMI'); $('.age1').hide(); $('.age2').hide(); $('.weigh1').hide(); $('.weigh2').hide(); $('.feet').val(''); $('.inche').val(''); $('.cm').val(''); $(".feet").attr("readonly", true); $(".inche").attr("readonly", true); $(".cm").attr("readonly", true); }else{ $(".feet").attr("readonly", false); $(".inche").attr("readonly", false); $(".cm").attr("readonly", false); $('.age1').hide(); $('.age2').hide(); $('.weigh1').hide(); $('.weigh2').hide(); } } // -------------------------------------- ADD - NEW -------------------------------------------- $('#add_patient_inside_cnb').submit(function(e){ e.preventDefault(); var age1 = '', weight1 ='' ; var age = $('.age').val(); var weight = $('.weight').val(); if(age != '' && age >=1){ age1 = true; $('.age1').hide(); $('.age2').hide(); }else if(age == ''){ $('.age1').show(); $('.age2').hide(); toastr.error('specify your age'); }else if (age <1 ){ $('.age2').show(); $('.age1').hide(); toastr.error('Enterd value should be greater then 1'); } if(weight != '' && weight >= 1){ weight1 = true; $('.weigh1').hide(); $('.weigh2').hide(); }else if(weight == ''){ $('.weigh1').show(); $('.weigh2').hide(); toastr.error('specify your weight'); }else if(weight <1){ $('.weigh2').show(); $('.weigh1').hide(); toastr.error('enterd weight should be greater then 1'); } if(age1 && weight1){ var formData= new FormData(this); $(".Save").text("Submitting..."); $(".Save").attr("disabled", true); $.ajax({ type : "POST", data : formData, url : "<?php echo base_url("adding-new-patient-gas-page") ?>", contentType: false, processData: false, success:function(response){ response = jQuery.parseJSON(response); if(response.result==1){ toastr["success"](response.message); $("#myModal").modal("hide"); history.go(0); }else{ toastr["error"](response.message); } } }); } }); $('#cls').click(function(){ $("#myModal").modal("hide"); }); </script> <script> function see(key){ $('#patient_id').val(key); } $('#password_see').click(function(){ var pass = $('#pass_m').val(); var patient_id = $('#patient_id').val(); $.ajax({ type: 'POST', url : '<?php echo base_url('see-password') ?>', data :{pass:pass,patient_id:patient_id}, success:function(response){ response = jQuery.parseJSON(response); if(response.result==1){ toastr["success"](response.message); // var p_name = response.msg; // if(p_name != ''){ // $('#passw_m').hide(); // $('#p_name_m').show(); // $('#puname').val(p_name); // } var p_name1 = '<?php echo $patient_name; ?>'; console.log(p_name1); $("#new-Modal").modal("hide"); // $('.update').removeAttr("disabled"); // $(".update").text("Save"); history.go(0); } else{ toastr["error"](response.message); // $('.update').removeAttr("disabled"); // $(".update").text("Update"); } } }); }); </script> <script> var total_patient = '<?php echo count($patient); ?>'; var close_patient = '<?php echo count($old_check); ?>'; var incomplete_patient = total_patient - close_patient; $('.incomplete').text(incomplete_patient); function upload_patient1(){ var z = $('#check3').prop('checked'); if(z == true){ // alert(1); $.ajax({ type : 'POST', url : '<?php echo base_url("upload-patient-record")?>', data : {z:z}, success:function(response){ response=jQuery.parseJSON(response); var mode1=''; var k = []; $('#patients1').empty(); for(var i=0; i<response.message.length; i++){ console.log(response.message[i].rad_id); for(var j=0; j<response.msg.length; j++){ if(response.message[i].id == response.msg[j].id){ k = response.msg[j].id; mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:#1974A7;">'+response.message[i].rad_id+'</p>'; } } if(response.message[i].id != k){ mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:red;">'+response.message[i].rad_id+'</p>'; } } $('#patients1').append(mode1); } }); }else if(z == false){ $.ajax({ type : 'POST', url : '<?php echo base_url("upload-patient-record")?>', data : {z:z}, success:function(response){ response=jQuery.parseJSON(response); var mode1=''; var k = []; $('#patients1').empty(); for(var i=0; i<response.message.length; i++){ console.log(response.message[i].rad_id); for(var j=0; j<response.msg.length; j++){ if(response.message[i].id == response.msg[j].id){ k = response.msg[j].id; mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:#1974A7;display:none;">'+response.message[i].rad_id+'</p>'; } } if(response.message[i].id != k){ mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:red;">'+response.message[i].rad_id+'</p>'; } } $('#patients1').append(mode1); } }); } } function upload_patient(){ var z = $('#check2').prop('checked'); if(z == true){ // alert(1); $.ajax({ type : 'POST', url : '<?php echo base_url("upload-patient-record")?>', data : {z:z}, success:function(response){ response=jQuery.parseJSON(response); var mode1=''; var k = []; $('#patients').empty(); for(var i=0; i<response.message.length; i++){ console.log(response.message[i].rad_id); for(var j=0; j<response.msg.length; j++){ if(response.message[i].id == response.msg[j].id){ k = response.msg[j].id; mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:#1974A7;">'+response.message[i].rad_id+'</p>'; } } if(response.message[i].id != k){ mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:red;">'+response.message[i].rad_id+'</p>'; } } $('#patients').append(mode1); } }); }else if(z == false){ $.ajax({ type : 'POST', url : '<?php echo base_url("upload-patient-record")?>', data : {z:z}, success:function(response){ response=jQuery.parseJSON(response); var mode1=''; var k = []; $('#patients').empty(); for(var i=0; i<response.message.length; i++){ console.log(response.message[i].rad_id); for(var j=0; j<response.msg.length; j++){ if(response.message[i].id == response.msg[j].id){ k = response.msg[j].id; mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:#1974A7;display:none;">'+response.message[i].rad_id+'</p>'; } } if(response.message[i].id != k){ mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:red;">'+response.message[i].rad_id+'</p>'; } } $('#patients').append(mode1); } }); } } var ss = '<?php echo $check_r ?? null ?>'; if(ss == 'true'){ $('#check2').attr("checked",true); } function check_id(){ var id_patient = $('.patient_id').val(); $.ajax({ type : 'POST', url : '<?php echo base_url("check-patient-id")?>', data : {id_patient:id_patient}, success:function(response){ response = jQuery.parseJSON(response); if(response.result==1){ // toastr["error"](response.message); document.querySelector(".patient_id").style.borderColor = "red"; document.querySelector(".patient_id").style.backgroundColor = "#ffe6e6"; // $('.patient_id_index').val(0); } else{ // toastr["success"](response.message); document.querySelector(".patient_id").style.borderColor = "green"; document.querySelector(".patient_id").style.backgroundColor = "#e6ffe6"; // $('.patient_id_index').val(1); } } }); } </script> <script src="<?php echo base_url('public/assets/js/bootstrap-datetimepicker.min.js'); ?>"></script> <script type="text/javascript"> var today = new Date(); var minDate = today.setDate(today.getDate() ); $('#datePicker').datetimepicker({ useCurrent: false, format: "DD/MM/YYYY", minDate: 0 }); var firstOpen = true; var time; $('#timePicker').datetimepicker({useCurrent: false,format: "hh:mm A"}).on('dp.show', function() { if(firstOpen) { time = moment().startOf('day'); firstOpen = false; } else { time = "01:00 PM" } $(this).data('DateTimePicker').date(time); }); </script> <script> function myfun(key){ var id = key; // alert(id); // $('#a').val(id); window.location = '<?php echo base_url("selectPatient")?>?id='+id; } function resetfun(){ $('#add_patient')[0].reset(); $('#myModal').modal('hide'); $('.email').hide(); $('.age1').hide(); $(".date_time1").hide(); $('.cnbdone').hide(); $('.supervision1').hide(); } $('#myModal').on('hidden.bs.modal', function (e) { $('.email').hide(); $('.age1').hide(); $(".date_time1").hide(); $('.cnbdone').hide(); $('.supervision1').hide(); $('#add_patient')[0].reset(); }); </script> <script> var subjectObject = { "Consultant": { "Junior Consultant" : ["Junior Consultant", "Senior Consultant"], "Senior Consultant" : ["Junior Consultant", "Senior Consultant"] }, "Trainee" : { "Junior Trainee" : ["Junior Trainee", "Senior Trianee"], "Senior Trianee" : ["Junior Trainee", "Senior Trianee"] } } window.onload = function(){ var subjectSel = document.getElementById("cnb_done_by1"); var topicSel = document.getElementById("cnb_done_by2"); for (var x in subjectObject) { subjectSel.options[subjectSel.options.length] = new Option(x, x); } subjectSel.onchange = function() { topicSel.length = 1; for (var y in subjectObject[this.value]) { topicSel.options[topicSel.options.length] = new Option(y, y); } } } </script> <script> // function fun(){ // var user = $('#usr').val(); // $.ajax({ // type : "POST", // url : '<?php echo base_url("addPatient/search_patients") ?>', // data : {user:user}, // success:function(response){ // response=jQuery.parseJSON(response); // var mode1=''; // $('#patients').empty(); // for(var i=0; i<response.length; i++){ // console.log(response[i].patient_id); // mode1 += '<p onclick = "myfun('+response[i].id+')" style="color:red;">'+response[i].patient_id+'</p>'; // } // $('#patients').append(mode1); // } // }); // } function fun(){ var user = $('#usr').val(); var check = $('#check2').is(':checked'); if(check){ $.ajax({ type : "POST", url : '<?php echo base_url("searchingPatients") ?>', data : {user:user,check:check}, success:function(response){ response=jQuery.parseJSON(response); var mode1=''; var k = []; $('#patients').empty(); $('#patients1').empty(); for(var i=0; i<response.message.length; i++){ console.log(response.message[i].rad_id); for(var j=0; j<response.msg.length; j++){ if(response.message[i].id == response.msg[j].id){ k = response.msg[j].id; mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:#1974A7;">'+response.message[i].rad_id+'</p>'; } } if(response.message[i].id != k){ mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:red;">'+response.message[i].rad_id+'</p>'; } } $('#patients').append(mode1); $('#patients1').append(mode1); } }); }else{ $.ajax({ type : "POST", url : '<?php echo base_url("searchPatients") ?>', data : {user:user}, success:function(response){ response=jQuery.parseJSON(response); var mode1=''; var k = []; $('#patients').empty(); $('#patients1').empty(); for(var i=0; i<response.message.length; i++){ console.log(response.message[i].rad_id); for(var j=0; j<response.msg.length; j++){ if(response.message[i].id == response.msg[j].id){ k = response.msg[j].id; mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:#1974A7;">'+response.message[i].rad_id+'</p>'; } } if(response.message[i].id != k){ mode1 += '<p onclick = "myfun('+response.message[i].id+')" style="color:red;">'+response.message[i].rad_id+'</p>'; } } $('#patients').append(mode1); $('#patients1').append(mode1); } }); } } // function checkemail(){ // var email = $('.patient_email_id').val(); // // alert(email); // if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){ // // alert('work'); // $('.email').hide(); // }else{ // $('.email').show(); // } // } // function checkage(){ // var age = $('.age').val(); // if(age != '' && age <= 120){ // $('.age1').hide(); // $('.age3').hide(); // } // else { // $('.age3').show(); // $('.age1').hide(); // toastr.warning('are you sure'); // } // } // function checkweight(){ // var weight = $('.weight').val(); // if(weight <= 250){ // $('.weight1').hide(); // }else{ // $('.weight1').show(); // toastr.warning('are you sure'); // } // } // function checkdatetime(){ // var dateTime = $('#datetimepicker1').val(); // if(dateTime != ''){ // $('.date_time1').hide(); // } // } // function selectcnb(){ // var cnbdone = $('.cnb_done_by1').val(); // if(cnbdone != 'Select'){ // $('.cnbdone').hide(); // } // } // function checksupervision(){ // var supervision = $('.supervision').val(); // if(supervision != 'Select'){ // $('.supervision1').hide(); // } // } // // ------------------------------------bmi_calculation (start)------------------------------ // $('.feet').keyup(function(){ // var feet = $('.feet').val(); // var feet_cm = feet*30.48; // var inch = $('.inche').val(); // var inch_cm = inch*2.54; // var total = feet_cm+inch_cm; // $('.cm').val(total); // var weight = $('.weight').val(); // var cm_m = $('.cm').val(); // var cm_m1 = cm_m*0.01; // var total_sqr = cm_m1*cm_m1; // var bmi_calculation = (weight/total_sqr); // var bmi_calculation_fix = bmi_calculation.toFixed(2); // $('.bmi').val(bmi_calculation_fix); // }); // $('.inche').keyup(function(){ // var feet = $('.feet').val(); // var feet_cm = feet*30.48; // var inch = $('.inche').val(); // var inch_cm = inch*2.54; // var total = feet_cm+inch_cm; // $('.cm').val(total); // var weight = $('.weight').val(); // var cm_m = $('.cm').val(); // var cm_m1 = cm_m*0.01; // var total_sqr = cm_m1*cm_m1; // var bmi_calculation = (weight/total_sqr); // var bmi_calculation_fix = bmi_calculation.toFixed(2); // $('.bmi').val(bmi_calculation_fix); // }); // $('.cm').keyup(function(){ // var cm = $('.cm').val(); // var total = cm/2.54; // var cm_feet = (total/12); // var cm_feet_round = Math.trunc(cm_feet); // $('.feet').val(cm_feet_round); // var cm_inch = total-(12*cm_feet_round); // var cm_inch_round = Math.trunc(cm_inch); // $('.inche').val(cm_inch_round); // var weight = $('.weight').val(); // var cm_m = $('.cm').val(); // var cm_m1 = cm_m*0.01; // var total_sqr = cm_m1*cm_m1; // var bmi_calculation = (weight/total_sqr); // var bmi_calculation_fix = bmi_calculation.toFixed(2); // $('.bmi').val(bmi_calculation_fix); // // alert(cm_feet_pa); // }); // // ------------------------------------------bmi_calculation(end)-------------------------------------- // $('#add_patient').submit(function(e){ // e.preventDefault(); // var age1 = '', date_time1 ='', cnbdone = '', supervision2 = ''; // var age = $('.age').val(); // var date_time = $('#datetimepicker1').val(); // var cnb_done = $('.cnb_done_by1').val(); // var supervision = $('.supervision').val(); // // var email = $('.patient_email_id').val(); // // var patient_in = $('.patient_id_index').val(); // if(age != ''){ // age1 = true; // }else{ // $('.age1').show(); // toastr.error('specify your age'); // } // if(date_time != ''){ // date_time1 = true; // }else{ // $('.date_time1').show(); // toastr.error('specify the date'); // } // if(cnb_done != 'Select'){ // cnbdone = true; // }else{ // $('.cnbdone').show(); // toastr.error('select the option'); // } // if(supervision != 'Select'){ // supervision2 = true; // }else{ // $('.supervision1').show(); // toastr.error('select the option'); // } // // if(email != ''){ // // email2 = true; // // }else{ // // $('.email').show(); // // toastr.error('enter correct email-Id'); // // } // // if(patient_in == 1){ // // patient_index1 =true; // // }else{ // // toastr.error('Patient Id already exist...'); // // } // if(age1 && date_time1 && cnbdone && supervision2){ // var formData= new FormData(this); // $.ajax({ // type : "POST", // data : formData, // url : "<?php echo base_url("adding-new-patient") ?>", // contentType: false, // processData: false, // success:function(response){ // response = jQuery.parseJSON(response); // if(response.result==1){ // toastr["success"](response.message); // $("#myModal").modal("hide"); // history.go(0); // }else{ // toastr["error"](response.message); // } // } // }); // } // }); // var pre = '</?php echo $preo ; ?>'; // if(pre == ''){ // $('#precheck').hide(); // } // var post = '</?php echo $posto; ?>'; // if(post == ''){ // $('#postcheck').hide(); // } // var foll = '</?php echo $follo; ?>'; // if(foll == ''){ // $('#follcheck').hide(); // } // var proccheck = '</?php echo $proccheck; ?>'; // if(isset(pre)proccheck == ''){ // $('#proccheck').hide(); // } // var feedcheck = '</?php echo $feedcheck; ?>'; // if(feedcheck == ''){ // $('#feedcheck').hide(); // } // var ecocheck = '</?php echo $ecocheck; ?>'; // if(ecocheck == ''){ // $('#ecocheck').hide(); // } </script> <script type="text/javascript"> function myFun(){ window.location = '<?php echo base_url("Notification")?>'; } jQuery(document).ready(function($) { $.ajax({ type : 'GET', url : '<?php echo base_url("Notification-header") ?>', contentType: false, processData : false, success:function(response){ response = jQuery.parseJSON(response); // console.log(response); if(response.result == 1){ var num = 0; (response.comments).forEach((data1) => { num++; }); (response.comments1).forEach((data2) => { //console.log(data2['user_id_del']) if(data2['user_id_del']){ } else{ num++; } }); $('#num').html(num); } else{ //toastr["error"]('response.message'); } } }) }); </script> <style> #logo{ width: 70%; } .right-menu{ text-align:end; padding-top: 20px; } .w3-dropdown-content { cursor: auto; color: #000; background-color: #fff; display: none; position: absolute; min-width: 340px; margin: 0; padding: 0; z-index: 1; } .renewred { background-color: red !important; color: white; border-radius: 6px; padding: 2px; margin-top: 18px; } .cpd_header_color{ border-radius: 15.5px; text-align: center; background-color: #0195CB; color: white; width: 50%; float: right; margin-top: -4px !important; } .mana_color{ background-color: white; border-radius: 6px; /* width: 50%; */ /* float: right; */ } /* ---------- */ .notification i { color: #1974A7; font-size: 28px; cursor: pointer; } .notification span { background-color: #1974A7; color: #fff; border-radius: 50px; position: relative; top: -25px; left: -10px; padding: 2px 4px; } .notification button { background-color: transparent; } .right-menu li { display: inline-block; /* padding-right: 5%; */ color: #000; font-weight: 600; cursor: pointer; padding-left: 14px; } .custom-btn { width: 100px; height: 35px; color: #fff; border-radius: 5px; /* padding: 10px; */ font-family: 'Lato', sans-serif; font-weight: 500; background: transparent; cursor: pointer; transition: all 0.3s ease; position: relative; display: inline-block; box-shadow: inset 2px 2px 2px 0px rgba(159, 160, 221, 0.5), 7px 7px 20px 0px rgba(149, 179, 224, 0.1), 4px 4px 5px 0px rgba(28, 133, 151, 0.1); outline: none; font-size: 20px; float: right; } .btn-2 { background: linear-gradient(to left,#0160A2, #0198CD,#0160A2); border: none; } .btn-2:before { height: 0%; width: 2px; } .btn-2:hover { border: none; box-shadow: 4px 4px 6px 0 rgba(255,255,255,.5), -4px -4px 6px 0 rgba(114, 162, 221, 0.5), inset -4px -4px 6px 0 rgba(137, 145, 212, 0.2), inset 4px 4px 6px 0 rgba(81, 138, 204, 0.4); } @media only screen and (max-width:600px){ .w3-dropdown-content{ } } </style> <style> @media only screen and (max-width:768px) { .drop_notfi{ position: relative; left: 35px !important; top: 3px !important; } } </style>