Produced by Araxis Merge on 9/11/2017 8:05:37 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | MHV_CIF_2017.4.0.0.zip\MHV_CIF_2017.4.0.0\MHV_CIF_2017.4.0.0\mhv_source\mhv_hooks\mhv-liferay-login-hook\src\main\webapp\META-INF\custom_jsps\html\portlet\login | login.jsp | Wed Jul 26 21:20:18 2017 UTC |
2 | MHV_CIF_2017.4.0.0.zip\MHV_CIF_2017.4.0.0\MHV_CIF_2017.4.0.0\mhv_source\mhv_hooks\mhv-liferay-login-hook\src\main\webapp\META-INF\custom_jsps\html\portlet\login | login.jsp | Thu Sep 7 19:49:37 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 1900 |
Changed | 2 | 26 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <%-- | |
2 | /** | |
3 | * Copyrigh t (c) 2000 -2013 Life ray, Inc. All rights reserved. | |
4 | * | |
5 | * The cont ents of th is file ar e subject to the ter ms of the Liferay En terprise | |
6 | * Subscrip tion Licen se ("Licen se"). You may not us e this fil e except i n | |
7 | * complian ce with th e License. You can o btain a co py of the License by | |
8 | * contacti ng Liferay , Inc. See the Licen se for the specific language g overning | |
9 | * permissi ons and li mitations under the License, i ncluding b ut not lim ited to | |
10 | * distribu tion right s of the S oftware. | |
11 | * | |
12 | * | |
13 | * | |
14 | */ | |
15 | --%> | |
16 | <meta http -equiv="Ca che-Contro l" content ="no-cache , no-store , must-rev alidate" / > | |
17 | <meta http -equiv="Pr agma" cont ent="no-ca che" /> | |
18 | <meta http -equiv="Ex pires" con tent="0" / > | |
19 | ||
20 | <%@ includ e file="/h tml/portle t/login/in it.jsp"%> | |
21 | ||
22 | <% | |
23 | St ring urlCu rrent = t hemeDispla y.getURLCu rrent(); | |
24 | St ring frien dlyUrl = u rlCurrent. substring( 0,urlCurre nt.lastInd exOf('/')) .trim().to LowerCase( ); | |
25 | %> | |
26 | ||
27 | <c:choose> | |
28 | ||
29 | <c :when test ="<%=theme Display.is SignedIn() %>"> | |
30 | ||
31 | <% | |
32 | String signedInA s = HtmlUt il.escape( user.getFu llName()); | |
33 | ||
34 | if (themeD isplay.isS howMyAccou ntIcon() | |
35 | && ( themeDispl ay.getURLM yAccount() != null)) { | |
36 | St ring myAcc ountURL = String.val ueOf(theme Display | |
37 | .getUR LMyAccount ()); | |
38 | ||
39 | if (PropsVal ues.DOCKBA R_ADMINIST RATIVE_LIN KS_SHOW_IN _POP_UP) { | |
40 | sign edInAs = " <a class=\ "signed-in \" href=\" javascript :Liferay.U til.openWi ndow({dial og: {destr oyOnHide: true}, tit le: '" | |
41 | + HtmlUt il.escapeJ S(Language Util.get( | |
42 | pa geContext, "my-accou nt")) | |
43 | + "', ur i: '" | |
44 | + HtmlUt il.escapeJ S(myAccoun tURL) | |
45 | + "'});\ ">" + sign edInAs + " </a>"; | |
46 | } else { | |
47 | myAc countURL = HttpUtil. setParamet er(myAccou ntURL, | |
48 | "control PanelCateg ory", | |
49 | PortletC ategoryKey s.MY); | |
50 | ||
51 | sign edInAs = " <a class=\ "signed-in \" href=\" " | |
52 | + HtmlUt il.escape( myAccountU RL) + "\"> " | |
53 | + signed InAs + "</ a>"; | |
54 | } | |
55 | } | |
56 | ||
57 | String acc ountType = (String) session | |
58 | .get Attribute( "LIFERAY_S HARED_acco untType"); | |
59 | String mhv Context = PropsUtil. get("mhv.c ontext"); | |
60 | ||
61 | boolean is Premium = accountTyp e.equals(" Premium"); | |
62 | boolean is Advanced = accountTy pe.equals( "Advanced" ); | |
63 | boolean is Basic = ac countType. equals("Ba sic"); | |
64 | ||
65 | // Determi ne whether delegate user text should be shown | |
66 | boolean sh owDelegate UserText = false; | |
67 | if (reques t.getAttri bute("show DelegateUs erText") ! = null) { | |
68 | sh owDelegate UserText = ((Boolean )request.g etAttribut e("showDel egateUserT ext")).boo leanValue( ); | |
69 | se ssion.setA ttribute(" showDelega teUserText ", new Boo lean(showD elegateUse rText)); | |
70 | } | |
71 | else if (s ession.get Attribute( "showDeleg ateUserTex t") != nul l) { | |
72 | sh owDelegate UserText = ((Boolean )session.g etAttribut e("showDel egateUserT ext")).boo leanValue( ); | |
73 | } | |
74 | ||
75 | boolean is Delegate = false; | |
76 | if (reques t.getAttri bute("MHV_ EA_IS_DELE GATE") != null) { | |
77 | is Delegate = "true".eq uals(reque st.getAttr ibute("MHV _EA_IS_DEL EGATE")); | |
78 | se ssion.setA ttribute(" MHV_EA_IS_ DELEGATE", (isDelega te ? "true " : "false ")); | |
79 | } | |
80 | else if (s ession.get Attribute( "MHV_EA_IS _DELEGATE" ) != null) { | |
81 | is Delegate = "true".eq uals(sessi on.getAttr ibute("MHV _EA_IS_DEL EGATE")); | |
82 | } | |
83 | boolean is DelegateCu stom = fal se; | |
84 | if (reques t.getAttri bute("MHV_ EA_IS_DELE GATE_CUSTO M") != nul l) { | |
85 | is DelegateCu stom = "tr ue".equals (request.g etAttribut e("MHV_EA_ IS_DELEGAT E_CUSTOM") ); | |
86 | se ssion.setA ttribute(" MHV_EA_IS_ DELEGATE_C USTOM", (i sDelegateC ustom ? "t rue" : "fa lse")); | |
87 | } | |
88 | else if (s ession.get Attribute( "MHV_EA_IS _DELEGATE_ CUSTOM") ! = null) { | |
89 | is DelegateCu stom = "tr ue".equals (session.g etAttribut e("MHV_EA_ IS_DELEGAT E_CUSTOM") ); | |
90 | } | |
91 | ||
92 | // Determi ne whether 'Switch A ccounts' s hould be s hown | |
93 | boolean sh owSwitchAc countText = false; | |
94 | ||
95 | if (isDele gate || is DelegateCu stom) { | |
96 | Sy stem.out.p rintln("In side If ch eck for sh owSwitchAc countText. .."); | |
97 | sh owSwitchAc countText = true; | |
98 | } | |
99 | System.out .println(" The value of showSwi tchAccount Text:: "+ showSwitch AccountTex t); | |
100 | ||
101 | //SESSION_ USERNAME_K EY_DELEGAT EE value o f LIFERAY_ SHARED_use rid_delega tee_fullna me from Po stLoginAct ion java c lass | |
102 | //ATTR_USE R_PROFILE_ DELEGATOR_ FIRSTLASTN AME value of userPro fileDelega torFirstLa stName fro m EAuthGat eway Servl et | |
103 | String del egateefirs tLastName = (String) request.g etAttribut e("userPro fileDelega torFirstLa stName") ; | |
104 | if (sessio n.getAttri bute("user ProfileDel egatorFirs tLastNameN ew")==null ) | |
105 | se ssion.setA ttribute(" userProfil eDelegator FirstLastN ameNew",de legateefir stLastName ); | |
106 | ||
107 | String wel comeName1 = (String) session.g etAttribut e("LIFERAY _SHARED_us erid_deleg atee_first name"); | |
108 | String wel comeName = HtmlUtil. escape(wel comeName1. substring( 0,1).toUpp erCase() + welcomeNa me1.substr ing(1).toL owerCase() ); | |
109 | ||
110 | //UserProf ileDTO uPr ofileDeleg ator = nul l; | |
111 | //PatientD TO patient Delegator = null; | |
112 | //UserProf ileDTO uPr ofile = nu ll; | |
113 | //PatientD TO patient 1 = null; | |
114 | ||
115 | JSONObject uProfileD elegator = null; | |
116 | JSONObject patientDe legator = null; | |
117 | JSONObject uProfile = null; | |
118 | JSONObject patient1 = null; | |
119 | ||
120 | Object ses sionAttrib ute1 = req uest.getAt tribute("u serProfile Delegator" ); | |
121 | Object ses sionAttrib ute1a = re quest.getA ttribute(" patientDel egator"); | |
122 | Object ses sionAttrib ute2 = ses sion.getAt tribute("u serProfile "); | |
123 | Object ses sionAttrib ute2a = se ssion.getA ttribute(" patient"); | |
124 | ||
125 | //Switch A ccounts co de - sessi on SetAttr ibutes her e. | |
126 | if (showSw itchAccoun tText) { | |
127 | ||
128 | if (sessionA ttribute1 != null && sessionAt tribute1 i nstanceof String) { | |
129 | uPro fileDelega tor = JSON FactoryUti l.createJS ONObject(( String) se ssionAttri bute1); | |
130 | sess ion.setAtt ribute("us erProfileD elegator", request.ge tAttribute ("userProf ileDelegat or")); | |
131 | } else { | |
132 | sess ionAttribu te1 = sess ion.getAtt ribute("us erProfileD elegator") ; | |
133 | if ( sessionAtt ribute1 != null && s essionAttr ibute1 ins tanceof St ring) { | |
134 | uProfi leDelegato r = JSONFa ctoryUtil. createJSON Object((St ring) sess ionAttribu te1); | |
135 | } | |
136 | } | |
137 | ||
138 | if (sessionA ttribute1a != null & & sessionA ttribute1a instanceo f String) { | |
139 | pati entDelegat or = JSONF actoryUtil .createJSO NObject((S tring) ses sionAttrib ute1a); | |
140 | sess ion.setAtt ribute("pa tientDeleg ator",requ est.getAtt ribute("pa tientDeleg ator")); | |
141 | } else { | |
142 | sess ionAttribu te1a = ses sion.getAt tribute("p atientDele gator"); | |
143 | if ( sessionAtt ribute1a ! = null && sessionAtt ribute1a i nstanceof String) { | |
144 | patien tDelegator = JSONFac toryUtil.c reateJSONO bject((Str ing) sessi onAttribut e1a); | |
145 | } | |
146 | } | |
147 | ||
148 | if (sessionA ttribute2 != null && sessionAt tribute2 i nstanceof String) { | |
149 | uPro file = JSO NFactoryUt il.createJ SONObject( (String) s essionAttr ibute2); | |
150 | sess ion.setAtt ribute("us erProfile" ,session.g etAttribut e("userPro file")); | |
151 | } else { | |
152 | sess ionAttribu te2 = sess ion.getAtt ribute("us erProfile" ); | |
153 | if ( sessionAtt ribute2 != null && s essionAttr ibute2 ins tanceof St ring) { | |
154 | uProfi le = JSONF actoryUtil .createJSO NObject((S tring) ses sionAttrib ute2); | |
155 | } | |
156 | } | |
157 | ||
158 | if (sessionA ttribute2a != null & & sessionA ttribute2a instanceo f String) { | |
159 | pati ent1 = JS ONFactoryU til.create JSONObject ((String) sessionAtt ribute2a); // D elegatee i n | |
160 | sess ion.setAtt ribute("pa tient", se ssion.getA ttribute(" patient")) ; | |
161 | } else { | |
162 | sess ionAttribu te2a = ses sion.getAt tribute("p atient"); | |
163 | if ( sessionAtt ribute2a ! = null && sessionAtt ribute2a i nstanceof String) { | |
164 | patien t1 = JSON FactoryUti l.createJS ONObject(( String) se ssionAttri bute2a); | |
165 | } | |
166 | } | |
167 | ||
168 | se ssion.setA ttribute(" LIFERAY_SH ARED_useri d_delegate e_fullname ", uProfil e.getJSONO bject("nam e").getStr ing("first Name") + " " + uProf ile.getJSO NObject("n ame").getS tring("las tName")); | |
169 | se ssion.setA ttribute(" LIFERAY_SH ARED_useri d_delegate e_firstnam e", uProfi le.getJSON Object("na me").getSt ring("firs tName")); | |
170 | Sy stem.out.p rintln("** ********** * inside l ogin.jsp - LIFERAY_ SHARED_use rid_delega tee_firstn ame = " + uProfile.g etJSONObje ct("name") .getString ("firstNam e") + " " + uProfile .getJSONOb ject("name ").getStri ng("lastNa me")); | |
171 | ||
172 | if (showDele gateUserTe xt) { | |
173 | // if (uProfi leDelegato r != null && uProfil eDelegator .getId() ! = null) { | |
174 | System.out .println(" ********** *** inside login.jsp - SESSIO N_SCREEN_N AME_DELEGA TE = " + u ProfileDel egator.get String("us erName")); | |
175 | session.se tAttribute ("LIFERAY_ SHARED_use rid_delega tee", uPro fileDelega tor.getStr ing("userN ame")); | |
176 | ||
177 | session.se tAttribute ("LIFERAY_ SHARED_use rid", uPro fileDelega tor.getStr ing("userN ame")); | |
178 | session.se tAttribute ("LIFERAY_ SHARED_use rprofiledt o", sessio nAttribute 1); | |
179 | session.se tAttribute ("LIFERAY_ SHARED_use rprofiledt o_delegato r", sessio nAttribute 2); | |
180 | ||
181 | session.se tAttribute ("LIFERAY_ SHARED_use rprofileid ", new Lon g(uProfile Delegator. getLong("i d"))); | |
182 | System.out .println(" ********** *** inside login.jsp - SESSIO N_USERPROF ILE_ID_KEY _DELEGATEE = " + new Long(uPro fileDelega tor.getLon g("id"))); | |
183 | session.se tAttribute ("LIFERAY_ SHARED_use rprofileid _tmp", new Long(uPro file.getLo ng("id"))) ; | |
184 | ||
185 | if (patien tDelegator != null) { | |
186 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie ntid", new Long(pati entDelegat or.getLong ("id"))); | |
187 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie nticn", pa tientDeleg ator.getSt ring("icn" )); | |
188 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie ntdto", se ssionAttri bute1a); | |
189 | } | |
190 | ||
191 | if (patien t1 != null ) { | |
192 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie ntid_tmp", new Long( patient1.g etLong("id "))); | |
193 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie nticn_tmp" , patient1 .getString ("icn")); | |
194 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie ntdto_tmp" , sessionA ttribute2a ); | |
195 | } | |
196 | } else { | |
197 | System.o ut.println ("******** *****insid e login.js p - SESS ION_SCREEN _NAME_DELE GATE_ELSE = " + uPro file.getSt ring("user Name")); | |
198 | session. setAttribu te("LIFERA Y_SHARED_u serid", uP rofile.get String("us erName")); | |
199 | ||
200 | if (uPro file != nu ll && new Long(uProf ile.getLon g("id")) ! = null) { | |
201 | session.se tAttribute ("LIFERAY_ SHARED_use rprofiledt o", sessio nAttribute 2); | |
202 | session.se tAttribute ("LIFERAY_ SHARED_use rprofileid ", new Lon g(uProfile .getLong(" id"))); | |
203 | session.se tAttribute ("LIFERAY_ SHARED_use rid_delega tee_firstn ame", uPro file.getJS ONObject(" name").get String("fi rstName")) ; | |
204 | ||
205 | if (patien t1 != null ) { | |
206 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie ntid", new Long(pati ent1.getLo ng("id"))) ; | |
207 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie nticn", pa tient1.get String("ic n")); | |
208 | se ssion.setA ttribute(" LIFERAY_SH ARED_patie ntdto", se ssionAttri bute2a); | |
209 | } | |
210 | } | |
211 | } | |
212 | ||
213 | } | |
214 | ||
215 | %> | |
216 | ||
217 | <sec tion id="m hv-welcome -bar" clas s="usa-sec tion"> | |
218 | <div c lass="usa- grid"> | |
219 | <div id= "mhv-welco me-message -span" cla ss="usa-wi dth-one-ha lf"> | |
220 | ||
221 | <span id=" mhv-welcom e-user"> | |
222 | ||
223 | We lcome <%=w elcomeName %> | |
224 | ||
225 | <c :if test=" <%=showDel egateUserT ext%>"> | |
226 | <spa n id="mhv- delegate-f or-veteran "> | |
227 | you ar e logged i n on behal f of | |
228 | <%=ses sion.getAt tribute("u serProfile DelegatorF irstLastNa meNew")%> | |
229 | </sp an> | |
230 | </ c:if> | |
231 | ||
232 | (< a href="<% =friendlyU rl%>/my-he althevet-o ffers-thre e-account- types#$acc ount_type_ lower"><%= accountTyp e%> | |
233 | ||
234 | <c :if test=" <%=isPremi um%>"> | |
235 | <img | |
236 | src="< %=themeDis play.getPa thThemeIma ges()%>/ac count-prem ium.png" | |
237 | class= "mhv-login -image" al t="premium account" | |
238 | title= "You have a Premium Account" / > | |
239 | </ c:if> | |
240 | ||
241 | <c :if test=" <%=isAdvan ced%>"> | |
242 | <img | |
243 | src="< %=themeDis play.getPa thThemeIma ges()%>/ac count-adva nced.png" | |
244 | class= "mhv-login -image" al t="advance d account" | |
245 | title= "You have an Advance d Account" /> | |
246 | </ c:if> | |
247 | ||
248 | <c :if test=" <%=isBasic %>"> | |
249 | <img | |
250 | src="< %=themeDis play.getPa thThemeIma ges()%>/ac count-basi c.png" | |
251 | class= "mhv-login -image" al t="basic a ccount" | |
252 | title= "You have a Basic Ac count" /> | |
253 | </ c:if> | |
254 | ||
255 | </ a>) | |
256 | ||
257 | </span> | |
258 | ||
259 | <br /> | |
260 | ||
261 | <span id=" mhv-last-s uccessfull -login"> | |
262 | La st success ful login : | |
263 | <f mt:formatD ate value= "<%=user.g etLastLogi nDate()%>" pattern=" dd MMM yyy y @ HHmm" timeZone=" America/Ne w_York"/> ET | |
264 | </span> | |
265 | ||
266 | </div> | |
267 | ||
268 | <div id= "mhv-login -button-sp an" class= "usa-width -one-half" > | |
269 | <!-- <a h ref="/c/po rtal/logou t?referer= /dashboard " id="mhv- header-log out-button " class="m hv-logout- span-link" onclick=" document.c ookie='Tok en=none;pa th=/;';mhv Token=unde fined;sess ionStorage .setItem(' mhv_Global TCCheck', 'false');" > --> | |
270 | <a href="/ c/portal/l ogout?refe rer=/dashb oard" id=" mhv-header -logout-bu tton" clas s="mhv-log out-span-l ink"> | |
271 | <i class="fa fa-sign-o ut"></i> | |
272 | Lo g Out | |
273 | </a> | |
274 | <c:if test ="<%=showS witchAccou ntText%>"> | |
275 | <a href="<%= mhvContext %>/mhv-por tal-web/ea uth" id="m hv-header- switch-use r-button" class="mhv -logout-sp an-link"> | |
276 | <spa n id="swit ch-user-ic on"></span > | |
277 | Swit ch Account s | |
278 | </ a> | |
279 | </c:if> | |
280 | </div> | |
281 | </div> | |
282 | </se ction> | |
283 | ||
284 | <% | |
285 | /* Get the Terms and Condi tions arti cle by the title... */ | |
286 | String content2 = StringPo ol.BLANK; | |
287 | try{ | |
288 | String a rticleName 2 = "terms -condition s"; // "Te rms Condit ions" gets changed t o this! | |
289 | JournalA rticle jou rnalArticl e2 = Journ alArticleL ocalServic eUtil.getA rticleByUr lTitle(the meDisplay. getScopeGr oupId(), a rticleName 2); | |
290 | String a rticleId2 = journalA rticle2.ge tArticleId (); | |
291 | JournalA rticleDisp lay articl eDisplay2 = JournalC ontentUtil .getDispla y(themeDis play.getSc opeGroupId (), articl eId2,"", " ", themeDi splay); | |
292 | content2 = article Display2.g etContent( ); | |
293 | } catc h (Excepti on e) { | |
294 | content2 = ""; | |
295 | /* Syste m.out.prin tln("Error finding T erms Condi tions arti cle:"+e.to String()); */ | |
296 | } | |
297 | %> | |
298 | ||
299 | <sec tion id="t cForm" cla ss="modal fade" tabi ndex="-1" role="dial og" aria-l abelledby= "tcFormLab el" aria-h idden="tru e" style=" display:no ne;top:5%; width:95%; margin:0 a uto;left:2 .5%;"> | |
300 | <div c lass="moda l-header"> | |
301 | <!-- <bu tton type= "button" r ole="butto n" class=" close" dat a-dismiss= "modal" ar ia-hidden= "true">x</ button> -- > | |
302 | <h3 id=" tcFormLabe l"> | |
303 | <span id=" tcTitle" s tyle="disp lay:none;" > | |
304 | Yo u are Requ ired <span id="tcDat e"></span> to Accept the New T erms & Condition s | |
305 | </span> | |
306 | <span id=" previewTit le" style= "display:n one; text- align: jus tify; font -weight: b old;"> | |
307 | Th e My Healt heVet Term s and Cond itions are changing. Please r eview and accept the m to conti nue. | |
308 | </span> | |
309 | </h3> | |
310 | </div> | |
311 | <div c lass="moda l-body"> | |
312 | <%=conte nt2%> | |
313 | </div> | |
314 | <div c lass="moda l-footer"> | |
315 | <h4 id=" iDeferDesc ription" s tyle="disp lay:none;" > | |
316 | If you sel ect Ask Me Later, th e system w ill ask yo u to accep t the new Terms and Conditions | |
317 | the next t ime you lo g in to My HealtheVe t. To con tinue to u se My Heal theVet fea tures and | |
318 | receive em ail notifi cations an d reminder s, you wil l need to accept the new Terms and Condi tions. | |
319 | </h4> | |
320 | <a href= "/mhv-port al-web/doc uments/252 86/25831/B lueButtonU serGuide-O zNR1OlR.pd f/b0e35dbd -f2dc-445d -be0a-2530 681d1a67" target="_b lank" clas s="float-r ight">View and Print PDF versi on</a> | |
321 | <button id="iAgree Button" ty pe="button " class="b tn float-l eft" role= "button"> | |
322 | I Accept | |
323 | </button > | |
324 | <button id="iDisag reeButton" type="but ton" class ="btn floa t-left" ro le="button " style="d isplay:non e;"> | |
325 | I Decline | |
326 | </button > | |
327 | <button id="iDefer Button" ty pe="button " class="b tn float-l eft" role= "button" s tyle="disp lay:none;" > | |
328 | Ask Me Lat er | |
329 | </button > | |
330 | </div> | |
331 | </se ction> | |
332 | ||
333 | <scr ipt> | |
334 | var mhvTok en = '<%=s ession.get Attribute( "APISessio nToken")%> '; | |
335 | var mhvSes sion = '<% =session.g etId()%>'; | |
336 | var tcDial og; | |
337 | ||
338 | function s howTermsAn dCondition sBootstrap (preview, showDate, requiredDa teStr) { | |
339 | ||
340 | if ( preview == 'true' ) { | |
341 | jQuery(" #previewTi tle").show (); | |
342 | jQuery(" #tcTitle") .hide(); | |
343 | jQue ry("#previ ewDate").h tml(requir edDateStr) ; | |
344 | jQue ry("#iDefe rButton"). show(); | |
345 | jQue ry("#iDefe rDescripti on").show( ); | |
346 | jQue ry("#iDisa greeButton ").hide(); | |
347 | } else { | |
348 | jQuery(" #tcTitle") .show(); | |
349 | jQuery(" #previewTi tle").hide (); | |
350 | jQue ry("#iDisa greeButton ").show(); | |
351 | jQue ry("#iDefe rButton"). hide(); | |
352 | jQue ry("#iDefe rDescripti on").hide( ); | |
353 | } | |
354 | ||
355 | jQuery ('#tcForm' ).show(); | |
356 | jQ uery('#tcF orm').focu s(); | |
357 | jQ uery('#tcF orm').moda l({ | |
358 | backdr op: 'stati c', | |
359 | keyboa rd: false, | |
360 | show: true | |
361 | }) ; | |
362 | ||
363 | jQuery ("#iAgreeB utton").cl ick(functi on(){ | |
364 | jQuery(' #tcForm'). modal('hid e'); | |
365 | agreeLat estTC(true ); | |
366 | }) ; | |
367 | ||
368 | jQuery ("#iDisagr eeButton") .click(fun ction(){ | |
369 | jQuery(' #tcForm'). modal('hid e'); | |
370 | agreeLat estTC(fals e); | |
371 | }) ; | |
372 | ||
373 | jQuery ("#iDeferB utton").cl ick(functi on(){ | |
374 | jQuery(' #tcForm'). modal('hid e'); | |
375 | closeDia logAgree() ; | |
376 | }) ; | |
377 | ||
378 | jQuery ("#tcForm .modal-bod y a").each (function( ) { | |
379 | jQuery(t his).repla ceWith(jQu ery(this). text()); | |
380 | }); | |
381 | } | |
382 | ||
383 | if( sessio nStorage.g etItem("mh v_Session" ) == null || session Storage.ge tItem("mhv _Session") != mhvSes sion ) { | |
384 | //New session cr eated shar ed browser | |
385 | sessio nStorage.s etItem("mh v_Session" , mhvSessi on); | |
386 | sessio nStorage.s etItem("mh v_GlobalTC Check", "f alse"); | |
387 | } | |
388 | ||
389 | function a greeLatest TC( value ) | |
390 | { | |
391 | termsUR I = '/mhv- portal-web /mhvapi/v1 /usermgmt/ external/t ermscondit ions/accep t/'+value; | |
392 | req = n ew XMLHttp Request(); | |
393 | req.onl oad = func tion() { i f( !value ) { closeD ialogDisag ree(); } e lse { clos eDialogAgr ee(); }}; | |
394 | req.ope n("POST", termsURI, true); | |
395 | req.res ponseType = "string" ; | |
396 | req.set RequestHea der('Token ',mhvToken ); | |
397 | req.sen d(null); | |
398 | } | |
399 | ||
400 | function h asLatestTC () | |
401 | { | |
402 | termsUR I = '/mhv- portal-web /mhvapi/v1 /usermgmt/ external/t ermscondit ions/hasAc ceptedLate st?_='+new Date().ge tTime(); | |
403 | req = n ew XMLHttp Request(); | |
404 | req.onl oad = func tion() { s howTCDialo g( JSON.pa rse(this.r esponse) ) ; }; | |
405 | req.ope n("GET", t ermsURI, t rue); | |
406 | req.res ponseType = "string" ; | |
407 | req.set RequestHea der('Token ',mhvToken ); | |
408 | req.sen d(null); | |
409 | } | |
410 | ||
411 | function s howTCDialo g(response ) { | |
412 | //Pars e the JSON response (acceptedL atest, acc eptedRequi red) | |
413 | if( re sponse.req uired == ' true' ) { | |
414 | showTerm sAndCondit ionsBootst rap(respon se.preview , response .showDate, response. requiredDa teStr); | |
415 | } else { | |
416 | //If T&C already a ccepted do n't check again duri ng this se ssion | |
417 | sessionS torage.set Item("mhv_ GlobalTCCh eck", "tru e"); | |
418 | } | |
419 | } | |
420 | ||
421 | function c loseDialog Agree() { | |
422 | sessio nStorage.s etItem("mh v_GlobalTC Check", "t rue"); | |
423 | } | |
424 | ||
425 | function c loseDialog Disagree() { | |
426 | mhvTok en=undefin ed; | |
427 | sessio nStorage.s etItem("mh v_GlobalTC Check", "f alse"); | |
428 | window.loc ation.assi gn("/mhv-p ortal-web/ c/portal/l ogout"); | |
429 | } | |
430 | ||
431 | if( sessio nStorage.g etItem("mh v_GlobalTC Check") == "false" ) { | |
432 | hasLat estTC(); | |
433 | } | |
434 | </sc ript> | |
435 | ||
436 | </ c:when> | |
437 | ||
438 | <c :otherwise > | |
439 | ||
440 | <% | |
441 | String redirect = ParamUti l.getStrin g(request, "redirect "); | |
442 | Boolea n isSamlSS O = redire ct.contain s("/saml/s so"); | |
443 | ||
444 | String login = L oginUtil | |
445 | .getLogin( request, " login", co mpany); | |
446 | String password = StringPo ol.BLANK; | |
447 | boolea n remember Me = Param Util.getBo olean(requ est, | |
448 | "rememberM e"); | |
449 | ||
450 | if (Va lidator.is Null(authT ype)) { | |
451 | authType = company .getAuthTy pe(); | |
452 | } | |
453 | %> | |
454 | ||
455 | <por tlet:actio nURL | |
456 | secure ="<%=Props Values.COM PANY_SECUR ITY_AUTH_R EQUIRES_HT TPS | |
457 | || req uest.isSec ure()%>" | |
458 | var="l oginURL"> | |
459 | <portl et:param n ame="strut s_action" value="/lo gin/login" /> | |
460 | </po rtlet:acti onURL> | |
461 | ||
462 | <a n ame="p_58" ></a> | |
463 | ||
464 | <% | |
465 | String contxt = Props Util.get(" mhv.contex t"); | |
466 | String currentUr l = theme Display.ge tURLCurren t(); | |
467 | String currentPa ge = curre ntUrl.subs tring(curr entUrl.las tIndexOf(' /') + 1).t rim().toLo werCase(); | |
468 | String urlQueryP arams = "" ; | |
469 | ||
470 | if (cu rrentPage. indexOf("? ") != -1) { | |
471 | urlQuery Params = c urrentPage .substring (currentPa ge.indexOf ("?")); | |
472 | currentP age = curr entPage.su bstring(0, currentPag e.indexOf( "?")); | |
473 | } | |
474 | ||
475 | boolea n isLoginP age = (cur rentPage.e quals("use r-login")) ; | |
476 | boolea n isRegist erPage = ( currentPag e.equals(" user-regis tration")) ; | |
477 | ||
478 | boolea n showLogi nRegister = (!curren tPage.equa ls("user-l ogin")) && !isSamlSS O; | |
479 | %> | |
480 | ||
481 | <c:c hoose> | |
482 | ||
483 | <c:whe n test="<% =showLogin Register%> "> | |
484 | ||
485 | <section id="mhv-w elcome-bar -guest" cl ass="usa-s ection"> | |
486 | <div class ="usa-grid "> | |
487 | <s pan id="mh v-welcome- message-sp an" class= "usa-width -one-half" > | |
488 | Logi n to Manag e Your Hea lthcare | |
489 | </ span> | |
490 | <s pan id="mh v-login-bu tton-span" class="us a-width-on e-half"> | |
491 | <c:c hoose> | |
492 | <c:whe n test="<% =isLoginPa ge%>"> | |
493 | <a class ="btn btn- success us a-button-b ig" id="mh v-header-l ogin-butto n" href="< %=friendly Url%>/user -registrat ion">Regis ter</a> | |
494 | </c:wh en> | |
495 | <c:whe n test="<% =isRegiste rPage%>"> | |
496 | <a class ="btn btn- success us a-button-b ig" id="mh v-header-l ogin-butto n" href="< %=friendly Url%>/user -login<%=u rlQueryPar ams%>">Log in</a> | |
497 | </c:wh en> | |
498 | <c:oth erwise> | |
499 | <a class ="btn btn- success us a-button-b ig" id="mh v-header-l ogin-butto n" href="< %=friendly Url%>/user -login<%=u rlQueryPar ams%>">Log in or Regi ster</a> | |
500 | </c:ot herwise> | |
501 | </c: choose> | |
502 | </ span> | |
503 | </div> | |
504 | </sectio n> | |
505 | ||
506 | </c:wh en> | |
507 | ||
508 | <c:oth erwise> | |
509 | ||
510 | <% -- | |
511 | Anything with the class "sho w-after-ag ree" has t o remain h idden | |
512 | until af ter the Ve teran clic ks on the "I Agree" button (Un less in th e IDP scen ario) | |
513 | UNLESS t here are e rrors subm itting the form, whi ch causes the page t o | |
514 | be reloa ded and wo uld again just show the agree div if we don't do s omething. | |
515 | So the p age title has to be above the error mess ages but t he monitor ing consen t form | |
516 | has to b e shown on ly if ther e have bee n no error s detected /shown to the user. | |
517 | -- %> | |
518 | ||
519 | <div cla ss="show-a fter-agree " style="d isplay:non e;"> | |
520 | ||
521 | <section id="mhv-l ogin-forms "> | |
522 | ||
523 | <c:if test ="<%=!isSa mlSSO%>"> | |
524 | ||
525 | <h 1>Choose Y our Login< /h1> | |
526 | ||
527 | </c:if> | |
528 | ||
529 | <c:set var ="errorCou nt" value= "0" scope= "page" /> | |
530 | ||
531 | <c:choose> | |
532 | ||
533 | <c :when test ='<%=Sessi onMessages .contains( request, " userAdded" )%>'> | |
534 | <% | |
535 | String userEmail Address = (String) S essionMess ages | |
536 | .get(req uest, "use rAdded"); | |
537 | String userPassw ord = (Str ing) Sessi onMessages | |
538 | .get(req uest, "use rAddedPass word"); | |
539 | %> | |
540 | <c:s et var="er rorCount" value="${e rrorCount + 1}" scop e="page"/> | |
541 | <div class="us a-alert us a-alert-su ccess"> | |
542 | <div c lass="usa- alert-body "> | |
543 | <h3 clas s="alert-h eading"> | |
544 | <c:choose> | |
545 | <c:w hen test=" <%=company .isStrange rsVerify() | |
546 | || Valid ator.isNul l(userPass word)%>"> | |
547 | <%=Lan guageUtil. get(pageCo ntext, | |
548 | "thank-y ou-for-cre ating-an-a ccount")%> | |
549 | <c:if test ="<%=compa ny.isStran gersVerify ()%>"> | |
550 | <%=Langu ageUtil.fo rmat(pageC ontext, | |
551 | "your-emai l-verifica tion-code- has-been-s ent-to-x", | |
552 | userEmailA ddress)%> | |
553 | </c:if > | |
554 | </c: when> | |
555 | <c:o therwise> | |
556 | <%=Lan guageUtil. format(pag eContext, | |
557 | "thank-you -for-creat ing-an-acc ount.-your -password- is-x", | |
558 | userPasswo rd, false) %> | |
559 | </c: otherwise> | |
560 | </ c:choose> | |
561 | </h3> | |
562 | <p class=" usa-alert- text"> | |
563 | <c :if test=" <%=PrefsPr opsUtil.ge tBoolean( | |
564 | comp any.getCom panyId(), | |
565 | Prop sKeys.ADMI N_EMAIL_US ER_ADDED_E NABLED)%>" > | |
566 | <%=L anguageUti l.format(p ageContext , | |
567 | "your- password-h as-been-se nt-to-x", | |
568 | userEm ailAddress )%> | |
569 | </ c:if> | |
570 | </p> | |
571 | </div> | |
572 | </div> | |
573 | </c: when> | |
574 | ||
575 | <c:w hen test=' <%=Session Messages.c ontains(re quest, "us erPending" )%>'> | |
576 | <c:set var="erro rCount" va lue="${err orCount + 1}" scope= "page"/> | |
577 | <% | |
578 | String u serEmailAd dress = (S tring) Ses sionMessag es | |
579 | .get(reque st, "userP ending"); | |
580 | %> | |
581 | <div c lass="usa- alert usa- alert-succ ess"> | |
582 | <div cl ass="usa-a lert-body" > | |
583 | <h3 class= "usa-alert -heading"> | |
584 | <% =LanguageU til.format (pageConte xt, | |
585 | "tha nk-you-for -creating- an-account .-you-will -be-notifi ed-via-ema il-at-x-wh en-your-ac count-has- been-appro ved", | |
586 | user EmailAddre ss)%> | |
587 | </ h3> | |
588 | <p class=" usa-alert- text">&nbs p;</p> | |
589 | </div> | |
590 | </div> | |
591 | </c: when> | |
592 | ||
593 | <c:w hen test=' <%=Session Messages.c ontains(re quest, "Sy stemDownEx ception")% >'> | |
594 | <c:set var="erro rCount" va lue="${err orCount + 1}" scope= "page"/> | |
595 | <div c lass="usa- alert usa- alert-erro r" role="a lert"> | |
596 | <div cla ss="usa-al ert-body"> | |
597 | <h3 class= "usa-alert -heading"> System is down.</h3> | |
598 | <p class=" usa-alert- text">Plea se contact your syst em adminis trator</p> | |
599 | </div> | |
600 | </div> | |
601 | </c: when> | |
602 | ||
603 | <c:w hen test=' <%=Session Messages.c ontains(re quest, "Us erDeactiva tedExcepti on")%>'> | |
604 | <c:set var="erro rCount" va lue="${err orCount + 1}" scope= "page"/> | |
605 | <div c lass="usa- alert usa- alert-erro r" role="a lert"> | |
606 | <div cla ss="usa-al ert-body"> | |
607 | <h3 class= "usa-alert -heading"> | |
608 | Yo ur My Heal theVet | |
609 | ac count has been deact ivated. | |
610 | </h3> | |
611 | <p class=" usa-alert- text"> | |
612 | Pl ease call the | |
613 | <a href="<%= contxt%>/c ontact-mhv ">My Healt heVet Help Desk</a> | |
614 | at 1-877-327 -0022 or 1 -800-877-8 339 (TTY). | |
615 | </p> | |
616 | </div> | |
617 | </div> | |
618 | </c: when> | |
619 | ||
620 | </ c:choose> | |
621 | ||
622 | <l iferay-ui: error exce ption="<%= AuthExcept ion.class% >"> | |
623 | <c:s et var="er rorCount" value="${e rrorCount + 1}" scop e="page"/> | |
624 | <div class="us a-alert us a-alert-er ror" role= "alert"> | |
625 | <div c lass="usa- alert-body "> | |
626 | <h3 clas s="usa-ale rt-heading "> | |
627 | Please che ck your in formation | |
628 | </h3> | |
629 | <p class ="usa-aler t-text"> | |
630 | My Healthe Vet did no t find any | |
631 | account wi th your My HealtheVe t User | |
632 | ID and Pas sword. | |
633 | </p> | |
634 | <p class ="usa-aler t-text"> | |
635 | Please con tact the < a href="<% =friendlyU rl%>/conta ct-mhv">My | |
636 | HealtheVet Help Desk </a> for a ssistance. | |
637 | </p> | |
638 | </div> | |
639 | </di v> | |
640 | </ liferay-ui :error> | |
641 | ||
642 | <l iferay-ui: error exce ption="<%= UserLockou tException .class%>"> | |
643 | <c:s et var="er rorCount" value="${e rrorCount + 1}" scop e="page"/> | |
644 | <div class="us a-alert us a-alert-er ror" role= "alert"> | |
645 | <div c lass="usa- alert-body "> | |
646 | <h3 clas s="usa-ale rt-heading "> | |
647 | Recheck In formation | |
648 | </h3> | |
649 | <p class ="usa-aler t-text"> | |
650 | MHV was un able to pr ocess this form | |
651 | </p> | |
652 | <ul clas s="usa-ale rt-text"> | |
653 | <li> | |
654 | Yo ur account has been frozen. | |
655 | Th ere have b een too ma ny tries t o log into your acco unt. | |
656 | Fo r security reasons, your accou nt has bee n frozen f or 30 minu tes. You c an: | |
657 | <o l> | |
658 | <li> try again in 30 minu tes or</li > | |
659 | <li> forgot pas sword <a h ref="<%=fr iendlyUrl% >/forgot-u ser-id?act ion=new">c lick here< /a> or</li > | |
660 | <li> contact ou r helpdesk for assis tance <a h ref="<%=fr iendlyUrl% >/contact- mhv">click here</a>< /li> | |
661 | </ ol> | |
662 | </li> | |
663 | </ul> | |
664 | <p class ="usa-aler t-text"> | |
665 | Please con tact the < a href="<% =friendlyU rl%>/conta ct-mhv">My | |
666 | HealtheVet Help Desk </a> for a ssistance. | |
667 | </p> | |
668 | </div> | |
669 | </di v> | |
670 | </ liferay-ui :error> | |
671 | ||
672 | <l iferay-ui: error exce ption="<%= PasswordEx piredExcep tion.class %>"> | |
673 | <c:s et var="er rorCount" value="${e rrorCount + 1}" scop e="page"/> | |
674 | <div class="us a-alert us a-alert-er ror" role= "alert"> | |
675 | <div c lass="usa- alert-body "> | |
676 | <h3 clas s="usa-ale rt-heading "> | |
677 | Recheck In formation | |
678 | </h3> | |
679 | <p class ="usa-aler t-text"> | |
680 | MHV was un able to pr ocess this form | |
681 | </p> | |
682 | <ul clas s="usa-ale rt-text"> | |
683 | <li>The te mporary pa ssword for this acco unt has ex pired. Ple ase reset your passw ord. </li> | |
684 | </ul> | |
685 | <p class ="usa-aler t-text">> | |
686 | Please con tact the < a href="<% =friendlyU rl%>/conta ct-mhv">My | |
687 | HealtheVet Help Desk </a> Pleas e correct and resubm it. | |
688 | </p> | |
689 | </div> | |
690 | </di v> | |
691 | </ liferay-ui :error> | |
692 | ||
693 | <l iferay-ui: error exce ption="<%= UserLockou tException .class%>"> | |
694 | <c:s et var="er rorCount" value="${e rrorCount + 1}" scop e="page"/> | |
695 | <div class="us a-alert us a-alert-er ror" role= "alert"> | |
696 | <div c lass="usa- alert-body "> | |
697 | <h3 clas s="usa-ale rt-heading "> | |
698 | Recheck In formation | |
699 | </h3> | |
700 | <p class ="usa-aler t-text"> | |
701 | MHV was un able to pr ocess this form | |
702 | </p> | |
703 | <ul clas s="usa-ale rt-text"> | |
704 | <li> | |
705 | Yo ur account has been frozen. | |
706 | Th ere have b een too ma ny tries t o log into your acco unt. | |
707 | Fo r security reasons, your accou nt has bee n frozen f or 30 minu tes. You c an: | |
708 | <o l> | |
709 | <li> try again in 30 minu tes or</li > | |
710 | <li> forgot pas sword <a h ref="<%=fr iendlyUrl% >/forgot-u ser-id?act ion=new">c lick here< /a> or</li > | |
711 | <li> contact ou r helpdesk for assis tance <a h ref="<%=fr iendlyUrl% >/contact- mhv">click here</a>< /li> | |
712 | </ ol> | |
713 | </li> | |
714 | </ul> | |
715 | <p class ="usa-aler t-text"> | |
716 | Please con tact the < a href="<% =friendlyU rl%>/conta ct-mhv">My | |
717 | HealtheVet Help Desk </a> for a ssistance. | |
718 | </p> | |
719 | </div> | |
720 | </di v> | |
721 | </ liferay-ui :error> | |
722 | ||
723 | <l iferay-ui: error exce ption="<%= PasswordEx piredExcep tion.class %>"> | |
724 | <c:s et var="er rorCount" value="${e rrorCount + 1}" scop e="page"/> | |
725 | <div class="us a-alert us a-alert-er ror" role= "alert"> | |
726 | <div c lass="usa- alert-body "> | |
727 | <h3 clas s="usa-ale rt-heading "> | |
728 | Recheck In formation | |
729 | </h3> | |
730 | <p class ="usa-aler t-text"> | |
731 | MHV was un able to pr ocess this form | |
732 | </p> | |
733 | <ul clas s="usa-ale rt-text"> | |
734 | <li>The te mporary pa ssword for this acco unt has ex pired. Ple ase reset your passw ord. </li> | |
735 | </ul> | |
736 | <p class ="usa-aler t-text"> | |
737 | Please con tact the < a href="<% =friendlyU rl%>/conta ct-mhv">My | |
738 | HealtheVet Help Desk </a> Pleas e correct and resubm it. | |
739 | </p> | |
740 | </div> | |
741 | </di v> | |
742 | </ liferay-ui :error> | |
743 | ||
744 | <a ui:form ac tion="<%=l oginURL%>" | |
745 | auto complete=' <%=PropsVa lues.COMPA NY_SECURIT Y_LOGIN_FO RM_AUTOCOM PLETE ? "o n" : "off" %>' | |
746 | cssC lass="usa- form" meth od="post" name="fm"> | |
747 | ||
748 | <aui :input nam e="saveLas tPath" typ e="hidden" value="<% =false%>" /> | |
749 | ||
750 | <aui :input nam e="redirec t" type="h idden" val ue="<%=red irect%>" / > | |
751 | ||
752 | <aui :input nam e="doActio nAfterLogi n" type="h idden" | |
753 | value= "<%=portle tName.equa ls(Portlet Keys.FAST_ LOGIN) ? t rue : fals e%>" /> | |
754 | ||
755 | <div id="mhv-l ogin-form" class="us a-section mhv-paddin g-top-bott om"> | |
756 | <aui:f ieldset> | |
757 | ||
758 | <legend class="usa -drop_text "> | |
759 | Sign in to My Health eVet | |
760 | </legend > | |
761 | ||
762 | <c:if te st="<%=!is SamlSSO%>" > | |
763 | <span> or <a href="< %=friendly Url%>/user -registrat ion">creat e an accou nt</a></sp an> | |
764 | </c:if> | |
765 | ||
766 | <aui:inp ut | |
767 | autoFocus= "<%=window State.equa ls(Liferay WindowStat e.EXCLUSIV E) | |
768 | || windowS tate.equal s(WindowSt ate.MAXIMI ZED)%>" | |
769 | cssClass=" clearable" label="My HealtheVe t User ID" name="log in" id="lo ginField" | |
770 | showRequir edLabel="< %=false%>" type="tex t" value=" <%=login%> "> | |
771 | <aui:valid ator name= "required" /> | |
772 | </aui:in put> | |
773 | ||
774 | <aui:inp ut name="p assword" l abel="My H ealtheVet Password" | |
775 | showRequir edLabel="< %=false%>" type="pas sword" id= "passwordF ield" | |
776 | value="<%= password%> "> | |
777 | <aui:valid ator name= "required" /> | |
778 | </aui:in put> | |
779 | <span id ="<portlet :namespace />passwor dCapsLockS pan" | |
780 | style="dis play: none ;"><lifera y-ui:messa ge | |
781 | key="caps- lock-is-on " /></span > | |
782 | <input t ype="submi t" value=" Sign in" / > | |
783 | <p> | |
784 | <a href="< %=friendly Url%>/forg ot-user-id ?action=ne w">Forgot User ID?</ a> | |
785 | </p><p> | |
786 | <a href="< %=friendly Url%>/forg ot-passwor d?action=n ew">Forgot Password? </a> | |
787 | </p> | |
788 | ||
789 | </aui: fieldset> | |
790 | ||
791 | </di v> | |
792 | ||
793 | </ aui:form> | |
794 | ||
795 | <c :if test=" <%=!isSaml SSO%>"> | |
796 | ||
797 | <aui :fieldset> | |
798 | ||
799 | <legen d class="u sa-drop_te xt"> | |
800 | Or use D S Logon<br /> | |
801 | Departme nt of Defe nse Self-S ervice Log on | |
802 | </lege nd> | |
803 | ||
804 | <div i d="dslogon -option"> | |
805 | <input c lass="btn" type="but ton" | |
806 | onclick="s erverLooku pAccessVA( );" | |
807 | value="DS Logon" /> | |
808 | </div> | |
809 | ||
810 | </au i:fieldset > | |
811 | ||
812 | </ c:if> | |
813 | ||
814 | </section> | |
815 | ||
816 | </div> | |
817 | ||
818 | <c:if te st="${ err orCount != 0 }"> | |
819 | <script> | |
820 | jQ uery('.sho w-after-ag ree').show (); | |
821 | </script> | |
822 | </c:if> | |
823 | ||
824 | <c:if te st="${ err orCount == 0 }"> | |
825 | ||
826 | <section i d="mhv-log in-warning -banner"> | |
827 | ||
828 | <% | |
829 | /* G et the Mon itoring Co nsent Agre ement arti cle by the title... */ | |
830 | Stri ng content = StringP ool.BLANK; | |
831 | try{ | |
832 | String articleNa me = "moni toring-con sent-agree ment"; // "Monitorin g Consent Agreement" gets chan ged to thi s! | |
833 | Journa lArticle j ournalArti cle = Jour nalArticle LocalServi ceUtil.get ArticleByU rlTitle(th emeDisplay .getScopeG roupId(), articleNam e); | |
834 | String articleId = journal Article.ge tArticleId (); | |
835 | Journa lArticleDi splay arti cleDisplay = Journal ContentUti l.getDispl ay(themeDi splay.getS copeGroupI d(), artic leId,"", " ", themeDi splay); | |
836 | conten t = articl eDisplay.g etContent( ); | |
837 | } ca tch (Excep tion e) { | |
838 | conten t = "<!--E xception-- ><h2>Syste m User Sec urity Noti fication S tatement</ h2><p>I un derstand t hat I am a ccessing a US Govern ment (USG) , Departme nt of Vete rans Affai rs compute r system.< /p><p>I un derstand t hat as an authorized user I ma y only acc ess inform ation to w hich I hav e the lega l authorit y to view and use. T he VA will monitor a ctivity on this syst em to prot ect the sy stem and i ts informa tion and m ay use tha t monitori ng informa tion for o fficial ad ministrati ve or lega l purposes .</p><p>I understand that gain ing unauth orized acc ess to dat a, changin g data, ca using harm to the VA system or its data or misuse of My Heal theVet com ponents is prohibite d by law a nd may res ult in cri minal, civ il, or adm inistrativ e penaltie s.</p><p>I also unde rstand tha t VA can s uspend or stop my au thorized u se of this system if VA suspec ts any mis use attrib utable to my account has occur red.</p><p >By access ing this s ystem, I h ereby ackn owledge th e above an d consent to such mo nitoring.< /p>"; | |
839 | /* Sys tem.out.pr intln("Err or finding Monitorin g Consent Agreement article:"+ e.toString ()); */ | |
840 | } | |
841 | %> | |
842 | ||
843 | <d iv id="sys tem-use-no tification -content"> | |
844 | <%=c ontent%> | |
845 | </ div> | |
846 | ||
847 | <d iv> | |
848 | <str ong> | |
849 | By cli cking on t his button , you are agreeing w ith the st atements a bove. | |
850 | <br /> | |
851 | If you do not ag ree, then you will n ot be able to procee d because the | |
852 | login options wi ll remain hidden. | |
853 | </st rong> | |
854 | </ div> | |
855 | ||
856 | <d iv class=" control-gr oup"> | |
857 | <lab el for="wa rningAgree Button"> | |
858 | <a id= "agree-lin k" href="# mhv-login- forms" cla ss="btn bt n-primary btn-agree" >I Agree</ a> | |
859 | <a hre f="<%=frie ndlyUrl%>/ home" clas s="btn btn -secondary btn-disag ree">I Do Not Agree< /a> | |
860 | </la bel> | |
861 | </ div> | |
862 | ||
863 | </section> | |
864 | ||
865 | </c:if> | |
866 | ||
867 | <c:if te st="<%=isS amlSSO%>"> | |
868 | <script> | |
869 | jQuery('#m hv-login-w arning-ban ner').hide (); | |
870 | jQ uery('.sho w-after-ag ree').show (); | |
871 | </script> | |
872 | </ c:if> | |
873 | ||
874 | </c:ot herwise> | |
875 | ||
876 | </c: choose> | |
877 | ||
878 | ||
879 | <aui :script us e="aui-bas e"> | |
880 | var pa ssword = A .one('#<po rtlet:name space />pa ssword'); | |
881 | ||
882 | if (pass word) { | |
883 | pass word.on( | |
884 | 'keypr ess', | |
885 | function(e vent) { | |
886 | Lifera y.Util.sho wCapsLock( event, '<p ortlet:nam espace />p asswordCap sLockSpan' ); | |
887 | } | |
888 | ); | |
889 | } | |
890 | </au i:script> | |
891 | ||
892 | <scr ipt> | |
893 | ||
894 | functi on serverL ookupAcces sVA() { | |
895 | var serv erName = l ocation.ho stname; | |
896 | ||
897 | if(serverN ame == " PW .myhealth. DNS ") { | |
898 | window.loc ation.href ="https:// webct2.dmd c.osd.mil/ identityma nagement/a uthenticat e.do?gotoU rl=https:/ /webct2.dm dc.osd.mil /opensso/S AMLAwareSe rvlet?TARG ET=https:/ /int.eauth . DNS /mhv-porta l-web/eaut h"; | |
899 | } else if (serverNam e == "mhv- syst.myhea lth. DNS ") { | |
900 | window.loc ation.href ="https:// webct2.dmd c.osd.mil/ identityma nagement/a uthenticat e.do?gotoU rl=https:/ /webct2.dm dc.osd.mil /opensso/S AMLAwareSe rvlet?TARG ET=https:/ / DNS . DNS : PORT /mhv-porta l-web/eaut h"; | |
901 | } else if (serverNam e == "www- ppd.myheal th. DNS ") { | |
902 | window.loc ation.href ="https:// webct2.dmd c.osd.mil/ identityma nagement/a uthenticat e.do?gotoU rl=https:/ /webct2.dm dc.osd.mil /opensso/S AMLAwareSe rvlet?TARG ET=https:/ /sqa.eauth . DNS : PORT /mhv-porta l-web/eaut h"; | |
903 | } else if (serverNam e == "www. myhealth. DNS ") { | |
904 | window.loc ation.href ="https:// myaccess.d mdc.osd.mi l/identity management /authentic ate.do?got oUrl=https ://myacces s.dmdc.osd .mil/opens so/SAMLAwa reServlet% 3FTARGET=h ttps://eau th. DNS /mhv-porta l-web/eaut h"; | |
905 | } else if (serverNam e == "myhe alth. DNS ") { | |
906 | window.loc ation.href ="https:// myaccess.d mdc.osd.mi l/identity management /authentic ate.do?got oUrl=https ://myacces s.dmdc.osd .mil/opens so/SAMLAwa reServlet% 3FTARGET=h ttps://eau th. DNS /mhv-porta l-web/eaut h"; | |
907 | } else if (serverNam e == "mhv. myhealth. DNS ") { | |
908 | window.loc ation.href ="https:// myaccess.d mdc.osd.mi l/identity management /authentic ate.do?got oUrl=https ://myacces s.dmdc.osd .mil/opens so/SAMLAwa reServlet% 3FTARGET=h ttps://eau th. DNS /mhv-porta l-web/eaut h"; | |
909 | } else i f (serverN ame == "12 7.0.0.1" | | serverNa me == "loc alhost") { | |
910 | window.loc ation.href ="https:// webct2.dmd c.osd.mil/ identityma nagement/a uthenticat e.do?gotoU rl=https:/ /webct2.dm dc.osd.mil /opensso/S AMLAwareSe rvlet?TARG ET=https:/ /int.eauth . DNS /mhv-porta l-web/eaut h"; | |
911 | } | |
912 | } | |
913 | ||
914 | </sc ript> | |
915 | ||
916 | </ c:otherwis e> | |
917 | </c:choose > | |
918 | ||
919 | <script> | |
920 | ||
921 | fu nction res izeTcFormM odal() { | |
922 | if ( jQuery('#t cForm').ha sClass('in ')) { | |
923 | var wi ndowHeight = jQuery( window).he ight(); | |
924 | var mo dalHeight = windowH eight * 0. 75; | |
925 | var he aderHeight = jQuery( '#tcForm . modal-head er').heigh t(); | |
926 | var fo oterHeight = jQuery( '#tcForm . modal-foot er').heigh t(); | |
927 | var bo dyHeight = modalHe ight - (he aderHeight + footerH eight); | |
928 | jQuery ('#tcForm .modal-bod y').css('m ax-height' , bodyHeig ht + "px") ; | |
929 | if (jQ uery("#iDe ferDescrip tion").is( ":visible" )) { | |
930 | modalHei ght = hea derHeight + bodyHeig ht + foote rHeight; | |
931 | jQuery(' #tcForm'). css('max-h eight', mo dalHeight + "px"); | |
932 | } | |
933 | } | |
934 | } | |
935 | ||
936 | fu nction run WhenLoginJ QueryIsLoa ded() { | |
937 | ||
938 | var jquery_loa ded = wind ow.jQuery; | |
939 | ||
940 | if ( jquery_lo aded ) { | |
941 | ||
942 | /* res ize tcForm modal bod y when fir st shown * / | |
943 | jQuery ('#tcForm' ).on('show n', functi on () { | |
944 | resizeTcFo rmModal(); | |
945 | }) | |
946 | ||
947 | /* resize tcForm mod al body on every res ize of the window */ | |
948 | jQuery(win dow).resiz e(resizeTc FormModal) ; | |
949 | ||
950 | jQuery ('.btn-agr ee').click (function( ) { | |
951 | jQuery(' #mhv-login -warning-b anner').hi de(); | |
952 | jQuery(' .show-afte r-agree'). show(); | |
953 | }); | |
954 | ||
955 | } el se { | |
956 | setTim eout(runWh enLoginJQu eryIsLoade d, 50); | |
957 | } | |
958 | } | |
959 | ||
960 | ru nWhenLogin JQueryIsLo aded(); | |
961 | ||
962 | </script> | |
963 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.