2 $monLibrary= dirname(__FILE__) .
"/../library";
3 require_once(
"$monLibrary/cu_top.i");
4 require_once(
"$monLibrary/ck_hticket.i");
6 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
9 header(
"Location: /hcuadm/hcu_noperm.prg");
13 $dms_ok=array(
'home_cu_code'=>
'string',
'form_err'=>
'string',
'home_cu_desc'=>
'string');
16 cu_header(
"HomeCU Products");
19 <form action=
"hcu_prod_save.prg" method=
"post">
24 if (isset($home_cu_code)) {
27 where home_cu_code = '$home_cu_code'";
28 $result = db_query($query, $link);
30 $cuprod_row = db_fetch_object($result);
31 $num_rows = db_num_rows($result);
37 if (isset($form_err) && strlen($form_err) > 0)
38 printf(
"\n<font color=\"red\">Errors found before saving the information. Please review errors at bottom of screen.\n<p></font>");
40 <table border=0 cellpadding=3 cellspacing=0 align=center width=
"500" class=
"dmsbg"><tr><td>
41 <table cellpadding=
"1" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
43 <td colspan=
"2" class=
"bar" align=
"center">
44 <?php
if($num_rows > 0): ?>
52 <td nowrap align=
"right" class=
"hdr">
55 <td nowrap
class=
'dtl'>
58 $cu_info = htmlspecialchars(trim($cuprod_row->home_cu_code));
60 $cu_info = isset($home_cu_code) ? set_string($home_cu_code) :
"";
63 <input type=
"text" name=
"home_cu_code" size=
"10" maxlength=
"10" value=
"<?php echo $cu_info ?>">
67 <td nowrap align=
"right" class=
"hdr">
70 <td nowrap
class=
'dtl'>
73 $cu_info = htmlspecialchars(trim($cuprod_row->home_cu_desc));
75 $cu_info = isset($home_cu_desc) ? set_string($home_cu_desc) :
"";
78 <input type=
"text" name=
"home_cu_desc" size=
"40" maxlength=
"50" value=
"<?php echo $cu_info ?>">
82 <td
class=
'dtl'> </td>
83 <td
class=
'dtl' class=
'dtl'>
84 <input type=
"submit" name=
"Save" Value=
"Save">
85 <input type=
"button" name=
"Cancel" Value=
"Cancel" onClick=
"document.location='hcu_prod_list.prg'">
90 if (isset($form_err)) {
91 echo
"<tr><td colspan='2' class='err'>$form_err</td></tr>";