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