, Joe Johnson LICENSE: AGPLv2 # # Admin utility for applying hours off for agents, to be used in reports # # 240415-1730 - First build # 240801-1130 - Code updates for PHP8 compatibility # $startMS = microtime(); $ip = getenv("REMOTE_ADDR"); $browser = getenv("HTTP_USER_AGENT"); require("dbconnect_mysqli.php"); require("functions.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; $PHP_SELF = preg_replace('/\.php.*/i','.php',$PHP_SELF); $QUERY_STRING = getenv("QUERY_STRING"); $startMS = microtime(); if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} if (isset($_GET["action"])) {$action=$_GET["action"];} elseif (isset($_POST["action"])) {$action=$_POST["action"];} if (isset($_GET["add_user"])) {$add_user=$_GET["add_user"];} elseif (isset($_POST["add_user"])) {$add_user=$_POST["add_user"];} if (isset($_GET["submit_time_off"])) {$submit_time_off=$_GET["submit_time_off"];} elseif (isset($_POST["submit_time_off"])) {$submit_time_off=$_POST["submit_time_off"];} if (isset($_GET["month_to_display"])) {$month_to_display=$_GET["month_to_display"];} elseif (isset($_POST["month_to_display"])) {$month_to_display=$_POST["month_to_display"];} if (isset($_GET["rpt_month"])) {$rpt_month=$_GET["rpt_month"];} elseif (isset($_POST["rpt_month"])) {$rpt_month=$_POST["rpt_month"];} if (isset($_GET["update_month"])) {$update_month=$_GET["update_month"];} elseif (isset($_POST["update_month"])) {$update_month=$_POST["update_month"];} if (isset($_GET["new_agent"])) {$new_agent=$_GET["new_agent"];} elseif (isset($_POST["new_agent"])) {$new_agent=$_POST["new_agent"];} if (isset($_GET["new_timeoff_type"])) {$new_timeoff_type=$_GET["new_timeoff_type"];} elseif (isset($_POST["new_timeoff_type"])) {$new_timeoff_type=$_POST["new_timeoff_type"];} if (isset($_GET["new_hours"])) {$new_hours=$_GET["new_hours"];} elseif (isset($_POST["new_hours"])) {$new_hours=$_POST["new_hours"];} if (isset($_GET["new_month"])) {$new_month=$_GET["new_month"];} elseif (isset($_POST["new_month"])) {$new_month=$_POST["new_month"];} if (isset($_GET["to_types"])) {$to_types=$_GET["to_types"];} elseif (isset($_POST["to_types"])) {$to_types=$_POST["to_types"];} if (isset($_GET["update_user"])) {$update_user=$_GET["update_user"];} elseif (isset($_POST["update_user"])) {$update_user=$_POST["update_user"];} if (isset($_GET["download_month"])) {$download_month=$_GET["download_month"];} elseif (isset($_POST["download_month"])) {$download_month=$_POST["download_month"];} if (file_exists('options.php')) { require('options.php'); } ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### $stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,user_territories_active,webroot_writable,allow_emails,level_8_disable_add,enable_languages,language_method,log_recording_access,admin_screen_colors,mute_recordings,sounds_web_server,sounds_web_directory,admin_web_directory,allow_web_debug FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); #if ($DB) {$MAIN.="$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); if ($qm_conf_ct > 0) { $row=mysqli_fetch_row($rslt); $non_latin = $row[0]; $SSoutbound_autodial_active = $row[1]; $slave_db_server = $row[2]; $reports_use_slave_db = $row[3]; $user_territories_active = $row[4]; $webroot_writable = $row[5]; $allow_emails = $row[6]; $SSlevel_8_disable_add = $row[7]; $SSenable_languages = $row[8]; $SSlanguage_method = $row[9]; $log_recording_access = $row[10]; $SSadmin_screen_colors = $row[11]; $SSmute_recordings = $row[12]; $sounds_web_server = $row[13]; $sounds_web_directory = $row[14]; $admin_web_dir = $row[15]; $SSallow_web_debug = $row[16]; } if (!preg_match('/^http/', $sounds_web_server)) {$http_prefix="http://";} else {$http_prefix="";} if ($SSallow_web_debug < 1) {$DB=0;} ##### END SETTINGS LOOKUP ##### ########################################### $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); if (preg_match('/^\-/', $new_hours)) {$hoff=-1;} else {$hoff=1;} $new_hours = preg_replace('/[^0-9\.]/', '', $new_hours); $month_to_display=preg_replace("/[^-0-9]/",'',$month_to_display); $download_month=preg_replace("/[^-0-9]/",'',$download_month); $update_month=preg_replace("/[^-0-9]/",'',$update_month); $new_month=preg_replace("/[^-0-9]/",'',$new_month); $rpt_month=preg_replace("/[^-0-9]/",'',$rpt_month); if(!is_array($to_types)) {$to_types=array();} if ($non_latin < 1) { $PHP_AUTH_USER = preg_replace('/[^-_0-9a-zA-Z]/', '', $PHP_AUTH_USER); $PHP_AUTH_PW = preg_replace('/[^-_0-9a-zA-Z]/', '', $PHP_AUTH_PW); $action = preg_replace('/[^-_0-9a-zA-Z]/', '', $action); $add_user=preg_replace("/[^-_0-9a-zA-Z]/",'',$add_user); $update_user=preg_replace("/[^-_0-9a-zA-Z]/",'',$update_user); $user=preg_replace("/[^-_0-9a-zA-Z]/",'',$user); $new_agent=preg_replace("/[^-_0-9a-zA-Z]/",'',$new_agent); $submit_time_off=preg_replace("/[^-_0-9a-zA-Z]/",'',$submit_time_off); $new_timeoff_type=preg_replace("/[^_0-9a-zA-Z]/",'',$new_timeoff_type); $to_types=preg_replace("/[^_\,\.\-0-9a-zA-Z]/",'',$to_types); } else { $PHP_AUTH_USER = preg_replace('/[^\-_0-9\p{L}]/u', '', $PHP_AUTH_USER); $PHP_AUTH_PW = preg_replace('/[^\-_0-9\p{L}]/u', '', $PHP_AUTH_PW); $action = preg_replace('/[^\-_0-9\p{L}]/u', '', $action); $add_user = preg_replace('/[^-_0-9\p{L}]/u','',$add_user); $update_user = preg_replace('/[^-_0-9\p{L}]/u','',$update_user); $user = preg_replace('/[^-_0-9\p{L}]/u','',$user); $new_agent = preg_replace('/[^-_0-9\p{L}]/u','',$new_agent); $submit_time_off = preg_replace('/[^-_0-9\p{L}]/u','',$submit_time_off); $new_timeoff_type=preg_replace("/[^_0-9\p{L}]/u",'',$new_timeoff_type); $to_types=preg_replace("/[^_\,\.\-0-9\p{L}]/u",'',$to_types); } $user_auth=0; $auth=0; $reports_auth=0; $qc_auth=0; $auth_message = user_authorization($PHP_AUTH_USER,$PHP_AUTH_PW,'QC',1,0); if ($auth_message == 'GOOD') {$user_auth=1;} if ($user_auth > 0) { $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 7 and api_only_user != '1';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $auth=$row[0]; $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 6 and view_reports='1' and api_only_user != '1';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $reports_auth=$row[0]; $stmt="SELECT count(*) user_level,modify_users from vicidial_users where user='$PHP_AUTH_USER' and modify_users='1';"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $users_auth=$row[0]; $stmt="select user_level, user_group from vicidial_users where user='$PHP_AUTH_USER'"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $user_level=$row[0]; $user_group=$row[1]; $reports_only_user=0; $qc_only_user=0; if ( ($reports_auth > 0) and ($auth < 1) ) { $ADD=999999; $reports_only_user=1; } if ( ($reports_auth < 1) and ($auth < 1) ) { if ( ($ADD != '881') and ($ADD != '100000000000000') ) { $ADD=100000000000000; } $qc_only_user=1; } if ( ($reports_auth < 1) and ($auth < 1) ) { $VDdisplayMESSAGE = _QXZ("You do not have permission to be here"); Header ("Content-type: text/html; charset=utf-8"); echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n"; exit; } if ($users_auth < 1) { $VDdisplayMESSAGE = _QXZ("You do not have permissions to modify users"); Header ("Content-type: text/html; charset=utf-8"); echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n"; exit; } if ( (strlen($VUuser_admin_redirect_url) > 5) and ($SSuser_admin_redirect > 0) ) { Header('Location: '.$VUuser_admin_redirect_url); echo""._QXZ("Admin Redirect")."\n"; echo"\n"; echo"\n"; echo"\n"; echo"\n"; echo""._QXZ("click here to continue").". . .\n"; exit; } } else { $VDdisplayMESSAGE = _QXZ("Login incorrect, please try again"); if ($auth_message == 'LOCK') { $VDdisplayMESSAGE = _QXZ("Too many login attempts, try again in 15 minutes"); Header ("Content-type: text/html; charset=utf-8"); echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n"; exit; } if ($auth_message == 'IPBLOCK') { $VDdisplayMESSAGE = _QXZ("Your IP Address is not allowed") . ": $ip"; Header ("Content-type: text/html; charset=utf-8"); echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n"; exit; } Header("WWW-Authenticate: Basic realm=\"CONTACT-CENTER-ADMIN\""); Header("HTTP/1.0 401 Unauthorized"); echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$PHP_AUTH_PW|$auth_message|\n"; exit; } $container_stmt="select container_entry from vicidial_settings_containers where container_id='VICIDIAL_TIMEOFF_SETTINGS'"; $container_rslt=mysql_to_mysqli($container_stmt, $link); $timeoff_types=array(); $time_column_SQL=""; $user_filter_SQL=""; if (mysqli_num_rows($container_rslt)==0) {echo "ERROR: no VICIDIAL_TIMEOFF_SETTINGS settings container defined"; exit;} while ($container_row=mysqli_fetch_row($container_rslt)) { $to_settings=explode("\n", $container_row[0]); for ($i=0; $i/', $to_settings[$i])) { $setting=explode("=>", $to_settings[$i]); if (preg_match('/^display_all_agents/', $setting[0])) { $display_all_agents=$setting[1]; } if (preg_match('/^timeoff_types/', $setting[0])) { $setting[1]=preg_replace("/[^_0-9a-zA-Z,]/", "", $setting[1]); $timeoff_types=explode(",", $setting[1]); } if (preg_match('/^user_filter_SQL/', $setting[0])) { $user_filter_SQL=preg_replace("/[^\s\'\(\)_0-9a-zA-Z,]/", "", $setting[1]); } if (preg_match('/^sort_SQL/', $setting[0])) { $sort_SQL=preg_replace("/[^\s\'\(\)_0-9a-zA-Z,]/", "", $setting[1]); } if (preg_match('/^custom_download/', $setting[0])) { $custom_download=preg_replace("/[^0-9]/", "", $setting[1]); } } } } if (!$sort_SQL) {$sort_SQL="full_name asc, user asc";} $vug_stmt="select admin_viewable_groups from vicidial_user_groups where user_group='$user_group'"; $vug_rslt=mysql_to_mysqli($vug_stmt, $link); while($vug_row=mysqli_fetch_row($vug_rslt)) { $admin_viewable_groups=trim($vug_row[0]); if(!preg_match('/\-\-\-ALL\-\-\-/', $admin_viewable_groups)) { $admin_viewable_groups_andSQL="and user_group in ('".preg_replace('/\s/', "', '", $admin_viewable_groups)."')"; $admin_viewable_groups_whereSQL="where user_group in ('".preg_replace('/\s/', "', '", $admin_viewable_groups)."')"; } else { $admin_viewable_groups_andSQL=""; $admin_viewable_groups_whereSQL=""; } } $all_users_stmt="select user, user_location, full_name from vicidial_users"; $all_users_rslt=mysql_to_mysqli($all_users_stmt, $link); $master_users=array(); while($au_row=mysqli_fetch_array($all_users_rslt)) { $master_users["$au_row[user]"]="$au_row[full_name]"; } for ($t=0; $t0 && $update_month) { $span_update_str=""; for ($i=0; $i0) { $span_id="span_".$update_user."_".$data[0]; $span_update_str.="\n$span_id|".($data[1]*$hoff); } ### LOG INSERTION Admin Log Table ### $SQL_log = "$upd_stmt|"; $SQL_log = preg_replace('/;/', '', $SQL_log); $SQL_log = addslashes($SQL_log); $stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='USERS', event_type='MODIFY', record_id='$update_user', event_code='USER TIME OFF LOGGED', event_sql=\"$SQL_log\", event_notes='USER: $new_agent TIME OFF UPDATED';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); } echo $PHP_AUTH_USER." - ".$master_users["$PHP_AUTH_USER"]."\n".date("Y-m-d H:i:s").$span_update_str; exit; } if ($action=="display_past_month" && $month_to_display) { echo "\n"; echo "\n"; echo "\t\n"; echo "\t\n"; echo "\n"; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; if (count($timeoff_types)<1) { echo "\n"; echo ""; echo "\n"; } else { echo "\n"; for ($t=0; $t".$timeoff_types[$t].""; } echo "\n"; } $i=0; $btn_class="blue_btn"; $agent_dropdown=""; $stmt="select user, user_location, full_name from vicidial_users where active='Y' $admin_viewable_groups_andSQL $user_filter_SQL order by $sort_SQL"; $rslt=mysql_to_mysqli($stmt, $link); while($row=mysqli_fetch_array($rslt)) { $agent_dropdown.="\n"; $location=$row["user_location"]; $user_stmt="select DATE_FORMAT(concat(timeoff_month, '-01'), '%b-%y') as display_month, max(modify_date) as last_modify_date".$time_column_SQL." From vicidial_timeoff_log where timeoff_month='$month_to_display' AND user='$row[user]'"; $user_rslt=mysql_to_mysqli($user_stmt, $link); $user_row=mysqli_fetch_array($user_rslt); if ($user_row["display_month"]) { $i++; if ($i%2==0) { $bgcolor="FFFFFF"; } else { $bgcolor="E6E6E6"; } $lmb_stmt="select last_modified_by from vicidial_timeoff_log where user='$row[user]' and modify_date='$user_row[last_modify_date]' limit 1"; $lmb_rslt=mysql_to_mysqli($lmb_stmt, $link); $lmb_row=mysqli_fetch_row($lmb_rslt); echo "\n"; echo "\n"; echo "\n"; echo "\n"; for ($t=0; $t".($user_row["$timeoff_types[$t]"]+0)."\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; } else if ($display_all_agents>0) { $i++; if ($i%2==0) { $bgcolor="FFFFFF"; } else { $bgcolor="E6E6E6"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; for ($t=0; $t0\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; } } if (!$display_all_agents || $display_all_agents==0) { echo "\n"; echo "\n"; echo "\n"; } if ($custom_download && file_exists("agent_timeoff_interface_download.inc")) { include("agent_timeoff_interface_download.inc"); } echo "
CURRENT MONTH DISPLAYED: "; echo ""; echo "[DOWNLOAD]
AgentLocationMonthPlanned HoursSaved/Updated DateUpdated By 
 
