25 lines
633 B
PHP
25 lines
633 B
PHP
|
|
$(document).on('click', '.admin-access', function() {
|
|
var spanID = $(this);
|
|
var rnum = $(this).attr('rnum');
|
|
var Val = $(this).html();
|
|
var newVal = 'Y';
|
|
|
|
if (Val == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
alert(newVal+' - '+rnum);
|
|
|
|
var data = "table_name=admin_user_access"+
|
|
"&sequence_flag=N"+
|
|
"&record_num="+rnum+
|
|
"&access="+newVal;
|
|
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$(spanID).html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|