10 require_once(
"$sharedLibrary/cutrusted.i");
12 $dms_ok = array(
'action' =>
'string',
'trustid' =>
'string',
'cu' =>
'string',
'member' =>
'string');
13 dms_import_v2($SYSENV,
"EXTKEY", $dms_ok);
14 extract($SYSENV[
"EXTKEY"]);
15 $self=
"$menu_link?ft=22";
17 require_once(
"$admLibrary/userSupportTabs.i");
20 foreach($tabs as $tab)
22 if ($tab->name ==
"find")
30 # if no {$Cu}extkey table, bail out 32 throw new Exception(
'Missing Expected Parameters');
34 $extkey_sql =
"select count(*) from pg_class where relname='" . strtolower($Cu) .
"extkey'";
35 $extkey_rs = db_query($extkey_sql, $dbh);
36 list($extkeyexists) = db_fetch_array($extkey_rs, 0);
37 if ($extkeyexists == 0) {
38 throw new Exception(
"External Key Table Missing");
41 # if no cutrusteddetail for eligible vendors (local EZCARD info or local MIR info or local DMI info ) bail out 42 # trusted detail keys for ExtKey-eligible vendors will start with 'Hcu'. Comes back in cutd_list result 43 # with key {$Cu}|Hcu.... 45 # start with all trusted detail for this client 46 $parms = array(
'Cu' => $Cu);
47 $return = cutd_list($dbh, $parms);
49 if ($return[
'status'][
'Response'] ==
'true' && is_array($return[
'data'])) {
50 # filter keys containing '|Hcu' into tablist. These are the ones to populate MemberMaint menu tabs 51 $tablist = array_flip(array_filter(array_keys($return[
'data']),
function($k) {
52 return strpos($k,
'|Hcu');
54 # and now filter to just the trustid requested & throw error if not found 55 $return[
'data'] = array_intersect_key($return[
'data'], array(
"$Cu|$trustid" => 1));
57 if (
sizeof($return[
'data']) == 0) {
58 throw new Exception(
'Trusted Detail Missing or not Valid');
63 require_once (
"$admLibrary/MbrExHcuEZCARD.i");
66 require_once (
"$admLibrary/MbrExHcuMIR.i");
69 require_once (
"$admLibrary/MbrExHcuDMI.i");
72 throw new Exception(
'Unrecognized Provider Mode');
76 ${
"${trustid}i"}->parms_disp4edit($findTab, $searchTab, $menu_link, $Cu, $trustid);
77 }
catch (Exception $ex) {
79 $error = ($ex->getMessage());
83 function printExtKeyStyle()
87 font-size: inherit !important;
95 input[type=
"email"], input[type=
"password"] {
102 .k-edit-form-container {
107 border: 1px solid black;
116 line-height: inherit;
117 border: 0px solid black;
135 width: 98% !important;
139 padding: 0 !important;
140 margin: 5px !important;
141 margin-bottom: 5px !important;
144 .row-fluid input, .row input {
148 input[name=
"state"] {
156 input[name=
"middlename"] {
160 #stateDDL-list .k-item { 163 text-overflow: ellipsis;
167 .k-popup-edit-form.k-window-content.k-content
172 .k-grid-content-expander