?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Settings/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Settings/role_header.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.form.js"></script> <script type="text/javascript"> $(window).load( function() { loadrolelist(); }); function loadrolelist() { document.getElementById('addmenu').style.display="block"; document.getElementById('backmenu').style.display="none"; $('#Main-content').html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#Main-content').load("<?php echo site_url('settings/ListRoles/'); ?>", function(data) { //alert(data); }); } function show_add_new_role(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { document.getElementById('addmenu').style.display="none"; document.getElementById('backmenu').style.display="block"; $('#Main-content').load("<?php echo site_url('settings/show_add_role_form/'); ?>"); } }); } function Insert_Role() { if(validateform('txtrolename')) { $('#InsertRoleForm').ajaxForm(function(data) { alert(data); loadrolelist(); }); } else { return false; } } function Update_Role() { /* FUNCTION TO SUBMIT THE USER DETAILS FORM USING AJAX FORM SUBMIT */ $('#UpdateRoleForm').ajaxForm(function(data) { alert(data); if(data=="Updated Sucessfully") { loadrolelist(); } }); } function DeleteRole(role_id) { $('#Main-content').load("<?php echo site_url('settings/delete_role_controler/'); ?>" +"/" + role_id , function(data){ // alert(data); }); } function EditRole(rwd,role_id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { document.getElementById('addmenu').style.display="none"; document.getElementById('backmenu').style.display="block"; $('#Main-content').load("<?php echo site_url('settings/GetSingleRoleControler/'); ?>" +"/" + role_id); } }); } function ViewRole(rwd,role_id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { document.getElementById('addmenu').style.display="none"; document.getElementById('backmenu').style.display="block"; $('#Main-content').load("<?php echo site_url('settings/ViewRoleControler/'); ?>" +"/" + role_id); } }); } function SearchRole() { var SeatchText=document.getElementById('searchrole').value; document.getElementById('addmenu').style.display="block"; document.getElementById('backmenu').style.display="none"; $('#Main-content').html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#Main-content').load("<?php echo site_url('settings/SearchRoles/'); ?>/" + SeatchText, function(data) { //alert(data); }); } function checkexistence(table,field,value) { $("#userchecdiv").load("<?= site_url('settings/checkexistence/') ?>/" +table+'/'+field+'/'+value,function(data){ if(data==1) { $("select#txtrolename").val(""); $("#txtrolename").css('border','solid 1px red'); $("#txtrolename").focus(); $("#userchecdiv").fadeIn(900,0); $("#userchecdiv").html("<div style=\"border:1px solid #BE7832; width:170px;height:20px;\" ><font color=\"#AA6B2C\" >Duplicate Entry Recorded</font></div>"); $("#userchecdiv").fadeOut(2000,0); } }); } </script>