2 $monLibrary= dirname(__FILE__) .
"/../library";
3 require_once(
"$monLibrary/cu_top.i");
4 require_once(
"$monLibrary/ck_hticket.i");
7 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
10 header(
"Location: /hcuadm/hcu_noperm.prg");
14 $dms_ok=array(
'cu'=>
'string');
21 $AfterHoursAry = Array();
26 WHERE user_name = '" . prep_save($chome, 12) .
"' 27 ORDER by user_name, priority ";
28 $contact_rs = db_query($sql, $dbh);
32 while ($contact_row = db_fetch_array($contact_rs, $row_idx)) {
33 $AfterHoursAry[] = Array(
"Priority"=>trim($contact_row[
'priority']),
34 "Name"=>trim($contact_row[
'name']),
35 "Phone"=>trim($contact_row[
'phone']),
36 "Comments"=>trim($contact_row[
'comments']));
44 <title>After Hours Contacts</title>
46 <LINK REL=stylesheet HREF=
"/monitor/css/monitor.css" TYPE=
"text/css">
47 <table width=
"100%" border=0 cellspacing=0 cellpadding=2>
50 <span style=
"font-weight:bold">Priority</span>
53 <span style=
"font-weight:bold">Name</span>
55 <td
class=
"dtl" nowrap>
56 <span style=
"font-weight:bold">Phone</span>
59 <span style=
"font-weight:bold">Comments</span>
66 foreach ($AfterHoursAry as $key=>$ContactInfo) {
68 $disp_priority = dms_disphtml($ContactInfo[
'Priority']);
69 $disp_name = dms_disphtml($ContactInfo[
'Name']);
70 $disp_phone = dms_disphtml($ContactInfo[
'Phone']);
71 $disp_comments = dms_disphtml($ContactInfo[
'Comments']);
72 $class_tr = (isset($class_tr) && $class_tr ==
"odd" ?
"even" :
"odd");
74 <tr
class=
'$class_tr'>
75 <td
class=
"dtl $class_tr">$disp_priority</td>
76 <td
class=
"dtl $class_tr">$disp_name</td>
77 <td
class=
"dtl $class_tr">$disp_phone</td>
78 <td
class=
"dtl $class_tr">$disp_comments</td>
86 print
"</table></body></html>";
89 print
"There are no entries for after hours support.";