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