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(
'mode'=>
'string',
'hcu_code'=>
'string',
'form_err'=>
'string');
16 if (!isset($mode) || $mode ==
'')
19 if ($mode ==
"DELETE") {
23 WHERE home_cu_code = '" . prep_save($hcu_code) .
"' ";
24 $del_rs = db_query($sql, $link);
27 $msg =
"Home CU Product deleted successfully!";
29 $msg =
"Problem deleting product, please try again.";
38 <form action=
"/hcuadm/hcu_prod_list.prg" method=
"post">
39 <input type=
"hidden" name=
"mode" value=
"DELETE">
40 <input type=
"hidden" name=
"hcu_code" value=
"{$hcu_code}">
42 <table width=
"50%" cellpadding=3 cellspacing=0 align=
"center" class=
'dmsbg'><tr><td>
43 <table width=
"100%" cellpadding=1 cellspacing=0 align=
"center" bgcolor=white>
45 <td CLASS=
"barb" nowrap>
46 Delete Homecu Product Code
51 <table border=0 cellpadding=2 cellspacing=0 width=
"100%">
53 <td
class=
"hdr" align=
"center">
54 You are about to
delete a home cu product code, <br>
55 this may cause irratic behavior.<br>
56 <br>Are you sure you want to
continue?
59 <input type=
"submit" name=
"btnDelete" value=
"Sure">
60 <input type=
"button" name=
"btnCancel" value=
"I better think twice" onClick=
"document.location='/hcuadm/hcu_prod_list.prg'">
75 cu_header(
'Home CU - Products');
81 $query =
"SELECT * FROM cuprodlist ORDER BY home_cu_desc";
82 $prod_result = db_query($query, $link);
86 <!-- Print out the top of the table -->
88 <table border=
"0" cellpadding=
"3" cellspacing=
"0" align=
"center" class=
"dmsbg"><tr><td>
89 <table border=
"0" cellpadding=
"1" cellspacing=
"0" align=
"center" bgcolor=white
90 <?php
if (isset($msg) && strlen($msg) > 0): ?>
92 <td colspan=
"4" class=
"dtl" align=
"center">
93 <font color=
"red"><?php echo $msg; ?></font>
98 <td colspan=
"4" class=
"bar" align=
"center">
103 <td
class=
"hdr" align=
"center">
106 <td
class=
"hdr" align=
"center">
109 <td
class=
"hdr" align=
"center">
116 while ($prod_row = db_fetch_object($prod_result, $row)):
119 <tr
class=
"<?php echo $RGB; ?>">
121 <?php echo trim($prod_row->home_cu_code) ?>
124 <?php echo trim($prod_row->home_cu_desc) ?>
127 <a href=
"hcu_prod_edit.prg?home_cu_code=<?php echo trim($prod_row->home_cu_code) ?>">Edit</a>
129 <a href=
"/hcuadm/hcu_prod_list.prg?mode=CONF&hcu_code=<?php echo trim($prod_row->home_cu_code) ?>">Delete</a>
133 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
138 <a href=
"home_cu_prod.prg">Add Home CU Product</a>
140 <a href=
"/monitor/mindex.html" target=
"_top">Main Credit Union List</a>