1 <!-- TMPL_INCLUDE NAME="bull-top.inc" -->
2 <!--------------------------MAIN BODY OF PAGE-------------------------->
4 <!-- TMPL_IF name="mod" -->
5 <h1 class="bull">Modify subscription</h1>
6 <form method="post" name="f" action="subscription-detail.pl">
7 <input type="hidden" name="op" value="modsubscription">
8 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
10 <h1 class="bull">Add a subscription</h1>
11 <form method="post" name="f">
14 <h2 class="bull">Subscription information</h2>
15 <input type="hidden" name="op" value="addsubscription">
16 <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
17 <p>Librarian</td><td> <!-- TMPL_VAR name="user" --></p>
18 <p><label>Supplier</label><input type="text" name="aqbooksellerid" value="<!-- TMPL_VAR name="aqbooksellerid" -->" size=4> (<input type="text" name="aqbooksellername" value="<!-- TMPL_VAR name="aqbooksellername" -->" disabled readonly>)<a href="#" onClick="FindAcqui(f)">...</a></p>
19 <p><label>Biblio</label><input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size=4> (<input type="text" name="title" value="<!-- TMPL_VAR name="title" -->" disabled readonly>)<a href="#" onClick="Plugin(f)">...</a></p>
20 <p><label>Notes</label><TEXTAREA NAME="notes" COLS=30 ROWS=2><!-- TMPL_VAR name="notes" --></TEXTAREA></p>
21 <p class="problem">warning</p>
23 <li>remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
24 <li>You also must have selected a supplier if you want to ask for late issues</li>
28 <h2 class="bull">Planning</h2>
29 <p><label class="label100">Beginnning date:</label> <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10></p>
30 <p><label class="label100">Frequency (*)</label>
31 <select name="periodicity" size="1">
32 <option value="" selected>Unknown</option>
33 <!-- TMPL_IF name="periodicity1" -->
34 <option value="1" selected>1/day</option>
36 <option value="1">1/day</option>
38 <!-- TMPL_IF name="periodicity2" -->
39 <option value="2" selected>1/week</option>
41 <option value="2">1/week</option>
43 <!-- TMPL_IF name="periodicity3" -->
44 <option value="3" selected>1/2 weeks</option>
46 <option value="3">1/2 weeks</option>
48 <!-- TMPL_IF name="periodicity4" -->
49 <option value="4" selected>1/3 weeks</option>
51 <option value="4">1/3 weeks</option>
53 <!-- TMPL_IF name="periodicity5" -->
54 <option value="5" selected>1/month</option>
56 <option value="5">1/month</option>
58 <!-- TMPL_IF name="periodicity6" -->
59 <option value="6" selected>1/2 months</option>
61 <option value="6">1/2 months</option>
63 <!-- TMPL_IF name="periodicity7" -->
64 <option value="7" selected>1/3 months</option>
66 <option value="7">1/3 months</option>
68 <!-- TMPL_IF name="periodicity8" -->
69 <option value="8" selected>1/quarter</option>
71 <option value="8">1/quarter</option>
73 <!-- TMPL_IF name="periodicity9" -->
74 <option value="9" selected>1/2 quarters</option>
76 <option value="9">1/2 quarters</option>
78 <!-- TMPL_IF name="periodicity10" -->
79 <option value="10" selected>1/year</option>
81 <option value="10">1/year</option>
83 <!-- TMPL_IF name="periodicity11" -->
84 <option value="11" selected>1/2 years</option>
86 <option value="11">1/2 years</option>
90 <p><label class="label100">Arrives on</label>
91 <select name="dow" size="1">
92 <option value="">None</option>
93 <!-- TMPL_IF name="dow1" -->
94 <option value="1" selected>Monday</option>
96 <option value="1">Monday</option>
98 <!-- TMPL_IF name="dow2" -->
99 <option value="2" selected>Tuesday</option>
101 <option value="2">Tuesday</option>
103 <!-- TMPL_IF name="dow3" -->
104 <option value="3" selected>Wednesday</option>
106 <option value="3">Wednesday</option>
108 <!-- TMPL_IF name="dow4" -->
109 <option value="4" selected>Thursday</option>
111 <option value="4">Thursday</option>
113 <!-- TMPL_IF name="dow5" -->
114 <option value="5" selected>Friday</option>
116 <option value="5">Friday</option>
118 <!-- TMPL_IF name="dow6" -->
119 <option value="6" selected>Saturday</option>
121 <option value="6">Saturday</option>
123 <!-- TMPL_IF name="dow7" -->
124 <option value="7" selected>Sunday</option>
126 <option value="7">Sunday</option>
131 <h2 class="bull">Subscription length</h2>
132 <p><label class="label100">Number of num</label><input type="text" name="numberlength" value="<!-- TMPL_VAR name="numberlength" -->"></p>
133 <p><label class="label100">Number of weeks</label><input type="text" name="weeklength" value="<!-- TMPL_VAR name="weeklength" -->"></p>
134 <p><label class="label100">Number of months</label><input type="text" name="monthlength" value="<!-- TMPL_VAR name="monthlength" -->"></p>
138 <h2 class="bull">Numbering calculation</h2>
140 <p>Numbering formula: <input type="text" name="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->"></p>
141 <table class="small">
143 <th class="bull"> </th>
144 <th class="bull">X</th>
145 <th class="bull">Y</th>
146 <th class="bull">Z</th>
149 <td class="bull">Add</td>
151 <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->">
154 <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->">
157 <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->">
161 <td class="bull">once every</td>
162 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->"></td>
163 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->"></td>
164 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->"></td>
167 <td class="bull">When more than</td>
168 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->"></td>
169 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->"></td>
170 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->"></td>
173 <td class="bull">Set back to</td>
174 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->"></td>
175 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->"></td>
176 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->"></td>
180 <!-- TMPL_IF name="mod" -->
186 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->"></td>
187 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->"></td>
188 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->"></td>
193 <!-- TMPL_IF name="mod" -->
194 <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w" class="button bull">
196 <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w" class="button bull">
201 <!-- TMPL_INCLUDE NAME="bull-bottom.inc" -->
203 <script language="JavaScript" type="text/javascript">
207 window.open("subscription-bib-search.pl","Find a bib index",'width=500,height=400,toolbar=false,scrollbars=yes');
210 function FindAcqui(f)
212 window.open("acqui-search.pl","Find a supplier",'width=500,height=400,toolbar=false,scrollbars=yes');
218 if (f.dow.value.length != 0
219 && f.startdate.value.length != 0 && f.dow.value.length != 0)
221 // alert('subscription ok');
226 alert('field marked with * are mandatory');