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");
8 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
11 header(
"Location: /hcuadm/hcu_noperm.prg");
15 $dms_ok=array(
'vc'=>
'string');
23 echo
"<table border=0 cellpadding=3 cellspacing=0 width=\"80%\" class=\"dmsbg\"><tr><td>";
26 <table border=0 cellpadding=1 cellspacing=0 width=
"100%" bgcolor=white>
28 <td width=
"100%" align=center>
29 Incorrect Form Information
39 WHERE vendor = '$vc' ";
41 $db_rs = db_query($sql, $dbh);
43 cu_header(
"Vendor Information");
45 <script language=
"javascript">
47 function close_form() {
53 if($db_row = db_fetch_array($db_rs)) {
58 foreach ($db_row as $key => $value) {
59 if ($key ==
'email') {
61 $db_row[$key] =
"<a href=\"mailto:" . trim($db_row[
'email']) .
"\">" . htmlspecialchars(trim($db_row[
'email'])) .
"</a> ";
63 $db_row[$key] = htmlspecialchars(trim($value)) .
" ";
68 <table border=0 cellpadding=1 cellspacing=0 width=
"100%" bgcolor=white>
70 <td colspan=
"2" align=
"center" class=
"bar">
75 <td
class=
"hdr" width=
"30%" nowrap>Vendor Name:</td>
76 <td nowrap width=
"70%" class=
'dtl'>{$db_row[
'venddesc']}</td>
80 <td
class=
"hdr" width=
"30%" nowrap>VAR Info:</td>
81 <td nowrap width=
"70%" class=
'dtl'>{$db_row[
'vendvar']}</td>
83 <td
class=
"hdr" nowrap>Addresss:</td>
84 <td nowrap
class=
'dtl'>{$db_row[
'addr1']}</td>
87 <td
class=
"hdr" nowrap> </td>
88 <td nowrap
class=
'dtl'>{$db_row[
'addr2']}</td>
91 <td
class=
"hdr" nowrap>City</td>
92 <td nowrap
class=
'dtl'>{$db_row[
'city']}</td>
95 <td
class=
"hdr" nowrap>State:</td>
96 <td nowrap
class=
'dtl'>{$db_row[
'st']}</td>
99 <td
class=
"hdr" nowrap>Zip:</td>
100 <td nowrap
class=
'dtl'>{$db_row[
'zip']}</td>
103 <td
class=
"hdr" nowrap>Phone:</td>
104 <td nowrap
class=
'dtl'>{$db_row[
'phone']}</td>
107 <td
class=
"hdr" nowrap>Fax:</td>
108 <td nowrap
class=
'dtl'>{$db_row[
'fax']}</td>
111 <td
class=
"hdr" nowrap>Email:</td>
112 <td nowrap
class=
'dtl'>{$db_row[
'email']}</td>
115 <td
class=
"hdr" nowrap>Contact:</td>
116 <td nowrap
class=
'dtl'>{$db_row[
'contact']}</td>
119 <td
class=
"hdr" valign=
"top" nowrap>Comments:</td>
120 <td
class=
'dtl'>{$db_row[
'comments']}</td>
123 <td colspan=
"2" align=
"center" class=
'dtl'>
124 <a href=
"javascript:close_form()">Close Window</a>
132 <table border=0 cellpadding=1 cellspacing=0 width=
"100%" bgcolor=white>
134 <td width=
"100%" class=
"bar" align=center>
141 echo
"</td></tr></table>";