Produced by Araxis Merge on 6/9/2017 3:51:37 PM Eastern 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 | Fri Jun 9 19:51:37 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\webapp\WEB-INF\tags\date | monthAndYearDropdown.tag | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 61 |
| 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 | <%@tag des cription=" creates a dropdown ( select) of months an d years fr om a start ing month/ year. the year is sp ecified an d the mont h used is the curren t month." pageEncodi ng="UTF-8" %> | |||||
| 2 | ||||||
| 3 | <%@attribu te name="f ieldId" re quired="tr ue" descri ption="id for the fi eld on the form" %> | |||||
| 4 | <%@attribu te name="f ieldName" required=" true" desc ription="n ame for th e field on the form" %> | |||||
| 5 | <%@attribu te name="e nableMulti ple" requi red="true" descripti on="boolea n if the s elect box should all ow multipl e selectio ns" type=" Boolean" % > | |||||
| 6 | <%@attribu te name="c ssClass" d escription ="css clas s name to be applied to this f ield" %> | |||||
| 7 | <%@attribu te name="c ssStyle" d escription ="css inli ne style t o be appli ed to this field" %> | |||||
| 8 | <%@attribu te name="s tartYear" required=" true" desc ription="t he year to start wit h" %> | |||||
| 9 | <%@attribu te name="d escriptor" required= "false" de scription= "the text to use for the help (descripto r) text" % > | |||||
| 10 | <%@attribu te name="f ieldTitle" required= "false" de scription= "the text for the ti tle used b y screen r eaders for the selec t box. use d in the t itle and t he aria-la bel attrib utes for t he select box." %> | |||||
| 11 | <%@attribu te name="s tartMonth" required= "false" de scription= "the month to start the dropdo wn with. i n the form of the fu ll month n ame with t he first l etter capi talized. d efaults to the curre nt month." %> | |||||
| 12 | ||||||
| 13 | <%@taglib uri="http: //java.sun .com/jsp/j stl/core" prefix="c" %> | |||||
| 14 | <%@taglib uri="http: //java.sun .com/jsp/j stl/fmt" p refix="fmt " %> | |||||
| 15 | ||||||
| 16 | <c:set var ="arrMonth s">January ,February, March,Apri l,May,June ,July,Augu st,Septemb er,October ,November, December</ c:set> | |||||
| 17 | <jsp:useBe an id="now " class="j ava.util.D ate" /> | |||||
| 18 | <fmt:forma tDate var= "currentYe ar" value= "${now}" p attern="yy yy" /> | |||||
| 19 | <fmt:forma tDate var= "currentMo nth" value ="${now}" pattern="M MMM" /> | |||||
| 20 | ||||||
| 21 | <c:if test ="${startM onth == nu ll}"> | |||||
| 22 | <fmt:f ormatDate var="start Month" val ue="${now} " pattern= "MMMM" /> | |||||
| 23 | </c:if> | |||||
| 24 | ||||||
| 25 | <%-- need to find wh ere to sta rt in our month list based on the curren t month -- %> | |||||
| 26 | <c:forToke ns var="m" varStatus ="cnt" del ims="," it ems="${arr Months}"> | |||||
| 27 | <c:if test="${m == startMo nth}"> | |||||
| 28 | <c :set var=" startMonth Index" val ue="${cnt. count}" /> | |||||
| 29 | </c:if > | |||||
| 30 | </c:forTok ens> | |||||
| 31 | ||||||
| 32 | <%-- need to find ou t where th e current month is i n the mont h list --% > | |||||
| 33 | <c:forToke ns var="m" varStatus ="cnt" del ims="," it ems="${arr Months}"> | |||||
| 34 | <c:if test="${m == current Month}"> | |||||
| 35 | <c :set var=" currentMon thIndex" v alue="${cn t.count}" /> | |||||
| 36 | </c:if > | |||||
| 37 | </c:forTok ens> | |||||
| 38 | ||||||
| 39 | <%-- outpu t the sele ct box --% > | |||||
| 40 | <select na me="${fiel dName}" id ="${fieldI d}" class= "${cssClas s}" style= "${cssStyl e}" <c:if test="${en ableMultip le}">multi ple="multi ple"</c:if > data-too ltip="<c:o ut value=" ${descript or}" />" t itle="${fi eldTitle}" aria-labe l="${field Title}"> | |||||
| 41 | <%-- h andle star t year --% > | |||||
| 42 | <c:for Tokens ite ms="${arrM onths}" de lims="," b egin="${st artMonthIn dex-1}" va rStatus="c " var="m"> | |||||
| 43 | <o ption valu e="<c:out value="${s tartMonthI ndex+c.cou nt-1}" />| <c:out val ue="${star tYear}" /> " <c:out v alue="${st artYear == currentYe ar && m == currentMo nth ? 'sel ected' : ' '}" />><c: out value= "${m}" /> <c:out val ue="${star tYear}" /> </option> | |||||
| 44 | </c:fo rTokens> | |||||
| 45 | ||||||
| 46 | <%-- h andle ever y other ye ar --%> | |||||
| 47 | <c:for Each begin ="${startY ear+1}" en d="${curre ntYear}" v ar="yr"> | |||||
| 48 | <c :choose> | |||||
| 49 | <c:when test="${yr != curren tYear}"> | |||||
| 50 | <c:f orTokens v arStatus=" cnt" delim s="," item s="${arrMo nths}" var ="m"> | |||||
| 51 | <option va lue="<c:ou t value="$ {cnt.count }" />|<c:o ut value=" ${yr}" />" <c:out va lue="${yr == current Year && m == current Month ? 's elected' : ''}" />>< c:out valu e="${m}" / > <c:out v alue="${yr }" /></opt ion> | |||||
| 52 | </c: forTokens> | |||||
| 53 | </c:when > | |||||
| 54 | <c:other wise> | |||||
| 55 | <c:f orTokens v arStatus=" cnt" delim s="," item s="${arrMo nths}" var ="m" end=" ${currentM onthIndex- 1}"> | |||||
| 56 | <option va lue="<c:ou t value="$ {cnt.count }" />|<c:o ut value=" ${yr}" />" <c:out va lue="${yr == current Year && m == current Month ? 's elected' : ''}" />>< c:out valu e="${m}" / > <c:out v alue="${yr }" /></opt ion> | |||||
| 57 | </c: forTokens> | |||||
| 58 | </c:othe rwise> | |||||
| 59 | </ c:choose> | |||||
| 60 | </c:fo rEach> | |||||
| 61 | </select> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.