10 <LINK REL=stylesheet HREF=
"/monitor/css/monitor.css" TYPE=
"text/css">
11 <link rel=
"stylesheet" type=
"text/css" media=
"all" href=
"/monitor/css/jquery-ui-1.8.18.custom.css"/>
12 <script type=
"text/javascript" src=
"/monitor/js/jquery-1.7.1.min.js"></script>
13 <script type=
"text/javascript" src=
"/monitor/js/jquery-ui-1.8.18.custom.min.js"></script>
14 <link rel=
"stylesheet" type=
"text/css" media=
"all" href=
"/monitor/css/monitor_notes.css"/>
20 $monLibrary= dirname(__FILE__) .
"/../library";
21 require_once(
"$monLibrary/cu_top.i");
22 require_once(
"$monLibrary/ck_hticket.i");
24 if (!CheckPerm($link, $Hu, basename($_SERVER[
'SCRIPT_NAME']), $_SERVER[
'REMOTE_ADDR'])) {
27 header(
"Location: /hcuadm/hcu_noperm.prg");
31 $dms_ok=array(
'user_name'=>
'string',
'wc'=>
'string');
34 $sql =
"SELECT name, main_email, main_phone, ceo_mgr, 35 trim(addr1) as addr1, trim(addr2) as addr2, trim(city) as city, 36 trim(state) as state, trim(zip) as zip, 37 home_page_url, transfer_method, comments, vendor, 38 to_char(date_live, 'MM/DD/YYYY') as date_live, 39 case when renewal_term >1 and contract_expires <= (date_trunc('month', current_date)-'1day'::interval)::date 40 then to_char((contract_expires + 42 (renewal_term - (abs(extract(years from age(date_trunc('month',contract_expires),date_trunc('month', current_date)-'1day'::interval))::int * 12 + extract(month from age(date_trunc('month',contract_expires),date_trunc('month', current_date)-'1day'::interval))::int) % renewal_term))) 43 +(interval '1 month' * (abs(extract(years from age(date_trunc('month',contract_expires),date_trunc('month', current_date)-'1day'::interval))::int * 12 + extract(month from age(date_trunc('month',contract_expires),date_trunc('month', current_date)-'1day'::interval))::int))))::date,'MM/DD/YYYY') || ' **' 44 else to_char(contract_expires,'MM/DD/YYYY') end as contract_expires, 46 case when contract_expires is null or contract_expires < CURRENT_DATE then 1 else 0 end as expired, 47 dec_31_assets, dec_31_mem, charter_number 49 WHERE upper(user_name) = upper('" . $user_name .
"')";
51 $sql_rs = db_query($sql, $link);
53 if (db_num_rows($sql_rs) > 0)
54 $sql_row = db_fetch_array($sql_rs);
57 printError(
"Problem displaying page, no cuinfo entry.");
62 $sql =
"SELECT home_cu_desc, cuproducts.user_name 64 LEFT OUTER JOIN cuproducts on cuproducts.home_cu_code = cuprodlist.home_cu_code 65 AND cuproducts.user_name = '" . $user_name .
"' 66 ORDER BY home_cu_desc ";
68 $product_rs = db_query($sql, $link);
69 $productShow = array();
70 for ($row=0;list($desc, $flag) = db_fetch_array($product_rs,$row); $row++) {
71 $productShow[$row][
"product"]=$desc;
72 $productShow[$row][
"uses"]=(strlen($flag) > 0 ? true :
false);
76 $vendor_url =
"<a href=\"javascript:view_vendor('" . trim($sql_row[
'vendor']) .
"')\" onMouseOver=\"status='View " .
77 trim($sql_row[
'vendor']) .
" Information'; return true;\" onMouseOut=\"status='';\">" . trim($sql_row[
'vendor']) .
"</a>";
78 $vend_link = (trim($sql_row[
'vendor']) ==
'' ?
"" : $vendor_url);
81 $address=$sql_row[
'addr1'] .
"<br>" .
82 ($sql_row[
'addr2'] ==
'' ?
'' :
"{$sql_row['addr2']}<br>") .
83 $sql_row[
'city'] .
" " . $sql_row[
'state'] .
" " . $sql_row[
'zip'];
86 $mcsql=
"select role, decider, trim(fname), trim(lname), 87 trim(phone), trim(email), trim(comment) 89 where user_name='$user_name' 91 $mclist = db_query($mcsql, $link);
92 for ($row=0;list($mcrole, $mcdecider, $mcfname, $mclname, $mcphone, $mcemail, $mccomment) = db_fetch_array($mclist,$row); $row++) {
94 $mc[$row][1]=$mcdecider;
95 $mc[$row][2]=trim($mcfname .
" " . $mclname);
96 $mc[$row][3]=$mcphone;
97 $mc[$row][4]=$mcemail;
98 $mc[$row][5]=$mccomment;
113 $documentServerIP =
'homefries.boi.homecu.int';
114 switch (strtoupper(substr($user_name, 0, 1))) {
118 $directoryLetter =
'XYZ';
121 $directoryLetter = strtoupper(substr($user_name, 0, 1));
127 $cuDocumentLocation =
"http://{$documentServerIP}/clientdocs/{$directoryLetter}/{$user_name}";
130 if (strpos($wc,
"localhost") !==
false) {
133 }
else if (isMammothServer($wc)) {
134 $baseURL =
"https://$wc.homecu.net";
137 $baseURL =
"https://$wc";
142 <script language=
"javascript">
143 <!-- Start Hiding Javascript from older browser
144 function goto_url(url) {
146 newwin = window.open(
"http://" + url);
148 function view_vendor(vend_code) {
151 url =
"view_vend.prg?vc=" + vend_code;
152 newwin = window.open(url,
"VendorInfo",
"width=400, height=600, resizeable=yes, scrollbars=yes, status=no, menubar=no, location=no, top=0, left=0");
154 function post_ncua() {
155 var char_num = document.forms[0].charter_number.value;
156 if (char_num.length == 0) {
157 alert (
"You forgot to enter a charter number, please enter a number and try again.");
159 document.ncua.Charter.value = char_num;
160 document.ncua.submit();
166 <table width=
"100%" border=0 cellpadding=3 cellspacing=0
class=
"dmsbg"><tr><td>
167 <table width=
"100%" border=0 cellpadding=2 cellspacing=0
class=
'dtl'>
169 <td colspan=3
class=
"bar" align=
"center">
170 <font size=
"5">View Credit Union Information</font>
173 <tr><td
class=
"dtl" colspan=
"3" align=
"right">
175 <tr><td
class=
"dtl" align=
"right">
176 <iframe
class=
'dtl' frameBorder=
'0' width=
'100%' scrolling=
'no' height=
'35' src=
"/hcuadm/upgrade_svs?act=hiding&user_name=<?php echo $user_name; ?>"></iframe>
178 <td
class=
"dtl" align=
"center">
181 <iframe frameBorder=
'0' width=
'140' scrolling=
'no' height=
'35' 182 src=
"<?php echo $baseURL; ?>/hcuadm/cuclock<?php echo $prg; ?>?cu=<?php echo $user_name; ?>"></iframe>
186 <td width=50%
class=
'dtl' valign=
'top'>
187 <table width=
"100%" border=0 cellpadding=2 cellspacing=0 bgcolor=white>
189 <td width=
'30%' class=
"hdr" align=
"right" valign=
"top">
192 <td width=
'70%' class=
'dtl'>
193 <?php echo trim($sql_row[
'name']); ?>
194 <?php echo
"<br>$address"; ?>
198 <td
class=
"hdr" align=
"right">
202 <?php echo trim($sql_row[
'ceo_mgr']); ?>
206 <?php
if(trim($sql_row[
'main_email']) !=
""): ?>
208 <td
class=
"hdr" align=
"right">
213 printf(
"<a href=\"mailto:%s\">%s</a>", trim($sql_row[
'main_email']), trim($sql_row[
'main_email']));
219 <td
class=
"hdr" align=
"right">
223 <?php echo trim($sql_row[
'main_phone']); ?>
227 <?php
if(trim($sql_row[
'home_page_url']) !=
""): ?>
229 <td
class=
"hdr" align=
"right">
234 printf(
"<a href=\"javascript:goto_url('%s');\">http://%s</a>", trim($sql_row[
'home_page_url']), trim($sql_row[
'home_page_url']));
240 <td
class=
"hdr" align=
"right">
244 <a href=
'<?php echo $cuDocumentLocation; ?>' target=
"_blank"><img src=
"https://www.homecu.net/images/folder.png" style=
"border:0px;" />
245 View Contracts</a>
250 <td valign=
'top' class=
'dtl'>
251 <table border=0 cellpadding=2 cellspacing=0 bgcolor=white>
253 <td
class=
"hdr" align=
"right">
257 <?php echo trim($vend_link); ?>
262 <td
class=
"hdr" align=
"right">
266 <?php echo $sql_row[
'date_live']; ?>
271 <td
class=
"hdr" align=
"right">
275 <?php
if ($sql_row[
'expired'] > 0): ?>
278 <?php echo $sql_row[
'contract_expires']; ?>
280 <?php
if ($sql_row[
'expired'] > 0): ?>
286 <td
class=
"hdr" align=
"right">
290 <?php echo $sql_row[
'renewal_term']; ?>
295 <td
class=
"hdr" align=
"right">
299 <?php echo trim($sql_row[
'charter_number']); ?>
303 <td
class=
"hdr" align=
"right">
307 <?php echo $sql_row[
'dec_31_assets']; ?>
312 <td
class=
"hdr" align=
"right">
316 <?php echo $sql_row[
'dec_31_mem']; ?>
322 <td valign=
'top' class=
'dtl' style=
"width:15%">
323 <table border=0 cellpadding=2 cellspacing=0 style=
"background-color: white;">
325 <td colspan=
"2" class=
"hdr" align=
"center">
327 <div style=
"height:120px; width:200px; overflow:auto;">
329 print
"<table style='border:2px solid white; border-spacing:0; width:100%; border-collapse:collapse;'>";
330 for ( $i = 0; $i < count($productShow); $i++ ) {
332 <td class='dtl' style='text-align:left; padding:4px; white-space:nowrap;'>" . $productShow[$i][
"product"] .
"</td> 333 <td class='dtl' style='text-align:left; padding:4px; white-space:nowrap;'>" . ($productShow[$i][
"uses"] ?
"X" :
" ") .
"</td> 346 print
"<tr><td colspan='3' ><div class='bar'>Credit Union Contacts </div> 347 <table align='center' cellspacing='0' cellpadding='2' border='0' width='100%' bgcolor=white>";
348 print
"<tr class='hdr'> 354 <td>Contact Info</td></tr>";
356 for ($prow=0; $prow < $showrows; $prow++) {
357 $RGB = ($RGB ==
"odd" ?
"even" :
"odd");
360 $role=$cu_contact_role[$role];
361 print
"<tr class='$RGB'> 362 <td class='usu' valign='top'>$role</td>";
365 print
"<td class='usu' valign='top'>" . ($mc[$prow][1] ==
"Y" ?
"Y" :
"") .
368 print
"<td class='usu' valign='top'>" . dms_disphtml($mc[$prow][2]) .
371 print
"<td class='usu' valign='top'>" . dms_disphtml($mc[$prow][3]) .
374 $pval = (trim(stripslashes($mc[$prow][4])) ==
'' ?
'' :
375 "<a href='mailto:{$mc[$prow][4]}'>{$mc[$prow][4]}</a>");
376 print
"<td class='usu' valign='top'>$pval</td>";
379 print
"<td class='usu' valign='top'>" . dms_disphtml($mc[$prow][5]) .
"</td>";
385 print
"</table></td></tr>";
387 <tr><td colspan=
'3' ><div
class=
'bar'>After Hours Contacts </div>
388 <iframe
class=
'dtl' frameBorder=
'0' width=
'100%' scrolling=
'yes' height=
'100' 389 src=
"<?php echo $baseURL; ?>/hcuadm/cucontactafter<?php echo $prg; ?>?cu=<?php echo $user_name; ?>"></iframe>
391 <tr><td colspan=
'3' ><div
class=
'bar'>CU Admin Users <span
id=
'cuContactClick' onclick=
'javascript:toggleCUContacts();' style=
'cursor:pointer;'>[ + ]</span></div>
392 <iframe
id=
'cuContactFrame' style=
'visibility:hidden;' class=
'dtl' frameBorder=
'0' width=
'100%' scrolling=
'yes' height=
'0' 393 src=
"<?php echo $baseURL; ?>/hcuadm/cuAdmUsers<?php echo $prg; ?>?cu=<?php echo $user_name; ?>"></iframe>
401 <script language=
"javascript">
403 var toggleStateHidden =
true;
404 function toggleCUContacts() {
405 var elemFrame = document.getElementById(
'cuContactFrame');
406 var elemSign = document.getElementById(
'cuContactClick');
408 if ( toggleStateHidden ) {
409 elemFrame.height = 100;
410 elemFrame.style.visibility =
"visible";
411 elemSign.innerHTML =
"[ - ]";
412 toggleStateHidden =
false;
414 elemFrame.height = 0;
415 elemFrame.style.visibility =
"collapse";
416 elemSign.innerHTML =
"[ + ]";
417 toggleStateHidden =
true;
424 <div style=
'clear:both;'></div>
432 require(
'monitor_notes.desktop');
436 <form action=
"https://webapps.ncua.gov/cgi-bin/cudataexpanded.exe" method=
"post" name=
"ncua" target=
"ncua_result">
437 <input type=
"hidden" name=
"Status" value=
"A">
438 <input type=
"hidden" name=
"cfserver" value=
"reports.ncua.gov">
439 <input type=
"hidden" name=
"Charter" value=
"">