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',
'hcu_form'=>
'string',
'home_cu_desc'=>
'string');
17 cu_header(
"HomeCU Products");
19 <form action=
"hcu_prod_save.prg" method=
"post">
24 where home_cu_code = '$home_cu_code'";
25 $result = db_query($query, $link);
27 $cuprod_row = db_fetch_object($result);
28 $num_rows = db_num_rows($result);
33 if (isset($form_err) && strlen($form_err) > 0)
34 printf(
"\n<font color=\"red\">Errors found before saving the information. Please review errors at bottom of screen.\n<p></font>");
36 <table cellpadding=
"3" cellspacing=
"0" border=
"0" width=
"500" class=
"dmsbg"><tr><td>
37 <table cellpadding=
"1" cellspacing=
"0" border=
"0" width=
"100%" bgcolor=white>
39 <td colspan=
"2" class=
"bar" align=
"center">
40 <?php
if($num_rows > 0): ?>
48 <td nowrap align=
"right" class=
"hdr">
51 <td nowrap
class=
'dtl'>
52 <?php
if ($num_rows == 0): ?>
54 if ( isset($home_cu_code))
55 $cu_info = set_string($home_cu_code);
57 $cu_info = htmlspecialchars(trim($cuprod_row->home_cu_code));
59 <input type=
"text" name=
"home_cu_code" size=
"10" maxlength=
"10" value=
"<?php echo $cu_info ?>">
60 <input type=
"hidden" name=
"hcu_form" value=
"1">
62 <?php echo $cuprod_row->home_cu_code ?>
63 <input type=
"hidden" name=
"home_cu_code" value=
"<?php echo htmlspecialchars(trim($cuprod_row->home_cu_code)) ?>">
68 <td nowrap align=
"right" class=
"hdr">
71 <td nowrap
class=
'dtl'>
73 if ( isset($home_cu_desc))
74 $cu_info = set_string($home_cu_desc);
76 $cu_info = htmlspecialchars(trim($cuprod_row->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 nowrap
class=
'dtl'>
84 <input type=
"submit" name=
"Save" Value=
"Save">
85 <!-- <input type=
"button" name=
"Cancel" Value=
"Cancel" onClick=
"document.location='hcu_prod_list'"> -->
91 if (isset($form_err)) {
92 echo
"<tr><td colspan=2 class='err'>$form_err</td></tr>";