]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/xul/staff_client/server/patron/ue.xhtml
added evergreen branch of user editor
[Evergreen.git] / Evergreen / xul / staff_client / server / patron / ue.xhtml
1 <?xml version='1.0'?>
2
3 <!DOCTYPE html PUBLIC 
4         "-//W3C//DTD XHTML 1.0 Transitional//EN" 
5         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
6         <!ENTITY nbsp " "> <!-- calendar needs this entity -->
7 ]>
8
9
10 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
11
12         <head>
13                 <title>Evergreen: User Editor</title>
14                 <script language='javascript' src='/opac/common/js/utils.js'> </script>
15                 <script language='javascript' src='/opac/common/js//config.js'> </script> 
16                 <script language='javascript' src='/opac/common/js/CGI.js'> </script>
17                 <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
18         
19                 <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
20                 <script language='javascript' src='/opac/common/js/JSON.js'> </script>
21                 <script language='javascript' src='/opac/common/js/fmall.js'> </script>
22                 <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
23                 <script language='javascript' src='/opac/common/js/Cookies.js'> </script>
24                 <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
25                 <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
26                 <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
27                 <script language='javascript' src='/opac/common/js/init.js'> </script>
28                 <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
29                 <!--
30                 <script language='javascript' src='/opac/common/js/date.js'> </script>
31                 -->
32                 <script language='javascript' src='../admin/adminlib.js'> </script>
33                 <script language='javascript' src='ue_config.js'> </script>
34                 <script language='javascript' src='ue_ui.js'> </script>
35                 <script language='javascript' src='ue.js'> </script>
36                 <link type='text/css' rel='stylesheet' href='../admin/admin.css'/>
37   
38                 <link rel="stylesheet" type="text/css" media="all" 
39                         href="/opac/common/js/jscalendar/calendar-brown.css" title="win2k-cold-1" />
40                 <script type="text/javascript" src="/opac/common/js/jscalendar/calendar.js"></script>
41                 <script type="text/javascript" src="/opac/common/js/jscalendar/lang/calendar-en.js"></script>
42                 <script type="text/javascript" src="/opac/common/js/jscalendar/calendar-setup.js"></script>
43
44
45                 <style type='text/css'>
46                         .main_table { width: 98%; border-collapse: collapse;}
47                         .main_table td { border: 1px solid #E0F0E0; text-align: center; padding: 4px;}
48                         #uedit_nav_bar { border: 2px solid #E0F0E0; padding: 6px;}
49                         .nav_link { padding-left: 90px; padding-right: 90px; }
50                         .main_nav_link { -moz-border-radius: 7px; height: 13%;}
51                         /*
52                         .main_div { height: 480px; padding-left: 15px; 
53                                 text-align: center; vertical-align: middle; overflow: auto;}
54                                 */
55
56                         .main_div { min-height: 450px; padding-left: 15px; 
57                                 text-align: center; vertical-align: middle; }
58
59                         .nav_link_table { height: 480px;}
60                         .label_active { background: #E0F0E0; }
61                         .right { text-align: right; padding-right: 3px;}
62                         .left { text-align: left; padding-left: 3px;}
63                         .wide { width: 98%;}
64                         .pad { padding-left: 3px; padding-right: 3px; }
65                         .no_border td { border: none; }
66                         .uedit_table { width: 80% }
67                         .address_table { -moz-border-radius: 4px; border: 4px solid #E0E0F0; padding: 4px; }
68                         .shared_address { background : #E0F0F0; }
69                         .address_table td { border: none; width: auto; padding: 1px; }
70                         .addr_info_checked { -moz-border-radius: 6px; background: #F0E0E0; }
71                         .button_row { width: 95%; text-align: center; margin-top: 7px; border: 1px solid #E0E0E0; }
72                         /*.required_field { background: #F0E0E0; }*/
73                         .invalid_value { background: red; }
74
75                         /* all text inputs that don't have the .invalid_value 
76                                 class applied and are currently focused */
77                         input:focus:not(.invalid_value) { background: #E0F0E0; color: darkblue;}
78
79                         .deleted { background: #FF6666; }
80
81                         .dup_link { padding-left: 5px; color: red; }
82
83
84                 </style>
85         </head>
86
87         <body onload='uEditInit();'>
88
89         <center>
90
91                 <h2>Evergreen User Editor</h2>
92
93                 <div style='position:absolute; top: 5px; right: 5px;'>
94                         <span>Welcome </span><b><span id='uedit_user'/></b>
95                 </div>
96
97                 <hr/><br/>
98
99                 <div id='main_div_container'>
100
101                 <table style='margin-bottom: 5px; width:100%;'>
102                         <tbody>
103                                 <tr>
104                                         <td align='left' width='80%'>
105                                                 <b>
106                                                         <span>Note: required or invalid fields are </span>
107                                                         <span style='border-bottom: 2px solid red;'>marked with color</span>
108                                                 </b>
109                                         </td>
110                                         <td align='right' width='20%'>
111                                                 <a class='hide_me' id='ue_errors' href='javascript:void(0);' 
112                                                         style='color: red; font-size: 12pt; font-weight: bold' onclick='uEditAlertErrors();'>
113                                                         View Errors
114                                                 </a>
115                                         </td>
116                                 </tr>
117                         </tbody>
118                 </table>
119
120                 <table class='main_table'>
121                         <tbody>
122                                 <tr>
123                                         <td width='15%' valign='top'>
124                                                 <!-- ************************************************************** -->
125                                                 <!--  Top Navigation Links -->
126                                                 <!-- ************************************************************** -->
127                                                 <table height='100%' class='nav_link_table'>
128                                                         <tbody>
129                                                                 <tr>
130                                                                         <td id='uedit_userid_label' class='main_nav_link'>
131                                                                                 <a href='javascript:uEditShowPage("uedit_userid");'>1. User Identification</a>
132                                                                         </td>
133                                                                 </tr>
134                                                                 <tr>
135                                                                         <td id='uedit_contact_info_label' class='main_nav_link'>        
136                                                                                 <a href='javascript:uEditShowPage("uedit_contact_info");'>2. Contact Info</a>
137                                                                         </td>
138                                                                 </tr>
139                                                                 <tr>
140                                                                         <td id='uedit_addresses_label' class='main_nav_link'>           
141                                                                                 <a href='javascript:uEditShowPage("uedit_addresses");'>3. Addresses</a>
142                                                                         </td>
143                                                                 </tr>
144                                                                 <tr>
145                                                                         <td id='uedit_groups_label' class='main_nav_link'>                      
146                                                                                 <a href='javascript:uEditShowPage("uedit_groups");'>4. Groups and Permissions</a>
147                                                                         </td>
148                                                                 </tr>
149                                                                 <tr>
150                                                                         <td id='uedit_stat_cats_label' class='main_nav_link'>           
151                                                                                 <a href='javascript:uEditShowPage("uedit_stat_cats");'>5. Statistical Categories</a>
152                                                                         </td>
153                                                                 </tr>
154                                                                 <tr>
155                                                                         <td id='uedit_surveys_label' class='main_nav_link'>                     
156                                                                                 <a href='javascript:uEditShowPage("uedit_surveys");'>6. Surveys</a>
157                                                                         </td>
158                                                                 </tr>
159                                                                 <tr>
160                                                                         <td id='uedit_finalize_label' class='main_nav_link'>                    
161                                                                                 <a href='javascript:uEditShowPage("uedit_finalize");'>7. Finish</a>
162                                                                         </td>
163                                                                 </tr>
164                                                         </tbody>
165                                                 </table>
166                                         </td>
167
168                                         <td width='85%' id='uedit_loading'>
169                                                 <div class='main_div has_color' 
170                                                         style='padding: 50px; vertical-align: middle;'>
171                                                         <b>Loading data...</b>
172                                                 </div>
173                                         </td>
174
175
176                                         <td width='85%' id='ue_maintd' class='hide_me'>
177
178                                                 <div id='dup_div_container'>
179                                                         <div id='dup_div' name='dup_div'>
180                                                                 <a name='link' class='dup_link hide_me'
181                                                                         href='javascript:void(0);' onclick='uEditShowSearch(this);'>
182                                                                         Found <b name='count'/> possible duplicate patron(s):
183                                                                         <b name='data'/>
184                                                                 </a>
185                                                         </div>
186                                                 </div>
187
188
189                                                 <!-- ************************************************************** -->
190                                                 <!--  Identification Pane -->
191                                                 <!-- ************************************************************** -->
192                                                 <div id='uedit_userid' class='main_div'>
193                                                         <table class='uedit_table'>
194                                                                 <tbody>
195                                                                         <tr class='required_field'>
196                                                                                 <td><div class='wide right'>Barcode</div></td>
197                                                                                 <td>
198                                                                                         <div class='wide left'>
199                                                                                                 <input type='text' id='ue_barcode' />
200                                                                                                         <!--
201                                                                                                         onblur=' 
202                                                                                                                 var node = uEditFindFieldByWId("ue_username");
203                                                                                                                 if(!node.widget.node.value) {
204                                                                                                                         node.widget.node.value = this.value;
205                                                                                                                         node.widget.node.onchange();
206                                                                                                                 }'
207                                                                                                                 /> -->
208                                                                                                                 <button style='padding-left: 5px;' class='hide_me' id='ue_mark_card_lost'
209                                                                                                         onclick='uEditMarkCardLost();'>Mark Lost</button>
210                                                                                         </div>
211                                                                                 </td>
212                                                                         </tr>
213                                                                         <tr class='required_field'>
214                                                                                 <td><div class='wide right'>Username</div></td>
215                                                                                 <td><div class='wide left'><input type='text' id='ue_username'/></div></td>
216                                                                         </tr>
217                                                                         <tr class='required_field'>
218                                                                                 <td><div class='wide right'>Password</div></td>
219                                                                                 <td>
220                                                                                         <div class='wide left'>
221                                                                                                 <input type='password' id='ue_password1'/>
222                                                                                                 <button class='hide_me' onclick='uEditResetPw();' id='ue_reset_pw'>Reset</button>
223                                                                                                 <span style='padding-left: 10px;' class='hide_me' id='ue_password_gen'>
224                                                                                                         Password: 
225                                                                                                         <span style='text-decoration:underline;' id='ue_password_plain'/>
226                                                                                                 </span>
227                                                                                         </div>
228                                                                                 </td>
229                                                                         </tr>
230                                                                         <tr class='required_field'>
231                                                                                 <td><div class='wide right'>Verify Password</div></td>
232                                                                                 <td><div class='wide left'><input type='password' id='ue_password2'/></div></td>
233                                                                         </tr>
234                                                                         <tr class='required_field'>
235                                                                                 <td><div class='wide right'>First Name</div></td>
236                                                                                 <td><div class='wide left'><input type='text' id='ue_firstname'/></div></td>
237                                                                         </tr>
238                                                                         <tr>
239                                                                                 <td><div class='wide right'>Middle Name</div></td>
240                                                                                 <td><div class='wide left'><input type='text' id='ue_middlename'/></div></td>
241                                                                         </tr>
242                                                                         <tr class='required_field'>
243                                                                                 <td><div class='wide right'>Last Name</div></td>
244                                                                                 <td><div class='wide left'><input type='text' id='ue_lastname'/></div></td>
245                                                                         </tr>
246                                                                         <tr>
247                                                                                 <td><div class='wide right'>Suffix</div></td>
248                                                                                 <td><div class='wide left'>
249                                                                                         <input type='text' id='ue_suffix'/>
250                                                                                         <select id='ue_suffix_selector' style='width: 6em;'
251                                                                                                 onclick='$("ue_suffix").value = this.options[this.selectedIndex].value'
252                                                                                                 onchange='$("ue_suffix").value = this.options[this.selectedIndex].value'>
253                                                                                                 <option value=''>- Pick -</option>
254                                                                                                 <option value='Jr'>Jr</option>
255                                                                                                 <option value='Sr'>Sr</option>
256                                                                                                 <option value='II'>II</option>
257                                                                                                 <option value='III'>III</option>
258                                                                                                 <option value='AA'>AA</option>
259                                                                                                 <option value='AS'>AS</option>
260                                                                                                 <option value='AAS'>AAS</option>
261                                                                                                 <option value='BA'>BA</option>
262                                                                                                 <option value='BS'>BS</option>
263                                                                                                 <option value='CFPIM'>CFPIM</option>
264                                                                                                 <option value='CPA'>CPA</option>
265                                                                                                 <option value='CPIM'>CPIM</option>
266                                                                                                 <option value='CPM'>CPM</option>
267                                                                                                 <option value='CXE'>CXE</option>
268                                                                                                 <option value='DC'>DC</option>
269                                                                                                 <option value='DDS'>DDS</option>
270                                                                                                 <option value='DO '>DO</option>
271                                                                                                 <option value='DPM'>DPM</option>
272                                                                                                 <option value='DVM'>DVM</option>
273                                                                                                 <option value='Esq'>Esq</option>
274                                                                                                 <option value='FACAAI'>FACAAI</option>
275                                                                                                 <option value='FACP'>FACP</option>
276                                                                                                 <option value='FACS'>FACS</option>
277                                                                                                 <option value='FACEP'>FACEP</option>
278                                                                                                 <option value='FCP'>FCP</option>
279                                                                                                 <option value='FICS'>FICS</option>
280                                                                                                 <option value='GYN'>GYN</option>
281                                                                                                 <option value='JD'>JD</option>
282                                                                                                 <option value='LPN'>LPN</option>
283                                                                                                 <option value='MA'>MA</option>
284                                                                                                 <option value='MCSE'>MCSE</option>
285                                                                                                 <option value='MD'>MD</option>
286                                                                                                 <option value='MS'>MS</option>
287                                                                                                 <option value='NMD'>NMD</option>
288                                                                                                 <option value='OB'>OB</option>
289                                                                                                 <option value='PhD'>PhD</option>
290                                                                                                 <option value='RN'>RN</option>
291                                                                                         </select>
292                                                                                 </div></td>
293                                                                         </tr>
294                                                                         <tr class='required_field'>
295                                                                                 <td><div class='wide right'>Date of Birth</div></td>
296                                                                                 <td>
297                                                                                         <div class='wide left'>
298         
299                                                                                                 <input type='text' id='ue_dob' size='10' maxlength='10' 
300                                                                                                         onfocus='/*$("ue_dob_trigger").onclick(event);*/'>1980-01-01</input>
301         
302                                                                                                 <button style='padding: 0px;' id='ue_dob_trigger'>
303                                                                                                         <img src="/opac/common/js/jscalendar/img.gif" 
304                                                                                                                 style="cursor: pointer; border: 1px solid red; padding: 0px; margin: -3px;" 
305                                                                                                                 title="Date selector"
306                                                                                                                 onmouseover="this.style.background='red';" 
307                                                                                                                 onmouseout="this.style.background=''" />
308                                                                                                 </button>
309
310                                                                                                 <span class='pad' style='font-size: 8pt;'>(YYYY-MM-DD)</span>
311         
312                                                                                                 <script type="text/javascript">
313                                                                                                         Calendar.setup({
314                                                                                                                 inputField      : "ue_dob",                             // id of the input field
315                                                                                                                 ifFormat                : "%Y-%m-%d",                   // format of the input field
316                                                                                                                 button          : "ue_dob_trigger",  // trigger for the calendar (button ID)
317                                                                                                                 align                   : "Tl",                                 // alignment (defaults to "Bl")
318                                                                                                                 singleClick     : true
319                                                                                                         });
320                                                                                                 </script>
321         
322                                                                                         </div>
323                                                                                 </td>
324                                                                         </tr>
325                                                                         <tr class='required_field'>
326                                                                                 <td><div class='wide right'>Primary Identification Type</div></td>
327                                                                                 <td><div class='wide left'>
328                                                                                                 <select id='ue_primary_ident_type'>
329                                                                                                         <option value=''> -- Required -- </option>
330                                                                                                 </select>
331                                                                                         </div>
332                                                                                 </td>
333                                                                         </tr>
334                                                                         <tr class='required_field'>
335                                                                                 <td><div class='wide right'>Primary Identification</div></td>
336                                                                                 <td>
337                                                                                         <div class='wide left'>
338                                                                                                 <input type='text' id='ue_primary_ident'/>
339                                                                                                 <span id='primary_ident_ssn_help' 
340                                                                                                         style='padding-left: 2px; font-size: 8pt;' class='hide_me'>
341                                                                                                         (XXX-YY-ZZZZ)
342                                                                                                 </span>
343                                                                                                 <span id='primary_ident_dl_help' 
344                                                                                                         style='padding-left: 2px; font-size: 8pt;' class='hide_me'>
345                                                                                                         (GA-123456789)
346                                                                                                 </span>
347                                                                                         </div>
348                                                                                 </td>
349                                                                         </tr>
350                                                                         <!--
351                                                                         <tr>
352                                                                                 <td><div class='wide right'>Secondary Identification Type</div></td>
353                                                                                 <td><div class='wide left'>
354                                                                                                 <select id='ue_secondary_ident_type'>
355                                                                                                         <option value=''>  None Selected  </option>
356                                                                                                 </select>
357                                                                                         </div>
358                                                                                 </td>
359                                                                         </tr>
360                                                                         -->
361                                                                         <tr class='hide_me'>
362                                                                                 <td><div class='wide right'>Parent / Guardian</div></td>
363                                                                                 <td>
364                                                                                         <div class='wide left'>
365                                                                                                 <input type='text' id='ue_secondary_ident'/>
366                                                                                         </div>
367                                                                                 </td>
368                                                                         </tr>
369                                                                         <!--
370                                                                         <tr class='hide_me' id='ue_guardian_row'>
371                                                                                 <td><div class='wide right'><b>Parent / Guardian</b></div></td>
372                                                                                 <td>
373                                                                                         <div class='wide left'>
374                                                                                                 <span id='ue_guardian_field'/>
375                                                                                         </div>
376                                                                                 </td>
377                                                                         </tr>
378                                                                         -->
379                                                                 </tbody>
380                                                         </table>
381                                                 </div>
382
383                                                 <!-- ************************************************************** -->
384                                                 <!-- Contact Info Pane -->
385                                                 <!-- ************************************************************** -->
386                                                 <div id='uedit_contact_info' class='main_div hide_me'>
387
388                                                         <table class='uedit_table'>
389                                                                 <tbody>
390                                                                         <tr>
391                                                                                 <td><div class='wide right'>Email Address</div></td>
392                                                                                 <td><div class='wide left'><input type='text' id='ue_email' size='32'/></div></td>
393                                                                         </tr>
394                                                                         <tr>
395                                                                                 <td><div class='wide right'>Daytime Phone</div></td>
396                                                                                 <td>
397                                                                                         <div class='wide left'>
398                                                                                                 <input class='pad' type='text' id='ue_day_phone' size='18'/>
399                                                                                                 <span style='font-size: 9pt;'> Example: 123-456-7890 or 123-456-7890 ex123</span>
400                                                                                         </div>
401                                                                                 </td>
402                                                                         </tr>
403                                                                         <tr>
404                                                                                 <td><div class='wide right'>Evening Phone</div></td>
405                                                                                 <td>
406                                                                                         <div class='wide left'>
407                                                                                                 <input class='pad' type='text' id='ue_night_phone' size='18'/>
408                                                                                         </div>
409                                                                                 </td>
410                                                                         </tr>
411                                                                         <tr>
412                                                                                 <td><div class='wide right'>Other/Cell Phone</div></td>
413                                                                                 <td>
414                                                                                         <div class='wide left'>
415                                                                                                 <input class='pad' type='text' id='ue_other_phone' size='18'/>
416                                                                                         </div>
417                                                                                 </td>
418                                                                         </tr>
419                                                                         <tr class='required_field'>
420                                                                                 <td><div class='wide right'>Home Library</div></td>
421                                                                                 <td>
422                                                                                         <div class='wide left'>
423                                                                                                 <select style='width: 20em;' id='ue_org_selector'/>
424                                                                                         </div>
425                                                                                 </td>
426                                                                         </tr>
427                                                                 </tbody>
428                                                         </table>
429                                                 </div>
430         
431                                                 <!-- ************************************************************** -->
432                                                 <!-- Addresses Pane -->
433                                                 <!-- ************************************************************** -->
434                                                 <div id='uedit_addresses' class='main_div hide_me' >
435                                                         <table class='uedit_table' style='width: 98%; padding: 1px;'>
436                                                                 <thead>
437                                                                         <tr>
438                                                                                 <td>Address</td>
439                                                                                 <td>Within City Limits</td>
440                                                                                 <td>Valid</td>
441                                                                                 <td>Mailing Address</td>
442                                                                                 <td>Physical Address</td>
443                                                                         </tr>
444                                                                 </thead>
445                                                                 <tbody id='ue_address_tbody'>
446                                                                         <tr id='ue_address_template'>
447                                                                                 <td>
448                                                                                         <table class='address_table'>
449                                                                                                 <tbody>
450                                                                                                         <tr name='shared_row' class='hide_me'>
451                                                                                                                 <td colspan='6'>
452                                                                                                                         <div style='padding: 8px;'>
453                                                                                                                                 <span style='color:red;'>*</span>
454                                                                                                                                 Address is owned by
455                                                                                                                                 <span name='addr_owner_name'/>
456                                                                                                                                 <span name='owner_link_div'>
457                                                                                                                                         (<a name='addr_owner' href='javascript:void(0);'>Edit</a>)
458                                                                                                                                 </span>
459                                                                                                                         </div>
460                                                                                                                 </td>
461                                                                                                         </tr>
462                                                                                                         <tr>
463                                                                                                                 <td><div class='wide right'>Label</div></td>
464                                                                                                                 <td colspan='3'>
465                                                                                                                         <div class='wide left'>
466                                                                                                                                 <input type='text' name='ue_addr_label' id='ue_addr_label'/>
467                                                                                                                         </div>
468                                                                                                                 </td>
469                                                                                                                 <td><div class='wide right'>Zip</div></td>
470                                                                                                                 <td>
471                                                                                                                         <div class='wide left'>
472                                                                                                                                 <input type='text' name='ue_addr_zip' size='10' maxlength='10'/>
473                                                                                                                         </div>
474                                                                                                                 </td>
475                                                                                                         </tr>
476                                                                                                         <tr>
477                                                                                                                 <td><div class='wide right'>Street 1</div></td>
478                                                                                                                 <td colspan='5'>
479                                                                                                                         <div class='wide left'>
480                                                                                                                                 <input type='text' name='ue_addr_street1' size='42'/>
481                                                                                                                         </div>
482                                                                                                                 </td>
483                                                                                                         </tr>
484                                                                                                         <tr>
485                                                                                                                 <td><div class='wide right'>Street 2</div></td>
486                                                                                                                 <td colspan='5'>
487                                                                                                                         <div class='wide left'>
488                                                                                                                                 <input type='text' name='ue_addr_street2' size='42'/>
489                                                                                                                         </div>
490                                                                                                                 </td>
491                                                                                                         </tr>
492                                                                                                         <tr>
493                                                                                                                 <td><div class='wide right'>City</div></td>
494                                                                                                                 <td colspan='3'>
495                                                                                                                         <div class='wide left'>
496                                                                                                                                 <input type='text' name='ue_addr_city' size='17'/>
497                                                                                                                         </div>
498                                                                                                                 </td>
499                                                                                                                 <td><div class='wide right'>County</div></td>
500                                                                                                                 <td>
501                                                                                                                         <div class='wide left'>
502                                                                                                                                 <input type='text' name='ue_addr_county' size='17'/>
503                                                                                                                         </div>
504                                                                                                                 </td>
505                                                                                                         </tr>
506                                                                                                         <tr>
507                                                                                                                 <td><div class='wide right'>State</div></td>
508                                                                                                                 <td colspan='3'>
509                                                                                                                         <div class='wide left'>
510                                                                                                                                 <input type='text' name='ue_addr_state' size='2' maxlength='2'/>
511                                                                                                                         </div>
512                                                                                                                 </td>
513                                                                                                                 <!--
514                                                                                                                 <td><div class='wide right'>Zip</div></td>
515                                                                                                                 <td>
516                                                                                                                         <div class='wide left'>
517                                                                                                                                 <input type='text' name='ue_addr_zip' size='6' maxlength='6'/>
518                                                                                                                         </div>
519                                                                                                                 </td>
520                                                                                                                 -->
521                                                                                                                 <td><div class='wide right'>Country</div></td>
522                                                                                                                 <td>
523                                                                                                                         <div class='wide left'>
524                                                                                                                                 <input type='text' name='ue_addr_country' size='6'/>
525                                                                                                                         </div>
526                                                                                                                 </td>
527                                                                                                         </tr>
528                                                                                                         <tr>
529                                                                                                                 <td colspan='6'>
530                                                                                                                         <div class='button_row'>
531                                                                                                                                 <input type='submit' name='ue_addr_delete' 
532                                                                                                                                         value='Delete this Address'/>
533                                                                                                                                 <span style='padding-left: 10px;'> </span>
534                                                                                                                                 <input type='submit' name='ue_addr_detach' 
535                                                                                                                                         value='Detach this Address' class='hide_me'/>
536                                                                                                                         </div>
537                                                                                                                 </td>
538                                                                                                         </tr>
539                                                                                                 </tbody>
540                                                                                         </table>
541                                                                                 </td>
542                                                                                 <td><input type='checkbox' name='ue_addr_inc_yes' checked='checked'/></td>
543                                                                                 <td><input type='checkbox' name='ue_addr_valid_yes' checked='checked'/></td>
544                                                                                 <td>
545                                                                                         <div style='width: 100%; -moz-border-radius: 8px;'>
546                                                                                                 <input type='radio' name='ue_addr_mailing_yes'
547                                                                                                         onchange='uEditAddrTypeClick(this, "mailing");'
548                                                                                                         onclick='uEditAddrTypeClick(this, "mailing");'/>
549                                                                                         </div>
550                                                                                 </td>
551                                                                                 <td>
552                                                                                         <div style='width: 100%; -moz-border-radius: 8px;'>
553                                                                                                 <input type='radio' name='ue_addr_billing_yes'
554                                                                                                         onchange='uEditAddrTypeClick(this, "billing");'
555                                                                                                         onclick='uEditAddrTypeClick(this, "billing");'/>
556                                                                                         </div>
557                                                                                 </td>
558                                                                         </tr>
559                                                                 </tbody>
560                                                         </table>
561
562                                                         <div class='button_row' style='margin-top: 20px;'>
563                                                                 <!--
564                                                                 <input type='submit' value='Create a New Address' id='ue_address_new'/>
565                                                                 -->
566                                                                 <input type='submit' value='Create a New Address' onclick='uEditCreateNewAddr();'/>
567                                                         </div>
568                                                 </div>
569         
570                                                 <!-- ************************************************************** -->
571                                                 <!-- Groups Pane -->
572                                                 <!-- ************************************************************** -->
573                                                 <div id='uedit_groups' class='main_div hide_me'>
574                                                         <table class='uedit_table'>
575                                                                 <tbody>
576                                                                         <tr class='required_field'>
577                                                                                 <td><div class='wide right'>Profile Group</div></td>
578                                                                                 <td>
579                                                                                         <div class='wide left'>
580                                                                                                 <select id='ue_profile' class='select_big'>
581                                                                                                         <option value=''> -- Required -- </option>
582                                                                                                 </select>
583                                                                                         </div>
584                                                                                 </td>
585                                                                         </tr>
586                                                                         <tr class='required_field'>
587                                                                                 <td><div class='wide right'>Account Expiration Date</div></td>
588                                                                                 <td>
589                                                                                         <div class='wide left'>
590                                                                                                 <input type='text' id='ue_expire' size='10' maxlength='10'/>
591         
592                                                                                                 <button style='padding: 0px;' id='ue_expire_trigger'>
593                                                                                                         <img src="/opac/common/js/jscalendar/img.gif" 
594                                                                                                                 style="cursor: pointer; border: 1px solid red; padding: 0px; margin: -3px;" 
595                                                                                                                 title="Date selector"
596                                                                                                                 onmouseover="this.style.background='red';" 
597                                                                                                                 onmouseout="this.style.background=''" />
598                                                                                                 </button>
599
600                                                                                                 <span class='pad' style='font-size: 8pt;'>(YYYY-MM-DD)</span>
601                                                                                                 <script type="text/javascript">
602                                                                                                         Calendar.setup({
603                                                                                                                 inputField      : "ue_expire",                          // id of the input field
604                                                                                                                 ifFormat                : "%Y-%m-%d",                           // format of the input field
605                                                                                                                 button          : "ue_expire_trigger",  // trigger for the calendar (button ID)
606                                                                                                                 align                   : "Tl",                                         // alignment (defaults to "Bl")
607                                                                                                                 singleClick     : true
608                                                                                                         });
609                                                                                                 </script>
610                                                                                         </div>
611                                                                                 </td>
612                                                                         </tr>
613                                                                         <tr>
614                                                                                 <td><div class='wide right'>Internet Access Level</div></td>
615                                                                                 <td>
616                                                                                         <div class='wide left'>
617                                                                                                 <select id='ue_net_level'>
618                                                                                                         <option value=''> -- None Selected -- </option>
619                                                                                                 </select>
620                                                                                         </div>
621                                                                                 </td>
622                                                                         </tr>
623                                                                         <tr>
624                                                                                 <td><div class='wide right'>Active</div></td>
625                                                                                 <td>
626                                                                                         <div class='wide left'>
627                                                                                                 <input id='ue_active' type='checkbox' checked='checked'/>
628                                                                                         </div>
629                                                                                 </td>
630                                                                         </tr>
631                                                                         <tr>
632                                                                                 <td><div class='wide right'>Barred</div></td>
633                                                                                 <td>
634                                                                                         <div class='wide left'>
635                                                                                                 <input id='ue_barred' type='checkbox'/>
636                                                                                         </div>
637                                                                                 </td>
638                                                                         </tr>
639                                                                         <tr>
640                                                                                 <td><div class='wide right'>Set as Family/Group Lead Account</div></td>
641                                                                                 <td>
642                                                                                         <div class='wide left'>
643                                                                                                 <input id='ue_group_lead' type='checkbox'/>
644                                                                                         </div>
645                                                                                 </td>
646                                                                         </tr>
647                                                                         <tr>
648                                                                                 <td><div class='wide right'>Claims Returned Count</div></td>
649                                                                                 <td>
650                                                                                         <div class='wide left'>
651                                                                                                 <input id='ue_claims_returned' type='text' disabled='disabled' size='6'/>
652                                                                                                 <script>
653                                                                                                         $('ue_claims_returned').value = 0;
654                                                                                                         $('ue_claims_returned').disabled = true;
655                                                                                                 </script>
656                                                                                                 <input class='pad' id='ue_claims_returned_reset' type='submit' value='Reset'/>
657                                                                                         </div>
658                                                                                 </td>
659                                                                         </tr>
660                                                                         <tr>
661                                                                                 <td><div class='wide right'>Alert Message</div></td>
662                                                                                 <td>
663                                                                                         <div class='wide left'>
664                                                                                                 <textarea wrap='soft' cols='30' rows='4' id='ue_alert_message'/>
665                                                                                                 <input class='pad' id='ue_alert_message_reset' 
666                                                                                                         type='submit' value='Clear' 
667                                                                                                                 onclick='
668                                                                                                                 var node = $("ue_alert_message");
669                                                                                                                 node.value = "";
670                                                                                                                 if(node.onchange) node.onchange();'/>
671                                                                                         </div>
672                                                                                 </td>
673                                                                         </tr>
674                                                                 </tbody>
675                                                         </table>
676                                                 </div>
677         
678                                                 <!-- ************************************************************** -->
679                                                 <!-- Stat Cats Pane -->
680                                                 <!-- ************************************************************** -->
681                                                 <div id='uedit_stat_cats' class='main_div hide_me'>
682                                                         <table class='uedit_table' style='width: 98%'>
683                                                                 <thead>
684                                                                         <tr style='font-weight: bold;'>
685                                                                                 <td>Stat Cat Name</td>
686                                                                                 <td>Owner</td>
687                                                                                 <td>Value</td>
688                                                                         </tr>
689                                                                 </thead>
690                                                                 <tbody id='ue_stat_cat_tbody'>
691                                                                         <tr id='ue_stat_cat_row'>
692                                                                                 <td><div class='wide right' name='ue_stat_cat_name'/></td>
693                                                                                 <td><div class='wide right' style='font-size: 8pt' name='ue_stat_cat_owner'/></td>
694                                                                                 <td>
695                                                                                         <div class='wide left'>
696                                                                                                 <select name='ue_stat_cat_selector'>
697                                                                                                         <option value=''> -- None Selected -- </option>
698                                                                                                 </select>
699                                                                                                 <span class='pad'> or </span>
700                                                                                                 <input class='pad' type='text' name='ue_stat_cat_newval'/>
701                                                                                         </div>
702                                                                                 </td>
703                                                                         </tr>
704                                                                 </tbody>
705                                                         </table>
706
707                                                 </div>
708         
709                                                 <!-- ************************************************************** -->
710                                                 <!-- Surveys Pane -->
711                                                 <!-- ************************************************************** -->
712                                                 <div id='uedit_surveys' class='main_div hide_me'>
713                                                         <div id='uedit_no_surveys' class='hide_me'>
714                                                                 <b>No surveys have been created for this location.</b>
715                                                         </div>
716                                                         <table id='ue_survey_table' 
717                                                                 class='uedit_table data_grid' style='width: 95%; margin-top: 17px;'>
718                                                                 <thead>
719                                                                         <tr>
720                                                                                 <td colspan='2' style='text-align: left; padding-left: 20px;'>
721                                                                                         <span class='pad' name='ue_survey_name' style='font-weight: bold;'/>
722                                                                                         <span class='pad' name='ue_survey_desc'> : </span>
723                                                                                 </td>
724                                                                         </tr>
725                                                                 </thead>
726                                                                 <tbody name='ue_survey_tbody'>
727                                                                         <tr name='ue_survey_row'>
728                                                                                 <td name='ue_survey_question' 
729                                                                                         style='width: 60%; text-align: left; padding-left: 40px;'/>
730                                                                                 <td>
731                                                                                         <select name='ue_survey_answer'>
732                                                                                                 <option value=''> -- None Selected -- </option>
733                                                                                         </select>
734                                                                                 </td>
735                                                                         </tr>
736                                                                 </tbody>
737                                                         </table>
738                                                 </div>
739
740                                                 <!-- ************************************************************** -->
741                                                 <!-- Finish Up -->
742                                                 <!-- ************************************************************** -->
743                                                 <div id='uedit_finalize' class='main_div hide_me'>
744                                                         <div class='has_color' style='width: 95%; margin-top: 40px; text-align: center'>
745                                                                 <div style='padding: 5px;'>
746                                                                         You are now ready to save the user to the database.  <br/>
747                                                                         To view or print a summary of the changes, click on the "View Summary" link.  <br/>
748                                                                         To save the user, click on the 'Save User' button.
749                                                                 </div>
750                                                                 <br/>
751                                                                 <div style='margin-bottom: 15px;'>
752                                                                         <a style='margin-right: 30px;' id='ue_view_summary' 
753                                                                                 href='javascript:uEditShowSummary();'>View Summary</a>
754                                                                 </div>
755                                                                 <input style='margin-left: 5px; margin-right: 5px;' id='ue_save'
756                                                                         type='submit' value='Save User' onclick='uEditSaveUser();'/>
757                                                                 <input style='margin-left: 5px; margin-right: 5px;' id='ue_save_clone'
758                                                                         type='submit' value='Save and Clone User' onclick='uEditSaveUser(true);'/>
759                                                                 <button style='margin-left: 5px; margin-right: 5px;' 
760                                                                         onclick='if(confirm($("ue_cancel_confirm").innerHTML)) uEditCancel();'>Cancel</button>
761                                                         </div>
762                                                 </div>
763                                         </td>
764                                 </tr>
765
766                                 <tr>
767                                         <td colspan='2'>
768                                                 <!-- ************************************************************** -->
769                                                 <!-- Bottome Navigation Links -->
770                                                 <!-- ************************************************************** -->
771                                                 <table width='100%' class='no_border'>
772                                                         <tbody>
773                                                                 <tr id='uedit_nav_bar'>
774                                                                         <td width='10%'/>
775                                                                         <td width='40%'>
776                                                                                 <a id='ue_back' class='nav_link hide_me' 
777                                                                                         href='javascript:uEditPrev()'>&lt;&lt;Back</a>
778                                                                         </td>
779                                                                         <td width='40%'>
780                                                                                 <a id='ue_fwd' class='nav_link' 
781                                                                                         href='javascript:uEditNext()'>Forward&gt;&gt;</a>
782                                                                         </td>
783                                                                         <td width='10%'/>
784                                                                 </tr>
785                                                         </tbody>
786                                                 </table>
787                                         </td>
788                                 </tr>
789                         </tbody>
790                 </table>
791         </div>
792
793         </center>
794
795         <div id='summary_div_container' class='hide_me'>
796
797         <div id='ue_summary_page'>
798                 <table id='ue_summary_table' class='data_grid' width='55%'>
799                         <thead>
800                                 <tr>
801                                         <td colspan='2'>
802                                                 <span>User Summary Information (Deleted items are marked in</span>
803                                                 <span class='deleted'>color</span><span>)</span>
804                                         </td>
805                                 </tr>
806                         </thead>
807                         <tbody name='ue_summary_page_tbody'>
808
809                                 <tr>
810
811                                         <td colspan='2' align='center'>
812                                                 <input style='margin-right: 15px;' type='submit' value='Print Page' onclick='window.print();'/>
813                                                 <input style='margin-left: 15px;' type='submit' value='Return to Editor' 
814                                                         onclick=' unHideMe($("main_div_container")); 
815                                                                 hideMe($("summary_div_container"));'/>
816                                         </td>
817                                 </tr>
818
819                                 <tr><td>Barcode</td><td id='ue_summary_barcode'/></tr>
820                                 <tr><td>Username</td><td id='ue_summary_usrname'/></tr>
821                                 <tr><td>First Name</td><td id='ue_summary_first_given_name'/></tr>
822                                 <tr><td>Middle Name</td><td id='ue_summary_second_given_name'/></tr>
823                                 <tr><td>Last Name</td><td id='ue_summary_family_name'/></tr>
824                                 <tr><td>Suffix</td><td id='ue_summary_suffix'/></tr>
825                                 <tr><td>Date of Birth</td><td id='ue_summary_dob'/></tr>
826                                 <tr><td>Primary Identification Type</td><td id='ue_summary_ident_type'/></tr>
827                                 <tr><td>Primary Identification</td><td id='ue_summary_ident_value'/></tr>
828                                 <tr><td>Secondary Identification Type</td><td id='ue_summary_ident_type2'/></tr>
829                                 <tr><td>Secondary Identification</td><td id='ue_summary_ident_value2'/></tr>
830                                 <tr><td>Email Address</td><td id='ue_summary_email'/></tr>
831                                 <tr><td>Day Phone</td><td id='ue_summary_day_phone'/></tr>
832                                 <tr><td>Evening Phone</td><td id='ue_summary_evening_phone'/></tr>
833                                 <tr><td>Other Phone</td><td id='ue_summary_other_phone'/></tr>
834                                 <tr><td>Home Library</td><td id='ue_summary_home_ou'/></tr>
835
836                                 <tr>
837                                         <td colspan='2'>
838                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
839                                                         <thead><tr><td>Addresses</td></tr></thead>
840                                                         <tbody name='ue_summary_addr_tbody'>
841                                                                 <tr name='ue_summary_addr_row'>
842                                                                         <td>
843                                                                                 <table name='ue_summary_addr_table' width='100%'>
844                                                                                         <thead><tr><td colspan='4'/><span> </span></tr></thead>
845                                                                                         <tbody>
846                                                                                                 <tr>
847                                                                                                         <td><b>Address Label</b></td><td name='label'/>
848                                                                                                         <td><b>Zip Code</b></td><td name='zip'/>
849                                                                                                 </tr>
850                                                                                                 <tr>
851                                                                                                         <td><b>Street1</b></td><td name='street1'/>
852                                                                                                         <td><b>Country</b></td><td name='country'/>
853                                                                                                 </tr>
854                                                                                                 <tr>
855                                                                                                         <td><b>Street2</b></td><td name='street2'/>
856                                                                                                         <td><b>Mailing</b></td><td name='mailing'/>
857                                                                                                 </tr>
858                                                                                                 <tr>
859                                                                                                         <td><b>City</b></td><td name='city'/>
860                                                                                                         <td><b>Billing</b></td><td name='billing'/>
861                                                                                                 </tr>
862                                                                                                 <tr>
863                                                                                                         <td><b>County</b></td><td name='county'/>
864                                                                                                         <td><b>Valid</b></td><td name='valid'/>
865                                                                                                 </tr>
866                                                                                                 <tr>
867                                                                                                         <td><b>State</b></td><td name='state'/>
868                                                                                                         <td><b>Within City Limits</b></td><td name='incorporated'/>
869                                                                                                 </tr>
870                                                                                         </tbody>
871                                                                                 </table>
872                                                                         </td>
873                                                                 </tr>
874                                                         </tbody>
875                                                 </table>
876                                         </td>
877                                 </tr>
878                                 <tr><td>Profile</td><td id='ue_summary_profile'/></tr>
879                                 <tr><td>Active</td><td id='ue_summary_active'/></tr>
880                                 <tr><td>Barred</td><td id='ue_summary_barred'/></tr>
881                                 <tr><td>Expire Date</td><td id='ue_summary_expire_date'/></tr>
882                                 <tr><td>Family Lead Account</td><td id='ue_summary_master_account'/></tr>
883                                 <tr><td>Claims Returned Count</td><td id='ue_summary_claims_returned_count'/></tr>
884                                 <tr><td>Alert Message</td><td id='ue_summary_alert_message'/></tr>
885                                 <tr name='ue_summary_stat_cat_td'>
886                                         <td colspan='2' >
887                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
888                                                         <thead><tr><td colspan='2'>Statistical Categories</td></tr></thead>
889                                                         <tbody name='ue_summary_stats_tbody'>
890                                                                 <tr name='ue_summary_stats_row'>
891                                                                         <td name='ue_summary_stat_name'/><td name='ue_summary_stat_value'/>
892                                                                 </tr>
893                                                         </tbody>
894                                                 </table>
895                                         </td>
896                                 </tr>
897                                 <tr name='ue_summary_survey_td'>
898                                         <td colspan='2'>
899                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
900                                                         <thead><tr><td>Survey</td><td>Question</td><td>Answer</td></tr></thead>
901                                                         <tbody name='ue_summary_survey_tbody'>
902                                                                 <tr name='ue_summary_survey_row'>
903                                                                         <td name='ue_summary_survey_name'/>
904                                                                         <td name='ue_summary_survey_question'/>
905                                                                         <td name='ue_summary_survey_answer'/>
906                                                                 </tr>
907                                                         </tbody>
908                                                 </table>
909                                         </td>
910                                 </tr>
911                                 <tr>
912                                         <td colspan='2' align='center'>
913                                                 <input style='margin-right: 15px;' type='submit' value='Print Page' onclick='window.print();'/>
914                                                 <input style='margin-left: 15px;' type='submit' value='Return to Editor' 
915                                                         onclick=' unHideMe($("main_div_container")); 
916                                                                 hideMe($("summary_div_container"));'/>
917                                         </td>
918                                 </tr>
919                         </tbody>
920                 </table>
921         </div>
922         </div>
923
924
925         <!-- ************************************************************** -->
926         <!-- This holds all of the strings we may have to alert to the user -->
927         <!-- ************************************************************** -->
928         <div class='hide_me'>
929                 <span id='ue_bad_dob'>The date of birth field is not formatted correctly.  We're expecting YYYY-MM-DD</span>
930                 <span id='ue_bad_username'>Username is invalid</span>
931                 <span id='ue_bad_password'>Passwords do not match or are invalid</span>
932                 <span id='ue_bad_firstname'>First name is invalid</span>
933                 <span id='ue_bad_middlename'>Middle name is invalid</span>
934                 <span id='ue_bad_lastname'>Last name is invalid</span>
935                 <span id='ue_bad_barcode'>Barcode is invalid</span>
936                 <span id='ue_duplicate_barcode'>The selected barcode already exists in the database</span>
937                 <span id='ue_new_barcode_warn'>
938                         This will de-activate the existing barcode for this user!  If you wish to continue, 
939                         enter the new barcode below.  Otherwise, click the Cancel button.
940                 </span>
941                 <span id='ue_no_ident'>You must select at least one type of identification</span>
942                 <span id='ue_bad_ident_dl'>Invalid drivers license. Should be STATE-NUMBER</span>
943                 <span id='ue_bad_ident_ssn'>Invalid social security number.  Format should be 111-22-3333</span>
944                 <span id='ue_bad_email'>The email addresses is not valid</span>
945                 <span id='ue_bad_phone'>An invalid phone number was entered</span>
946                 <span id='ue_no_profile'>A profile group must be selected</span>
947                 <span id='ue_bad_expire'>The user expiration date is invalid.  We're expecting YYYY-MM-DD</span>
948                 <span id='ue_bad_claims_returned'>The claims returned count is invalid</span>
949                 <span id='ue_no_profile'>A profile group must be selected</span>
950                 <span id='ue_unknown_error'>An unknown formatting error occurred</span>
951                 <span id='ue_bad_addr_label'>Address label is invalid</span>
952                 <span id='ue_bad_addr_street'>Address street is invalid</span>
953                 <span id='ue_bad_addr_city'>Address city is invalid</span>
954                 <span id='ue_bad_addr_county'>Address county is invalid</span>
955                 <span id='ue_bad_addr_state'>Address state is invalid</span>
956                 <span id='ue_bad_addr_country'>Address country is invalid</span>
957                 <span id='ue_bad_addr_zip'>Address zip is invalid</span>
958                 <span id='ue_bad_survey'>Required survey is unanswered</span>
959                 <span id='ue_delete_addr_warn'>
960                         This will remove this address from the user.  
961                         Are you sure you wish to continue?
962                 </span>
963                 <span id='yes'>Yes</span>
964                 <span id='no'>No</span>
965                 <span id='ue_summary_window'>Patron Summary</span>
966                 <span id='ue_success'>User update succeeded</span>
967                 <span id='ue_dup_ident1'>
968                         A user already exists with the primary identification provided.  
969                         Do you wish to view the duplicate record now?
970                 </span>
971                 <span id='ue_dup_username'>
972                         The selected username is in use by another user.  
973                         Please choose a different username.
974                 </span>
975                 <span id='ue_dup_barcode'>
976                         The selected barcode is in use by another user.  
977                         Please choose a different barcode.
978                 </span>
979                 <span class='hide_me' id='ue_cancel_confirm'>
980                         Are you sure you wish to cancel this editing session?
981                         Canceling will destroy any unsaved changes you have made thus far to the user.
982                 </span>
983                 <span class='hide_me' id='ue_juv_guardian'>
984                         This patron is under 18 years of age.  Please enter the name 
985                         of the parent or guardian for this patron.
986                 </span>
987                 <span class='hide_me' id='ue_bad_date'>
988                         The date provided is either in the future or invalid.  We're expecting YYYY-MM-DD
989                 </span>
990                 <span class='hide_me' id='ue_made_barred'>
991                         Please add a note to the patron's alert message explaining why the patron is barred.
992                 </span>
993
994         </div>
995
996         </body>
997 </html>
998