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