BUGfix : return correctly the form checking
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / memberentrygen.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patrons &rsaquo; <!-- TMPL_IF NAME="opadd" -->
3                 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
4 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
5 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></title>
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
8 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
9   <!--TMPL_IF Name="opadd"-->
10 <script language="JavaScript" type="text/javascript">
11 function active(numlayer){
12     for (i=1; i <= 3 ; i++ ) {
13         var tab = document.getElementById('step'+i);
14         if (numlayer==i) {
15             tab.setAttribute("class","content_visible");
16             var tabactive=document.getElementById('link'+i);
17             tabactive.removeAttribute("class");
18             tabactive.setAttribute("class","tab_active");
19         } else {
20             tab.setAttribute("class","content_hidden");
21             try {
22                 var tabactive=document.getElementById('link'+i);
23                 tabactive.removeAttribute("class");
24                 tabactive.setAttribute("class","tab_inactive");
25             }
26             catch(e){};
27         }
28     }
29 }
30 </script>
31   <!--/TMPL_IF-->
32 </head>
33 <body>
34 <!-- TMPL_INCLUDE NAME="header.inc" -->
35 <!-- TMPL_INCLUDE NAME="members-search.inc" -->
36
37 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <!-- TMPL_IF NAME="opadd" -->
38                 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
39 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
40 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></div>
41
42 <div id="doc3" class="yui-t2">
43    
44    <div id="bd">
45         <div id="yui-main">
46         <div class="yui-b">
47
48
49         <!-- TMPL_IF NAME="opadd" -->
50         <h1>
51                 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
52 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
53         </h1>
54         <!-- TMPL_ELSE -->
55         <h1 >
56                 Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
57 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
58         </h1>
59         <!-- /TMPL_IF -->
60         <!-- TMPL_IF NAME="check_member" -->
61                 <p>
62                 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
63                         <div id="problem">
64                                 Duplicate suspected
65                                 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
66                                 Duplicate ?
67                                 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a> 
68                                 &nbsp;&nbsp;&nbsp; No, it is not
69                                 <!-- TMPL_IF NAME="checked"-->
70                                         <input type="checkbox" checked="checked" name="answernodouble" >
71                                 <!-- TMPL_ELSE -->
72                                         <input type="checkbox" name="answernodouble" />
73                                 <!-- /TMPL_IF -->
74                         </div>
75                 </form>
76                 </p>
77         <!--/TMPL_IF-->
78                 
79         <!-- TMPL_IF Name="nok" -->
80                 <div id="problem">
81                         <p>The following fields are wrong. Please fix it/them</p>
82                         <!-- TMPL_IF NAME="ERROR_login_exist" -->
83                                 <div name="ERROR_login_exist">login/password already exist</div>
84                         <!-- /TMPL_IF -->
85                         <!-- TMPL_IF NAME="ERROR_cardnumber" -->
86                                 <div name="ERROR_cardnumber">Cardnumber already in use</div>
87                         <!-- /TMPL_IF -->
88       <!-- TMPL_IF NAME="ERROR_age_limitations" -->
89               <div name="ERROR_age_limitations">Patron is too young or too old for this category</div>
90       <!-- /TMPL_IF -->
91                 </div>
92         <!-- /TMPL_IF -->
93         
94   <!--TMPL_IF Name="allsteps"-->
95     <div id="tabs">
96             <a href="javascript:active(1)" class="tab_active" id="link1">Personal Information</a>
97             <a href="javascript:active(2)" class="tab_inactive" id="link2">Contacts</a>
98             <a href="javascript:active(3)" class="tab_inactive" id="link3">Library Management</a>
99     </div>
100   <!--/TMPL_IF-->
101   
102 <form name="form"  action="/cgi-bin/koha/members/memberentry.pl" method="post"> 
103 <!--    field always hidden in different form (1,2,3) -->
104 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
105 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
106 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" />
107 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
108 <input type="hidden" name="guarantorid"   value="<!-- TMPL_VAR NAME="guarantorid" -->" />
109 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
110 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
111 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
112 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
113 <input type="hidden" name="nodouble"  value="<!-- TMPL_VAR NAME="nodouble" -->" />
114 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
115
116 <!--TMPL_IF Name="step_1"-->
117   <div id="step1" class="content_visible">
118   <!--TMPL_IF Name="I"-->
119   <input type="hidden" name="FormFieldList" value="surname|contactname|contactfirstname" /> <!--TMPL_ELSE--> <input type="hidden" name="FormFieldList" value="title|surname|firstname|dateofbirth|initials|othernames" />  <!--/TMPL_IF-->
120         <fieldset id="memberentry_identity">
121                 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
122                 <p>
123                 <!-- TMPL_IF NAME="female" -->
124                 <input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><label for="sex-female">Female</label>
125                 <input type="radio" name="sex" id="sex-male" value="M" /><label for="sex-male">Male</label>
126                 <!-- TMPL_ELSE -->
127                 <input type="radio" name="sex" id="sex-female" value="F" /><label for="sex-female">Female</label>
128                 <input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><label for="sex-male">Male</label>
129                 <!-- /TMPL_IF -->
130                 </p>
131                 <p>
132                 <!-- TMPL_IF NAME="mandatorytitle" -->
133                         <label for="btitle" class="required">
134                 <!-- TMPL_ELSE -->
135                         <label for="btitle">
136                 <!-- /TMPL_IF-->
137                 Title</label>
138                 <!-- TMPL_VAR NAME="borrotitlepopup" -->
139                 </p>
140
141                 <p>
142                 <!-- TMPL_IF NAME="mandatorysurname" -->
143                 <label for="surname" class="required">
144                 <!-- TMPL_ELSE -->
145                 <label for="surname">
146                 <!-- /TMPL_IF-->
147                 Surname</label>
148                 <!-- TMPL_IF NAME="uppercasesurnames" -->
149                 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
150                 <!-- TMPL_ELSE -->
151                 <input type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
152                 <!-- /TMPL_IF -->
153                 </p>
154                 <p>
155                 <!-- TMPL_IF NAME="mandatoryfirstname" -->
156                 <label for="firstname" class="required">
157                 <!-- TMPL_ELSE -->
158                 <label for="firstname">
159                 <!-- /TMPL_IF-->
160                 Firstname</label>
161                 <input type="text" id="firstname" name="firstname" size="20"  value="<!-- TMPL_VAR NAME="firstname" -->" />
162                 </p>
163                 <p>
164                         <!-- TMPL_IF NAME="mandatorydateofbirth" -->
165                         <label for="dateofbirth" class="required">
166                         <!-- TMPL_ELSE -->      
167                         <label for="dateofbirth">
168                         <!-- /TMPL_IF-->
169                         Date of birth</label>
170                         <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
171             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
172       <script language="JavaScript" type="text/javascript">
173         Calendar.setup(
174           {
175             inputField : "dateofbirth",
176             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
177             button : "dateofbirth_button"
178           }
179         );
180       </script>
181                 </p>
182                 <p>
183                         <!-- TMPL_IF NAME="mandatoryinitials" -->
184                                 <label for="initials" class="required">
185                         <!-- TMPL_ELSE -->
186                                 <label for="initials">
187                         <!-- /TMPL_IF-->
188                         Initials</label>
189                         <input type="text" id="initials" name="initials" size="20"  value="<!-- TMPL_VAR NAME="initials" -->" />        
190                 </p>
191                 <p>
192                         <!-- TMPL_IF NAME="mandatoryothernames" -->
193                         <label for="othernames" class="required">
194                         <!-- TMPL_ELSE -->
195                         <label for="othernames">
196                         <!-- /TMPL_IF-->
197                         Other name</label>
198                         <input type="text" id="othernames" name="othernames" size="20"  value="<!-- TMPL_VAR NAME="othernames" -->" />
199                 </p>
200        
201 <!--TMPL_IF Name="C"-->  <p>
202   <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
203   <!-- TMPL_IF NAME="guarantorid"-->  
204     
205     <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
206   <!-- TMPL_ELSE -->
207     <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
208   <!-- /TMPL_IF -->
209   <input name="guarantorinfo" type="text"  size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
210   </p>       
211 <!--/TMPL_IF-->       
212         </fieldset>
213 <fieldset>
214     <legend>Main address</legend>
215     <p>
216       <!-- TMPL_IF NAME="mandatorystreetnumber" -->
217       <label for="streetnumber" class="required">
218       <!--TMPL_ELSE-->
219       <label for="streetnumber">
220       <!-- /TMPL_IF-->
221       Street number</label>
222       <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
223     </p>
224     <!-- TMPL_IF NAME="road_cgipopup" -->
225       <p>
226       <!-- TMPL_IF NAME="mandatorystreettype" -->
227       <label for="streettype" class="required">
228       <!--TMPL_ELSE-->
229       <label for="streettype">
230       <!-- /TMPL_IF-->
231       Street type</label>
232       <!-- TMPL_VAR NAME="roadpopup" -->
233       </p>
234     <!--/TMPL_IF--> 
235     <p>
236       <!-- TMPL_IF NAME="mandatoryaddress" -->
237       <label for="address" class="required">
238       <!--TMPL_ELSE-->
239       <label for="address">
240       <!--/TMPL_IF-->
241       Address</label>
242       <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
243     </p>
244     <p>
245       <!-- TMPL_IF NAME="mandatoryaddress2" -->
246       <label for="address2" class="required">
247       <!--TMPL_ELSE-->
248       <label for="address2">
249       <!-- /TMPL_IF-->
250       Address 2</label>
251       <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
252     </p>
253     <p> 
254       <!-- TMPL_IF NAME="mandatoryzipcode" -->
255         <label for="zipcode" class="required">
256       <!--TMPL_ELSE-->
257         <label for="zipcode">
258       <!-- /TMPL_IF-->
259       Zipcode</label>
260       <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
261     </p>
262     <!-- TMPL_IF NAME="city_cgipopup" --> 
263     <p>
264       <!-- TMPL_IF NAME="mandatoryselect_city" -->
265         <label for="select_city" class="required">
266       <!-- TMPL_ELSE -->
267         <label for="select_city">
268       <!-- /TMPL_IF-->
269       Select a city</label>
270       <!-- TMPL_VAR NAME="citypopup" -->
271     </p>
272     <!-- /TMPL_IF-->
273     <p>
274       <!-- TMPL_IF NAME="mandatorycity" -->
275         <label for="city" class="required">
276       <!--TMPL_ELSE-->
277         <label for="city">
278       <!-- /TMPL_IF-->
279       City</label>
280       <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
281     </p>
282     </fieldset>
283   <fieldset id="memberentry_contact">
284     <legend>Contact</legend>       
285 <!--TMPL_IF Name="C"-->
286       <h2>Borrower</h2>
287       <p> 
288         <!-- TMPL_IF NAME="mandatoryB_email" -->
289           <label for="B_email" class="required">
290         <!--TMPL_ELSE-->
291           <label for="B_email">
292         <!-- /TMPL_IF-->
293         E-mail (home)</label>
294         <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" /> 
295         <!-- TMPL_IF NAME="mandatoryB_phone" -->
296           <label for="B_phone" class="required">
297         <!--TMPL_ELSE-->
298           <label for="B_phone">
299         <!-- /TMPL_IF-->
300         Phone (cell)</label>  
301         <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />     
302       </p>
303 <!--/TMPL_IF-->
304       <p>
305       <!-- TMPL_IF NAME="mandatoryphone" --> 
306       <label for="phone" class="required">
307       <!--TMPL_ELSE-->
308       <label for="phone">
309       <!-- /TMPL_IF-->
310       Phone (home)</label>
311       <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
312     </p>
313     <p>
314       <!-- TMPL_IF NAME="mandatoryphonepro" -->
315       <label for="phonepro" class="required">
316       <!--TMPL_ELSE-->
317       <label for="phonepro">
318       <!-- /TMPL_IF-->
319       Phone (prof)</label>
320       <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
321     </p>
322     <p>
323       <!-- TMPL_IF NAME="mandatorymobile" -->
324       <label for="mobile" class="required">
325       <!--TMPL_ELSE-->
326       <label for="mobile">
327       <!-- /TMPL_IF-->
328       Phone (cell)</label>
329       <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
330     </p>
331     <p>
332       <!-- TMPL_IF NAME="mandatoryemail" -->
333       <label for="email" class="required">
334       <!--TMPL_ELSE-->
335       <label for="email">
336       <!-- /TMPL_IF-->
337       E-mail (home)</label>
338       <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />  
339     </p>
340     <p>
341       <!-- TMPL_IF NAME="mandatoryemailpro" --> 
342       <label for="emailpro" class="required">
343       <!--TMPL_ELSE-->
344       <label for="emailpro">
345       <!-- /TMPL_IF-->
346       E-mail (prof)</label>
347       <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
348     </p>
349     <p>
350       <!-- TMPL_IF NAME="mandatoryfax" -->
351       <label for="fax" class="required">
352       <!--TMPL_ELSE-->
353       <label for="fax">
354       <!-- /TMPL_IF-->
355       Fax</label>
356       <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
357     </p>
358   </fieldset>
359 </div>
360
361 <!-- ************************ STEP_1 *********************** -->
362 <!--/TMPL_IF -->
363 <!--TMPL_IF Name="step_2"-->
364 <!--TMPL_IF Name="step_1"-->
365 <div id="step2" class="content_hidden">
366 <!--TMPL_ELSE-->
367 <div id="step2" class="content_visible">
368 <!--/TMPL_IF-->       
369         <fieldset id="memberentry_address">
370                 <legend>Address</legend>
371                 <fieldset>
372                 <legend>Alternate address</legend>
373                         <p>
374                                 <!-- TMPL_IF NAME="mandatoryB_address" -->
375                                         <label for="B_address" class="required">
376                                 <!--TMPL_ELSE-->
377                                         <label for="B_address">
378                                 <!-- /TMPL_IF-->
379                                 Address</label>
380                                 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
381                         </p>
382                         <p>
383                                 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
384                                         <label for="B_zipcode" class="required">
385                                 <!--TMPL_ELSE-->
386                                         <label for="B_zipcode">
387                                 <!-- /TMPL_IF-->
388                                 Zipcode</label>
389                                 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
390                         </p>
391                         <p>
392                                 <!-- TMPL_IF NAME="mandatoryB_city" -->
393                                         <label for="B_city" class="required" >
394                                 <!--TMPL_ELSE-->
395                                         <label for="B_city">
396                                 <!-- /TMPL_IF-->
397                                 City</label>
398                                 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
399                         </p>
400                 </fieldset>
401         </fieldset>
402   <!-- TMPL_IF NAME="I" -->
403         <!-- TMPL_IF NAME="memberofinstution" -->
404         <fieldset id="memberentry_organisation">
405                 <legend>Organisations</legend>
406                 <p>
407                         <!-- TMPL_IF NAME="mandatoryphone" --> 
408                         <label for="organisations" class="required">
409                         <!--TMPL_ELSE-->
410                         <label for="organisations">
411                         <!-- /TMPL_IF-->
412                         Organisation(s)</label>
413                         <!-- TMPL_VAR NAME="CGIorganisations" -->
414                 </p>
415         </fieldset>
416         <!-- /TMPL_IF -->
417   <!-- /TMPL_IF -->
418 </div>
419               
420 <!-- /TMPL_IF -->
421 <!--TMPL_IF Name="step_3"-->
422 <!--TMPL_IF Name="step_1"-->
423 <div name="step_3" id="step3" class="content_hidden">
424 <!--TMPL_ELSE-->
425 <div name="step_3" id="step3" class="content_visible">
426 <!--/TMPL_IF-->       
427
428   <fieldset id="memberentry_identity">
429     <legend>Library Management</legend>
430     <!-- TMPL_IF NAME="mandatorycardnumber" -->
431       <label for="cardnumber" class="required">
432     <!--TMPL_ELSE -->
433       <label for="cardnumber">
434     <!-- /TMPL_IF--> 
435     Card number</label>
436     <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
437     <p>
438       <!-- TMPL_IF NAME="mandatorybranchcode" -->
439         <label for="branchcode" class="required">
440       <!--TMPL_ELSE-->
441         <label for="branchcode">
442       <!-- /TMPL_IF-->
443       Branch</label>
444       <!-- TMPL_VAR NAME="CGIbranch" -->
445     </p>
446     <p>
447     <!-- TMPL_IF NAME="catcodepopup" -->
448           <label for="categorycode">Category</label>
449           <!-- TMPL_VAR NAME="catcodepopup" -->
450       <!-- TMPL_ELSE -->
451           <span class="problem">There is no category type to add <!--TMPL_IF Name="A"-->an Adult<!--/TMPL_IF--><!--TMPL_IF Name="C"-->a Child<!--/TMPL_IF--><!--TMPL_IF Name="I"-->an Institution<!--/TMPL_IF--><!--TMPL_IF Name="P"-->a professionnal<!--/TMPL_IF-->.</span>
452               <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
453       <!-- /TMPL_IF -->
454     </p>
455     <p>
456       <!-- TMPL_IF NAME="mandatorysort1" -->
457         <label for="sort1" class="required">
458       <!-- TMPL_ELSE -->
459         <label for="sort1">
460       <!-- /TMPL_IF-->
461       Sort 1</label>
462       <!--TMPL_IF NAME="CGIsort1" --> 
463         <!-- TMPL_VAR NAME="CGIsort1" -->
464       <!--TMPL_ELSE-->
465         <input  type="text" id="sort1" name="sort1" size="20"  value="<!-- TMPL_VAR NAME="sort1" -->" />
466       <!-- /TMPL_IF -->   
467     </p>
468     <p>
469     <!-- TMPL_IF NAME="mandatorysort2" -->
470     <label for="sort2" class="required">
471     <!-- TMPL_ELSE -->
472     <label for="sort2">
473     <!-- /TMPL_IF-->
474     Sort 2</label>
475     <!--TMPL_IF NAME="CGIsort2" --> 
476       <!-- TMPL_VAR NAME="CGIsort2" -->
477     <!--TMPL_ELSE-->
478       <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
479     <!-- /TMPL_IF --> 
480     </p>
481   </fieldset>
482         <fieldset id="memberentry_subscription">
483         <legend>Library set-up</legend>
484                 <p>
485                         <!-- TMPL_IF NAME="mandatorydateenrolled" -->
486                         <label for="dateenrolled" class="required">
487                         <!--TMPL_ELSE-->
488                         <label for="dateenrolled">
489                         <!-- /TMPL_IF-->
490                         Arrival date</label>
491                         <input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10"          size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
492             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
493       <script language="JavaScript" type="text/javascript">
494         Calendar.setup(
495           {
496             inputField : "dateenrolled",
497             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
498             button : "dateenrolled_button"
499           }
500         );
501       </script>
502                 </p>
503                 <p>
504                         <!-- TMPL_IF NAME="mandatorydateexpiry" -->
505                         <label for="dateexpiry" class="required">
506                         <!--TMPL_ELSE-->
507                         <label for="dateexpiry">
508                         <!-- /TMPL_IF-->
509                         Expiry date</label>
510                         <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10"
511                                                         onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
512             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
513       <script language="JavaScript" type="text/javascript">
514         Calendar.setup(
515           {
516             inputField : "dateeexpiry",
517             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
518             button : "dateexpiry_button"
519           }
520         );
521       </script>
522                 </p>
523                 <p>
524                         <!-- TMPL_IF NAME="mandatoryopacnote" -->
525                                 <label for="opacnote" class="required">
526                         <!--TMPL_ELSE-->
527                                 <label for="opacnote">
528                         <!-- /TMPL_IF-->        
529                         OPAC note</label>
530                         <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
531                 </p>
532                 <p>
533                         <!-- TMPL_IF NAME="mandatoryborrowernotes" -->  
534                                 <label for="borrowernotes" class="required">
535                         <!--TMPL_ELSE-->
536                                 <label for="borrowernotes">
537                         <!-- /TMPL_IF-->
538                         Library note</label>
539                         <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
540                 </p>
541         </fieldset>
542         <fieldset id="memberentry_userid">
543                 <legend>OPAC login</legend>
544                 <p>
545                         <!-- TMPL_IF NAME="mandatoryuserid" -->
546                         <label for="userid" class="required">
547                         <!--TMPL_ELSE-->
548                         <label for="userid">
549                         <!-- /TMPL_IF-->
550                         OPAC Login</label>
551                         <input type="text" id="userid" name="userid" size="20"  value="<!-- TMPL_VAR NAME="userid" -->" />
552                 </p>
553                 <p>
554                         <!-- TMPL_IF NAME="mandatorypassword" -->
555                         <label for="password" class="required">
556                         <!--TMPL_ELSE-->
557                         <label for="password">
558                         <!-- /TMPL_IF-->
559                         Password</label>
560                         <!--TMPL_IF NAME="opadd"-->
561                                 <input type="text" id="password" name="password" size="20"  value="<!-- TMPL_VAR NAME="password" -->" />
562                         <!--TMPL_ELSE-->
563                                 <!--TMPL_IF NAME="password"-->
564                                         <input type="text" id="password" name="password" size="20"  value="****" />
565                                 <!--TMPL_ELSE-->
566                                         <input type="text" id="password" name="password" size="20"  value="" />
567                                 <!--/TMPL_IF-->
568                         <!--/TMPL_IF-->
569                 </p>
570                 <!--this zones are not necessary in modif mode -->
571                 <!-- TMPL_UNLESS NAME="opadd" -->
572                         <h2>Warning</h2>
573                         <!-- TMPL_LOOP NAME="flagloop" -->
574                         <p>
575                                 <strong><!-- TMPL_VAR NAME="html" --></strong>
576                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" <!-- TMPL_VAR NAME="yes" --> /><label for="yes<!-- TMPL_VAR NAME="name" -->">Yes</label>
577                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" <!-- TMPL_VAR NAME="no" --> /><label for="no<!-- TMPL_VAR NAME="name" -->">No</label>
578                         </p>
579                         <!-- /TMPL_LOOP -->
580                 <!-- /TMPL_UNLESS -->   
581                 <p>
582                 </fieldset>
583 </div>
584 <!-- /TMPL_IF -->
585     <div id="action">
586       <!-- TMPL_IF NAME="opadd" -->
587         <input type="button" name="step4" onclick="return check_form_borrowers();unique();" value="Add member" />
588       <!-- TMPL_ELSE -->
589         <input type="button" name="step4" onclick="return check_form_borrowers();" value="Modify member" />
590       <!--/TMPL_IF -->
591     </div>
592 </form>
593   
594 </div>
595 </div>
596
597 <div class="yui-b">
598 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
599 </div>
600 </div>
601 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->