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