Odyssey
enrollms.prg
1 <?php
2 $monLibrary= dirname(__FILE__) . "/../library";
3 require_once("$monLibrary/cu_top.i");
4 require_once("$monLibrary/ck_hticket.i");
5 
6  if (!CheckPerm($link, $Hu, basename($_SERVER['SCRIPT_NAME']), $_SERVER['REMOTE_ADDR'])) {
7  // ** Permissions failed
8  // ** redirect to new page
9  header("Location: /hcuadm/hcu_noperm.prg");
10  exit;
11  }
12 
13 $dms_ok=array('user_name'=>'string','action'=>'string','formal_name'=>'string','submitLogo'=>'string','mktFName'=>'string','mktLName'=>'string','mktTitle'=>'string','mktOrg'=>'string','mktWorkPhone'=>'string','mktFax'=>'string','mktEmail'=>'string');
14 
15 dms_import($dms_ok);
16 
17  cu_header("Enroll MS Money");
18 
19 if ($action) {
20  $sql = "SELECT name, addr1, addr2, city, state, zip,
21  main_email, main_phone, home_page_url, www_server
22  FROM cuinfo
23  WHERE user_name = '" . $user_name . "'";
24 
25  $sql_rs = db_query($sql, $link);
26  $count = db_num_rows($sql_rs);
27  if ($count != 1) {
28  print <<<EOF
29 <body>Credit Union $user_name not found! Please Try Again.</body></html>
30 EOF;
31 
32  } else {
33 list($name, $addr1, $addr2, $city, $state, $zip,
34  $main_email, $main_phone, $home_page_url, $www_server) = db_fetch_array($sql_rs,0);
35 #$server = ($www_server == 'int3' ? 'www3' : $www_server);
36 $server = ($www_server == 'int4' ? 'www4' : $www_server);
37 
38 # Need to set the following:
39 # $formal_name (Full, spelled-out formal name of cu)
40 # $submitLogo (True / False will cu submit logo images)
41 # $mktFName (Marketing Contact info)
42 # $mktLName
43 # $mktTitle
44 # $mktOrg
45 # $mktWorkPhone
46 # $mktFax
47 # $mktEmail
48 
49 $cubody = "Information concerning your financial institution has been <BR>
50 submitted to Microsoft to enroll as a Money Partner.<BR><BR>
51 To complete the enrollment process you must submit a Money Marketing <BR>
52 Agreement form to Microsoft. You can find the form at the Microsoft <BR>
53 Money Partner site http://www.microsoft.com/money/ppa/form/Initial.asp <BR>
54 under step 2. <BR><BR>
55 The form asks for some technical details concerning our download program.<BR>
56 Please refer to the following items to complete the agreement form: <BR>
57  - Our HomeCU product offers 1-way Active Statement OFX downloads<BR>
58  - The service provider is Database Management Services, Inc<BR>
59  - We are certified to support Money version 2001 and higher<BR>
60  - Our OFX download supports Banking<BR><BR>
61 If you choose to submit branding logo images, those files <BR>
62 must also be submitted before the enrollment is complete. Information <BR>
63 about the logo files and required formats is also available at the site <BR>
64 specified above. DMS can provide assistance building logo files.<BR><BR>
65 Please review the information below and contact DMS if changes are needed.
66 <BR><BR>";
67 
68 $body = "Application Complete For $formal_name<BR>
69 <BR>
70 The following information is ready to be submitted to the MSN Money Financial Institution Team:<BR>
71 <BR>
72 FIName = $formal_name<BR>
73 OtherNames = $name<BR>
74 Street1 = $addr1<BR>
75 Street2 = $addr2<BR>
76 City = $city<BR>
77 Province = $state<BR>
78 PostalCode = $zip<BR>
79 Country = USA<BR>
80 FIURL = $home_page_url<BR>
81 CustServURL = $home_page_url<BR>
82 CustServEmail = $main_email<BR>
83 CustServPhone = $main_phone<BR>
84 SvcOffered = Active<BR>
85 MoneySupport = 2001<BR>
86 LaunchDate = <BR>
87 CertDate = <BR>
88 <BR>
89 ActiveSolutionType = Database Management Services<BR>
90 ActiveSolutionTypeOther = <BR>
91 SvcIsBank = True<BR>
92 BankURL = https://${server}.homecu.net/~${user_name}/mindex.html<BR>
93 SvcIsBrok = False<BR>
94 BrokURL = <BR>
95 SvcIsPP = False<BR>
96 PPURL = <BR>
97 <BR>
98 OFXSolutionType = <BR>
99 OFXSolutionTypeOther = <BR>
100 ORGValue = <BR>
101 FIDValue = <BR>
102 SvcIsBankStatements = False<BR>
103 SvcIsBillPay = False<BR>
104 SvcIsCC = False<BR>
105 SvcIsInvestments = False<BR>
106 PwdDigitsMax = <BR>
107 PwdDigitsMin = <BR>
108 UserIDDesc = <BR>
109 PwdDesc = <BR>
110 PwdAlphaOK = False<BR>
111 PwdNumericOK = False<BR>
112 PwdSpacesOK = False<BR>
113 PwdSpecialOK = False<BR>
114 OFXURL = https://<BR>
115 <BR>
116 GenMailSyncSupp = Not Specified<BR>
117 BrokerageID = <BR>
118 WillSubmitLogo = $submitLogo<BR>
119 <BR>
120 TechFName = Miki<BR>
121 TechLName = Hall<BR>
122 TechTitle = <BR>
123 TechOrg = Database Management Services, Inc<BR>
124 TechWorkPhone = 208 384 1311<BR>
125 TechFax = 208 345 4085<BR>
126 TechEmail = miki@homecu.net<BR>
127 <BR>
128 MktFName = $mktFName<BR>
129 MktLName = $mktLName<BR>
130 MktTitle = $mktTitle<BR>
131 MktOrg = $mktOrg<BR>
132 MktWorkPhone = $mktWorkPhone<BR>
133 MktFax = $mktFax<BR>
134 MktEmail = $mktEmail<BR>
135 <BR>
136 Comments Text:<BR>
137 <BR>
138 <BR>
139 If you notice any inaccuracies, please send mail to moneyfi@microsoft.com.";
140 print "<body>${cubody}${body} <BR>\n";
141 
142 print <<<EOF
143 <script language="javascript">
144 <!-- Start Hiding Javascript from older browser
145 // POP UP A PREFORMATTED EMAIL MESSAGE WINDOW
146 function TellMS() {
147 // SET MESSAGE VALUES
148 var to = "moneyfi@microsoft.com";
149 var cc = "miki@homecu.net";
150 var subject = "Application";
151 // BUILD MAIL MESSAGE COMPONENTS
152 var doc = "mailto:" + to
153 + "?cc=" + cc
154 + "&subject=" + escape(subject);
155 // POP UP EMAIL MESSAGE WINDOW
156 window.location = doc;
157 }
158 function TellCU() {
159 // SET MESSAGE VALUES
160 var to = "$mktEmail";
161 var cc = "miki@homecu.net";
162 var subject = "Application Next Step";
163 
164 // BUILD MAIL MESSAGE COMPONENTS
165 var doc = "mailto:" + to
166 + "?cc=" + cc
167 + "&subject=" + escape(subject);
168 // POP UP EMAIL MESSAGE WINDOW
169 window.location = doc;
170 }
171 // Stop Hiding -->
172 </script>
173 <form><input type='button' onclick='TellMS();' value=' MS '>&nbsp;&nbsp;
174 <input type='button' onclick='TellCU();' value=' CU '></form>
175 EOF;
176  }
177 } else {
178 print <<<EOF
179  <body>
180  <form method=post>
181 <TABLE width=100%>
182 <TR><TD class='bar' colspan=2>Microsoft Money Partner Enrollment</TD></TR>
183 <TR><TD class='hdrr'>Credit Union</TD>
184 <TD class='dtll'><INPUT type="text" name="user_name" size="20" maxlength="12"></TD></TR>
185 <TR><TD class='hdrr'> Formal Credit Union Name</TD>
186 <TD class='dtll'><INPUT type="text" name="formal_name" size="60" maxlength="100"></TD></TR>
187 <TR><TD class='hdrr'>Will Credit Union submit a logo?</TD>
188 <TD class='dtll'>
189 <INPUT type="radio" name="submitLogo" value="True">Yes
190 <INPUT type="radio" name="submitLogo" value="False">No
191 </TD></TR>
192 <TR><TD COLSPAN=2 class='bar'>Marketing Contact</TD></TR>
193 <TR>
194 <TD class='hdrr'>First Name</TD>
195 <TD class='dtll'><INPUT type="text" name="mktFName" size="60" maxlength="100"></TD>
196 </TR>
197 <TR>
198 <TD class='hdrr'>Last Name</TD>
199 <TD class='dtll'><INPUT type="text" name="mktLName" size="60" maxlength="100"></TD>
200 </TR>
201 <TR>
202 <TD class='hdrr'>Title</TD>
203 <TD class='dtll'><INPUT type="text" name="mktTitle" size="50" maxlength="50"></TD>
204 </TR>
205 <TD class='hdrr'>Organization</TD>
206 <TD class='dtll'><INPUT type="text" name="mktOrg" size="60" maxlength="100"></TD>
207 </TR>
208 <TR>
209 <TD class='hdrr'>Work Phone</TD>
210 <TD class='dtll'><INPUT type="text" name="mktWorkPhone" size="20" maxlength="20"></TD>
211 </TR>
212 <TR>
213 <TD class='hdrr'>FAX</TD>
214 <TD class='dtll'><INPUT type="text" name="mktFax" size="20" maxlength="20"></TD>
215 </TR>
216 <TR>
217 <TD class='hdrr'>E-mail</TD>
218 <TD class='dtll'><INPUT type="text" name="mktEmail" size="60" maxlength="100"></TD>
219 </TR>
220 <TR>
221 <TD COLSPAN=2 class='bar' align='center'><INPUT type="submit" name="action" value=" Post "></TD>
222 </TR>
223 </TABLE>
224 </FORM>
225 </body></html>
226 EOF;
227 }