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