$row[user] - $row[full_name]$location$user_row[display_month]$user_row[last_modify_date]".$lmb_row[0]." - ".$master_users["$lmb_row[0]"]."
$row[user] - $row[full_name]$location$default_month_text----
\n"; echo "
\n"; echo "\n"; echo "\t\n"; echo "\t\t\n"; echo "\n"; echo ""; echo ""; echo "\n"; #echo "\n"; echo "\n"; echo "\t\t\n"; echo "\t
ADD TIMEOFF DATA:Select an agent to add:
Select timeoff type:"; for ($t=0; $t$timeoff_types[$t]
"; # onClick=\"javascript:document.getElementById('submit_timeoff_type').value=this.value\" } echo "
Hours to add:PTO hours:
\n"; echo "
"; echo "
\n"; exit; } if ($action=="download_csv" && $download_month) { $report_name="VICIDIAL TIME OFF"; ##### BEGIN log visit to the vicidial_report_log table ##### $LOGip = getenv("REMOTE_ADDR"); $LOGbrowser = getenv("HTTP_USER_AGENT"); $LOGscript_name = getenv("SCRIPT_NAME"); $LOGserver_name = getenv("SERVER_NAME"); $LOGserver_port = getenv("SERVER_PORT"); $LOGrequest_uri = getenv("REQUEST_URI"); $LOGhttp_referer = getenv("HTTP_REFERER"); $LOGbrowser=preg_replace("/\'|\"|\\\\/","",$LOGbrowser); $LOGrequest_uri=preg_replace("/\'|\"|\\\\/","",$LOGrequest_uri); $LOGhttp_referer=preg_replace("/\'|\"|\\\\/","",$LOGhttp_referer); if (preg_match("/443/i",$LOGserver_port)) {$HTTPprotocol = 'https://';} else {$HTTPprotocol = 'http://';} if (($LOGserver_port == '80') or ($LOGserver_port == '443') ) {$LOGserver_port='';} else {$LOGserver_port = ":$LOGserver_port";} $LOGfull_url = "$HTTPprotocol$LOGserver_name$LOGserver_port$LOGrequest_uri"; $LOGhostname = php_uname('n'); if (strlen($LOGhostname)<1) {$LOGhostname='X';} if (strlen($LOGserver_name)<1) {$LOGserver_name='X';} $stmt="SELECT webserver_id FROM vicidial_webservers where webserver='$LOGserver_name' and hostname='$LOGhostname' LIMIT 1;"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} $webserver_id_ct = mysqli_num_rows($rslt); if ($webserver_id_ct > 0) { $row=mysqli_fetch_row($rslt); $webserver_id = $row[0]; } else { ##### insert webserver entry $stmt="INSERT INTO vicidial_webservers (webserver,hostname) values('$LOGserver_name','$LOGhostname');"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); $affected_rows = mysqli_affected_rows($link); $webserver_id = mysqli_insert_id($link); } $stmt="INSERT INTO vicidial_report_log set event_date=NOW(), user='$PHP_AUTH_USER', ip_address='$LOGip', report_name='$report_name', browser='$LOGbrowser', referer='$LOGhttp_referer', notes='$LOGserver_name:$LOGserver_port $LOGscript_name |Month downloaded: $download_month', url='$LOGfull_url', webserver='$webserver_id';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $report_log_id = mysqli_insert_id($link); ##### END log visit to the vicidial_report_log table ##### $CSV_output="\"Agent\",\"Location\",\"Month\""; for ($t=0; $t0) { $CSV_output.="\"$row[user] - $row[full_name]\","; $CSV_output.="\"$location\","; $CSV_output.="\"$download_month\""; for ($t=0; $t\n"; $HEADER.="\n"; $HEADER.="\n"; $HEADER.="\n"; $HEADER.="\n"; $HEADER.="\n"; $HEADER.="\n"; $HEADER.="Agent time-off interface\n"; header ("Content-type: text/html; charset=utf-8"); echo $HEADER; ?> "; echo "\n"; echo "\n"; echo "\t
\n"; # echo $holiday_stmt."
"; echo "Agent time-off interface

