Changeset 3519
- Timestamp:
- 03/27/12 17:04:32
- Files:
-
- releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.css (modified) (1 diff)
- releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (9 diffs)
- releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/strings.xsl (modified) (1 diff)
- releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/default.css (modified) (1 diff)
- releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/default.xsl (modified) (11 diffs)
- releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl (modified) (1 diff)
- releases/bedework-3.8/deployment/webadmin/webapp/resources/resources/bedework.js (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (5 diffs)
- trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.css
r3508 r3519 1216 1216 padding-right: 2em; 1217 1217 } 1218 #daysSetterBox { 1219 margin-left: 1em; 1220 } 1218 1221 .bwEventListOtherGroupTags { 1219 1222 font-size: 0.8em; releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.xsl
r3512 r3519 223 223 not guaranteed to work in portals. --> 224 224 <xsl:variable name="portalFriendly">false</xsl:variable> 225 226 <!-- get the current date set by the user, if exists, else use now --> 227 <xsl:variable name="curListDate"> 228 <xsl:choose> 229 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 230 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="substring(/bedework/now/date,5,2)"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 231 </xsl:choose> 232 </xsl:variable> 233 <!-- get the current number of days set by the user, if exists, else use default --> 234 <xsl:variable name="curListDays"> 235 <xsl:choose> 236 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when> 237 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise> 238 </xsl:choose> 239 </xsl:variable> 225 240 226 241 <!--==== MAIN TEMPLATE ====--> … … 376 391 $(document).ready(function(){ 377 392 378 <xsl:if test="/bedework/formElements/recurrenceId = ''">393 <xsl:if test="/bedework/formElements/recurrenceId = ''"> 379 394 initRXDates(); 380 395 </xsl:if> … … 403 418 404 419 </xsl:if> 420 421 <xsl:if test="/bedework/page='listEvents'"> 422 bwSetupListDatePicker(); 423 </xsl:if> 405 424 406 425 // If you wish to collapse specific topical areas, you can specify them here: … … 415 434 }); 416 435 436 }); 437 </xsl:comment> 438 </script> 439 </xsl:if> 440 <xsl:if test="/bedework/page='eventList'"> 441 <!-- include the localized jQuery datepicker defaults --> 442 <xsl:call-template name="jqueryDatepickerDefaults"/> 443 444 <!-- now setup date and time pickers --> 445 <script type="text/javascript"> 446 <xsl:comment> 447 $(document).ready(function(){ 448 // startdate for list 449 $("#bwListWidgetStartDate").datepicker({ 450 defaultDate: new Date(<xsl:value-of select="substring(/bedework/now/date,1,4)"/>, <xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>, <xsl:value-of select="substring(/bedework/now/date,7,2)"/>) 451 }); 452 $("#bwListWidgetStartDate").val('<xsl:value-of select="$curListDate"/>'); 417 453 }); 418 454 </xsl:comment> … … 826 862 <td> 827 863 <a href="{$event-initUpdateEvent}"> 864 <xsl:attribute name="href"><xsl:value-of select="$event-initUpdateEvent"/>&start=<xsl:value-of select="$curListDate"/>&days=<xsl:value-of select="$curListDays"/>&limitdays=true</xsl:attribute> 828 865 <xsl:if test="not(/bedework/currentCalSuite/name)"> 829 866 <xsl:attribute name="onclick">alert("<xsl:copy-of select="$bwStr-MMnu-YouMustBeOperating"/>");return false;</xsl:attribute> … … 1038 1075 <div id="bwEventListControls"> 1039 1076 <form name="calForm" id="bwManageEventListControls" method="post" action="{$event-initUpdateEvent}"> 1077 <label for="bwListWidgetStartDate"><xsl:copy-of select="$bwStr-EvLs-StartDate"/></label> 1078 <input id="bwListWidgetStartDate" name="start" size="10" onchange="setListDate(this.form);"/> 1079 <input type="hidden" name="setappvar" id="curListDateHolder"/> 1080 <input type="hidden" name="limitdays" value="true"/> 1081 <span id="daysSetterBox"> 1082 <label for="days"><xsl:copy-of select="$bwStr-EvLs-Days"/></label> 1083 <xsl:text> </xsl:text> 1084 <!-- <xsl:value-of select="/bedework/defaultdays"/> --> 1085 <select id="days" name="days" onchange="setListDate(this.form);"> 1086 <xsl:call-template name="buildListDays"/> 1087 </select> 1088 <input type="hidden" id="curListDaysHolder" name="setappvar"/> 1089 </span> 1090 1091 <!-- This block contains the original Show Active/All toggle. 1092 Uncomment this block to use, though it can be slow if working 1093 with large very large numbers of events. 1040 1094 <xsl:copy-of select="$bwStr-EvLs-Show"/> 1041 1095 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchFalse/*"/> … … 1043 1097 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchTrue/*"/> 1044 1098 <xsl:copy-of select="$bwStr-EvLs-All"/> 1099 --> 1045 1100 </form> 1046 1101 … … 1061 1116 </xsl:for-each> 1062 1117 </select> 1118 <input type="hidden" name="start" value="{$curListDate}"/> 1119 <input type="hidden" name="limitdays" value="true"/> 1063 1120 <xsl:if test="/bedework/appvar[key='catFilter'] and /bedework/appvar[key='catFilter']/value != 'none'"> 1064 1121 <input type="submit" value="{$bwStr-EvLs-ClearFilter}" onclick="this.form.setappvar.selectedIndex = 0"/> … … 1067 1124 </div> 1068 1125 <xsl:call-template name="eventListCommon"/> 1126 </xsl:template> 1127 1128 <xsl:template name="buildListDays"> 1129 <xsl:param name="index">1</xsl:param> 1130 <xsl:variable name="max" select="/bedework/maxdays"/> 1131 <xsl:if test="number($index) < number($max)"> 1132 <option name="listDays($index)"> 1133 <xsl:if test="$index = $curListDays"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1134 <xsl:value-of select="$index"/> 1135 </option> 1136 <xsl:call-template name="buildListDays"> 1137 <xsl:with-param name="index"><xsl:value-of select="number($index)+1"/></xsl:with-param> 1138 </xsl:call-template> 1139 </xsl:if> 1069 1140 </xsl:template> 1070 1141 releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/strings.xsl
r3508 r3519 101 101 <xsl:variable name="bwStr-EvLs-SelectEvent">Select the event that you would like to update:</xsl:variable> 102 102 <xsl:variable name="bwStr-EvLs-PageTitle">Add new event</xsl:variable> 103 <xsl:variable name="bwStr-EvLs-StartDate">Start Date:</xsl:variable> 104 <xsl:variable name="bwStr-EvLs-Days">Days:</xsl:variable> 103 105 <xsl:variable name="bwStr-EvLs-Show">Show:</xsl:variable> 104 106 <xsl:variable name="bwStr-EvLs-Active">Active</xsl:variable> releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/default.css
r3508 r3519 1216 1216 padding-right: 2em; 1217 1217 } 1218 #daysSetterBox { 1219 margin-left: 1em; 1220 } 1218 1221 .bwEventListOtherGroupTags { 1219 1222 font-size: 0.8em; releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/default.xsl
r3510 r3519 224 224 <xsl:variable name="portalFriendly">false</xsl:variable> 225 225 226 <!-- get the current date set by the user, if exists, else use now --> 227 <xsl:variable name="curListDate"> 228 <xsl:choose> 229 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 230 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="substring(/bedework/now/date,5,2)"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 231 </xsl:choose> 232 </xsl:variable> 233 <!-- get the current number of days set by the user, if exists, else use default --> 234 <xsl:variable name="curListDays"> 235 <xsl:choose> 236 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when> 237 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise> 238 </xsl:choose> 239 </xsl:variable> 240 226 241 <!--==== MAIN TEMPLATE ====--> 227 242 <xsl:template match="/"> … … 404 419 </xsl:if> 405 420 421 <xsl:if test="/bedework/page='listEvents'"> 422 bwSetupListDatePicker(); 423 </xsl:if> 424 406 425 // If you wish to collapse specific topical areas, you can specify them here: 407 426 // (note that this will be managed from the admin client in time) … … 415 434 }); 416 435 436 }); 437 </xsl:comment> 438 </script> 439 </xsl:if> 440 <xsl:if test="/bedework/page='eventList'"> 441 <!-- include the localized jQuery datepicker defaults --> 442 <xsl:call-template name="jqueryDatepickerDefaults"/> 443 444 <!-- now setup date and time pickers --> 445 <script type="text/javascript"> 446 <xsl:comment> 447 $(document).ready(function(){ 448 // startdate for list 449 $("#bwListWidgetStartDate").datepicker({ 450 defaultDate: new Date(<xsl:value-of select="substring(/bedework/now/date,1,4)"/>, <xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>, <xsl:value-of select="substring(/bedework/now/date,7,2)"/>) 451 }); 452 $("#bwListWidgetStartDate").val('<xsl:value-of select="$curListDate"/>'); 417 453 }); 418 454 </xsl:comment> … … 827 863 <td> 828 864 <a href="{$event-initUpdateEvent}"> 865 <xsl:attribute name="href"><xsl:value-of select="$event-initUpdateEvent"/>&start=<xsl:value-of select="$curListDate"/>&days=<xsl:value-of select="$curListDays"/>&limitdays=true</xsl:attribute> 829 866 <xsl:if test="not(/bedework/currentCalSuite/name)"> 830 867 <xsl:attribute name="onclick">alert("<xsl:copy-of select="$bwStr-MMnu-YouMustBeOperating"/>");return false;</xsl:attribute> … … 1039 1076 <div id="bwEventListControls"> 1040 1077 <form name="calForm" id="bwManageEventListControls" method="post" action="{$event-initUpdateEvent}"> 1078 <label for="bwListWidgetStartDate"><xsl:copy-of select="$bwStr-EvLs-StartDate"/></label> 1079 <input id="bwListWidgetStartDate" name="start" size="10" onchange="setListDate(this.form);"/> 1080 <input type="hidden" name="setappvar" id="curListDateHolder"/> 1081 <input type="hidden" name="limitdays" value="true"/> 1082 <span id="daysSetterBox"> 1083 <label for="days"><xsl:copy-of select="$bwStr-EvLs-Days"/></label> 1084 <xsl:text> </xsl:text> 1085 <!-- <xsl:value-of select="/bedework/defaultdays"/> --> 1086 <select id="days" name="days" onchange="setListDate(this.form);"> 1087 <xsl:call-template name="buildListDays"/> 1088 </select> 1089 <input type="hidden" id="curListDaysHolder" name="setappvar"/> 1090 </span> 1091 1092 <!-- This block contains the original Show Active/All toggle. 1093 Uncomment this block to use, though it can be slow if working 1094 with large very large numbers of events. 1041 1095 <xsl:copy-of select="$bwStr-EvLs-Show"/> 1042 1096 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchFalse/*"/> … … 1044 1098 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchTrue/*"/> 1045 1099 <xsl:copy-of select="$bwStr-EvLs-All"/> 1100 --> 1046 1101 </form> 1047 1102 … … 1062 1117 </xsl:for-each> 1063 1118 </select> 1119 <input type="hidden" name="start" value="{$curListDate}"/> 1120 <input type="hidden" name="limitdays" value="true"/> 1064 1121 <xsl:if test="/bedework/appvar[key='catFilter'] and /bedework/appvar[key='catFilter']/value != 'none'"> 1065 1122 <input type="submit" value="{$bwStr-EvLs-ClearFilter}" onclick="this.form.setappvar.selectedIndex = 0"/> … … 1068 1125 </div> 1069 1126 <xsl:call-template name="eventListCommon"/> 1127 </xsl:template> 1128 1129 <xsl:template name="buildListDays"> 1130 <xsl:param name="index">1</xsl:param> 1131 <xsl:variable name="max" select="/bedework/maxdays"/> 1132 <xsl:if test="number($index) < number($max)"> 1133 <option name="listDays($index)"> 1134 <xsl:if test="$index = $curListDays"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1135 <xsl:value-of select="$index"/> 1136 </option> 1137 <xsl:call-template name="buildListDays"> 1138 <xsl:with-param name="index"><xsl:value-of select="number($index)+1"/></xsl:with-param> 1139 </xsl:call-template> 1140 </xsl:if> 1070 1141 </xsl:template> 1071 1142 … … 1261 1332 </xsl:if> 1262 1333 1263 <!-- if a submitted event has comments, display them -->1264 1334 <xsl:if test="/bedework/page = 'modEventPending'"> 1335 <!-- if a submitted event has topical areas that match with 1336 those in the calendar suite, convert them --> 1337 <script type="text/javascript"> 1338 $(document).ready(function() { 1339 $("ul.aliasTree input:checked").trigger("onclick"); 1340 }); 1341 </script> 1342 1343 <!-- if a submitted event has comments, display them --> 1265 1344 <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-LOCATION' or name()='X-BEDEWORK-CONTACT' or name()='X-BEDEWORK-CATEGORIES' or name()='X-BEDEWORK-SUBMIT-COMMENT']"> 1266 1345 <script type="text/javascript"> … … 2950 3029 <xsl:if test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 2951 3030 <xsl:if test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 3031 <xsl:if test="/bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text = substring-after(aliasUri,'bwcal://')"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 2952 3032 </input> 2953 3033 <xsl:choose> … … 2956 3036 </xsl:when> 2957 3037 <xsl:when test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"> 3038 <strong><xsl:value-of select="summary"/></strong> 3039 </xsl:when> 3040 <xsl:when test="/bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text = substring-after(aliasUri,'bwcal://')"> 2958 3041 <strong><xsl:value-of select="summary"/></strong> 2959 3042 </xsl:when> releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl
r3508 r3519 101 101 <xsl:variable name="bwStr-EvLs-SelectEvent">Seleccione el evento que desearía actualizar:</xsl:variable> 102 102 <xsl:variable name="bwStr-EvLs-PageTitle">Añadir nuevo evento</xsl:variable> 103 <xsl:variable name="bwStr-EvLs-StartDate">Start Date:</xsl:variable> 104 <xsl:variable name="bwStr-EvLs-Days">Days:</xsl:variable> 103 105 <xsl:variable name="bwStr-EvLs-Show">Mostrar:</xsl:variable> 104 106 <xsl:variable name="bwStr-EvLs-Active">Activo</xsl:variable> releases/bedework-3.8/deployment/webadmin/webapp/resources/resources/bedework.js
r3405 r3519 305 305 } 306 306 } 307 // setup the event list dates 308 function setListDate(formObj) { 309 $("#curListDateHolder").val("curListDate(" + formObj.start.value + ")"); 310 $("#curListDaysHolder").val("curListDays(" + formObj.days.value + ")"); 311 formObj.submit(); 312 } trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r3518 r3519 223 223 not guaranteed to work in portals. --> 224 224 <xsl:variable name="portalFriendly">false</xsl:variable> 225 226 <!-- get the current date set by the user, if exists, else use now --> 227 <xsl:variable name="curListDate"> 228 <xsl:choose> 229 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 230 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="substring(/bedework/now/date,5,2)"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 231 </xsl:choose> 232 </xsl:variable> 233 <!-- get the current number of days set by the user, if exists, else use default --> 234 <xsl:variable name="curListDays"> 235 <xsl:choose> 236 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when> 237 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise> 238 </xsl:choose> 239 </xsl:variable> 225 240 226 241 <!--==== MAIN TEMPLATE ====--> … … 427 442 <xsl:call-template name="jqueryDatepickerDefaults"/> 428 443 429 <!-- get the current date set by the user, if exists, else use now -->430 <xsl:variable name="curListDate">431 <xsl:choose>432 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when>433 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise>434 </xsl:choose>435 </xsl:variable>436 444 <!-- now setup date and time pickers --> 437 445 <script type="text/javascript"> … … 853 861 <tr> 854 862 <td> 855 <a href="{$event-initUpdateEvent}&limitdays=true"> 863 <a href="{$event-initUpdateEvent}"> 864 <xsl:attribute name="href"><xsl:value-of select="$event-initUpdateEvent"/>&start=<xsl:value-of select="$curListDate"/>&days=<xsl:value-of select="$curListDays"/>&limitdays=true</xsl:attribute> 856 865 <xsl:if test="not(/bedework/currentCalSuite/name)"> 857 866 <xsl:attribute name="onclick">alert("<xsl:copy-of select="$bwStr-MMnu-YouMustBeOperating"/>");return false;</xsl:attribute> … … 1107 1116 </xsl:for-each> 1108 1117 </select> 1109 <input type="hidden" name="start"> 1110 <xsl:attribute name="value"> 1111 <xsl:choose> 1112 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 1113 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 1114 </xsl:choose> 1115 </xsl:attribute> 1116 </input> 1118 <input type="hidden" name="start" value="{$curListDate}"/> 1117 1119 <input type="hidden" name="limitdays" value="true"/> 1118 1120 <xsl:if test="/bedework/appvar[key='catFilter'] and /bedework/appvar[key='catFilter']/value != 'none'"> … … 1126 1128 <xsl:template name="buildListDays"> 1127 1129 <xsl:param name="index">1</xsl:param> 1128 <xsl:variable name="current">1129 <xsl:choose>1130 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when>1131 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise>1132 </xsl:choose>1133 </xsl:variable>1134 1130 <xsl:variable name="max" select="/bedework/maxdays"/> 1135 1131 <xsl:if test="number($index) < number($max)"> 1136 1132 <option name="listDays($index)"> 1137 <xsl:if test="$index = $cur rent"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>1133 <xsl:if test="$index = $curListDays"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1138 1134 <xsl:value-of select="$index"/> 1139 1135 </option> trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl
r3516 r3519 224 224 <xsl:variable name="portalFriendly">false</xsl:variable> 225 225 226 <!-- get the current date set by the user, if exists, else use now --> 227 <xsl:variable name="curListDate"> 228 <xsl:choose> 229 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 230 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="substring(/bedework/now/date,5,2)"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 231 </xsl:choose> 232 </xsl:variable> 233 <!-- get the current number of days set by the user, if exists, else use default --> 234 <xsl:variable name="curListDays"> 235 <xsl:choose> 236 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when> 237 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise> 238 </xsl:choose> 239 </xsl:variable> 240 226 241 <!--==== MAIN TEMPLATE ====--> 227 242 <xsl:template match="/"> … … 427 442 <xsl:call-template name="jqueryDatepickerDefaults"/> 428 443 429 <!-- get the current date set by the user, if exists, else use now -->430 <xsl:variable name="curListDate">431 <xsl:choose>432 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when>433 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise>434 </xsl:choose>435 </xsl:variable>436 444 <!-- now setup date and time pickers --> 437 445 <script type="text/javascript"> … … 854 862 <tr> 855 863 <td> 856 <a href="{$event-initUpdateEvent}&limitdays=true"> 864 <a href="{$event-initUpdateEvent}"> 865 <xsl:attribute name="href"><xsl:value-of select="$event-initUpdateEvent"/>&start=<xsl:value-of select="$curListDate"/>&days=<xsl:value-of select="$curListDays"/>&limitdays=true</xsl:attribute> 857 866 <xsl:if test="not(/bedework/currentCalSuite/name)"> 858 867 <xsl:attribute name="onclick">alert("<xsl:copy-of select="$bwStr-MMnu-YouMustBeOperating"/>");return false;</xsl:attribute> … … 1070 1079 <input id="bwListWidgetStartDate" name="start" size="10" onchange="setListDate(this.form);"/> 1071 1080 <input type="hidden" name="setappvar" id="curListDateHolder"/> 1072 <input type="hidden" name="limitdays" id="true"/>1081 <input type="hidden" name="limitdays" value="true"/> 1073 1082 <span id="daysSetterBox"> 1074 1083 <label for="days"><xsl:copy-of select="$bwStr-EvLs-Days"/></label> 1075 1084 <xsl:text> </xsl:text> 1076 1085 <!-- <xsl:value-of select="/bedework/defaultdays"/> --> 1077 <select id="days" name="days" >1086 <select id="days" name="days" onchange="setListDate(this.form);"> 1078 1087 <xsl:call-template name="buildListDays"/> 1079 1088 </select> … … 1108 1117 </xsl:for-each> 1109 1118 </select> 1110 <input type="hidden" name="start"> 1111 <xsl:attribute name="value"> 1112 <xsl:choose> 1113 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 1114 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 1115 </xsl:choose> 1116 </xsl:attribute> 1117 </input> 1118 <input type="hidden" name="limitdays" id="true"/> 1119 <input type="hidden" name="start" value="{$curListDate}"/> 1120 <input type="hidden" name="limitdays" value="true"/> 1119 1121 <xsl:if test="/bedework/appvar[key='catFilter'] and /bedework/appvar[key='catFilter']/value != 'none'"> 1120 1122 <input type="submit" value="{$bwStr-EvLs-ClearFilter}" onclick="this.form.setappvar.selectedIndex = 0"/> … … 1127 1129 <xsl:template name="buildListDays"> 1128 1130 <xsl:param name="index">1</xsl:param> 1129 <xsl:variable name="current">1130 <xsl:choose>1131 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when>1132 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise>1133 </xsl:choose>1134 </xsl:variable>1135 1131 <xsl:variable name="max" select="/bedework/maxdays"/> 1136 1132 <xsl:if test="number($index) < number($max)"> 1137 1133 <option name="listDays($index)"> 1138 <xsl:if test="$index = $cur rent"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>1134 <xsl:if test="$index = $curListDays"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1139 1135 <xsl:value-of select="$index"/> 1140 1136 </option>
