3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Serials › [% IF ( modify ) %][% bibliotitle |html %] › Modify subscription[% ELSE %]New subscription[% END %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 <style type="text/css">
8 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
9 .yui-u li p label.widelabel {
10 width: 300px; /* not enough for IE7 apparently */
13 <script type="text/javascript">
16 var globalnumpatterndata;
18 var advancedpatternlocked;
19 var patternneedtobetested = 0;
21 function check_issues(){
22 if (globalfreqdata.unit.length >0) {
23 if (document.f.subtype.value == globalfreqdata.unit){
24 document.f.issuelengthcount.value=(document.f.sublength.value*globalfreqdata.issuesperunit)/globalfreqdata.unitsperissue;
25 } else if (document.f.subtype.value != "issues"){
26 alert(_("Frequency and subscription length provided doesn't combine well. Please consider entering an issue count rather than a time period."));
31 function addbiblioPopup(biblionumber) {
32 var destination = "/cgi-bin/koha/cataloguing/addbiblio.pl?mode=popup";
34 destination += "&biblionumber="+biblionumber;
36 window.open(destination,'AddBiblioPopup','width=1024,height=768,toolbar=no,scrollbars=yes');
41 window.open('subscription-bib-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
46 window.open('acqui-search.pl','FindASupplier','width=800,height=400,toolbar=no,scrollbars=yes');
51 window.open('issn-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
58 function Check_page1() {
59 if ( $("#aqbooksellerid").val().length == 0) {
60 input_box = confirm(_("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor"));
61 if (input_box==false) {
65 if ($("#biblionumber").val().length == 0) {
66 alert(_("You must choose or create a biblio"));
73 function Check_page2(){
74 [% UNLESS (more_than_one_serial) %]
75 if($("#acqui_date").val().length == 0){
76 alert(_("You must choose a first publication date"));
80 if($("#frequency").val().length == 0){
81 alert(_("You must choose a frequency"));
84 if($("input[name='startdate']").val().length == 0){
85 alert(_("You must choose a start date"));
88 if($("#sublength").val().length == 0 && $("input[name='enddate']").val().length == 0){
89 alert(_("You must choose a subscription length or an end date."));
92 if($("#numberpattern").val().length == 0){
93 alert(_("You must choose a numbering pattern"));
96 if(advancedpatternlocked == 0){
97 alert(_("You have modified the advanced prediction pattern. Please save your work or cancel modifications."));
100 if(patternneedtobetested){
101 alert(_("Please click on 'Test prediction pattern' before saving subscription."));
108 function frequencyload(){
109 $.getJSON("subscription-frequency.pl",{"frequency_id":document.f.frequency.value,ajax:'true'},
111 globalfreqdata=freqdata;
112 if ( globalfreqdata.unit.length == 0 ) {
113 var option = $("#subtype option[value='issues']");
114 $(option).attr('selected', 'selected');
115 $("#subtype option[value!='issues']").attr('disabled', 'disabled')
117 $("#subtype option").attr('disabled', false)
123 function numberpatternload(){
124 $.getJSON("subscription-numberpattern.pl",{"numberpattern_id":document.f.numbering_pattern.value,ajax:'true'},
125 function(numpatterndata){
126 globalnumpatterndata=numpatterndata;
127 if (globalnumpatterndata==undefined){
130 displaymoreoptions();
131 restoreAdvancedPattern();
136 function displaymoreoptions() {
137 if(globalnumpatterndata == undefined){
138 $("#moreoptionst").hide();
142 var X = 0, Y = 0, Z = 0;
143 var numberingmethod = unescape(globalnumpatterndata.numberingmethod);
144 if(numberingmethod.match(/{X}/)) X = 1;
145 if(numberingmethod.match(/{Y}/)) Y = 1;
146 if(numberingmethod.match(/{Z}/)) Z = 1;
149 $("#moreoptionst").show();
151 $("#moreoptionst").hide();
155 if(globalnumpatterndata.label1) {
156 $("#headerX").html(unescape(globalnumpatterndata.label1));
158 $("#headerX").html("X");
160 $("#headerX").show();
161 $("#beginsX").show();
164 $("#headerX").hide();
165 $("#beginsX").hide();
167 $("#lastvaluetemp1").val('');
168 $("#innerlooptemp1").val('');
171 if(globalnumpatterndata.label2) {
172 $("#headerY").html(unescape(globalnumpatterndata.label2));
174 $("#headerY").html("Y");
176 $("#headerY").show();
177 $("#beginsY").show();
180 $("#headerY").hide();
181 $("#beginsY").hide();
183 $("#lastvaluetemp2").val('');
184 $("#innerlooptemp2").val('');
187 if(globalnumpatterndata.label3) {
188 $("#headerZ").html(unescape(globalnumpatterndata.label3));
190 $("#headerZ").html("Z");
192 $("#headerZ").show();
193 $("#beginsZ").show();
196 $("#headerZ").hide();
197 $("#beginsZ").hide();
199 $("#lastvaluetemp3").val('');
200 $("#innerlooptemp3").val('');
204 function toggleAdvancedPattern() {
205 $("#advancedpredictionpattern").toggle();
208 function modifyAdvancedPattern() {
209 $("#patternname").attr("readonly", false).val('');
210 $("#numberingmethod").attr("readonly", false);
212 $("#advancedpredictionpatternt input").each(function() {
213 $(this).attr("readonly", false);
215 $("#advancedpredictionpatternt select").each(function() {
216 $(this).attr("disabled", false);
219 $("#restoreadvancedpatternbutton").show();
220 $("#saveadvancedpatternbutton").show();
221 $("#modifyadvancedpatternbutton").hide();
223 advancedpatternlocked = 0;
226 function restoreAdvancedPattern() {
227 $("#patternname").attr("readonly", true).val(unescape(globalnumpatterndata.label));
228 $("#numberingmethod").attr("readonly", true).val(unescape(globalnumpatterndata.numberingmethod));
230 $("#advancedpredictionpatternt input").each(function() {
231 $(this).attr("readonly", true);
232 var id = $(this).attr('id');
233 if(id.match(/lastvalue/) || id.match(/innerloop/)) {
234 var tempid = id.replace(/(\d)/, "temp$1");
235 $(this).val($("#"+tempid).val());
237 $(this).val(unescape(globalnumpatterndata[id]));
240 $("#advancedpredictionpatternt select").each(function() {
241 $(this).attr("disabled", true);
242 var id = $(this).attr('id');
243 $(this).val(unescape(globalnumpatterndata[id]));
246 $("#restoreadvancedpatternbutton").hide();
247 $("#saveadvancedpatternbutton").hide();
248 $("#modifyadvancedpatternbutton").show();
250 advancedpatternlocked = 1;
253 function testPredictionPattern() {
254 var frequencyid = $("#frequency").val();
258 if(frequencyid == undefined || frequencyid == ""){
259 error_msg += _("- Frequency is not defined\n");
262 acquidate = $("#acqui_date").val();
263 if(acquidate == undefined || acquidate == ""){
264 error_msg += _("- First publication date is not defined\n");
267 [% IF (more_than_one_serial) %]
268 var nextacquidate = $("#nextacquidate").val();
269 if(nextacquidate == undefined || nextacquidate == ""){
270 error_msg += _("- Next issue publication date is not defined\n");
276 alert(_("Cannot test prediction pattern for the following reason(s):\n\n")
281 var custompattern = 0;
282 if(advancedpatternlocked == 0) {
287 'custompattern': custompattern,
288 [% IF (subscriptionid) %]
289 'subscriptionid': [% subscriptionid %],
291 [% IF (more_than_one_serial) %]
292 'nextacquidate': nextacquidate,
294 'firstacquidate': acquidate
297 'to', 'subtype', 'sublength', 'frequency', 'numberingmethod',
298 'lastvalue1', 'lastvalue2', 'lastvalue3', 'add1', 'add2', 'add3',
299 'every1', 'every2', 'every3', 'innerloop1', 'innerloop2', 'innerloop3',
300 'setto1', 'setto2', 'setto3', 'numbering1', 'numbering2', 'numbering3',
301 'whenmorethan1', 'whenmorethan2', 'whenmorethan3', 'locale'
303 for(i in ajaxParams) {
304 var param = ajaxParams[i];
305 var value = $("#"+param).val();
307 ajaxData[param] = value;
311 url:"/cgi-bin/koha/serials/showpredictionpattern.pl",
313 success: function(data) {
314 $("#displayexample").html(data);
315 patternneedtobetested = 0;
320 function saveAdvancedPattern() {
321 if ($("#patternname").val().length == 0) {
322 alert(_("Please enter a name for this pattern"));
326 // Check if patternname already exists, and modify pattern
327 // instead of creating it if so
329 $("#numberpattern option").each(function(){
330 if($(this).text() == $("#patternname").val()){
337 var msg = _("This pattern name already exists. Do you want to modify it?")
338 + "\n" + _("Warning: it will modify the pattern for all subscriptions")
339 + _("that are using it.");
340 cnfrm = confirm(msg);
346 'patternname', 'numberingmethod', 'label1', 'label2', 'label3',
347 'add1', 'add2', 'add3', 'every1', 'every2', 'every3',
348 'setto1', 'setto2', 'setto3', 'numbering1', 'numbering2', 'numbering3',
349 'whenmorethan1', 'whenmorethan2', 'whenmorethan3', 'locale'
351 for(i in ajaxParams) {
352 var param = ajaxParams[i];
353 var value = $("#"+param).val();
355 ajaxData[param] = value;
359 "/cgi-bin/koha/serials/create-numberpattern.pl",
362 if (data.numberpatternid) {
364 $("#numberpattern").append("<option value=\""+data.numberpatternid+"\">"+$("#patternname").val()+"</option>");
366 $("#numberpattern").val(data.numberpatternid);
369 alert(_("Something went wrong. Unable to create a new numbering pattern."));
376 function show_page_1() {
379 $("#page_number").text("1/2");
382 function show_page_2() {
385 $("#page_number").text("2/2");
386 displaymoreoptions();
390 $(document).ready(function() {
391 $("select#frequency").change(function(){
392 patternneedtobetested = 1;
393 $("input[name='enddate']").val('');
396 $("select#numberpattern").change(function(){
397 patternneedtobetested = 1;
400 $("#subtype").change(function(){
401 $("input[name='enddate']").val('');
403 $("#sublength").change(function(){
404 $("input[name='enddate']").val('');
406 $("#lastvaluetemp1").keyup(function(){
407 $("#lastvalue1").val($(this).val());
409 $("#lastvaluetemp2").keyup(function(){
410 $("#lastvalue2").val($(this).val());
412 $("#lastvaluetemp3").keyup(function(){
413 $("#lastvalue3").val($(this).val());
415 $("#lastvalue1").keyup(function(){
416 $("#lastvaluetemp1").val($(this).val());
418 $("#lastvalue2").keyup(function(){
419 $("#lastvaluetemp2").val($(this).val());
421 $("#lastvalue3").keyup(function(){
422 $("#lastvaluetemp3").val($(this).val());
425 $("#innerlooptemp1").keyup(function(){
426 $("#innerloop1").val($(this).val());
428 $("#innerlooptemp2").keyup(function(){
429 $("#innerloop2").val($(this).val());
431 $("#innerlooptemp3").keyup(function(){
432 $("#innerloop3").val($(this).val());
434 $("#innerloop1").keyup(function(){
435 $("#innerlooptemp1").val($(this).val());
437 $("#innerloop2").keyup(function(){
438 $("#innerlooptemp2").val($(this).val());
440 $("#innerloop3").keyup(function(){
441 $("#innerlooptemp3").val($(this).val());
444 if($("#frequency").val() != ""){
447 if($("#numberpattern").val() != ""){
452 [% FOREACH field IN dont_export_field_loop %]
453 node = $("#[% field.fieldid %]");
454 if ( $(node).is('input') || $(node).is('textarea') ) {
456 } else if ( $(node).is('select') ) {
457 $(node).find("option:first").attr('selected','selected');
466 <body id="ser_subscription-add" class="ser">
467 [% INCLUDE 'header.inc' %]
468 [% INCLUDE 'serials-search.inc' %]
470 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › [% IF ( modify ) %]<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% bibliotitle |html %]</i></a> › Modify subscription[% ELSE %]New subscription[% END %]</div>
472 <div id="doc3" class="yui-t7">
475 <h1>[% IF ( modify ) %] Modify subscription for <i>[% bibliotitle |html %]</i>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h1>
476 <form method="post" name="f" action="/cgi-bin/koha/serials/subscription-add.pl">
478 <input type="hidden" name="op" value="modsubscription" />
479 <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
481 <input type="hidden" name="op" value="addsubscription" />
483 <input type="hidden" name="user" value="[% loggedinusername %]" />
484 <input type="hidden" name="irreg_check" value="0" />
487 <div class="yui-u first">
488 <fieldset id="subscription_add_information" class="rows">
489 <legend>Subscription details</legend>
491 [% IF ( subscriptionid ) %]
492 <li><span class="label">Subscription #</span> [% subscriptionid %]</li>
495 <label for="aqbooksellerid">Vendor: </label>
496 <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid %]" size="8" /> (<input type="text" name="aqbooksellername" value="[% aqbooksellername %]" disabled="disabled" readonly="readonly" />) <a href="#" onclick="FindAcqui(f)">Search for a vendor</a>
499 <label for="biblionumber" class="required" title="Subscriptions must be associated with a bibliographic record">Biblio:</label>
500 <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum %]" size="8" />
501 (<input type="text" name="title" value="[% bibliotitle %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
502 <div class="inputnote"> <a href="#" onclick="Plugin(f)">Search for Biblio</a>
503 [% IF ( CAN_user_editcatalogue ) %]
505 | <a href="#" onclick="addbiblioPopup([% bibnum %]); return false;">Edit biblio</a>
507 | <a href="#" onclick="addbiblioPopup(); return false;">Create Biblio</a>
513 [% IF ( serialsadditems ) %]
514 <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1" checked="checked" /><label class="widelabel" for="serialsadditems-yes">create an item record when receiving this serial</label></p>
515 <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" /><label class="widelabel" for="serialsadditems-no">do not create an item record when receiving this serial </label></p>
517 <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1"/><label class="widelabel" for="serialsadditems-yes">create an item record when receiving this serial</label></p>
518 <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" checked="checked" /><label class="widelabel" for="serialsadditems-no">do not create an item record when receiving this serial</label></p>
522 <p>When there is an irregular issue:</p>
523 [% IF (skip_serialseq) %]
525 <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" checked="checked" />
526 <label for="skip_serialseq_yes">Skip issue number</label>
529 <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" />
530 <label for="skip_serialseq_no">Keep issue number</label>
534 <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" />
535 <label for="skip_serialseq_yes">Skip issue number</label>
538 <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" checked="checked" />
539 <label for="skip_serialseq_no">Keep issue number</label>
544 <label for="manualhistory">Manual history</label>
545 [% IF (manualhistory) %]
546 <input type="checkbox" id="manualhistory" name="manualhist" checked="checked" />
548 <input type="checkbox" id="manualhistory" name="manualhist" />
552 <label for="callnumber">Call number</label>
553 <input type="text" name="callnumber" id="callnumber" value="[% callnumber %]" size="20" />
556 <label for="branchcode">Library:</label>
557 <select name="branchcode" id="branchcode" style="width: 20em;">
558 [% UNLESS ( Independantbranches ) %]
559 <option value="">None</option>
561 [% FOREACH branchloo IN branchloop %]
562 [% IF ( branchloo.selected ) %]
563 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
565 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
568 </select> (select a library)
571 <label for="notes">Public note:</label>
572 <textarea name="notes" id="notes" cols="30" rows="2">[% notes %]</textarea>
575 <label for="internalnotes">Nonpublic note:</label>
576 <textarea name="internalnotes" id="internalnotes" cols="30" rows="2">[% internalnotes %]</textarea>
579 [% IF ( letterloop ) %]
580 <label for="letter">Patron notification: </label>
581 <select name="letter" id="letter">
582 <option value="">None</option>
583 [% FOREACH letterloo IN letterloop %]
584 [% IF ( letterloo.selected ) %]
585 <option value="[% letterloo.value %]" selected="selected">[% letterloo.lettername %]</option>
587 <option value="[% letterloo.value %]">[% letterloo.lettername %]</option>
591 <div class="hint">Select a notice and patrons on the routing list will be notified when new issues are received.</div>
593 <span class="label">Patron notification: </span>
594 <div class="hint">To notify patrons of new serial issues, you must <a href="/cgi-bin/koha/tools/letter.pl">define a notice</a>.</div>
598 <label for="location">Location:</label>
599 <select name="location" id="location">
600 <option value="">None</option>
601 [% FOREACH locations_loo IN locations_loop %]
602 [% IF ( locations_loo.selected ) %]
603 <option value="[% locations_loo.authorised_value %]" selected="selected">[% locations_loo.lib %]</option>
605 <option value="[% locations_loo.authorised_value %]">[% locations_loo.lib %]</option>
611 <label for="graceperiod">Grace period:</label>
612 <input type="text" name="graceperiod" id="graceperiod" value="[% graceperiod %]" size="5"/> day(s)
615 <label class="widelabel" for="staffdisplaycount">Number of issues to display to staff: </label>
616 <input type="text" name="staffdisplaycount" id="staffdisplaycount" value="[% staffdisplaycount %]" size="4"/>
619 <label class="widelabel" for="opacdisplaycount">Number of issues to display to the public: </label>
620 <input type="text" name="opacdisplaycount" id="opacdisplaycount" value="[% opacdisplaycount %]" size="4"/>
624 <fieldset class="action">
625 <input type="button" value="Next >>" onclick="if ( Check_page1() ) show_page_2();" style="float:right;" />
631 <div class="yui-u first">
632 <div id="subscription_form_planning">
633 <fieldset class="rows">
634 <legend>Serials planning</legend>
637 <label for="firstacquidate">First issue publication date: (*)</label>
638 [% UNLESS (more_than_one_serial) %]
639 <input type="text" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" class="datepicker" readonly="readonly"/>
641 [% firstacquidate | $KohaDates %]
642 <input type="hidden" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]"/>
645 [% IF (more_than_one_serial) %]
647 <label for="nextacquidate">Next issue publication date:</label>
648 <input type="text" size="10" id="nextacquidate" name="nextacquidate" value="[% nextacquidate | $KohaDates %]" class="datepicker" readonly="readonly"/>
652 <label for="frequency">Frequency: (*)</label>
653 <select name="frequency" size="1" id="frequency">
654 <option value="">-- please choose --</option>
655 [% FOREACH frequency IN frequencies %]
656 <option value="[% frequency.id %]" [% IF (frequency.selected) %] selected="selected" [% END %]>
657 [% frequency.label %]
663 <label for="subtype">Subscription length:</label>
664 <select name="subtype" id="subtype">
665 [% FOREACH subt IN subtype %]
666 <option value="[% subt.name %]" [% IF (subt.selected) %] selected="selected" [% END %] >
671 <input type="text" name="sublength" id="sublength" value="[% sublength %]" size="3" /> (enter amount in numerals)
672 <input type="hidden" name="issuelengthcount">
675 <label for="startdate"> Subscription start date: (*)</label>
676 <input type="text" size="10" id="from" name="startdate" value="[% startdate | $KohaDates %]" class="datepickerfrom" readonly="readonly"/>
679 <label for="enddate">Subscription end date:</label>
680 <input type="text" size="10" id="to" name="enddate" value="[% enddate | $KohaDates %]" class="datepickerto" readonly="readonly"/>
683 <label for="numberpattern">Numbering pattern:</label>
684 <select name="numbering_pattern" size="1" id="numberpattern">
685 <option value="">-- please choose --</option>
686 [% FOREACH numberpattern IN numberpatterns %]
687 <option value="[% numberpattern.id %]" [% IF (numberpattern.selected) %] selected="selected" [% END %]>[% numberpattern.label %]</option>
692 <label for="locale">Locale</label>
693 <select id="locale" name="locale">
694 <option value=""></option>
695 [% FOREACH locale IN locales %]
696 <option value="[% locale %]">
701 <span class="hint">If empty, system locale is used</span>
703 <li id="more_options">
704 <table id="moreoptionst">
708 <th id="headerX"> </th>
709 <th id="headerY"> </th>
710 <th id="headerZ"> </th>
716 [% IF (more_than_one_serial) %]
722 <td id="beginsX"><input type="text" id="lastvaluetemp1" name="lastvaluetemp1" value="[% lastvalue1 %]" /></td>
723 <td id="beginsY"><input type="text" id="lastvaluetemp2" name="lastvaluetemp2" value="[% lastvalue2 %]" /></td>
724 <td id="beginsZ"><input type="text" id="lastvaluetemp3" name="lastvaluetemp3" value="[% lastvalue3 %]" /></td>
727 <td>Inner counter</td>
728 <td id="innerX"><input type="text" id="innerlooptemp1" name="innerlooptemp1" value="[% innerloop1 %]" /></td>
729 <td id="innerY"><input type="text" id="innerlooptemp2" name="innerlooptemp2" value="[% innerloop2 %]" /></td>
730 <td id="innerZ"><input type="text" id="innerlooptemp3" name="innerlooptemp3" value="[% innerloop3 %]" /></td>
735 <li><a style="cursor:pointer" onclick="toggleAdvancedPattern();">Show/Hide advanced pattern</a></li>
736 <div id="advancedpredictionpattern" style="display:none">
738 <label for="patternname">Pattern name: (*)</label>
739 <input id="patternname" name="patternname" type="text" readonly="readonly" />
742 <label for="numberingmethod">Numbering formula:</label>
743 <input readonly="readonly" type="text" name="numberingmethod" id="numberingmethod" size="50" value="[% numberingmethod %]" />
745 <table id="advancedpredictionpatternt">
748 <th colspan="4">Advanced prediction pattern</td>
760 <td><input type="text" readonly="readonly" id="label1" name="label1" /></td>
761 <td><input type="text" readonly="readonly" id="label2" name="label2" /></td>
762 <td><input type="text" readonly="readonly" id="label3" name="label3" /></td>
766 <td><input type="text" readonly="readonly" id="lastvalue1" name="lastvalue1" /></td>
767 <td><input type="text" readonly="readonly" id="lastvalue2" name="lastvalue2" /></td>
768 <td><input type="text" readonly="readonly" id="lastvalue3" name="lastvalue3" /></td>
772 <td><input type="text" readonly="readonly" id="add1" name="add1" /></td>
773 <td><input type="text" readonly="readonly" id="add2" name="add2" /></td>
774 <td><input type="text" readonly="readonly" id="add3" name="add3" /></td>
778 <td><input type="text" readonly="readonly" id="every1" name="every1" /></td>
779 <td><input type="text" readonly="readonly" id="every2" name="every2" /></td>
780 <td><input type="text" readonly="readonly" id="every3" name="every3" /></td>
784 <td><input type="text" readonly="readonly" id="setto1" name="setto1" /></td>
785 <td><input type="text" readonly="readonly" id="setto2" name="setto2" /></td>
786 <td><input type="text" readonly="readonly" id="setto3" name="setto3" /></td>
789 <td>When more than</td>
790 <td><input type="text" readonly="readonly" id="whenmorethan1" name="whenmorethan1" /></td>
791 <td><input type="text" readonly="readonly" id="whenmorethan2" name="whenmorethan2" /></td>
792 <td><input type="text" readonly="readonly" id="whenmorethan3" name="whenmorethan3" /></td>
795 <td>Inner counter</td>
796 <td><input type="text" readonly="readonly" id="innerloop1" name="innerloop1" /></td>
797 <td><input type="text" readonly="readonly" id="innerloop2" name="innerloop2" /></td>
798 <td><input type="text" readonly="readonly" id="innerloop3" name="innerloop3" /></td>
801 [% BLOCK numbering_select %]
802 <select disabled="disabled" id="[% name %]" name="[% name %]" />
803 <option value=""></option>
804 <option value="dayname">Name of day</option>
805 <option value="monthname">Name of month</option>
806 <option value="season">Name of season</option>
810 <td>[% PROCESS numbering_select name="numbering1" %]</td>
811 <td>[% PROCESS numbering_select name="numbering2" %]</td>
812 <td>[% PROCESS numbering_select name="numbering3" %]</td>
816 <input id="modifyadvancedpatternbutton" type="button" value="Modify pattern" onclick="modifyAdvancedPattern();" />
817 <input id="restoreadvancedpatternbutton" type="button" value="Cancel modifications" onclick="restoreAdvancedPattern();" style="display:none" />
818 <input id="saveadvancedpatternbutton" type="button" value="Save as new pattern" onclick="saveAdvancedPattern();" style="display:none" />
822 <fieldset class="action">
823 <input type="button" value="<< Previous" onclick="show_page_1();" style="float:left;"/>
824 <input id="testpatternbutton" type="button" value="Test prediction pattern" onclick="testPredictionPattern();" />
825 <input type="button" value="Save subscription" onclick="if (Check_page2()) submit();" style="float:right;" accesskey="w" />
830 <li id="displayexample"></li>
838 [% INCLUDE 'intranet-bottom.inc' %]