168 lines
4.9 KiB
PHP
168 lines
4.9 KiB
PHP
<?php include('techsyn_header.php'); ?>
|
|
<!-- Main Content Container for side bar and body-->
|
|
<div class="main-container ace-save-state" id="main-container">
|
|
<script type="text/javascript">
|
|
try{ace.settings.loadState('main-container')}catch(e){}
|
|
</script>
|
|
<?php include('techsyn_sidebar.php'); ?>
|
|
|
|
<!--breadcrumb-->
|
|
<div class="main-content">
|
|
<div class="main-content-inner">
|
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
|
|
<li class="#">Data Setup</li><li class="#">Masters</li><li class="active">Audit Log</li>
|
|
</ul>
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
|
|
<div class="page-content">
|
|
<div id="flexigridDiv" class="table-responsive">
|
|
|
|
<form name="f1" method="post" action=""id="flex_form_role">
|
|
<div id="flex1" style="width:100%">
|
|
</div>
|
|
<input type="hidden" name="role_id" id="flex_role_id"/>
|
|
</form>
|
|
<form name="export_form" method="post" id="export_form" action="">
|
|
<input type="hidden" name="pdf_action" id="pdf_action" value="audit_log_pdf.php"/>
|
|
<input type="hidden" name="excel_action" id="excel_action" value="audit_log_excel.php"/>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- /.page-content -->
|
|
</div>
|
|
</div>
|
|
</div><!-- /.main-content -->
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
var w=screen.width*.90;
|
|
|
|
var h =0;
|
|
h =(window.innerHeight-($("#navbar").height()+$(".breadcrumbs").height()))*.75;
|
|
$("#flex1").flexigrid({
|
|
url: 'audit_log_script.php',
|
|
dataType: 'json',
|
|
colModel: [
|
|
{display: 'Sr', name: 'count', width: w*.04, sortable: false, align: 'left'},
|
|
{display: 'Timestamp', name: 'created_time', width: w*.12, sortable: true, align: 'left'},
|
|
{display: 'Feature Name', name: 'feature_name', width: w*.2, sortable: true, align: 'left'},
|
|
{display: 'Feature Action', name: 'feature_action', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'File Name', name: 'file_name', width: w*.2, sortable: true, align: 'left'},
|
|
{display: 'Modified By', name: 'modified_by', width: w*.1, sortable: false, align: 'left'},
|
|
{display: 'Request Param', name: 'request_param', width: w*.8, sortable: true, align: 'left'},
|
|
|
|
],
|
|
buttons: [
|
|
{name: 'PDF', bclass: 'print', onpress : pdf},
|
|
{separator: true},
|
|
{name: 'Excel', bclass: 'print_excel', onpress : excel},
|
|
{separator: true}
|
|
],
|
|
searchitems: [
|
|
|
|
{display: 'Date(DD/MM/YYYY)', name: 'created_time', isdefault: true},
|
|
{display: 'Feature Name', name: 'feature_name'},
|
|
{display: 'Feature Action', name: 'feature_action'},
|
|
{display: 'Modified By', name: 'modified_by'}
|
|
],
|
|
sortname: "created_time",
|
|
sortorder: "desc",
|
|
usepager: true, //pagination
|
|
|
|
useRp: true,
|
|
rp: 25, //records per page
|
|
showTableToggleBtn: false, //toggle button for the whole table
|
|
resizable: true,
|
|
//width: w,
|
|
height: h,
|
|
singleSelect: true
|
|
});
|
|
});
|
|
|
|
|
|
function pdf(){
|
|
window.open('ajax_pdf.php','Audit Log');
|
|
}
|
|
function excel(){
|
|
window.open('ajax_excel.php','Audit Log');
|
|
}
|
|
function add(){
|
|
$(".save_button").show();
|
|
$("#medicine_usage_cat_id").val("");
|
|
$("#medicine_usage_cat_name").val("");
|
|
$("#cat_desc").val("");
|
|
$("#code").val("");
|
|
$('#modal-add-medicine_usage_cat').modal("show");
|
|
}
|
|
|
|
|
|
function save_medicine_category(){
|
|
$.ajax({
|
|
url : 'save_medicine_category.php',
|
|
type : "POST",
|
|
data : $("#medicine_usage_cat_form").serialize(),
|
|
success : function(data) {
|
|
BootstrapDialog.alert('Medicine Saved Successfully.');
|
|
$("#flex1").flexReload();
|
|
return;
|
|
},
|
|
error : function(data) {
|
|
BootstrapDialog.alert('Error Saving In med cat ');
|
|
return;
|
|
}
|
|
});
|
|
$('.close').click();
|
|
}
|
|
|
|
|
|
|
|
// function delete_medicine_category(medicine_usage_cat_id){
|
|
// BootstrapDialog.confirm('Are you sure to delete the medicine?', function(result){
|
|
// if(result){
|
|
// $.ajax({
|
|
// url : 'delete_medicine_category.php',
|
|
// data:{medicine_usage_cat_id:medicine_usage_cat_id},
|
|
// type : 'POST',
|
|
// dataType:'json',
|
|
// success : function(data) {
|
|
|
|
// if(data=='SUCCESS') {
|
|
|
|
// BootstrapDialog.alert('Deleted Medicine Details Successfully');
|
|
// $("#flex1").flexReload();
|
|
// return;
|
|
// }
|
|
|
|
|
|
|
|
|
|
// },
|
|
// error : function(data) {
|
|
// BootstrapDialog.alert('Error Medicine Details Successfully');
|
|
// return;
|
|
// }
|
|
// });
|
|
// }
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
</script>
|
|
|
|
<?php include('common_list.php'); ?>
|
|
<?php include('techsyn_footer.php'); ?>
|
|
<?php include('common_ace.php'); ?>
|
|
|
|
|
|
|