%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div class="wrapper d-flex align-items-stretch"> <?php include('_parts/admin_sidebar.php') ?> <div id="content"> <?php include('_parts/admin_internal_header.php') ?> <div class="main-body"> <div class="headings"> <h4>Incident Details </h4> <button name="Submit2" type="button" class="button3" value="Back" onClick="javascript:history.go(-1)"><i class="fa fa-angle-left" aria-hidden="true"></i> Back</button> </div> <div class="white-box"> <?php if($this->session->flashdata('success')): ?> <p><?php echo $this->session->flashdata('success'); ?></p> <?php endif; ?> <div class="action-gra action-gra3 whitehradings"> <?php $getStatusArray = array(); foreach($complaintremark as $crow){ $getStatusArray[$crow['status']] = $crow['status']; } if($complaintDetails['status']!='closed' && $take_action==true && $_SESSION['ADMIN_DETAILS']['role']!='10') { ?> <?php if($_SESSION['ADMIN_DETAILS']['role']=='4' && $complaintremark[0]['department_status']=='0' && $complaintDetails['status']!='push back' && $complaintremark[0]['assigned_department_id']==$_SESSION['ADMIN_DETAILS']['department_id']) { ?> <a href="<?=base_url('complaints/takeaction?cid='.$_GET['cid'])?>" class="btn button5 right">Take Action</a> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#pushbackaction">Push Back</button> <?php } else if($_SESSION['ADMIN_DETAILS']['role']=='5' && $complaintremark[0]['levelone_status']=='0' && $complaintDetails['status']!='push back' && $complaintremark[0]['assigned_department_id']==$_SESSION['ADMIN_DETAILS']['department_id']) { ?> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#takecooaction">Take Action</button> <?php } else if($_SESSION['ADMIN_DETAILS']['role']=='6' && $complaintremark[0]['leveltwo_status']=='0' && $_SESSION['ADMIN_DETAILS']['department_id']== $complaintremark[0]['assigned_department_id'] && $complaintDetails['status']!='push back') { ?> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#takemsaction">Take Action</button> <?php } else if($_SESSION['ADMIN_DETAILS']['role']=='3' && !in_array($complaintremark[0]['assigned_department_id'],array('4','5'))){?> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#takeaction">Take Action</button> <?php if(!empty($complaintremark) && in_array('closed',$getStatusArray)) { ?> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#sendtakeaction">Send Approval</button> <?php } ?> <?php } } else if($complaintDetails['status']!='closed' && $complaintremark[0]['department_status']=='1' && !in_array($_SESSION['ADMIN_DETAILS']['role'],array('4','5','6'))) { ?> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#takeactionwithremarks">Take Action</button> <?php } ?> <?php if($complaintDetails['status']!='closed' && ($_SESSION['ADMIN_DETAILS']['role']=='1' || $_SESSION['ADMIN_DETAILS']['role']=='10')) { ?> <button type="button" style="margin-right:20px;" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#send-reminder">Send Reminder</button> <p class="right" style="margin-right:20px;">Reminder Emails Sent - <?=count($reminderCount)?></p> <?php } ?> </div> <?php if($this->session->flashdata('remindersuccess')){?> <div class="alert alert-success"><p style="color:green"><?=$this->session->flashdata('remindersuccess')?></p></div> <?php }?> <?php if($_SESSION['ADMIN_DETAILS']['role'] == '1' || $_SESSION['ADMIN_DETAILS']['role'] == '10' ){?> <section id="unseen"> <div class=""> <table class="table3"> <thead> <tr class="table-head"> <th>ID</th> <th>Incident Number</th> <th>School</th> <th>Department</th> <th>Nature of Incident</th> </tr> </thead> </table> <table class="table3"> <tr> <td><?php echo $k=1;?></td> <td><?php echo htmlentities($complaintDetails['compNumber']);?></td> <?php if($complaintDetails['category'] == 'Non-Academic' || $complaintDetails['category'] == 'non-Academic'){ $schoolArray[$complaintDetails['school_id']] = 'Others'; } ?> <td><?php echo $schoolArray[$complaintDetails['school_id']]!='' ? htmlentities($schoolArray[$complaintDetails['school_id']]) :'NA';?></td> <td><?php echo $departmentArray[$complaintDetails['department_id']]!='' ? htmlentities($departmentArray[$complaintDetails['department_id']]) : 'NA';?></td> <td><?php echo $grievanceArray[$complaintDetails['grievance_type']]['grievance_name']!='' ? htmlentities($grievanceArray[$complaintDetails['grievance_type']]['grievance_name']) : 'NA';?></td> </tr> <tr> <td colspan="5" class="table-collapse" id="collapse<?=$complaintDetails['complaintNumber']?>"> <ul class="list"> <li style="list-style:none;"> <strong>Category</strong> : <?php echo htmlentities(ucwords($complaintDetails['category']));?> </li> <!-- <li style="list-style:none;"> <strong>Date</strong> : <?php echo date('d M Y H:i:s',strtotime($complaintDetails['regDate']));?> </li> --> <?php if($complaintDetails['complaint_level']<=3){$level = '1';}else if($complaintDetails['complaint_level']<=6){$level = '2';}else{$level = '3';} //$complaintlevelemail = getcomplaintlevelemail($complaintDetails['category'],$complaintDetails['school_id'],$complaintDetails['department_id'],$complaintDetails['grievance_type'])?> <li style="list-style:none;"> <strong>Level</strong> : <?php echo $level, $complaintlevelemail!= '' ? ' , ' .$complaintlevelemail : '';?> </li> <li style="list-style:none;"> <strong>Status</strong> : <?php $statusArray = unserialize(GRIEVANCE_STATUS); $numDays = 15; if($complaintDetails['complaint_level']<=3){ $numDays = 5; } $status=$complaintDetails['status']; if($complaintDetails['complaint_level']==1 || $complaintDetails['complaint_level']==4 || $complaintDetails['complaint_level']==7 || $complaintDetails['complaint_level']==10) { echo '<span style="color:#fc654c;font-weight:bold;">'.$statusArray[$complaintDetails['complaint_level']].'</span>'; } else if($complaintDetails['complaint_level']==2 || $complaintDetails['complaint_level']==5 || $complaintDetails['complaint_level']==8 || $complaintDetails['complaint_level']==11) { echo '<span style="color:#f0ad4e;;font-weight:bold;">'.$statusArray[$complaintDetails['complaint_level']].'</span>'; } else { echo '<span style="color:#00c1a1;font-weight:bold;">'.$statusArray[$complaintDetails['complaint_level']].'</span>'; } ?> </li> <li style="list-style:none;"> <a class="view-details" href="javascript:void(0);" onclick="viewdetails(<?=$complaintDetails['complaintNumber']?>);">View Details <i class="fa fa-chevron-down" aria-hidden="true"></i> <i class="fa fa-chevron-up" aria-hidden="true"></i></a> </li> </ul> <?php ?> <div class="box-default" id="div<?=$complaintDetails['complaintNumber']?>"> <ul class="process-list nav nav-tabs" role="tablist"> <li <?php if($complaintDetails['complaint_level']>='1' OR $row['complaint_level']=='0'){ ?>class="active" <?php } ?>><a href="javascript:void(0)">Incident Submitted</a></li> <li <?php if($complaintDetails['complaint_level']>='2'){ ?>class="active" <?php } ?>><a href="javascript:void(0)">In Progress</a></li> <li <?php if($complaintDetails['complaint_level']>=3 || $complaintDetails['complaint_level']==6 || $complaintDetails['complaint_level']==9 || $complaintDetails['complaint_level']==12){ ?>class="active" <?php } ?>><a href="javascript:void(0)">Closed</a></li> <!-- <li <?php if($complaintDetails['complaint_level']==4 || $complaintDetails['complaint_level']==5 ||$complaintDetails['complaint_level']==7 ||$complaintDetails['complaint_level']==8 || $complaintDetails['complaint_level']==10 || $complaintDetails['complaint_level']==11){ ?>class="active" <?php } ?>><a href="javascript:void(0)">Reopened</a></li>--> <li <?php if($complaintDetails['complaint_level']==3 || $complaintDetails['complaint_level']==6 || $complaintDetails['complaint_level']==9 || $complaintDetails['complaint_level']==12){ ?>class="active" <?php } ?>><a href="javascript:void(0)">Incident Resolved</a></li> </ul> <div class="tab-content"> <div role="tabpane<?=$complaintDetails['complaintNumber']?>l" class="tab-pane active" > <ul class="section-container"> <li class="section"> <span class="date"><?php echo date('d M Y H:i:s',strtotime($complaintDetails['regDate']));?></span> <p>Incident <?php echo htmlentities($complaintDetails['compNumber']);?> has been submitted successfully</p> <p><strong style="color:#00bfe7;"> Details of where incident occurred: </strong></p> <table class="table table-bordered"> <thead> <tr> <?php if($complaintDetails['affected_person_name']!='') {?><th width="30px;">Full Name</th> <?php } ?> <?php if($complaintDetails['affected_person_name']!='') {?> <th width="10px;">Age</th><?php } ?> <?php if($complaintDetails['affected_person_name']!='') {?><th width="10px;">Gender</th><?php } ?> <?php if($complaintDetails['affected_person_name']!='') {?><th width="10px;">IP. NO. </th><?php } ?> <th scope="col" width="20px;">Location</th> <th scope="col" width="20px;">Unit/Dept/Head:</th> <th scope="col" width="15px;">Date</th> </tr> </thead> <tbody> <tr> <?php if($complaintDetails['affected_person_name']!='') {?><td><?=$complaintDetails['affected_person_name']?></td><?php } ?> <?php if($complaintDetails['affected_person_age']!='') {?> <td><?=$complaintDetails['affected_person_age']?></td><?php } ?> <?php if($complaintDetails['affected_person_sex']!='') {?><td><?=$complaintDetails['affected_person_sex']?></td><?php } ?> <?php if($complaintDetails['affected_person_ipno']!='') {?> <td><?=$complaintDetails['affected_person_ipno']?></td><?php } ?> <td><?=$complaintDetails['affected_person_location']?></td> <td><?=$complaintDetails['affected_person_udhead']?></td> <td><?=$complaintDetails['affected_person_date']?></td> </tr> </tbody> </table> <p><strong style="color:#00bfe7;"> Remarks: </strong><?php echo html_entity_decode($complaintDetails['complaindetails']); ?> </p> </li> <?php if(count($complaintAllremark)>0) { ?> <?php foreach($complaintAllremark as $rrows) { $rstatus = $rrows['status']; $remakrs = "Quality Team Remarks:"; ?> <li class="section"> <span class="date"><?php echo date('d M Y H:i:s',strtotime($rrows['remarkDate'])); ?></span> <p> <?php if($rrows['department_status']=='1' && $rrows['levelone_status']=='0') { $remakrs = "Department Remarks:";?> <span class="<?php if($rstatus=='closed') { ?> grievance-status closed <?php } ?>"> Your Incident <?php echo htmlentities($row['compNumber']);?> is <?=$rstatus?> & it has been escalated to the next level.</span> <?php } else if($rrows['department_status']=='1' && $rrows['levelone_status']=='1' && $rrows['leveltwo_status']=='0') { $remakrs = "COO Remarks:"; ?> <span class="<?php if($rstatus=='closed') { ?> grievance-status closed <?php } ?>">Your Incident <?php echo htmlentities($row['compNumber']);?> is <?=$rstatus?> at COO level & it has been escalated to the next level.</span> <?php } else if($rrows['leveltwo_status']=='1') { $remakrs = "MS Remarks:"; ?> <span class="<?php if($rstatus=='closed') { ?> grievance-status closed <?php } ?>">Your Incident <?php echo htmlentities($row['compNumber']);?> is <?=$rstatus?> at MS level & it has been resolved.</span> <?php } if(strtotime($row['lastUpdationDate']) + $numDays * 24 * 60 * 60 > time() && $row['complaint_level']==3 && $rstatus=='closed' && $rrows['leveltwo_status']=='1') { ?> If you are <strong>not satisfied</strong> with the resolution <a data-toggle="modal" href="<?=base_url('grievancehistory')?>?key=<?=base64_encode($row['compNumber'])?>" class="reopen-lnk" id="">Click Here to Reopen</a><?php } ?></p> <p><strong style="color:#00bfe7;"><?=$remakrs?> </strong><?php echo htmlentities($rrows['remark']); ?></p> </li> <?php } } ?> <!--- L2 Start Here --> <?php $category = ''; if(count($historyLevelTwoArray)>0) { $category = $historyLevelTwoArray['category']; ?> <li class="section"> <span class="date"><?php echo date('d M Y H:i:s',strtotime($historyLevelTwoArray['regDate'])); ?></span> <p><span class="grievance-status not-satisfied"> Incident <?php echo htmlentities($complaintDetails['compNumber']);?> is reopened as the user is not satisfied with the resolution</span> </p> <p><strong> Remarks : </strong><?php echo html_entity_decode($historyLevelTwoArray['complaindetails']); ?> </p> </li> <?php } ?> <?php if(count($complaintl2remarks)>0) { foreach($complaintl2remarks as $rows) { $status = ''; $status = $rows['status']; $remarksFrom = $category=='academic' ? 'from the Dean' : ''; ?> <li class="section"> <span class="date"><?php echo date('d M Y H:i:s',strtotime($rows['remarkDate'])); ?></span> <p><span class="<?php if($status=='closed') { ?>grievance-status closed <?php } ?>"> Incident <?php echo htmlentities($complaintDetails['compNumber']);?> is <?=$status?></span> </p> <p><strong style="color:#00bfe7;"> Remarks <?=$remarksFrom?>: </strong><?php echo html_entity_decode($rows['remark']); ?> </p> </li> <?php } } ?> <!-- L2 End Here --> <!--- L3 Start Here --> <?php if(count($historyLevelThreeArray)>0) { ?> <li class="section"> <span class="date"><?php echo date('d M Y H:i:s',strtotime($historyLevelThreeArray['regDate'])); ?></span> <p><span class="grievance-status not-satisfied"> Grievance <?php echo htmlentities($complaintDetails['compNumber']);?> is reopened as the user is not satisfied with the resolution</span> </p> <p><strong style="color:#00bfe7;"> Remarks : </strong><?php echo htmlentities($historyLevelThreeArray['complaindetails']); ?> </p> </li> <?php } ?> <?php if(count($complaintl3remarks)>0) { foreach($complaintl3remarks as $rows) { $status=$rows['status']; ?> <li class="section"> <span class="date"><?php echo date('d M Y H:i:s',strtotime($rows['remarkDate'])); ?></span> <p><span class="<?php if($status=='closed') { ?>grievance-status closed <?php } ?>"> Incident <?php echo htmlentities($complaintDetails['compNumber']);?> is <?=$status?></span> </p> <p><strong> Remarks from the University Committee : </strong><?php echo html_entity_decode($rows['remark']); ?> </p> </li> <?php } } ?> </li> <!-- L3 End Here --> </div> </li> </ul> </div> </div> </td> </tr> </table> </div> </section> <?php } else { ?> <div class="white-box-n"> <table class="table3"> <tr> <th> Incident No. </th> <th> Reg. Date </th> <th> Category </th> <?php if($complaintDetails['category'] == 'Non-Academic' || $complaintDetails['category'] == 'non-Academic'){ $schoolArray[$complaintDetails['school_id']] = 'Others'; } ?> <th> Business Unit </td> <th> Department </td> <th> Nature of Incident </td> <?php if($grievanceDetails['complaindetails']) { ?> <th> Incident Description </th> <?php } ?> <th> Recent Remarks </th> <th> Status </th> </tr> <tr> <td><?php echo htmlentities($complaintDetails['compNumber']);?></td> <td><?php echo htmlentities(date('d M Y H:i:s',strtotime($complaintDetails['regDate'])));?></td> <td><?php echo htmlentities($complaintDetails['category'])!='' ? $complaintDetails['category'] : 'NA';?></td> <?php if($complaintDetails['category'] == 'Non-Academic' || $complaintDetails['category'] == 'non-Academic'){ $schoolArray[$complaintDetails['school_id']] = 'Others'; } ?> <td><?php echo htmlentities($schoolArray[$complaintDetails['school_id']])!='' ? htmlentities($schoolArray[$complaintDetails['school_id']]) : 'NA';?></td> <td><?php echo htmlentities($departmentArray[$complaintDetails['department_id']])!='' ? htmlentities($departmentArray[$complaintDetails['department_id']]) : 'NA';?></td> <td><?php echo htmlentities(ucwords($complaintDetails['employee_acknowledgement']));?></td> <?php if($grievanceDetails['complaindetails']) { ?> <td><?php echo htmlentities($grievanceDetails['complaindetails']);?></td> <?php } ?> <td><?php echo html_entity_decode($complaintDetails['complaindetails']);?></td> <td> <?php $statusArray = unserialize(GRIEVANCE_STATUS); $numDays = 15; if($complaintDetails['complaint_level']<=3){ $numDays = 5; } if($complaintDetails['complaint_level']==1 || $complaintDetails['complaint_level']==4 || $complaintDetails['complaint_level']==7 || $complaintDetails['complaint_level']==10) { echo '<span style="color:#fc654c;font-weight:bold;">'.$statusArray[$complaintDetails['complaint_level']].'</span>'; } else if($complaintDetails['complaint_level']==2 || $complaintDetails['complaint_level']==5 || $complaintDetails['complaint_level']==8 || $complaintDetails['complaint_level']==11) { echo '<span style="color:#f0ad4e;;font-weight:bold;">'.$statusArray[$complaintDetails['complaint_level']].'</span>'; } else { echo '<span style="color:#00c1a1;font-weight:bold;">'.$statusArray[$complaintDetails['complaint_level']].'</span>'; } ?> </td> </tr> </table> </div> </div> <div class="white-box"> <div class="whitehradings"> <h5>Your Remarks</h5> <div class="action-gra action-gra3"> <button type="button" class="btn button5 right" data-bs-toggle="modal" data-bs-target="#view-user-detail">View User Details</button> </div> </div> <div class="white-box-n"> <table class="table3"> <tr> <th>Date</th> <th>Department</th> <th>Status</th> <th>Comments</th> </tr> <?php if(count($complaintremark)>0) { $k=1; foreach($complaintremark as $row) { ?> <tr> <td><?php echo htmlentities(date('d M Y H:i:s',strtotime($row['remarkDate']))); ?></td> <td><?php echo $row['incident_department_id']>0 ? htmlentities($departmentArray[$row['incident_department_id']]) : 'Quality'; ?></td> <td><?php echo htmlentities(ucwords($row['status'])); ?></td> <td><?php echo htmlentities($row['remark']); ?> <?php if($row['department_status']=='1' && $row['levelone_status']=='0' && $row['status']=='closed') { ?> <a href="<?=base_url('complaints/viewremarks?cid='.$_GET['cid'])?>" style="font-size:20px;" title="View Details"><i class="fa fa-eye" aria-hidden="true"></i></a><?php }?></td> </tr> <?php $k++; } } else { ?> <tr> <td colspan="4"> No Comments Available.</td> </tr> <?php }?> </table> </div> <?php }?> </br> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="takeactionwithremarks" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Take Action</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status" required="required" onchange="getOtherDetails();"> <option value="">Select Status</option> <option value="in process">In Process</option> <!--<option value="closed">Closed</option>--> </select> </span> </li> <script> function getOtherDetails(){ let acknowledgement = $("#status").val(); if(acknowledgement=='in process'){ $(".acknowledgement_div").show(); } else { $(".acknowledgement_div").hide(); } } </script> <li style="display:none;" class="acknowledgement_div"> <label>Department <span style="color:red;">*</span></label> <span class="select"> <select name="department_id" id="department_id"> <option value="">Select department</option> <?php foreach($departmentArray as $nkey=>$nrow) { ?> <option value="<?=$nkey?>"><?=$nrow?></option> <?php } ?> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="remarks" id="remarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <!-- Modal --> <div class="modal fade" id="sendtakeaction" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Send For Approval</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <li class="category_div"> <label>Incident Category <span style="color:red;">*</span></label> <span class="select"> <select name="incident_category_id" id="incident_category_id" required="required"> <option value="">Select Category</option> <option value="1" <?php if($complaintDetails['incident_category_id']=='in process') { echo 'selected'; }?>>Clinical - MS</option> <option value="2" <?php if($complaintDetails['incident_category_id']=='closed') { echo 'selected'; }?>>Non Clinical - COO</option> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="approvalremarks" id="approvalremarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <!-- Modal --> <div class="modal fade" id="takeaction" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Take Action</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <?php if($_SESSION['ADMIN_DETAILS']['role']<=3) { ?> <li> <label>Incident Process <span style="color:red;">*</span></label> <span class="select"> <select name="incident_process" id="incident_process" required="required" onchange="getIncidentTabDetails();"> <option value="">Select Process</option> <!--<option value="1" <?php if($complaintDetails['incident_process']=='1') { echo 'selected'; }?>>Common Process</option>--> <option value="2" <?php if($complaintDetails['incident_process']=='2') { echo 'selected'; }?>>Single Step Process</option> </select> </span> </li> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status_action" required="required" onchange="getOtherTabDetails();"> <option value="">Select Status</option> <option value="in process" <?php if($complaintDetails['status_action']=='in process') { echo 'selected'; }?>>In Process</option> <option value="closed" <?php if($complaintDetails['status_action']=='closed') { echo 'selected'; }?>>Closed</option> </select> </span> </li> <script> function getOtherTabDetails(){ let acknowledgement = $("#status_action").val(); if(acknowledgement=='in process'){ $(".acknowledgement_div").show(); } else { $(".acknowledgement_div").hide(); } } </script> <script> function getIncidentTabDetails(){ let acknowledgement = $("#incident_process").val(); if(acknowledgement=='2'){ $(".category_div").show(); } else { $(".category_div").hide(); } } </script> <?php } else { ?> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status" required="required" > <option value="">Select Status</option> <option value="in process">In Process</option> <option value="push back">Push Back</option> <!--<option value="closed">Closed</option>--> </select> </span> </li> <?php } ?> <li style="display:none;" class="acknowledgement_div"> <label>Department <span style="color:red;">*</span></label> <span class="select"> <select name="department_id" id="department_id"> <option value="">Select department</option> <?php foreach($departmentArray as $nkey=>$nrow) { if(!in_array($nkey, array('2','4','5'))) { ?> <option value="<?=$nkey?>" <?php if($complaintDetails['department_id']==$nkey) { echo 'selected'; }?>><?=$nrow?></option> <?php } } ?> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="remarks" id="remarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <!-- Modal --> <div class="modal fade" id="pushbackaction" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Take Action</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status" required="required" > <option value="">Select Status</option> <option value="push back">Push Back</option> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="remarks" id="remarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <div class="modal fade" id="takecooaction" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Take Action</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status" required="required" > <option value="">Select Status</option> <option value="closed">Closed</option> <option value="push back">Push Back</option> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="cooremarks" id="cooremarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <div class="modal fade" id="takemsaction" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Take Action</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status" required="required" > <option value="">Select Status</option> <option value="closed">Closed</option> <option value="push back">Push Back</option> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="msremarks" id="msremarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <div class="modal fade" id="takemsaction" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Take Action</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updatecomplaint" method="post" class="form1"> <ul> <li> <label>Status <span style="color:red;">*</span></label> <span class="select"> <select name="status" id="status" required="required" > <option value="">Select Status</option> <option value="push back">Push Back</option> <option value="closed">Closed</option> </select> </span> </li> <li> <label>Remark <span style="color:red;">*</span></label> <textarea class="form-control" name="remark" cols="80" rows="10" placeholder="Enter Remarks" maxlength="4000" required="required"></textarea><small>Remarks upto 4000 characters.</small> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="remarks" id="remarks" value="Submit"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <!-- Modal --> <div class="modal fade" id="view-user-detail" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"><?php echo $userDetails['fullName'];?>'s profile</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="updateticket" id="updateticket" method="post"> <table class="table3"> <tr height="50"> <td><b>Reg Date:</b></td> <td><?php echo htmlentities($userDetails['regDate']); ?></td> </tr> <tr height="50"> <td><b>User Email:</b></td> <td><?php echo htmlentities($userDetails['userEmail']); ?></td> </tr> <tr height="50"> <td><b>User Contact no:</b></td> <td><?php echo htmlentities($userDetails['contactNo']); ?></td> </tr> <tr height="50"> <td><b>Programme Name:</b></td> <td><?php echo htmlentities($userDetails['programme_name']); ?></td> </tr> <tr height="50"> <td><b>Academic Year:</b></td> <td><?php echo htmlentities($userDetails['academic_year']); ?></td> </tr> <tr height="50"> <td><b>Registration/Enrollment Number:</b></td> <td><?php echo htmlentities($userDetails['enrollment_no']); ?></td> </tr> <tr height="50"> <td><b>Address:</b></td> <td><?php echo htmlentities($userDetails['address']); ?></td> </tr> <tr height="50"> <td><b>Pincode:</b></td> <td><?php echo htmlentities($userDetails['pincode']); ?></td> </tr> <tr height="50"> <td><b>Last Updation:</b></td> <td><?php echo htmlentities($userDetails['updationDate']); ?></td> </tr> <tr height="50"> <td><b>Status:</b></td> <td><?php if($userDetails['status']==1) { echo "Active"; } else{ echo "Block"; } ?></td> </tr> <!--<tr> <td colspan="2"> <input name="Submit2" type="submit" class="txtbox4" value="Close this window " onClick="return f2();" style="cursor: pointer;" /></td> </tr>--> </table> </form> </div> </div> </div> </div> <!--/Modal--> <!-- Modal --> <div class="modal fade" id="send-reminder" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Send Reminder Mail</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form name="sendReminderMail" id="sendReminderMail" method="post" class="form1"> <ul> <li> <label>Email ID <span style="color:red;">*</span></label> <input type="text" id="emailId" name="emailId" class="form-control" value="<?php echo htmlentities($complaintlevelemail);?>" readonly /> </li> <li> <input type="hidden" id="complaintNumber" name="complaintNumber" value="<?php echo htmlentities($complaintDetails['complaintNumber']);?>" /> <input type="submit" class="btn button5" name="sendReminder" id="sendReminder" value="Send"> </li> </ul> </form> </div> </div> </div> </div> <!-- /Modal --> <script src="<?= base_url('assets/js/jquery.js') ?>"></script> <!-- Bootstrap Core JavaScript --> <script src="<?= base_url('assets/js/bootstrap.min.js') ?>"></script> <!-- /Modal --> <script> var textlimit = 4000; $('textarea').keyup(function() { var tlength = $(this).val().length; $(this).val($(this).val().substring(0, textlimit)); var tlength = $(this).val().length; remain = textlimit - parseInt(tlength); $('#remain').text(remain); }); function viewdetails(k) { if(k>0){ $("#collapse"+k).toggleClass("active"); } } </script> <script src="<?=base_url('assets/js/popper.js'); ?>"></script> <script src="<?=base_url('assets/js/main.js'); ?>"></script>