function putUILog($id, $info, $file, $tag1, $tag2, $tag3) { $uiLog = new UILog(); $uiLog->id = $id; $uiLog->info = $info; $uiLog->file = $file; $uiLog->tag1 = $tag1; $uiLog->tag2 = $tag2; $uiLog->tag3 = $tag3; $uiLog->writeUILog(); }
//"sScrollY": "200px", //"iScrollLoadGap": 20 } ); } ); </script> <?php $id = $_REQUEST['id']; $log = array(); //$csvdata = apc_fetch('csvdata'); /* echo "<pre>"; print_r($csvdata); echo "</pre>"; */ $uiLog = new UILog(); $log = $uiLog->getLogsByID($id); echo "<b>ID:</b> " . $id; ?> <body> <table cellpadding="0" cellspacing="0" border="0" class="display" id="table_id"> <thead> <tr> <th>Date Time</th> <th>Info</th> <th>URI</th> <th>User</th> <th>Lab</th> <th>Version</th> <th>Tag1</th> <th>Tag2</th>
<?php include "../includes/db_lib.php"; include "globals.php"; $option = $_REQUEST['op']; if ($option == 0) { apc_clear_cache('user'); echo "Cache Cleared"; } else { apc_clear_cache('user'); $uiLog = new UILog(); $csvdat = $uiLog->readUILog('2.2'); apc_add('csvdata', $csvdat); $ids = array(); foreach ($csvdat as $csv) { array_push($ids, $csv[1]); } $counts = array_count_values($ids); $u_ids = array_unique($ids); apc_add('idlist', $u_ids); $classes = array(); $classes["reports"] = array("reports", "reports_onetesthistory", "reports_test_count_grouped", "reports_testhistory", "reports_user_stats_all", "reports_user_stats_individual"); $classes["registration"] = array("new_patient", "new_specimen", "patient_add", "patient_profile"); $classes["results"] = array("specimen_add", "specimen_info"); $classes["search"] = array("search", "find_patient", "search_p", "doctor_register"); $classes["inventory"] = array("add_new_stock", "edit_lot", "edit_stock", "inv_new_reagent", "inv_new_stock", "stock_lots", "stock_use", "use_stock", "view_stock", "view_stocks"); $classes["catalog"] = array("catalog", "test_type_add", "test_type_edit", "test_type_new", "test_type_update"); $classes["config"] = array("lab_config_add", "lab_config_home", "lab_config_new"); $classes["export"] = array("export_excel", "export_word"); $classes["misc"] = array(""); apc_add('classes', $classes);