diff --git a/www/vicidial/AST_CLOSER_service_level.php b/www/vicidial/AST_CLOSER_service_level.php index f249462d..4626cef0 100644 --- a/www/vicidial/AST_CLOSER_service_level.php +++ b/www/vicidial/AST_CLOSER_service_level.php @@ -13,6 +13,7 @@ # 90508-0644 - Changed to PHP long tags # 90801-0923 - Added in-group name to pulldown # 100214-1421 - Sort menu alphabetically +# 100216-0042 - Added popup date selector # require("dbconnect.php"); @@ -100,6 +101,10 @@ while ($i < $groups_to_print) \n"; +echo "\n"; + echo "\n"; echo "Inbound Service Level Report\n"; @@ -109,9 +114,37 @@ require("admin_header.php"); echo "
"; -echo "
\n"; -echo "\n"; -echo " to \n"; +echo "\n"; +echo ""; + +?> + +"; + +?> + +\n"; $o=0; while ($groups_to_print > $o) diff --git a/www/vicidial/AST_CLOSERstats.php b/www/vicidial/AST_CLOSERstats.php index eb2ff840..a4650fc2 100644 --- a/www/vicidial/AST_CLOSERstats.php +++ b/www/vicidial/AST_CLOSERstats.php @@ -26,6 +26,7 @@ # 91214-0955 - Added INITIAL QUEUE POSITION BREAKDOWN # 100206-1454 - Fixed TMR(service level) calculation # 100214-1421 - Sort menu alphabetically +# 100216-0042 - Added popup date selector # require("dbconnect.php"); @@ -61,12 +62,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysql_num_rows($rslt); -$i=0; -while ($i < $qm_conf_ct) +if ($qm_conf_ct > 0) { $row=mysql_fetch_row($rslt); $non_latin = $row[0]; - $i++; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -91,7 +90,7 @@ $row=mysql_fetch_row($rslt); $auth=$row[0]; - if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth)) +if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth)) { Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\""); Header("HTTP/1.0 401 Unauthorized"); @@ -111,9 +110,9 @@ $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $groups_to_print = mysql_num_rows($rslt); $i=0; - $LISTgroups[$i]='---NONE---'; - $i++; - $groups_to_print++; +$LISTgroups[$i]='---NONE---'; +$i++; +$groups_to_print++; while ($i < $groups_to_print) { $row=mysql_fetch_row($rslt); @@ -171,6 +170,10 @@ while ($i < $statcats_to_print) \n"; +echo "\n"; + echo "\n"; echo "Inbound Stats\n"; @@ -189,12 +192,40 @@ if ($DB > 0) echo "
\n"; } -echo "\n"; +echo "\n"; echo "
\n"; echo "\n"; echo "Date Range:
\n"; -echo "\n"; -echo " to \n"; +echo ""; + +?> + +"; + +?> + +
\n"; echo "Inbound Groups: \n"; echo "\n"; diff --git a/www/vicidial/AST_CLOSERsummary_hourly.php b/www/vicidial/AST_CLOSERsummary_hourly.php index 485e1865..2c5f60dc 100644 --- a/www/vicidial/AST_CLOSERsummary_hourly.php +++ b/www/vicidial/AST_CLOSERsummary_hourly.php @@ -8,6 +8,7 @@ # 90801-0910 - First build # 90809-0216 - Added Exclude Outbound Drop Group option # 100214-1421 - Sort menu alphabetically +# 100216-0042 - Added popup date selector # require("dbconnect.php"); @@ -181,6 +182,10 @@ while ($i < $times_to_print) \n"; +echo "\n"; + echo "\n"; echo "Inbound Summary Hourly Report\n"; @@ -201,7 +206,7 @@ if ($bareformat < 1) echo "
\n"; } - echo "\n"; + echo "\n"; echo "
\n"; echo "\n"; echo "\n"; @@ -209,8 +214,36 @@ if ($bareformat < 1) echo "\n"; echo "\n"; echo "Date Range:
\n"; - echo "\n"; - echo " to \n"; + echo ""; + + ?> + + "; + + ?> + +
  \n"; echo "\n"; echo "Inbound Groups:
\n"; diff --git a/www/vicidial/AST_DIDstats.php b/www/vicidial/AST_DIDstats.php index ca4e8c6b..b111c10a 100644 --- a/www/vicidial/AST_DIDstats.php +++ b/www/vicidial/AST_DIDstats.php @@ -8,6 +8,7 @@ # 90601-1443 - First build # 100116-0620 - Bug fixes # 100214-1421 - Sort menu alphabetically +# 100216-0042 - Added popup date selector # require("dbconnect.php"); @@ -121,6 +122,10 @@ else \n"; +echo "\n"; + echo "\n"; echo "Inbound DIDs Report\n"; @@ -139,10 +144,38 @@ if ($DB > 0) echo "
"; -echo "\n"; +echo "\n"; echo "
\n"; -echo "\n"; -echo "
to
\n"; +echo ""; + +?> + + to
"; + +?> + +
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "Date Range:
\n"; - echo "\n"; - echo " to \n"; + echo ""; + + ?> + + "; + + ?> + +
Campaigns:
"; echo "
"; -echo "\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo ""; + +?> + + to
"; + +?> + +
Campaigns:
"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo ""; + +?> + + to
"; + +?> + +
Campaigns:
"; echo "
"; -echo "\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo ""; + +?> + + to
"; + +?> + +
Campaigns:
"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo ""; + +?> + + to
"; + +?> + +
Campaigns:
"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo ""; + +?> + + to
"; + +?> + +
Campaigns:
"; echo ""; echo ""; echo "
\n"; echo "Date Range:
\n"; echo ""; + + ?> + + to
\n"; - echo "\n"; + echo ""; + + ?> + +
\n"; echo "Campaigns:
\n"; diff --git a/www/vicidial/fcstats.php b/www/vicidial/fcstats.php index 2ca3c310..7bcc2ca8 100644 --- a/www/vicidial/fcstats.php +++ b/www/vicidial/fcstats.php @@ -13,6 +13,7 @@ # 90310-2132 - Added admin header # 90508-0644 - Changed to PHP long tags # 100214-1421 - Sort menu alphabetically +# 100216-0042 - Added popup date selector # require("dbconnect.php"); @@ -82,6 +83,9 @@ while ($i < $groups_to_print) --> + + + \n"; echo "In-Group Fronter-Closer Stats Report\n"; @@ -92,8 +96,22 @@ echo "In-Group Fronter-Closer Stats Report
"; -echo "\n"; -echo "\n"; +echo "\n"; +echo ""; + +?> + +\n"; $o=0; while ($groups_to_print > $o) diff --git a/www/vicidial/images/cal.gif b/www/vicidial/images/cal.gif new file mode 100644 index 00000000..8526cf5d Binary files /dev/null and b/www/vicidial/images/cal.gif differ diff --git a/www/vicidial/images/help.gif b/www/vicidial/images/help.gif new file mode 100644 index 00000000..5575d7c8 Binary files /dev/null and b/www/vicidial/images/help.gif differ diff --git a/www/vicidial/images/next_mon.gif b/www/vicidial/images/next_mon.gif new file mode 100644 index 00000000..14c622f9 Binary files /dev/null and b/www/vicidial/images/next_mon.gif differ diff --git a/www/vicidial/images/next_year.gif b/www/vicidial/images/next_year.gif new file mode 100644 index 00000000..b66f2888 Binary files /dev/null and b/www/vicidial/images/next_year.gif differ diff --git a/www/vicidial/images/no_cal.gif b/www/vicidial/images/no_cal.gif new file mode 100644 index 00000000..adc58e2a Binary files /dev/null and b/www/vicidial/images/no_cal.gif differ diff --git a/www/vicidial/images/pixel.gif b/www/vicidial/images/pixel.gif new file mode 100644 index 00000000..46a2cf08 Binary files /dev/null and b/www/vicidial/images/pixel.gif differ diff --git a/www/vicidial/images/prev_mon.gif b/www/vicidial/images/prev_mon.gif new file mode 100644 index 00000000..12ce7ff5 Binary files /dev/null and b/www/vicidial/images/prev_mon.gif differ diff --git a/www/vicidial/images/prev_year.gif b/www/vicidial/images/prev_year.gif new file mode 100644 index 00000000..c726b0e4 Binary files /dev/null and b/www/vicidial/images/prev_year.gif differ diff --git a/www/vicidial/images/shade_bl.png b/www/vicidial/images/shade_bl.png new file mode 100644 index 00000000..29bd5543 Binary files /dev/null and b/www/vicidial/images/shade_bl.png differ diff --git a/www/vicidial/images/shade_bm.png b/www/vicidial/images/shade_bm.png new file mode 100644 index 00000000..5c4e0af9 Binary files /dev/null and b/www/vicidial/images/shade_bm.png differ diff --git a/www/vicidial/images/shade_br.png b/www/vicidial/images/shade_br.png new file mode 100644 index 00000000..ce8a2fad Binary files /dev/null and b/www/vicidial/images/shade_br.png differ diff --git a/www/vicidial/images/shade_mr.png b/www/vicidial/images/shade_mr.png new file mode 100644 index 00000000..4594bc4e Binary files /dev/null and b/www/vicidial/images/shade_mr.png differ diff --git a/www/vicidial/images/shade_tr.png b/www/vicidial/images/shade_tr.png new file mode 100644 index 00000000..2e598c95 Binary files /dev/null and b/www/vicidial/images/shade_tr.png differ diff --git a/www/vicidial/timeclock_report.php b/www/vicidial/timeclock_report.php index 87ef139e..f5c8bfdf 100644 --- a/www/vicidial/timeclock_report.php +++ b/www/vicidial/timeclock_report.php @@ -11,6 +11,7 @@ # 90310-2059 - Added admin header # 90508-0644 - Changed to PHP long tags # 100214-1421 - Sort menu alphabetically +# 100216-0042 - Added popup date selector # require("dbconnect.php"); @@ -134,6 +135,9 @@ while ($i < $user_groups_to_print) --> + + + User Timeclock Report @@ -189,14 +193,42 @@ if ($DB > 0) } echo "<CENTER>\n"; -echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n"; +echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n"; echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">"; echo "<TABLE BORDER=0 CELLSPACING=6><TR><TD ALIGN=LEFT VALIGN=TOP>\n"; echo "<font class=\"select_bold\"><B>Date Range:</B></font><BR><CENTER>\n"; echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">"; + +?> +<script language="JavaScript"> +var o_cal = new tcal ({ + // form name + 'formname': 'vicidial_report', + // input name + 'controlname': 'query_date' +}); +o_cal.a_tpl.yearscroll = false; +// o_cal.a_tpl.weekstart = 1; // Monday week start +</script> +<?php + echo "<BR>to<BR>\n"; -echo "<INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n"; +echo "<INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">"; + +?> +<script language="JavaScript"> +var o_cal = new tcal ({ + // form name + 'formname': 'vicidial_report', + // input name + 'controlname': 'end_date' +}); +o_cal.a_tpl.yearscroll = false; +// o_cal.a_tpl.weekstart = 1; // Monday week start +</script> +<?php + echo "</TD><TD ALIGN=LEFT VALIGN=TOP>\n"; echo "<font class=\"select_bold\"><B>User Groups:</B></font><BR><CENTER>\n"; echo "<SELECT SIZE=5 NAME=user_group[] multiple>\n"; diff --git a/www/vicidial/user_stats.php b/www/vicidial/user_stats.php index 1254ed40..d51b8e29 100644 --- a/www/vicidial/user_stats.php +++ b/www/vicidial/user_stats.php @@ -22,6 +22,7 @@ # 91130-2037 - Added user closer log manager flag display # 100126-0847 - Added DID log display options # 100203-1008 - Added agent activity log section +# 100216-0042 - Added popup date selector # header ("Content-type: text/html; charset=utf-8"); @@ -137,6 +138,10 @@ else ?> <html> <head> + +<script language="JavaScript" src="calendar_db.js"></script> +<link rel="stylesheet" href="calendar.css"> + <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <?php @@ -193,12 +198,40 @@ else echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><B>   \n"; -echo "<form action=$PHP_SELF method=POST>\n"; +echo "<form action=$PHP_SELF method=POST name=vicidial_report id=vicidial_report>\n"; echo "<input type=hidden name=DB value=\"$DB\">\n"; echo "<input type=hidden name=did_id value=\"$did_id\">\n"; echo "<input type=hidden name=did value=\"$did\">\n"; -echo "<input type=text name=begin_date value=\"$begin_date\" size=10 maxsize=10> to \n"; -echo "<input type=text name=end_date value=\"$end_date\" size=10 maxsize=10>  \n"; +echo "<input type=text name=begin_date value=\"$begin_date\" size=10 maxsize=10>"; + +?> +<script language="JavaScript"> +var o_cal = new tcal ({ + // form name + 'formname': 'vicidial_report', + // input name + 'controlname': 'begin_date' +}); +o_cal.a_tpl.yearscroll = false; +// o_cal.a_tpl.weekstart = 1; // Monday week start +</script> +<?php + +echo " to <input type=text name=end_date value=\"$end_date\" size=10 maxsize=10>"; + +?> +<script language="JavaScript"> +var o_cal = new tcal ({ + // form name + 'formname': 'vicidial_report', + // input name + 'controlname': 'end_date' +}); +o_cal.a_tpl.yearscroll = false; +// o_cal.a_tpl.weekstart = 1; // Monday week start +</script> +<?php + if (strlen($user)>1) {echo "<input type=hidden name=user value=\"$user\">\n";} else