ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.119.128.244 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/grp.nicn.gov.ng/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('pageTitle'); ?> Control Variable Set-up <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="box box-default"> <div id="editModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Edit Particular</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editpartModal" name="editpartModal" role="form" method="POST" action="<?php echo e(url('/control-variable/update')); ?>"> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-2 control-label">Description</label> </div> <div class="col-sm-9"> <textarea rows="4" cols="50" id="e-desc" name="description"></textarea> </div> <div class="col-sm-12"> <label class="col-sm-2 control-label">Address</label> </div> <div class="col-sm-9"> <textarea rows="4" cols="50" id="e-addr" name="address"></textarea> </div> <div class="col-sm-9"> <input type="text" id="e-anumber" class="form-control" name="account_number"> </div> <div class="col-sm-3 "> <select class="form-control" id="e-status" name="partStatus"> <option value='0'>Inactive</option> <option value='1'>Active</option> </select> </div> <div class="col-sm-3" style="font-size: 12px; padding:5px;"> <select class="form-control" name="rank" id="e-rank"> <?php for($i = 1; $i <= 50; $i++): ?> <option value="<?php echo e($i); ?>"><?php echo e($i); ?></option> <?php endfor; ?> </select> </div> <input type="hidden" id="partid" name="partid" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <div class="box-body box-profile"> <div class="box-header with-border hidden-print"> <h3 class="box-title"><?php echo $__env->yieldContent('pageTitle'); ?> <span id='processing'></span></h3> </div> <div class="box-body"> <div class="row"> <div class="col-md-12"> <!--1st col--> <?php echo $__env->make('Share.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <form class="form-horizontal" role="form" method="post" id="mainform" name="mainform"> <?php echo e(csrf_field()); ?> <?php $dbtstatus = 'disabled'; if ($particulars == 1) { $dbtstatus = ''; } ?> <!-- /.row --> <div class="form-group"> <div class="col-md-3"> <label class="control-label">Earning/Deduction</label> <select class="form-control" id="particulars" name="particulars" onchange="TextBoxState();"> <option value="">-select Particular</option> <?php $__currentLoopData = $getep; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->ID); ?>" <?php echo e($particulars == $list->ID ? 'selected' : ''); ?>><?php echo e($list->Particular); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-md-3"> <label class="control-label">Description</label> <input type="text" class="form-control" name="description" placeholder="" value='<?php echo e($description); ?>'> </div> <div class="col-md-3"> <label class="control-label">Address</label> <input type="text" class="form-control" name="address" placeholder="" value='<?php echo e($address); ?>'> </div> <div class="col-md-3"> <label class="control-label">Rank</label> <select class="form-control" id="rank" name="rank" onchange="TextBoxState();"> <option value="">-select Rank--</option> <?php for($i = 1; $i <= 50; $i++): ?> <option value="<?php echo e($i); ?>"><?php echo e($i); ?></option> <?php endfor; ?> </select> </div> <div class="col-md-1 control-label "> <br> <button type="submit" class="btn btn-success" name="add"> <i class="fa fa-btn fa-floppy-o"></i> Add </button> </div> </div> <!-- /.col --> </div> <!-- /.row --> </form> <div class="table-responsive col-md-12" style="font-size: 12px; padding:10px;"> <table id="mytable" class="table table-bordered table-striped table-highlight"> <thead> <tr bgcolor="#c7c7c7"> <th>S/N</th> <th>Earning/Deduction</th> <th>Description</th> <th>Address</th> <th>Ranks</th> <th>Status</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <?php $i=1;?> <?php $__currentLoopData = $getedj; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if ($list->status == 0) { $astatus = 'Inactive'; } else { $astatus = 'active'; } ?> <tr> <td><?php echo e($i++); ?></td> <td><?php echo e($list->Particular); ?></td> <td><?php echo e($list->description); ?></td> <td><?php echo e($list->address); ?></td> <td><?php echo e($list->rank); ?></td> <td><?php echo e($astatus); ?></td> <td> <a style="color: blue; cursor: pointer;" onclick="editfunc('<?php echo e($list->ID); ?>','<?php echo e($list->description); ?>','<?php echo e($list->address); ?>', '<?php echo e($list->status); ?>', '<?php echo e($list->rank); ?>')" class="editCV">Edit</a> </td> <td> <a style="color: rgb(231, 82, 12); cursor: pointer;" data-toggle="modal" data-target="#deleteModal<?php echo e($list->ID); ?>" class="editCV">Delete</a> </td> </tr> <div class="modal fade" id="deleteModal<?php echo e($list->ID); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="form"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="exampleModalLongTitle">Delete</h4> <form method="post" action="/control-variable/delete/<?php echo e($list->ID); ?>" > <?php echo e(csrf_field()); ?> </div> <input type="text" hidden name="id" id="" value="<?php echo e($list->ID); ?>"> <div class="modal-body"> <h3> Do you want to delete <?php echo e($list->description); ?> ?</h3> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="submit" name="delete" class="btn btn-danger">Delete</button> </form> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </table> </div> <hr /> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> .modal-dialog { width: 13cm } .modal-header { background-color: #006600; color: #FFF; } #partStatus { width: 2.5cm } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"></script> <script> function editfunc(id, desc, addr, status, rank) { document.getElementById('partid').value = id document.getElementById('e-desc').value = desc document.getElementById('e-addr').value = addr // document.getElementById('e-bank').value = bank // document.getElementById('e-aname').value = accname // document.getElementById('e-anumber').value = accnum document.getElementById('e-status').value = status document.getElementById('e-rank').value = rank $("#editModal").modal('show'); } function deletefunc(id, desc, addr, status, rank) { // document.getElementById('id').value = id // document.getElementById('desc').value = desc // document.getElementById('status').value = status // document.getElementById('e-rank').value = rank $("#deleteModal").modal('show'); } function TextBoxState() { var p = document.getElementById("particulars").value; if (p == "2") { document.getElementById('accounthead').setAttribute('disabled', 'disabled'); document.getElementById('allocationtype').setAttribute('disabled', 'disabled'); document.getElementById('economiccode').setAttribute('disabled', 'disabled'); } if (p == "1") { document.getElementById('accounthead').removeAttribute('disabled'); document.getElementById('allocationtype').removeAttribute('disabled'); document.getElementById('economiccode').removeAttribute('disabled'); } return; } function Reload() { document.forms["mainform"].submit(); return; } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nicngo5/grp.nicn.gov.ng/resources/views/controlVariable/controlVariable.blade.php ENDPATH**/ ?>