Produced by Araxis Merge on 1/2/2018 12:00:54 PM Eastern Standard 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 | Tue Jan 2 17:00:54 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\ihta_admin.zip\register.zip | whform.js | Mon Apr 18 16:27:58 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 298 |
| 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 | // We bHelp 5.10 .001 | |||||
| 2 | var gfunLo okUp; | |||||
| 3 | var gbInpu tEnable; | |||||
| 4 | var gfunIn it; | |||||
| 5 | var gstrFo rmName= "" ; | |||||
| 6 | var gbWith Button = f alse; | |||||
| 7 | var gsTitl e=""; | |||||
| 8 | var gsHili teSearchTi tle=""; | |||||
| 9 | var gsMaxS earchTitle =""; | |||||
| 10 | var gsOver Image = "" ; | |||||
| 11 | var gsOutI mage = ""; | |||||
| 12 | var gsClic kImage = " "; | |||||
| 13 | var gsText = ""; | |||||
| 14 | var gsBgCo lor = "#c0 c0c0"; | |||||
| 15 | var gsBgIm age = ""; | |||||
| 16 | var gbInIm age = 0; | |||||
| 17 | var gbInpu tEnable = 0; | |||||
| 18 | var gbHigh lightSearc h = false; | |||||
| 19 | ||||||
| 20 | var goTitl eFont=null ; | |||||
| 21 | var goInpu tFont=null ; | |||||
| 22 | var goNorm alFont=nul l; | |||||
| 23 | var goHove rFont=null ; | |||||
| 24 | var gnType =-1; | |||||
| 25 | var gbWhFo rm=false; | |||||
| 26 | var gnMaxR slt = 10 ; | |||||
| 27 | var sEnabl eAndSearch = ""; | |||||
| 28 | var bEnabl eAndSearch = false; | |||||
| 29 | var bGiveA ndSearch = false; | |||||
| 30 | ||||||
| 31 | function s etBackgrou nd(sBgImag e) | |||||
| 32 | { | |||||
| 33 | if (sBgImage != null & & sBgImage .length > 0) | |||||
| 34 | gsBg Image = sB gImage; | |||||
| 35 | ||||||
| 36 | if (gsBgIma ge && gsB gImage .le ngth > 0) | |||||
| 37 | { | |||||
| 38 | docu ment.body. background = gsBgIma ge ; | |||||
| 39 | } | |||||
| 40 | } | |||||
| 41 | ||||||
| 42 | function s etBackgrou ndcolor(sB gColor) | |||||
| 43 | { | |||||
| 44 | if (sBgColor != null & & sBgColor .length > 0) | |||||
| 45 | gsBg Color = sB gColor; | |||||
| 46 | ||||||
| 47 | if (gsBgColo r&& gsBgCo lor.length > 0) | |||||
| 48 | { | |||||
| 49 | docu ment.body. bgColor = gsBgColor; | |||||
| 50 | } | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | function s etBtnType( sType) | |||||
| 54 | { | |||||
| 55 | if (sType == "image") | |||||
| 56 | { | |||||
| 57 | gnTy pe = 0; | |||||
| 58 | } | |||||
| 59 | el se if (sTy pe == "tex t") | |||||
| 60 | { | |||||
| 61 | gnTy pe = 1; | |||||
| 62 | } | |||||
| 63 | } | |||||
| 64 | ||||||
| 65 | function s etGoImage1 (sImage1) | |||||
| 66 | { | |||||
| 67 | gs OutImage = sImage1; | |||||
| 68 | if (gsOutIma ge && gsOu tImage.len gth > 0) | |||||
| 69 | gbWi thButton = true; | |||||
| 70 | } | |||||
| 71 | ||||||
| 72 | function s etGoImage2 (sImage2) | |||||
| 73 | { | |||||
| 74 | gs OverImage = sImage2; | |||||
| 75 | if (gsOverIm age && gsO verImage.l ength > 0) | |||||
| 76 | gbWi thButton = true; | |||||
| 77 | } | |||||
| 78 | ||||||
| 79 | function s etGoImage3 (sImage3) | |||||
| 80 | { | |||||
| 81 | gs ClickImage = sImage3 ; | |||||
| 82 | if (gsClickI mage && gs ClickImage .length > 0) | |||||
| 83 | gbWi thButton = true; | |||||
| 84 | } | |||||
| 85 | ||||||
| 86 | function s etGoText(s Text) | |||||
| 87 | { | |||||
| 88 | gs Text = sTe xt; | |||||
| 89 | if (gsText.l ength > 0) | |||||
| 90 | gbWi thButton = true; | |||||
| 91 | } | |||||
| 92 | ||||||
| 93 | function s etFont(sTy pe, sFontN ame, sFont Size, sFon tColor, sF ontStyle, sFontWeigh t, sFontDe coration) | |||||
| 94 | { | |||||
| 95 | va r vFont = new whFont (sFontName , sFontSiz e, sFontCo lor, sFont Style, sFo ntWeight, sFontDecor ation); | |||||
| 96 | if (sType == "Title") | |||||
| 97 | { | |||||
| 98 | goTi tleFont = vFont; | |||||
| 99 | var vFont1 = n ew whFont( sFontName, sFontSize , "black", sFontStyl e, sFontWe ight, sFon tDecoratio n); | |||||
| 100 | goIn putFont=vF ont1; | |||||
| 101 | } | |||||
| 102 | el se if (sTy pe == "Nor mal") | |||||
| 103 | goNo rmalFont = vFont; | |||||
| 104 | el se if (sTy pe == "Hov er") | |||||
| 105 | goHo verFont = vFont; | |||||
| 106 | } | |||||
| 107 | ||||||
| 108 | function s etHighligh tSearch(bE nable) | |||||
| 109 | { | |||||
| 110 | gb HighlightS earch = bE nable; | |||||
| 111 | } | |||||
| 112 | ||||||
| 113 | function w riteFormSt yle() | |||||
| 114 | { | |||||
| 115 | va r sStyle = "<style t ype='text/ css'>"; | |||||
| 116 | sS tyle += "p .title {" + getFontS tyle(goTit leFont) + "margin-to p:0;margin -bottom:0} \n"; | |||||
| 117 | sS tyle += ". inputfield {" + getF ontStyle(g oInputFont ) +"width: 100%; }\n" ; | |||||
| 118 | sS tyle += ". maxfield { " + getFon tStyle(goI nputFont) +"width:12 %; }\n"; | |||||
| 119 | sS tyle += ". hilite {" + getFontS tyle(goTit leFont) + "margin-to p:0;margin -bottom:0; }\n"; | |||||
| 120 | sS tyle+="A:l ink {"+get FontStyle( goNormalFo nt)+"}\n"; | |||||
| 121 | sS tyle+="A:v isited {"+ getFontSty le(goNorma lFont)+"}\ n"; | |||||
| 122 | sS tyle +="A: hover {"+g etFontStyl e(goHoverF ont)+"}\n" ; | |||||
| 123 | sS tyle+=".cl sFormBackg round{\n"; | |||||
| 124 | if (gsBgImag e) | |||||
| 125 | sSty le+="borde r-top:"+gs BgColor+" 1px solid; }\n"; | |||||
| 126 | el se | |||||
| 127 | sSty le+="borde r-top:blac k 1px soli d;}\n"; | |||||
| 128 | ||||||
| 129 | sS tyle += "< /style>"; | |||||
| 130 | do cument.wri te(sStyle) ; | |||||
| 131 | } | |||||
| 132 | ||||||
| 133 | function l ookupKeyDo wn(NSEvent ) | |||||
| 134 | { | |||||
| 135 | ||||||
| 136 | if (gbInputE nable) | |||||
| 137 | { | |||||
| 138 | if ( gbIE4) | |||||
| 139 | { | |||||
| 140 | if (ev ent.keyCod e == 13) //En ter key | |||||
| 141 | gfunLook Up(true); | |||||
| 142 | else | |||||
| 143 | gfunLook Up(false); | |||||
| 144 | } | |||||
| 145 | else if (gbNav 6 || gbSaf ari ) | |||||
| 146 | { | |||||
| 147 | if(NSEvent ) | |||||
| 148 | { | |||||
| 149 | if (NS Event.whic h== 13) // Enter key | |||||
| 150 | gfun LookUp(tru e); | |||||
| 151 | el se | |||||
| 152 | gfun LookUp(fal se); | |||||
| 153 | } | |||||
| 154 | else | |||||
| 155 | gfunLook Up(false); | |||||
| 156 | } | |||||
| 157 | else | |||||
| 158 | gfunLo okUp(false ); | |||||
| 159 | } | |||||
| 160 | } | |||||
| 161 | ||||||
| 162 | function i nit() | |||||
| 163 | { | |||||
| 164 | if (gfunInit ) | |||||
| 165 | gfun Init(); | |||||
| 166 | if (!window. Array) re turn; | |||||
| 167 | } | |||||
| 168 | ||||||
| 169 | function i nputSubmit () | |||||
| 170 | { | |||||
| 171 | if ((gbInput Enable && !gbIE4)|| gbInImage) | |||||
| 172 | gfun LookUp(tru e); | |||||
| 173 | } | |||||
| 174 | ||||||
| 175 | function i nputEnable (bEnable) | |||||
| 176 | { | |||||
| 177 | gb InputEnabl e = bEnabl e; | |||||
| 178 | } | |||||
| 179 | ||||||
| 180 | function i nImage(bIm age) | |||||
| 181 | { | |||||
| 182 | gb InImage = bImage; | |||||
| 183 | } | |||||
| 184 | ||||||
| 185 | function g etFormHTML (paneName) | |||||
| 186 | { | |||||
| 187 | va r sForm = ""; | |||||
| 188 | sF orm += "<t able class =\"clsForm Background \" width=\ "100%\" ce llspacing= \"0\" cell padding=\" 4\" border =\"0\">"; | |||||
| 189 | sF orm += "<f orm name=\ "" + gstrF ormName + "\" method =\"POST\" action=\"j avascript: inputSubmi t()\" styl e=\"width: 100%\">"; | |||||
| 190 | sF orm += "<t r>"; | |||||
| 191 | sF orm += "<t d>"; | |||||
| 192 | if (paneName == "fts") { | |||||
| 193 | if (gbSa fari3) | |||||
| 194 | sFor m += "<p c lass=title >" + gsTit le + "<br> <table wid th=\"100%\ "><tr vali gn=\"middl e\"><td wi dth=\"100% \"><input class=\"in putfield\" type=\"te xt\" name= \"keywordF ield\" onk eypress=\" lookupKeyD own(event) ;\" onfocu s=\"inputE nable(1);\ "></td>"; | |||||
| 195 | else | |||||
| 196 | sFor m += "<p c lass=title >" + gsTit le + "<br> <table wid th=\"100%\ "><tr vali gn=\"middl e\"><td wi dth=\"100% \"><input class=\"in putfield\" type=\"te xt\" name= \"keywordF ield\" onk eypress=\" lookupKeyD own(event) ;\" onfocu s=\"inputE nable(1);\ " onblur=\ "inputEnab le(0);\">< /td>"; | |||||
| 197 | } | |||||
| 198 | el se | |||||
| 199 | sForm += "<p class =title>" + gsTitle + "<br><tab le width=\ "100%\"><t r valign=\ "middle\"> <td width= \"100%\">< input clas s=\"inputf ield\" typ e=\"text\" name=\"ke ywordField \" onkeyup =\"lookupK eyDown(eve nt);\" onf ocus=\"inp utEnable(1 );\" onblu r=\"inputE nable(0);\ "></td>"; | |||||
| 200 | if (gbWithBu tton && gn Type >= 0) | |||||
| 201 | { | |||||
| 202 | sFor m += "<td> <a title=\ "submit bu tton\" hre f=\"javasc ript:void( 0);\" oncl ick=\"" + gstrFormNa me + ".sub mit(); ret urn false; \" onfocus =\"inImage (1);\" onb lur=\"inIm age(0);\" onmouseup= \"onMouseU p();\" onm ousedown=\ "onMouseDo wn();\" on mouseover= \"onMouseO ver();\" o nmouseout= \"onMouseO ut();\">" | |||||
| 203 | if ( gnType == 0) | |||||
| 204 | { | |||||
| 205 | if (!g sText) | |||||
| 206 | gsText=" Go"; | |||||
| 207 | sForm += "<img a lt=\""+gsT ext+"\" id =\"go\" bo rder=\"0\" src=\"" + gsOutImag e + "\">"; | |||||
| 208 | } | |||||
| 209 | else | |||||
| 210 | sForm += gsText ; | |||||
| 211 | sFor m += "</a> </td>"; | |||||
| 212 | } | |||||
| 213 | //chec k pane in focus is S earch pane . | |||||
| 214 | if (pa neName == "fts") { | |||||
| 215 | if (bGiveAnd Search) { | |||||
| 216 | if (bEna bleAndSear ch) { | |||||
| 217 | //Ch eck box wi ll checked | |||||
| 218 | sFor m += "</tr ><tr class =\"hilite\ " valign=\ "middle\"> <td width= \"100%\">< input type =\"checkbo x\" name=\ "EnableAnd Search\" c hecked>" | |||||
| 219 | + sEna bleAndSear ch + "<br> </td>"; | |||||
| 220 | } | |||||
| 221 | else { | |||||
| 222 | sFor m += "</tr ><tr class =\"hilite\ " valign=\ "middle\"> <td width= \"100%\">< input type =\"checkbo x\" name=\ "EnableAnd Search\" > " | |||||
| 223 | + sEna bleAndSear ch + "<br> </td>"; | |||||
| 224 | } | |||||
| 225 | } | |||||
| 226 | } | |||||
| 227 | ||||||
| 228 | if (gb HighlightS earch == t rue) { | |||||
| 229 | sF orm += "</ tr><tr cla ss=\"hilit e\" valign =\"middle\ "><td widt h=\"100%\" ><input ty pe=\"check box\" name =\"HiLite\ " checked> " + gsHili teSearchTi tle + "<br ></td>"; | |||||
| 230 | } | |||||
| 231 | ||||||
| 232 | sForm += "</tr>" ; | |||||
| 233 | ||||||
| 234 | if (pa neName == "fts") { | |||||
| 235 | sF orm += "<t r class=\" hilite\" v align=\"mi ddle\"><td >" + gsMax SearchTitl e + " <in put class= \"maxfield \" type=\" text\" max Length=\"2 \" name=\" MaxResults \" onblur= \"javascri pt: this.v alue =inpu t_filter(t his.value) \" value=\ "" + gnMax Rslt + "\" ></td></t r>"; | |||||
| 236 | } | |||||
| 237 | sF orm += "</ table></p> </td></tr> </form></t able>"; | |||||
| 238 | re turn sForm ; | |||||
| 239 | } | |||||
| 240 | ||||||
| 241 | function i nput_filte r(a_sVal) | |||||
| 242 | { | |||||
| 243 | va r num = gn MaxRslt ; | |||||
| 244 | tr y | |||||
| 245 | { | |||||
| 246 | num= parseInt(a _sVal); | |||||
| 247 | if ( ( num.toSt ring() == "NaN")||(n um <= 0)) | |||||
| 248 | num = gnMa xRslt ; | |||||
| 249 | } | |||||
| 250 | ca tch(er) | |||||
| 251 | { | |||||
| 252 | num = gn MaxRslt ; | |||||
| 253 | } | |||||
| 254 | va r oMsg = n ew whMessa ge(WH_MSG_ SETMAXRSLT , num, nul l); | |||||
| 255 | no tify(oMsg) ; | |||||
| 256 | re turn num ; | |||||
| 257 | } | |||||
| 258 | ||||||
| 259 | function o nMouseOver () | |||||
| 260 | { | |||||
| 261 | if (getEleme nt("go") & & gsOverIm age) | |||||
| 262 | getE lement("go ").src = g sOverImage ; | |||||
| 263 | } | |||||
| 264 | ||||||
| 265 | function o nMouseDown () | |||||
| 266 | { | |||||
| 267 | if (getEleme nt("go") & & gsClickI mage) | |||||
| 268 | getE lement("go ").src = g sClickImag e; | |||||
| 269 | } | |||||
| 270 | ||||||
| 271 | function o nMouseUp() | |||||
| 272 | { | |||||
| 273 | if (getEleme nt("go") & & gsOutIma ge) | |||||
| 274 | getE lement("go ").src = g sOutImage; | |||||
| 275 | } | |||||
| 276 | ||||||
| 277 | function o nMouseOut( ) | |||||
| 278 | { | |||||
| 279 | if (getEleme nt("go") & & gsOutIma ge) | |||||
| 280 | getE lement("go ").src = g sOutImage; | |||||
| 281 | } | |||||
| 282 | ||||||
| 283 | if (window .gbWhUtil& &window.gb WhVer&&win dow.gbWhPr oxy&&windo w.gbWhMsg) | |||||
| 284 | { | |||||
| 285 | go TitleFont= new whFont ("Arial", "9pt", "#0 00000", "n ormal", "n ormal", "n one"); | |||||
| 286 | go NormalFont =new whFon t("Arial", "9pt", "# 000000", " normal", " normal", " none"); | |||||
| 287 | go HoverFont= new whFont ("Arial", "9pt", "#0 00000", "n ormal", "n ormal", "u nderline") ; | |||||
| 288 | gb WhForm=tru e; | |||||
| 289 | } | |||||
| 290 | else | |||||
| 291 | docume nt.locatio n.reload() ; | |||||
| 292 | ||||||
| 293 | function s etSearchSe tting(a_bG iveAndSear ch, a_bEna ble, a_str EnableAndS earch) | |||||
| 294 | { | |||||
| 295 | bGiveA ndSearch = a_bGiveAn dSearch; | |||||
| 296 | bEnabl eAndSearch = a_bEnab le; | |||||
| 297 | sEnabl eAndSearch = a_strEn ableAndSea rch; | |||||
| 298 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.