*/ require("test_admin.php"); require_once("class_db.php"); require_once("class_history.php"); $users = new history(); $title = _HISTORY_TITLE; ?> */ //include("session.php"); require_once("class_functions.php"); //require_once("class_db.php"); require_once("class_history.php"); //include($_SESSION['config']['lang'].'.php'); $db = new dbquery(); $db -> connect(); $db->query("SELECT * FROM ".$_SESSION['tablename']['users']." WHERE ENABLED = 'Y' AND STATUS <> 'DEL' ORDER BY LASTNAME"); $histo = new history(); if($_GET['user'] <> '') { $_SESSION['history']['current_user'] = $_GET['user']; } if($_GET[''] <> '') { } $user_list = array(); while($users = $db->fetch_object()) { array_push($user_list, array("ID" => $users->USER_ID, "FIRSTNAME" => $users->FIRSTNAME, "LASTNAME" => $users->LASTNAME)); } if(!$_REQUEST['start'] || $_REQUEST['start'] =='') { if($_POST['user'] <> '') { $_SESSION['history']['current_user'] = $_POST['user']; } else { $_SESSION['history']['current_user']= ''; } if($_POST['action'] <> '') { $_SESSION['history']['current_action'] = $_POST['action']; } else { $_SESSION['history']['current_action']= ''; } if($_POST['from'] <> '') { if( preg_match("/^[0-3][0-9]-[0-1][0-9]-[1-2][0-9][0-9][0-9]$/",$_POST['from'] )==false ) { $_SESSION['error'] .= _WRONG_DATE_FORMAT.' : '.$_GET['enr_to']; } else { $_SESSION['history']['current_from'] = $_POST['from']; } } else { $_SESSION['history']['current_from']= ''; } if($_POST['to'] <> '') { if( preg_match("/^[0-3][0-9]-[0-1][0-9]-[1-2][0-9][0-9][0-9]$/",$_POST['from'] )==false ) { $_SESSION['error'] .= _WRONG_DATE_FORMAT.' : '.$_GET['enr_to']; } else { $_SESSION['history']['current_to'] = $_POST['to']; } } else { $_SESSION['history']['current_to']= ''; } } ?> <?php echo $_SESSION['config']['applicationname']; ?> '.$title.''; ?>
'') { echo "value='".$_SESSION['history']['current_from']."'";} ?> /> <?php echo _CALENDAR;?> '') { echo "value='".$_SESSION['history']['current_to']."'";} ?> onchange="this.form.submit();" /> <?php echo _CALENDAR;?>
listhistory(); ?>