2 $monLibrary= dirname(__FILE__) .
"/../library";
3 require_once(
"$monLibrary/cu_top.i");
4 require_once(
"$monLibrary/ck_hticket.i");
5 require_once(
"$monLibrary/cu_pass.i");
7 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
10 header(
"Location: /hcuadm/hcu_noperm.prg");
14 $dms_ok=array(
'act'=>
'string',
'addRows'=>
'string',
'btnAddRows'=>
'string',
15 'col00'=>
'string',
'col01'=>
'string',
'col02'=>
'string',
'col03'=>
'string',
16 'col04'=>
'string',
'col05'=>
'string',
'col06'=>
'string',
'col07'=>
'string',
17 'col08'=>
'string',
'col09'=>
'string',
'col10'=>
'string',
'col11'=>
'string',
18 'col12'=>
'string',
'col13'=>
'string',
'col14'=>
'string',
19 'Continue_Step1'=>
'string',
'cu_show_opt'=>
'string',
20 'direction_to_move'=>
'string',
'dtl_active'=>
'string',
'dtl_assigned'=>
'string',
21 'dtl_complete'=>
'string',
'dtl_contact'=>
'string',
'dtl_cu_name'=>
'string',
22 'dtl_cu_user'=>
'string',
'dtl_entry'=>
'string',
'dtl_issue'=>
'string',
23 'dtl_notes'=>
'string',
'dtl_status'=>
'string',
'item_complete_date_'=>
'prefix_s',
24 'item_del_'=>
'prefix_s',
'item_desc_'=>
'prefix_s',
'item_id_'=>
'prefix_s',
25 'item_title_'=>
'prefix_s',
'mnt_notes'=>
'string',
'mnt_sel_assgn'=>
'string',
26 'mnt_sel_cu'=>
'string',
'mnt_sel_status'=>
'string',
'mnt_track_id'=>
'string',
27 'mnt_txt_active'=>
'string',
'mnt_txt_complete'=>
'string',
28 'mnt_txt_contact'=>
'string',
'mnt_txt_contact_email'=>
'string',
29 'mnt_txt_contact_phone'=>
'string',
'mnt_txt_entry'=>
'string',
30 'mnt_txt_iss'=>
'string',
'mnt_txt_last_activity'=>
'string',
31 'mnt_txt_next_contact'=>
'string',
'reset_fields'=>
'string',
32 'row_to_move'=>
'string',
'save_mnt'=>
'string',
'sel_assgn'=>
'string',
33 'sel_comp_act'=>
'string',
'sel_comp_comp'=>
'string',
'sel_comp_ent'=>
'string',
34 'sel_comp_last'=>
'string',
'sel_comp_nex'=>
'string',
'sel_cu'=>
'string',
35 'sel_fld0'=>
'prefix_s',
'sel_iss'=>
'string',
'sel_ord0'=>
'prefix_s',
36 'sel_status'=>
'string',
'show_step'=>
'string',
'step1_sel_cu'=>
'string',
37 'step1_sel_issue'=>
'string',
'total_rows'=>
'string',
'track_id'=>
'string',
38 'trk_num'=>
'string',
'txt_active'=>
'string',
'txt_complete'=>
'string',
39 'txt_enter'=>
'string',
'txt_iss'=>
'string',
'txt_last_activity'=>
'string',
40 'txt_next_contact'=>
'string',
'Update_Info'=>
'string',
'view_cu'=>
'string',
41 'view_rpt'=>
'string');
46 $imgdoc=
"$infourl/hcuadm/cuimage.prg?act=4";
47 $bpdoc=
"$infourl/hcuadm/cusso.prg?act=4";
48 $ssodoc=
"$infourl/hcuadm/cusso.prg?act=5";
49 $rtsearch=
"http://checkcomposer.com/frmBankSearch.aspx";
51 $toolbar .=
" <a href='$imgdoc' target='_imgdoc'>Image Vendors</a> | ";
52 $toolbar .=
" <a href='$ssodoc' target='_ssodoc'>SSO Vendors</a> | ";
53 $toolbar .=
" <a href='$bpdoc' target='_bpdoc'>BillPay Vendors</a> | ";
54 $toolbar .=
" <a href='$rtsearch' target='_rtsearch'>R&T Lookup</a> | ";
57 $self = $_SERVER[
'PHP_SELF'];
63 $status_list[] =
"Issue Complete";
64 $status_list[] =
"Waiting on DMS Staff";
65 $status_list[] =
"Waiting on Client";
66 $status_list[] =
"Waiting on Vendor";
72 $emp_list[] =
"Cerise";
73 $emp_list[] =
"Tyler";
74 $emp_list[] =
"Jayme";
77 $emp_list[] =
"Manny";
80 $emp_list[] =
"Elaine";
81 $emp_list[] =
"Samuel";
88 cu_header(
"CU Issues Report");
96 $myparams =
"fld_trk_num=&fld_txt_iss=&fld_sel_cu=&fld_sel_status=&fld_sel_assgn=&fld_sel_comp_ent=&fld_txt_enter=&fld_sel_comp_comp=&fld_txt_complete=&fld_sel_comp_act=&fld_sel_comp_last=&fld_sel_comp_next=&fld_txt_active=&fld_txt_last_activity=&fld_txt_next_contact=&fld_sel_fld01=&fld_sel_fld02=&fld_sel_fld03=&fld_sel_fld04=&fld_col00=Y&fld_col01=Y&fld_col02=Y&fld_col03=Y&fld_col04=Y&fld_col05=Y&fld_col06=Y&fld_col07=Y&fld_col08=Y&fld_col09=Y&fld_col10=Y&fld_col11=Y&fld_col12=N&fld_col13=Y&fld_col14=N";
97 parse_str ($myparams);
102 $act = intval($_REQUEST[
'act']);
113 $sql =
"SELECT cutrack.track_id, 119 cutrack.contact_email, 120 cutrack.contact_phone, 121 to_char(cutrack.entry_date, 'MM/DD/YYYY') as entry_date, 122 to_char(cutrack.active_date, 'MM/DD/YYYY') as active_date, 123 to_char(cutrack.last_activity_date, 'MM/DD/YYYY') as last_activity_date, 124 to_char(cutrack.next_contact_date, 'MM/DD/YYYY') as next_contact_date, 125 to_char(cutrack.complete_date, 'MM/DD/YYYY') as complete_date, 129 JOIN cuinfo on cuinfo.user_name = cutrack.user_name ";
130 $sql .=
" WHERE complete_date is NULL ";
138 $rows_sql =
" SELECT count(cutrack.track_id) as row_count 140 JOIN cuinfo on cuinfo.user_name = cutrack.user_name 141 WHERE cutrack.track_id <> 0 ";
142 $rows_sql .=
" AND complete_date is NULL ";
144 $ob_desc = array (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
148 if (isset($_GET[
'sel_cu'])) {
149 $sql .=
" AND cutrack.user_name= '" . prep_save($sel_cu) .
"' ";
150 $rows_sql .=
" AND cutrack.user_name= '" . prep_save($sel_cu) .
"' ";
155 $ob_fldid = (intval($_GET[
'ob']) < 1 || intval($_GET[
'ob'] > 15) ? 2 : intval($_GET[
'ob']));
156 $order_sql =
" ORDER BY " . get_field(intval($ob_fldid));
158 if (intval($_GET[
'd']) == 1)
159 $order_sql .=
" desc ";
161 $ob_desc[$ob_fldid] =
"1";
165 $track_rs = db_query($sql, $dbh);
167 $rows_rs = db_query($rows_sql, $dbh);
168 list($rec_rows) = db_fetch_array($rows_rs, 0);
169 db_free_result($rows_rs);
178 <form action=
"<?php echo $self; ?>" method=
"get">
179 <input type=
"hidden" name=
"act" value=
"<?php echo $act; ?>">
180 <?php
if ($act == 4 && isset($_GET[
'sel_cu'])): ?>
181 <input type=
"hidden" name=
"sel_cu" value=
"<?php echo $_GET['sel_cu']; ?>">
184 <table cellpadding=
"3" cellspacing=
"0" border=
"0" width=
"99%" class=
"dmsbg"><tr><td>
185 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
187 <td
class=
"ahd" align=
"center" colspan=
"<?php echo $vis_col; ?>">
190 if ($act == 4 && isset($_GET[
'sel_cu'])) {
191 echo
" for " . $_GET[
'sel_cu'];
197 if (strlen($form_msg) > 0) {
198 $form_msg = trim($form_msg);
201 <td
class=
'msg' colspan=
'$vis_col' align=
'center'>
228 <td
class=
"hdr"> </td>
229 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=2&d=<?php echo $ob_desc[2]; ?>">Issue</a></td>
230 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=1&d=<?php echo $ob_desc[1]; ?>">CU Code</a></td>
231 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=3&d=<?php echo $ob_desc[3]; ?>">CU Name</a></td>
232 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=4&d=<?php echo $ob_desc[4]; ?>">Status</a></td>
233 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=5&d=<?php echo $ob_desc[5]; ?>">Assigned To</a></td>
234 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=6&d=<?php echo $ob_desc[6]; ?>">Entered On</a></td>
235 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=11&d=<?php echo $ob_desc[11]; ?>">Last Activity</a></td>
236 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=9&d=<?php echo $ob_desc[9]; ?>">CU Contact</a></td>
237 <td
class=
"hdr"><a href=
"<?php echo $self; ?>?act=<?php echo $act; ?>&ob=13&d=<?php echo $ob_desc[13]; ?>">Email</a></td>
240 <script language=
"javascript">
242 function view_detail(track_id) {
245 var url =
"$self?act=20&view=" + track_id;
246 var height = window.screen.availHeight - 50;
247 var width = window.screen.availWidth - 5;
248 newwin = window.open(url,
"DetailInfo",
"width=" + width +
", height=" + height +
", resizable=yes, scrollbars=yes, status=no, menubar=no, location=no, top=0, left=0");
258 <?php
if ($rec_rows == 0): ?>
260 <td
class=
"ahd" align=
"center" colspan=
"<?php echo $vis_col; ?>">
267 while($track_row = db_fetch_array($track_rs, $row_cnt++)):
268 $row_class = ($row_class ==
"odd" ?
"even" :
"odd"); ?>
270 <tr
class=
"<?php echo $row_class; ?>">
271 <td
class=
"td7" nowrap>
272 <a href=
"javascript:view_detail('<?php echo $track_row['track_id']; ?>')" onMouseOver=
"status='View Details for (<?php echo trim($track_row['user_name']); ?>)<?php echo trim($track_row['issue']); ?>'; return true;" onMouseOut=
"status='';" ><img src=
"/monitor/images/glass.gif" border=0></a>
274 <?php
if ($fld_col00 ==
"Y"): ?>
275 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'track_id']); ?></td>
277 <?php
if ($fld_col02 ==
"Y"): ?>
278 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'issue']); ?></td>
280 <?php
if ($fld_col01 ==
"Y"): ?>
281 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'user_name']); ?></td>
283 <?php
if ($fld_col03 ==
"Y"): ?>
284 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'name']); ?></td>
286 <?php
if ($fld_col04 ==
"Y"): ?>
287 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'status']); ?></td>
289 <?php
if ($fld_col05 ==
"Y"): ?>
290 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'assigned_to']); ?></td>
292 <?php
if ($fld_col06 ==
"Y"): ?>
293 <td
class=
"usul"> <?php echo $track_row[
'entry_date']; ?></td>
295 <?php
if ($fld_col07 ==
"Y"): ?>
296 <td
class=
"usul"> <?php echo $track_row[
'active_date']; ?></td>
298 <?php
if ($fld_col11 ==
"Y"): ?>
299 <td
class=
"usul"> <?php echo $track_row[
'last_activity_date']; ?></td>
301 <?php
if ($fld_col12 ==
"Y"): ?>
302 <td
class=
"usul"> <?php echo $track_row[
'next_contact_date']; ?></td>
304 <?php
if ($fld_col08 ==
"Y"): ?>
305 <td
class=
"usul"> <?php echo $track_row[
'complete_date']; ?></td>
307 <?php
if ($fld_col09 ==
"Y"): ?>
308 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'contact']); ?></td>
310 <?php
if ($fld_col13 ==
"Y"): ?>
311 <td
class=
"usul"> <a href=
"mailto:<?php echo dms_disphtml($track_row['contact_email']); ?>"><?php echo dms_disphtml($track_row[
'contact_email']); ?></a></td>
313 <?php
if ($fld_col14 ==
"Y"): ?>
314 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'contact_phone']); ?></td>
316 <?php
if ($fld_col10 ==
"Y"): ?>
317 <td
class=
"usul"> <?php echo dms_disphtml($track_row[
'notes']); ?></td>
323 <td
class=
"ahd" colspan=
"<?php echo $vis_col; ?>" >
324
325 <a href=
"/hcuadm/imp_menu.prg" target=
"_top">Return to Implementation</a>
326
340 $myparams =
"fld_track_id=&fld_mnt_txt_iss=&fld_mnt_sel_cu=&fld_mnt_sel_status=&fld_mnt_sel_assgn=&fld_mnt_sel_contact=&fld_mnt_txt_entry=&fld_mnt_txt_active=&fld_mnt_txt_last_activity=&fld_mnt_txt_next_contact&fld_mnt_txt_complete=&fld_mnt_notes=";
341 parse_str ($myparams);
342 if (isset($_GET[
'view'])) {
345 $sql =
"SELECT track_id, 353 to_char(entry_date, 'MM/DD/YYYY') as entry_date, 354 to_char(active_date, 'MM/DD/YYYY') as active_date, 355 to_char(last_activity_date, 'MM/DD/YYYY') as last_activity_date, 356 to_char(next_contact_date, 'MM/DD/YYYY') as next_contact_date, 357 to_char(complete_date, 'MM/DD/YYYY') as complete_date, 360 WHERE track_id = '" . intval($_GET[
'view']) .
"' ";
361 $view_rs = db_query($sql, $dbh);
362 $view_row = db_fetch_array($view_rs, 0);
363 db_free_result($view_rs);
365 $fld_mnt_track_id = $view_row[
'track_id'];
366 $fld_mnt_txt_iss = $view_row[
'issue'];
367 $fld_mnt_sel_cu = trim($view_row[
'user_name']);
368 $fld_mnt_sel_status = trim($view_row[
'status']);
369 $fld_mnt_sel_assgn = trim($view_row[
'assigned_to']);
370 $fld_mnt_txt_contact = $view_row[
'contact'];
371 $fld_mnt_txt_contact_email = $view_row[
'contact_email'];
372 $fld_mnt_txt_contact_phone = $view_row[
'contact_phone'];
373 $fld_mnt_txt_entry = $view_row[
'entry_date'];
374 $fld_mnt_txt_active = $view_row[
'active_date'];
375 $fld_mnt_txt_last_activity = $view_row[
'last_activity_date'];
376 $fld_mnt_txt_next_contact = $view_row[
'next_contact_date'];
377 $fld_mnt_txt_complete = $view_row[
'complete_date'];
378 $fld_mnt_notes = $view_row[
'notes'];
382 $fld_mnt_txt_entry = date(
"m/d/Y");
383 $fld_mnt_txt_active = date(
"m/d/Y");
390 <form action=
"<?php echo $self; ?>" method=
"post">
391 <?php
if (isset($_POST[
'view_cu']) || isset($_GET[
'view_cu'])):?>
392 <input type=
"hidden" name=
"view_cu" value=
"1">
394 <input type=
"hidden" name=
"act" value=
"12">
395 <input type=
"hidden" name=
"mnt_track_id" value=
"<?php echo $fld_mnt_track_id; ?>">
397 <table cellpadding=
"3" cellspacing=
"0" border=
"0" width=
"100%" class=
"dmsbg"><tr><td>
398 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
400 <td colspan=
"2" class=
"barb" align=
"center">CU Issue Tracking</td>
403 if (strlen($form_err) > 0) {
406 <td
class=
'err' colspan=
'4' align=
'center'>
407 Errors were found saving the information. Please review errors and
try again<br>
412 } elseif (strlen($form_msg) > 0) {
415 <td
class=
'msg' colspan=
'4' align=
'center'>
422 <?php
if (isset($_POST[
'Continue_Step1']) || isset($_POST[
'show_step'])): ?>
424 <td
class=
"hdr" align=
"left">
425 <input type=
"hidden" name=
"show_step" value=
"1">
426 <span
class=
"instr_2">Step 2.</span>
429 Complete the form and use the
'Save CU Issue' button.
434 <td
class=
"hdr" align=
"right" width=
"20%">
437 <td
class=
"dtl" width=
"80%">
439 if ($fld_mnt_track_id ==
"")
440 echo
"NEW TRACKING REQUEST";
442 echo $fld_mnt_track_id;
450 <td
class=
"hdr" align=
"right">
453 <td
class=
"dtl">
454 <?php
if ($cu_show_opt == 1): ?>
455 <select name=
"mnt_sel_cu" size=
"1">
456 <option value=
"">All Credit Unions</option>
458 $sql =
"SELECT user_name, name 460 ORDER BY user_name ";
461 $cu_rs = db_query($sql, $dbh);
463 while (list($cu_code, $cu_name) = db_fetch_array($cu_rs, $row_idx++)) {
464 $cu_code = dms_disphtml($cu_code);
465 $cu_name = dms_disphtml($cu_name);
466 print
"<option value=\"$cu_code\"" . ($fld_mnt_sel_cu == $cu_code ?
"SELECTED" :
"") .
">$cu_code: $cu_name</option>";
468 db_free_result($cu_rs);
472 <?php echo dms_disphtml(get_cuname($fld_mnt_sel_cu)); ?>
473 <input type=
"hidden" name=
"mnt_sel_cu" value=
"<?php echo dms_disphtml($fld_mnt_sel_cu); ?>">
475 <input type=
"hidden" name=
"cu_show_opt" value=
"<?php echo dms_disphtml($cu_show_opt); ?>">
479 <td
class=
"hdr" align=
"right">ISSUE:</td>
480 <td
class=
"dtl">
481 <input type=
"text" name=
"mnt_txt_iss" value=
"<?php echo dms_disphtml($fld_mnt_txt_iss); ?>" maxlength=
"90" size=
"50">
485 <td
class=
"hdr" align=
"right">
488 <td colspan=
"1" class=
"dtl">
489 <select name=
"mnt_sel_status" size=
"1">
490 <option value=
"">Show All</option>
492 foreach ($status_list as $value) {
493 print
"<option value=\"$value\"" . (trim($fld_mnt_sel_status) == trim($value) ?
"SELECTED" :
"") .
">$value</option>";
500 <td
class=
"hdr" align=
"right">
503 <td colspan=
"1" class=
"dtl">
504 <select name=
"mnt_sel_assgn" size=
"1">
505 <option value=
"">Any Assignee</option>
507 foreach ($emp_list as $value) {
508 print
"<option value=\"$value\"" . ($fld_mnt_sel_assgn == $value?
"SELECTED" :
"") .
">$value</option>";
515 <td
class=
"hdr" align=
"right">
518 <td colspan=
"1" class=
"dtl">
519 <input type=
"text" name=
"mnt_txt_contact" value=
"<?php echo dms_disphtml($fld_mnt_txt_contact); ?>" maxlength=
"80" size=
"50">
523 <td
class=
"hdr" align=
"right">
526 <td colspan=
"1" class=
"dtl">
527 <input type=
"text" name=
"mnt_txt_contact_email" value=
"<?php echo dms_disphtml($fld_mnt_txt_contact_email); ?>" maxlength=
"50" size=
"50">
531 <td
class=
"hdr" align=
"right">
534 <td colspan=
"1" class=
"dtl">
535 <input type=
"text" name=
"mnt_txt_contact_phone" value=
"<?php echo dms_disphtml($fld_mnt_txt_contact_phone); ?>" maxlength=
"20" size=
"20">
542 <td
class=
"hdr" align=
"right">
545 <td
class=
"dtl" align=
"left">
546 <input type=
"text" name=
"mnt_txt_entry" value=
"<?php echo dms_disphtml($fld_mnt_txt_entry); ?>" size=
"12" maxlength=
"10">
547 <a href=
"javascript:set_date('mnt_txt_entry')" style=
"{color: blue;}"><img src=
"/monitor/images/admin_tack.gif" alt=
"Set Date" border=0></a>
551 <td
class=
"hdr" align=
"right">
554 <td
class=
"dtl" align=
"left">
555 <input type=
"text" name=
"mnt_txt_active" value=
"<?php echo dms_disphtml($fld_mnt_txt_active); ?>" size=
"12" maxlength=
"10">
556 <a href=
"javascript:set_date('mnt_txt_active')" style=
"{color: blue;}"><img src=
"/monitor/images/admin_tack.gif" alt=
"Set Date" border=0></a>
560 <td
class=
"hdr" align=
"right">
563 <td
class=
"dtl" align=
"left">
564 <input type=
"text" name=
"mnt_txt_last_activity" value=
"<?php echo dms_disphtml($fld_mnt_txt_last_activity); ?>" size=
"12" maxlength=
"10">
565 <a href=
"javascript:set_date('mnt_txt_last_activity')" style=
"{color: blue;}"><img src=
"/monitor/images/admin_tack.gif" alt=
"Set Date" border=0></a>
569 <td
class=
"hdr" align=
"right">
572 <td
class=
"dtl" align=
"left">
573 <input type=
"text" name=
"mnt_txt_next_contact" value=
"<?php echo dms_disphtml($fld_mnt_txt_next_contact); ?>" size=
"12" maxlength=
"10">
574 <a href=
"javascript:set_date('mnt_txt_next_contact')" style=
"{color: blue;}"><img src=
"/monitor/images/admin_tack.gif" alt=
"Set Date" border=0></a>
578 <td
class=
"hdr" align=
"right">
581 <td
class=
"dtl" align=
"left">
582 <input type=
"text" name=
"mnt_txt_complete" value=
"<?php echo dms_disphtml($fld_mnt_txt_complete); ?>" size=
"12" maxlength=
"10">
583 <a href=
"javascript:set_date('mnt_txt_complete')" style=
"{color: blue;}"><img src=
"/monitor/images/admin_tack.gif" alt=
"Set Date" border=0></a>
587 <td
class=
"hdr" align=
"right" valign=
"top">
590 <td
class=
"dtl" align=
"left">
591 <textarea name=
"mnt_notes" rows=
"15" cols=
"50"><?php echo dms_disphtml($fld_mnt_notes); ?></textarea>
596 <a href=
"/hcuadm/imp_menu.prg" target=
"_top">Return to Implementation</a>
598 <a href=
"/hcuadm/cuissues_report.prg?act=4<?php if (isset($_GET['view_cu'])) echo "&sel_cu=
" . urlencode($fld_mnt_sel_cu); ?>">Open Issues</a>
600 <a href=
"/hcuadm/cuissues_report.prg">Report CU Issues</a>
607 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
609 <td colspan=3 nowrap align=
"center" class=
"dtl"><hr>
610 <?php echo $toolbar; ?><br>
614 <td colspan=3 nowrap align=
"center" class=
"bar">
615 Items Required
for Issue
619 <td align=
"center" class=
"hdr" width=
"5%">
622 <td align=
"left" class=
"hdr" width=
"30%">
625 <td align=left
class=
'hdr' width=
"50%">
633 if (isset($_POST[
'total_rows'])) {
634 $total_rows = $_POST[
'total_rows'];
642 for ($loop_idx = 1; $loop_idx <= $total_rows; $loop_idx++) {
644 $row_idx = $loop_idx + $row_up;
645 $field_idx = $loop_idx + $row_dwn;
650 if (($_POST[
'direction_to_move'] ==
"UP" &&
651 intval($_POST[
'row_to_move']) > $skip_rows) &&
652 intval($_POST[
'row_to_move']) == ($loop_idx + $skip_rows)) {
653 print_item_line ($row_idx, $_POST[
"item_id_" . ($row_idx + $skip_rows)], dms_disphtml(trim($_POST[
"item_title_" . ($row_idx + $skip_rows)])), dms_disphtml(trim($_POST[
"item_desc_" . ($row_idx + $skip_rows)])), $_POST[
"item_del_" . ($row_idx + $skip_rows)], $RGB, dms_disphtml(trim($_POST[
"item_complete_date_" . ($row_idx + $skip_rows)])));
655 $row_idx = $loop_idx + $row_up;
656 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
660 if (($_POST[
'direction_to_move'] ==
"DOWN" &&
661 intval($_POST[
'row_to_move']) > 0) &&
662 intval($_POST[
'row_to_move']) == $loop_idx &&
663 intval($_POST[
'row_to_move']) < $total_rows) {
665 $field_idx = $loop_idx + $row_dwn;
670 if ($_POST[
'direction_to_move'] ==
"" ||
671 ($_POST[
'direction_to_move'] ==
"UP" && intval($_POST[
'row_to_move']) <= 1) ||
672 ($_POST[
'direction_to_move'] ==
"UP" && intval($_POST[
'row_to_move']) != $loop_idx) ||
673 ($_POST[
'direction_to_move'] ==
"DOWN" && $loop_idx != (intval($_POST[
'row_to_move']) + $skip_rows))) {
674 print_item_line ($row_idx, $_POST[
"item_id_$field_idx"], dms_disphtml(trim($_POST[
"item_title_$field_idx"])), dms_disphtml(trim($_POST[
"item_desc_$field_idx"])), $_POST[
"item_del_$field_idx"], $RGB, dms_disphtml(trim($_POST[
"item_complete_date_$field_idx"])));
676 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
681 if (($_POST[
'direction_to_move'] ==
"DOWN" && intval($_POST[
'row_to_move']) > 0) && intval($_POST[
'row_to_move']) == ($loop_idx - $skip_rows)) {
683 print_item_line ($row_idx, $_POST[
"item_id_" . ($loop_idx - $skip_rows)], dms_disphtml(trim($_POST[
"item_title_" . ($loop_idx - $skip_rows)])) , dms_disphtml(trim($_POST[
"item_desc_" . ($loop_idx - $skip_rows)])), $_POST[
"item_del_" . ($loop_idx - $skip_rows)], $RGB, dms_disphtml(trim($_POST[
"item_complete_date_" . ($loop_idx - $skip_rows)])));
685 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
690 if (($_POST[
'direction_to_move'] ==
"UP" && intval($_POST[
'row_to_move']) == $loop_idx)) {
699 } elseif (isset($_POST[
'Continue_Step1'])) {
700 if (intval($_POST[
'step1_sel_issue']) > 0) {
706 WHERE issue_id = '" . intval($_POST[
'step1_sel_issue']) .
"' 707 ORDER BY view_order ";
708 $item_rs = db_query($sql, $dbh);
710 while ($item_row = db_fetch_array($item_rs, $item_rows++)) {
711 print_item_line ($item_rows, 0, dms_disphtml($item_row[
'title']), dms_disphtml($item_row[
'item_desc']),
"", $RGB,
"");
712 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
715 db_free_result($item_rs);
721 $sql =
"SELECT trackitem_id, 725 to_char(complete_date, 'MM/DD/YYYY') as complete_date 727 WHERE track_id = '$fld_mnt_track_id' 728 ORDER BY view_order ";
729 $det_rs = db_query($sql, $dbh);
731 while ($det_row = db_fetch_array($det_rs, $total_rows)) {
733 print_item_line ($total_rows, $det_row[
'trackitem_id'], dms_disphtml($det_row[
'title']) , dms_disphtml($det_row[
'item_desc']),
"", $RGB, $det_row[
'complete_date']);
734 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
738 if (isset($_POST[
'addRows']) && isset($_POST[
'btnAddRows'])) {
739 $addblankrows = $_POST[
'addRows'];
741 if ($addblankrows > 0) {
743 for ($loop_idx = 1; $loop_idx <= $addblankrows; $loop_idx++) {
745 print_item_line ($total_rows,
"",
"" ,
"",
"", $RGB,
"");
746 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
752 <td colspan=3 nowrap align=
"right" class=
"dtl">
757 <td
class=
"dtl"> </td>
758 <td nowrap align=
"left" class=
"dtl">
761 <td nowrap align=
"right" class=
"dtl" colspan=
"1">
773 if (isset($_GET[
'view'])) {
774 $track_id = intval($_GET[
'view']);
776 $track_id = intval($_POST[
'track_id']);
783 $sql =
"SELECT cuinfo.name, 788 to_char(entry_date, 'MM/DD/YYYY') as entry_date, 789 to_char(active_date, 'MM/DD/YYYY') as active_date, 790 to_char(complete_date, 'MM/DD/YYYY') as complete_date, 794 JOIN cuinfo on cuinfo.user_name = cutrack.user_name 795 WHERE track_id = '$track_id' ";
796 $track_rs = db_query($sql, $dbh);
797 $track_row = db_fetch_array($track_rs, 0);
798 db_free_result($track_rs);
800 $fld_cu_name = trim($track_row[
'name']);
801 $fld_cu_user = trim($track_row[
'user_name']);
802 $fld_issue = trim($track_row[
'issue']);
803 $fld_status = trim($track_row[
'status']);
804 $fld_assigned_to = trim($track_row[
'assigned_to']);
805 $fld_contact = trim($track_row[
'contact']);
806 $fld_entry = trim($track_row[
'entry_date']);
807 $fld_active = trim($track_row[
'active_date']);
808 $fld_complete = trim($track_row[
'complete_date']);
809 $fld_notes = trim($track_row[
'notes']);
813 <form action=
"<?php echo $self; ?>" method=
"post">
815 <table cellpadding=
"3" cellspacing=
"0" border=
"0" width=
"95%" class=
"dmsbg"><tr><td>
816 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
818 <td colspan=
"2" class=
"barb" align=
"center"><?php echo $fld_issue; ?> for <?php echo $fld_cu_name; ?><br><?php echo $fld_status; ?>
822 <td colspan=
"2" class=
"barb" align=
"right">
823 <a href=
"javascript:window.close();" class=
"barb">Close Window</a><br>
827 <td
class=
"" valign=
"top">
828 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
833 <td
class=
"dtl"> <?php echo dms_disphtml($fld_entry); ?>
837 <td
class=
"hdr" valign=
"top">
841 <textarea name=
"dtl_notes" rows=
"15" cols=
"35"><?php echo dms_disphtml($fld_notes); ?></textarea>
846 <td
class=
"dtl" valign=
"top">
847 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
849 <td align=
"left" class=
"hdr" >
852 <td
class=
"hdr" > </td>
853 <td
class=
"hdr" > </td>
861 $sql =
"SELECT trackitem_id, 865 to_char(complete_date, 'MM/DD/YYYY') as complete_date 867 WHERE track_id = '$track_id' 868 ORDER BY view_order ";
869 $det_rs = db_query($sql, $dbh);
871 while ($det_row = db_fetch_array($det_rs, $total_rows)) {
873 print_line_cond ($total_rows, $det_row[
'trackitem_id'], dms_disphtml($det_row[
'title']) , dms_disphtml($det_row[
'item_desc']),
"", $RGB, $det_row[
'complete_date']);
874 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
878 <td colspan=3 align=
"right" class=
"dtl">
883 <td
class=
"dtlr" colspan=
"3">
900 function get_comp($value=
"") {
930 function get_field($value) {
931 switch (intval($value)) {
933 $ret_field =
" cutrack.track_id ";
936 $ret_field =
" cutrack.user_name ";
939 $ret_field =
" cutrack.issue ";
942 $ret_field =
" cuinfo.name ";
945 $ret_field =
" cutrack.status ";
948 $ret_field =
" cutrack.assigned_to ";
951 $ret_field =
" cutrack.entry_date ";
954 $ret_field =
" cutrack.active_date ";
957 $ret_field =
" cutrack.complete_date ";
960 $ret_field =
" cutrack.contact ";
968 $ret_field =
" cutrack.last_activity_date ";
971 $ret_field =
" cutrack.next_contact_date ";
974 $ret_field =
" cutrack.contact_email ";
977 $ret_field =
" cutrack.contact_phone ";
987 function add_order($cur_stmt, $stmt) {
991 if (strlen($cur_stmt) == 0)
996 function get_desc($value) {
1002 function get_cuname($user_name) {
1007 WHERE user_name = '" . prep_save($user_name) .
"' ";
1008 $cu_rs = db_query($sql, $dbh);
1009 list($ret_val) = db_fetch_array($cu_rs, 0);
1010 $ret_val = trim($ret_val);
1012 db_free_result($iss_rs);
1016 function print_item_line ($row_id, $field_id, $title_val, $desc_val, $del_val, $row_class, $comp_date_val) {
1020 $del_val = ($del_val ==
"Y" ?
"CHECKED" :
"");
1023 if (intval($field_id) > 0) {
1024 $row_opt =
"<nobr><span class=\"usu\">Complete on</span> <input type=\"text\" name=\"item_complete_date_$row_id\" value=\"$comp_date_val\" maxlength=\"10\" size=\"10\">";
1025 $row_opt .=
"<a href=\"javascript:set_date('item_complete_date_$row_id')\" style=\"{color: blue;}\"><img src=\"/monitor/images/admin_tack.gif\" alt=\"Set Date\" border=0></a></nobr>";
1027 $row_opt =
"<span class=\"usu\">Delete?</span><input type=\"checkbox\" name=\"item_del_$row_id\" value=\"Y\" $del_val>";
1030 <tr
class=
"$row_class">
1031 <td valign=
"top" class=
"usu" align=
"center" nowrap>
1034 <td valign=
"top" align=
"left" class=
"">
1035 <input type=
"hidden" name=
"item_id_$row_id" value=
"$field_id">
1036 <input type=
"text" name=
"item_title_$row_id" size=
"35" maxlength=
"50" value=
"$title_val">
1039 <td align=left
class=
'' valign=
'top'>
1040 <textarea rows=3 cols=30 name=
"item_desc_$row_id">$desc_val</textarea>
1043 <td align=
"center" valign=
"top">
1050 function print_line_cond ($row_id, $field_id, $title_val, $desc_val, $del_val, $row_class, $comp_date_val) {
1054 $del_val = ($del_val ==
"Y" ?
"CHECKED" :
"");
1057 if (intval($field_id) <= 0) {
1058 $row_opt =
"<span class=\"usu\">Delete?</span><br><input type=\"checkbox\" name=\"item_del_$row_id\" value=\"Y\" $del_val>";
1060 <tr
class=
"$row_class">
1061 <td
class=
"usu" align=
"center" valign=
"top" nowrap>
1064 <td align=
"left" class=
"" valign=
"top">
1065 <input type=
"hidden" name=
"item_id_$row_id" value=
"$field_id">
1066 <input type=
"text" name=
"item_title_$row_id" size=
"30" maxlength=
"50" value=
"$title_val">
1068 <textarea rows=3 cols=30 name=
"item_desc_$row_id">$desc_val</textarea>
1070 <td align=
"center" valign=
"top">
1076 $row_opt =
"<span class=\"usu\"><nobr>Completed On:</nobr></span><br><nobr><input type=\"text\" name=\"item_complete_date_$row_id\" value=\"$comp_date_val\" maxlength=\"10\" size=\"10\"> <a href=\"javascript:set_date('item_complete_date_$row_id')\" style=\"{color: blue;}\"><img src=\"/monitor/images/admin_tack.gif\" alt=\"Set Date\" border=0></a></nobr>";
1078 <tr
class=
"$row_class">
1079 <td
class=
"usu" align=
"center" valign=
"top" nowrap>
1082 <td align=
"left" class=
"usu" valign=
"top">
1083 <input type=
"hidden" name=
"item_id_$row_id" value=
"$field_id">
1084 <input type=
"hidden" name=
"item_title_$row_id" value=
"$title_val">
1085 <span
class=
"usub">$title_val</span>
1087 <input type=
"hidden" name=
"item_desc_$row_id" value=
"$desc_val">
1090 <td align=
"center" valign=
"top">
1100 function dms_save_date($date) {
1101 if (strlen(trim($date)) == 0)
1104 return "'" . dateformat(
"Y-m-d", $date) .
"'";
1109 function print_set_date() {
1111 $today_date = date(
'm/d/Y');
1113 <script language=
"javascript">
1115 function set_date(datefield) {
1117 var cur_form = document.forms[0];
1119 if (cur_form.elements[datefield]) {
1120 if (cur_form.elements[datefield].type ==
"text") {
1123 cur_form.elements[datefield].value =
"$today_date";