Changeset 1146
- Timestamp:
- 12/12/06 13:42:54
- Files:
-
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css (modified) (3 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (9 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js (modified) (3 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1144 r1146 556 556 } 557 557 table.common td.fieldname { 558 width: 80px;558 width: 100px; 559 559 margin: 0em; 560 560 vertical-align: top; … … 633 633 } 634 634 #bwEventCalDisplay { 635 font-weight: bold;635 /*font-weight: bold;*/ 636 636 margin-right: 1em; 637 637 } … … 676 676 #recurrenceFields #recurrenceTable p { 677 677 margin: 0 0 0.5em 0; 678 } 679 #recurrenceFields #recurrenceTable .extraByMonthPosFields { 680 margin: 0 0 1em 2em; 681 padding: 0; 678 682 } 679 683 .shown { trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1145 r1146 1986 1986 </xsl:otherwise> 1987 1987 </xsl:choose> 1988 all day event1988 all day (anniversary) 1989 1989 1990 1990 <!-- floating event: no timezone (and not UTC) --> … … 2036 2036 <script language="JavaScript" type="text/javascript"> 2037 2037 <xsl:comment> 2038 startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/' );2038 startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/','true'); 2039 2039 </xsl:comment> 2040 2040 </script> … … 2096 2096 <script language="JavaScript" type="text/javascript"> 2097 2097 <xsl:comment> 2098 endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/' );2098 endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/', 'true'); 2099 2099 </xsl:comment> 2100 2100 </script> … … 2217 2217 <tr> 2218 2218 <td class="recurrenceFrequency" rowspan="2"> 2219 <strong> Recurs:</strong><br/>2220 <input type="radio" name="freq Flag" value="NEVER" onclick="showRecurrence(this.value)" checked="checked"/>never<br/>2221 < !--<input type="radio" name="freqFlag" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>-->2222 <input type="radio" name="freq Flag" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/>2223 <input type="radio" name="freq Flag" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/>2224 <input type="radio" name="freq Flag" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/>2225 <input type="radio" name="freq Flag" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly2219 <strong>Frequency:</strong><br/> 2220 <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>once<br/> 2221 <input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/> 2222 <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> 2223 <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> 2224 <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> 2225 <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly 2226 2226 </td> 2227 2227 <td class="recurrenceRules"> 2228 <div id=" neverRecurrenceRules">2228 <div id="onceRecurrenceRules"> 2229 2229 <p>does not recur</p> 2230 2230 </div> 2231 <!--<div id="hourlyRecurrenceRules" class="invisible"> 2232 every <input type="text" name="hourlyInterval" size="2" value="1"/> hours 2233 </div>--> 2231 <div id="hourlyRecurrenceRules" class="invisible"> 2232 <strong>Interval:</strong> 2233 every <input type="text" name="hourlyInterval" size="2" value="1"/> hour(s) 2234 </div> 2234 2235 <div id="dailyRecurrenceRules" class="invisible"> 2235 2236 <p> 2236 2237 <strong>Interval:</strong> 2237 every <input type="text" name="dailyInterval" size="2" value="1"/> day s2238 every <input type="text" name="dailyInterval" size="2" value="1"/> day(s) 2238 2239 </p> 2239 2240 </div> … … 2257 2258 <p> 2258 2259 <strong>Interval:</strong> 2259 every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) on2260 every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) 2260 2261 </p> 2261 2262 <p> 2262 2263 <input type="radio" name="monthrrule" value="bymonthpos" checked="checked"/> 2263 the2264 <select name="bymonthposPos " width="7em">2264 on the 2265 <select name="bymonthposPos1" width="7em"> 2265 2266 <option value="first">first</option> 2266 2267 <option value="second">second</option> … … 2269 2270 <option value="last">last</option> 2270 2271 </select> 2271 <xsl:call-template name="byDayChkBoxList"/> 2272 <select name="bymonthposDay1" width="7em"> 2273 <xsl:for-each select="/bedework/daynames/val"> 2274 <option> 2275 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2276 <xsl:value-of select="."/> 2277 </option> 2278 </xsl:for-each> 2279 </select> 2280 <div class="extraByMonthPosFields"> 2281 and the 2282 <select name="bymonthposPos2" width="7em"> 2283 <option value="none">none</option> 2284 <option value="first">first</option> 2285 <option value="second">second</option> 2286 <option value="third">third</option> 2287 <option value="fourth">fourth</option> 2288 <option value="last">last</option> 2289 </select> 2290 <select name="bymonthposDay2" width="7em"> 2291 <option value="none">none</option> 2292 <xsl:for-each select="/bedework/daynames/val"> 2293 <option> 2294 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2295 <xsl:value-of select="."/> 2296 </option> 2297 </xsl:for-each> 2298 </select><br/> 2299 and the 2300 <select name="bymonthposPos3" width="7em"> 2301 <option value="none">none</option> 2302 <option value="first">first</option> 2303 <option value="second">second</option> 2304 <option value="third">third</option> 2305 <option value="fourth">fourth</option> 2306 <option value="last">last</option> 2307 </select> 2308 <select name="bymonthposDay3" width="7em"> 2309 <option value="none">none</option> 2310 <xsl:for-each select="/bedework/daynames/val"> 2311 <option> 2312 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2313 <xsl:value-of select="."/> 2314 </option> 2315 </xsl:for-each> 2316 </select><br/> 2317 and the 2318 <select name="bymonthposPos4" width="7em"> 2319 <option value="none">none</option> 2320 <option value="first">first</option> 2321 <option value="second">second</option> 2322 <option value="third">third</option> 2323 <option value="fourth">fourth</option> 2324 <option value="last">last</option> 2325 </select> 2326 <select name="bymonthposDay4" width="7em"> 2327 <option value="none">none</option> 2328 <xsl:for-each select="/bedework/daynames/val"> 2329 <option> 2330 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2331 <xsl:value-of select="."/> 2332 </option> 2333 </xsl:for-each> 2334 </select> 2335 </div> 2272 2336 </p> 2273 2337 <p> … … 2282 2346 <div id="yearlyRecurrenceRules" class="invisible"> 2283 2347 <strong>Interval:</strong> 2284 every <input type="text" name="monthlyInterval" size="2" value="1"/> years(s) on<br/> 2285 <input type="radio" name="rrule" value="byyearday"/>days of the year: 2286 <input type="text" name="byyearday"/> 2287 (comma separated list of days, 1-366) 2348 every <input type="text" name="monthlyInterval" size="2" value="1"/> years(s)<br/> 2349 <p> 2350 <input type="radio" name="yearrrule" value="bymonthpos" onclick="swapYearCheckBoxList(this)" checked="checked"/> 2351 on the 2352 <select name="bymonthposPos1" width="7em"> 2353 <option value="first">first</option> 2354 <option value="second">second</option> 2355 <option value="third">third</option> 2356 <option value="fourth">fourth</option> 2357 <option value="last">last</option> 2358 </select> 2359 <select name="bymonthposDay1" width="7em"> 2360 <xsl:for-each select="/bedework/daynames/val"> 2361 <option> 2362 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2363 <xsl:value-of select="."/> 2364 </option> 2365 </xsl:for-each> 2366 </select> of 2367 <select name="bymonthposMonth1" width="7em"> 2368 <xsl:for-each select="/bedework/monthvalues/val"> 2369 <option> 2370 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2371 <xsl:variable name="pos" select="position()"/> 2372 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2373 </option> 2374 </xsl:for-each> 2375 </select> 2376 <div class="extraByMonthPosFields"> 2377 and the 2378 <select name="bymonthposPos2" width="7em"> 2379 <option value="none">none</option> 2380 <option value="first">first</option> 2381 <option value="second">second</option> 2382 <option value="third">third</option> 2383 <option value="fourth">fourth</option> 2384 <option value="last">last</option> 2385 </select> 2386 <select name="bymonthposDay2" width="7em"> 2387 <option value="none">none</option> 2388 <xsl:for-each select="/bedework/daynames/val"> 2389 <option> 2390 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2391 <xsl:value-of select="."/> 2392 </option> 2393 </xsl:for-each> 2394 </select> of 2395 <select name="bymonthposMonth2" width="7em"> 2396 <option value="none">none</option> 2397 <xsl:for-each select="/bedework/monthvalues/val"> 2398 <option> 2399 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2400 <xsl:variable name="pos" select="position()"/> 2401 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2402 </option> 2403 </xsl:for-each> 2404 </select><br/> 2405 and the 2406 <select name="bymonthposPos3" width="7em"> 2407 <option value="none">none</option> 2408 <option value="first">first</option> 2409 <option value="second">second</option> 2410 <option value="third">third</option> 2411 <option value="fourth">fourth</option> 2412 <option value="last">last</option> 2413 </select> 2414 <select name="bymonthposDay3" width="7em"> 2415 <option value="none">none</option> 2416 <xsl:for-each select="/bedework/daynames/val"> 2417 <option> 2418 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2419 <xsl:value-of select="."/> 2420 </option> 2421 </xsl:for-each> 2422 </select> of 2423 <select name="bymonthposMonth3" width="7em"> 2424 <option value="none">none</option> 2425 <xsl:for-each select="/bedework/monthvalues/val"> 2426 <option> 2427 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2428 <xsl:variable name="pos" select="position()"/> 2429 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2430 </option> 2431 </xsl:for-each> 2432 </select><br/> 2433 and the 2434 <select name="bymonthposPos4" width="7em"> 2435 <option value="none">none</option> 2436 <option value="first">first</option> 2437 <option value="second">second</option> 2438 <option value="third">third</option> 2439 <option value="fourth">fourth</option> 2440 <option value="last">last</option> 2441 </select> 2442 <select name="bymonthposDay4" width="7em"> 2443 <option value="none">none</option> 2444 <xsl:for-each select="/bedework/daynames/val"> 2445 <option> 2446 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2447 <xsl:value-of select="."/> 2448 </option> 2449 </xsl:for-each> 2450 </select> of 2451 <select name="bymonthposMonth4" width="7em"> 2452 <option value="none">none</option> 2453 <xsl:for-each select="/bedework/monthvalues/val"> 2454 <option> 2455 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2456 <xsl:variable name="pos" select="position()"/> 2457 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2458 </option> 2459 </xsl:for-each> 2460 </select> 2461 </div> 2462 </p> 2463 <p> 2464 <input type="radio" name="yearrrule" value="byyearday" onclick="swapYearCheckBoxList(this)"/>day(s):<br/> 2465 <div id="yearCheckBoxList" class="invisible"> 2466 <xsl:call-template name="buildCheckboxList"> 2467 <xsl:with-param name="current">1</xsl:with-param> 2468 <xsl:with-param name="end">366</xsl:with-param> 2469 <xsl:with-param name="name">byyearday</xsl:with-param> 2470 </xsl:call-template> 2471 </div> 2472 </p> 2288 2473 </div> 2289 2474 </td> … … 2298 2483   2299 2484 <input type="radio" name="rCountUntil" value="count"/> 2300 until <input type="text" value="04/23/2008" size="10" name="until"/> 2485 until 2486 <div class="dateFields"> 2487 <select name="untilMonth"> 2488 <xsl:for-each select="form/start/month/select/option"> 2489 <xsl:copy-of select="."/> 2490 </xsl:for-each> 2491 </select> 2492 <select name="untilDay"> 2493 <xsl:for-each select="form/start/day/select/option"> 2494 <xsl:copy-of select="."/> 2495 </xsl:for-each> 2496 </select> 2497 <xsl:choose> 2498 <xsl:when test="/bedework/creating = 'true'"> 2499 <select name="untilYear"> 2500 <xsl:for-each select="form/start/year/select/option"> 2501 <xsl:copy-of select="."/> 2502 </xsl:for-each> 2503 </select> 2504 </xsl:when> 2505 <xsl:otherwise> 2506 <input type="text" name="untilYear" size="4"/> 2507 <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> 2508 </xsl:otherwise> 2509 </xsl:choose> 2510 </div> 2511 <script language="JavaScript" type="text/javascript"> 2512 <xsl:comment> 2513 untilDateDynCalWidget = new dynCalendar('untilDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'untilDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/','false'); 2514 </xsl:comment> 2515 </script> 2301 2516 </div> 2302 2517 </td> … … 2487 2702 <xsl:param name="end"/> 2488 2703 <xsl:param name="name"/> 2489 <xsl:param name="splitter"> 8</xsl:param>2704 <xsl:param name="splitter">10</xsl:param> 2490 2705 <span class="chkBoxListItem"> 2491 2706 <input type="checkbox"/> trunk/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js
r952 r1146 31 31 * @param string OPTIONAL Optional layer name 32 32 */ 33 function dynCalendar(objName, yr, mth, dy, callbackFunc )33 function dynCalendar(objName, yr, mth, dy, callbackFunc, hideBwFields) 34 34 { 35 35 /** … … 376 376 377 377 // for Bedework event editing; reveal time fields when cal widget is hidden 378 changeClass('calWidgetStartTimeHider','shown'); 379 changeClass('calWidgetEndTimeHider','shown'); 378 if (hideBwFields) { 379 changeClass('calWidgetStartTimeHider','shown'); 380 changeClass('calWidgetEndTimeHider','shown'); 381 } 380 382 } 381 383 … … 392 394 // to avoid IE rendering oddities (IE always displays the "windowed" layer 393 395 // above everything else -- that includes select boxes. 394 changeClass('calWidgetStartTimeHider','invisible'); 395 changeClass('calWidgetEndTimeHider','invisible'); 396 if (hideBwFields) { 397 changeClass('calWidgetStartTimeHider','invisible'); 398 changeClass('calWidgetEndTimeHider','invisible'); 399 } 396 400 } 397 401 trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js
r1140 r1146 19 19 allDayStartDateField.value = "off"; 20 20 allDayEndDateField.value = "off"; 21 }22 }23 function swapRecurrence(obj) {24 if (obj.checked) {25 changeClass('recurrenceFields','dateStartEndBox');26 } else {27 changeClass('recurrenceFields','invisible');28 }29 }30 function showRecurrence(freq) {31 32 changeClass('recurrenceUntilRules','shown');33 34 /*if (freq == 'HOURLY') {35 changeClass('hourlyRecurrenceRules','shown');36 } else {37 changeClass('hourlyRecurrenceRules','invisible');38 }*/39 if (freq == 'DAILY') {40 changeClass('dailyRecurrenceRules','shown');41 } else {42 changeClass('dailyRecurrenceRules','invisible');43 }44 if (freq == 'WEEKLY') {45 changeClass('weeklyRecurrenceRules','shown');46 } else {47 changeClass('weeklyRecurrenceRules','invisible');48 }49 if (freq == 'MONTHLY') {50 changeClass('monthlyRecurrenceRules','shown');51 } else {52 changeClass('monthlyRecurrenceRules','invisible');53 }54 if (freq == 'YEARLY') {55 changeClass('yearlyRecurrenceRules','shown');56 } else {57 changeClass('yearlyRecurrenceRules','invisible');58 }59 if (freq == 'NEVER') {60 changeClass('neverRecurrenceRules','shown');61 changeClass('recurrenceUntilRules','invisible');62 } else {63 changeClass('neverRecurrenceRules','invisible');64 21 } 65 22 } … … 118 75 } 119 76 } 120 77 function swapRecurrence(obj) { 78 if (obj.checked) { 79 changeClass('recurrenceFields','dateStartEndBox'); 80 } else { 81 changeClass('recurrenceFields','invisible'); 82 } 83 } 84 function showRecurrence(freq) { 85 86 changeClass('recurrenceUntilRules','shown'); 87 88 if (freq == 'ONCE') { 89 changeClass('onceRecurrenceRules','shown'); 90 changeClass('recurrenceUntilRules','invisible'); 91 } else { 92 changeClass('onceRecurrenceRules','invisible'); 93 } 94 if (freq == 'HOURLY') { 95 changeClass('hourlyRecurrenceRules','shown'); 96 } else { 97 changeClass('hourlyRecurrenceRules','invisible'); 98 } 99 if (freq == 'DAILY') { 100 changeClass('dailyRecurrenceRules','shown'); 101 } else { 102 changeClass('dailyRecurrenceRules','invisible'); 103 } 104 if (freq == 'WEEKLY') { 105 changeClass('weeklyRecurrenceRules','shown'); 106 } else { 107 changeClass('weeklyRecurrenceRules','invisible'); 108 } 109 if (freq == 'MONTHLY') { 110 changeClass('monthlyRecurrenceRules','shown'); 111 } else { 112 changeClass('monthlyRecurrenceRules','invisible'); 113 } 114 if (freq == 'YEARLY') { 115 changeClass('yearlyRecurrenceRules','shown'); 116 } else { 117 changeClass('yearlyRecurrenceRules','invisible'); 118 } 119 } 120 function swapYearCheckBoxList(obj) { 121 if (obj.value == "byyearday") { 122 changeClass('yearCheckBoxList','shown'); 123 } else { 124 changeClass('yearCheckBoxList','invisible'); 125 } 126 } 121 127 // launch a simple window for displaying information; no header or status bar 122 128 function launchSimpleWindow(URL) { … … 161 167 document.eventForm['eventEndDate.day'].value = date; 162 168 document.eventForm['eventEndDate.year'].value = year; 169 } 170 function untilDateCalWidgetCallback(date, month, year) { 171 if (String(month).length == 1) { 172 month = '0' + month; 173 } 174 if (String(date).length == 1) { 175 date = '0' + date; 176 } 177 178 document.eventForm['untilMonth'].value = month; 179 document.eventForm['untilDay'].value = date; 180 document.eventForm['untilYear'].value = year; 163 181 } 164 182
