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