"; echo "
 
\n"; # SHOW CURRENT MONTH SUPERVISOR ENTRIES # $stmt="select * from vicidial_timeoff_log where timeoff_month>=DATE_FORMAT(now(), '%Y-%m-01') and timeoff_month\n"; echo "\n"; echo "\n"; echo "\t\n"; echo "\t\n"; echo "\n"; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; if (count($timeoff_types)<1) { echo "\n"; echo ""; echo "\n"; } else { echo "\n"; for ($t=0; $t".$timeoff_types[$t].""; } echo "\n"; } $agent_dropdown=""; $stmt="select user, user_location, full_name from vicidial_users where active='Y' $admin_viewable_groups_andSQL $user_filter_SQL order by $sort_SQL"; $rslt=mysql_to_mysqli($stmt, $link); while($row=mysqli_fetch_array($rslt)) { $agent_dropdown.="\n"; if ($i%2==0) { $bgcolor="FFFFFF"; $btn_class="blue_btn"; } else { $bgcolor="E6E6E6"; $btn_class="blue_btn"; } $location=$row["user_location"]; $user_stmt="select DATE_FORMAT(concat(timeoff_month, '-01'), '%b-%y') as display_month, max(modify_date) as last_modify_date".$time_column_SQL." From vicidial_timeoff_log where timeoff_month=DATE_FORMAT($month_to_display, '%Y-%m') AND user='$row[user]'"; $user_rslt=mysql_to_mysqli($user_stmt, $link); $user_row=mysqli_fetch_array($user_rslt); if ($user_row["display_month"]) { $lmb_stmt="select last_modified_by from vicidial_timeoff_log where user='$row[user]' and modify_date='$user_row[last_modify_date]' limit 1"; $lmb_rslt=mysql_to_mysqli($lmb_stmt, $link); $lmb_row=mysqli_fetch_row($lmb_rslt); echo "\n"; echo "\n"; echo "\n"; echo "\n"; for ($t=0; $t".($user_row["$timeoff_types[$t]"]+0)."\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; } else if ($display_all_agents>0) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; for ($t=0; $t0\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; } $i++; } if (!$display_all_agents || $display_all_agents==0) { echo "\n"; echo "\n"; echo "\n"; } if ($custom_download && file_exists("agent_timeoff_interface_download.inc")) { include("agent_timeoff_interface_download.inc"); } echo "
CURRENT MONTH DISPLAYED: "; echo ""; echo "[DOWNLOAD]
AgentLocationMonthPlanned HoursSaved/Updated DateUpdated By 
 
$row[user] - $row[full_name]$location$user_row[display_month]$user_row[last_modify_date]".$lmb_row[0]." - ".$master_users["$lmb_row[0]"]."
$row[user] - $row[full_name]$location".date("M-y")."----
\n"; echo "
\n"; echo "\n"; echo "\t\n"; echo "\t\t\n"; echo "\n"; echo ""; echo ""; echo "\n"; #echo "\n"; echo "\n"; echo "\t\t\n"; echo "\t
ADD TIMEOFF DATA:Select an agent to add:
Select timeoff type:"; for ($t=0; $t$timeoff_types[$t]
"; # onClick=\"javascript:document.getElementById('submit_timeoff_type').value=this.value\" } echo "
Hours to add:PTO hours:
\n"; echo "
"; echo "
\n"; echo "\n"; # SHOW PAST MONTH LOG ENTRIES /* echo "


\n"; echo "\n"; echo "\n\t\n"; echo "\t\n"; echo "\n\t\n"; echo "
PAST MONTH TIME OFF:Select a past month to display:
\n"; echo "
\n"; echo "\n"; */ ?>

\n\n"; echo "\n\n\n


\n"._QXZ("script runtime").": $RUNtime "._QXZ("seconds")."|$db_source
"; # print_r($location_array); echo "
"; echo ""; echo ""; # header ("Content-type: text/html; charset=utf-8"); # echo $HEADER; # require("admin_header.php"); # echo $MAIN; ?>