Lines 83-90
Link Here
|
83 |
function Help() { |
83 |
function Help() { |
84 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
84 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
85 |
} |
85 |
} |
86 |
$(document).ready(function() { |
|
|
87 |
|
86 |
|
|
|
87 |
$(document).ready(function() { |
88 |
[% IF ( dateformat_metric ) %] $.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html |
88 |
[% IF ( dateformat_metric ) %] $.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html |
89 |
id: 'shortDates', |
89 |
id: 'shortDates', |
90 |
is: function(s){ |
90 |
is: function(s){ |
Lines 129-134
Link Here
|
129 |
$(this).parent().find(".hint").toggle(); return false; |
129 |
$(this).parent().find(".hint").toggle(); return false; |
130 |
}); |
130 |
}); |
131 |
$("#dateofrange").each(function () { this.value = "" }); |
131 |
$("#dateofrange").each(function () { this.value = "" }); |
|
|
132 |
$("#datecancelrange").each(function () { this.value = "" }); |
132 |
}); |
133 |
}); |
133 |
//]]> |
134 |
//]]> |
134 |
</script> |
135 |
</script> |
Lines 185-191
Link Here
|
185 |
<input type="hidden" id="showBranchName" name="showBranchName" /> |
186 |
<input type="hidden" id="showBranchName" name="showBranchName" /> |
186 |
</li> |
187 |
</li> |
187 |
<li> |
188 |
<li> |
188 |
<strong>Date:</strong> |
189 |
<strong>From Date:</strong> |
189 |
<span id="showDaynameOutput"></span>, |
190 |
<span id="showDaynameOutput"></span>, |
190 |
|
191 |
|
191 |
[% IF ( dateformat_us ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %] |
192 |
[% IF ( dateformat_us ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %] |
Lines 196-201
Link Here
|
196 |
<input type="hidden" id="showMonth" name="showMonth" /> |
197 |
<input type="hidden" id="showMonth" name="showMonth" /> |
197 |
<input type="hidden" id="showYear" name="showYear" /> |
198 |
<input type="hidden" id="showYear" name="showYear" /> |
198 |
</li> |
199 |
</li> |
|
|
200 |
<li class="dateinsert"> |
201 |
<b>To Date : </b> |
202 |
<input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" /> |
203 |
<img src="[% themelang %]/lib/calendar/cal.gif" id="datecancelrange_button" alt="Show Calendar" /> |
204 |
<script language="JavaScript" type="text/javascript"> |
205 |
Calendar.setup( |
206 |
{ |
207 |
inputField : "datecancelrange", |
208 |
ifFormat : "[% DHTMLcalendar_dateformat %]", |
209 |
button : "datecancelrange_button" |
210 |
} |
211 |
); |
212 |
</script> |
213 |
</li> |
199 |
<li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li> |
214 |
<li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li> |
200 |
<!-- showTitle is necessary for exception radio button to work properly --> |
215 |
<!-- showTitle is necessary for exception radio button to work properly --> |
201 |
<label for="showDescription">Description:</label> |
216 |
<label for="showDescription">Description:</label> |
Lines 206-218
Link Here
|
206 |
<a href="#" class="helptext">[?]</a> |
221 |
<a href="#" class="helptext">[?]</a> |
207 |
<div class="hint">You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.</div> |
222 |
<div class="hint">You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.</div> |
208 |
</div></li> |
223 |
</div></li> |
|
|
224 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" /> |
225 |
<label for="newOperationFieldException">Generate exceptions on a range of dates.</label>. |
226 |
<a href="#" class="helptext">[?]</a> |
227 |
<div class="hint">You can make an exception on a range of dates repeated yearly.</div> |
228 |
</li> |
209 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label> |
229 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label> |
210 |
<a href="#" class="helptext">[?]</a> |
230 |
<a href="#" class="helptext">[?]</a> |
211 |
<div class="hint">This will delete this holiday rule. If it is a repeatable holiday, this option checks for posible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.</div></li> |
231 |
<div class="hint">This will delete this holiday rule. If it is a repeatable holiday, this option checks for posible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.</div></li> |
|
|
232 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRange" value="deleterange" /><label for="showOperationDelRange" id="showOperationDelLabelRange">Delete the single holidays on a range</label>. |
233 |
<a href="#" class="helptext">[?]</a> |
234 |
<div class="hint">This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted</div> |
235 |
</li> |
236 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeat" value="deleterangerepeat" /><label for="showOperationDelRangeRepeat" id="showOperationDelLabelRangeRepeat">Delete the repeated holidays on a range</label>. |
237 |
<a href="#" class="helptext">[?]</a> |
238 |
<div class="hint">This will delete the repeated holidays rules only. The repeatable holidays will be deleted but not exceptions</div> |
239 |
</li> |
240 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeatExcept" value="deleterangerepeatexcept" /><label for="showOperationDelRangeRepeatExcept" id="showOperationDelLabelRangeRepeatExcept">Delete the exceptions on a range</label>. |
241 |
<a href="#" class="helptext">[?]</a> |
242 |
<div class="hint">This will delete the exceptions inside a given range. Be carefull about your scope range if it is oversized you could slow down koha</div> |
243 |
</li> |
212 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label> |
244 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label> |
213 |
<a href="#" class="helptext">[?]</a> |
245 |
<a href="#" class="helptext">[?]</a> |
214 |
<div class="hint">This will save changes to the holiday's title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.</div></li> |
246 |
<div class="hint">This will save changes to the holiday's title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.</div></li> |
215 |
|
|
|
216 |
</ol> |
247 |
</ol> |
217 |
<fieldset class="action"> |
248 |
<fieldset class="action"> |
218 |
<input type="submit" name="submit" value="Save" /> |
249 |
<input type="submit" name="submit" value="Save" /> |