bbe5da5e694a08bf5147e4861300a7f3ce97d6a2
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / user_editor.xml
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/opac_utils.js'> </script>
24                 <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
25                 <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
26                 <script language='javascript' src='/opac/common/js/init.js'> </script>
27                 <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
28                 <script language='javascript' src='../admin/adminlib.js'> </script>
29                 <script language='javascript' src='user_editor.js'> </script>
30                 <link type='text/css' rel='stylesheet' href='../admin/admin.css'/>
31   
32                 <link rel="stylesheet" type="text/css" media="all" 
33                         href="/opac/common/js/jscalendar/calendar-brown.css" title="win2k-cold-1" />
34                 <script type="text/javascript" src="/opac/common/js/jscalendar/calendar.js"></script>
35                 <script type="text/javascript" src="/opac/common/js/jscalendar/lang/calendar-en.js"></script>
36                 <script type="text/javascript" src="/opac/common/js/jscalendar/calendar-setup.js"></script>
37
38
39                 <style type='text/css'>
40                         .main_table { width: 98%; border-collapse: collapse;}
41                         .main_table td { border: 1px solid #E0F0E0; text-align: center; padding: 4px;}
42                         #uedit_nav_bar { border: 2px solid #E0F0E0; padding: 6px;}
43                         .nav_link { padding-left: 90px; padding-right: 90px; }
44                         .main_nav_link { -moz-border-radius: 7px; height: 13%;}
45                         .main_div { height: 480px; padding-left: 15px; 
46                                 text-align: center; vertical-align: middle; overflow: auto;}
47                         .nav_link_table { height: 480px;}
48                         .label_active { background: #E0F0E0; }
49                         .right { text-align: right; padding-right: 3px;}
50                         .left { text-align: left; padding-left: 3px;}
51                         .wide { width: 98%;}
52                         .pad { padding-left: 3px; padding-right: 3px; }
53                         .no_border td { border: none; }
54                         .uedit_table { width: 80% }
55                         .address_table { 
56                                 -moz-border-radius: 4px;
57                                 border: 4px solid #E0E0F0;
58                                 padding: 4px;
59                                 }
60                         .address_table td { 
61                                 border: none; 
62                                 width: auto; 
63                                 padding: 1px; 
64                                 }
65                         .addr_info_checked { -moz-border-radius: 6px; background: #F0E0E0; }
66                         .button_row { width: 95%; text-align: center; margin-top: 7px; border: 1px solid #E0E0E0; }
67                 </style>
68         </head>
69
70         <body onload='try{uEditInit();}catch(e){alert(js2JSON(e));}'>
71
72         <center>
73
74                 <h2>Evergreen User Editor</h2>
75
76                 <div style='position:absolute; top: 5px; right: 5px;'>
77                         <span>Welcome </span><b><span id='uedit_user'/></b>
78                 </div>
79
80                 <hr/><br/>
81
82                 <table class='main_table'>
83                         <tbody>
84                                 <tr>
85                                         <td width='15%' valign='top'>
86                                                 <!-- ************************************************************** -->
87                                                 <!--  Top Navigation Links -->
88                                                 <!-- ************************************************************** -->
89                                                 <table height='100%' class='nav_link_table'>
90                                                         <tbody>
91                                                                 <tr>
92                                                                         <td id='uedit_userid_label' class='main_nav_link'>
93                                                                                 <a href='javascript:uEditShowPage("uedit_userid");'>1. User Identification</a>
94                                                                         </td>
95                                                                 </tr>
96                                                                 <tr>
97                                                                         <td id='uedit_contact_info_label' class='main_nav_link'>        
98                                                                                 <a href='javascript:uEditShowPage("uedit_contact_info");'>2. Contact Info</a>
99                                                                         </td>
100                                                                 </tr>
101                                                                 <tr>
102                                                                         <td id='uedit_addresses_label' class='main_nav_link'>           
103                                                                                 <a href='javascript:uEditShowPage("uedit_addresses");'>3. Addresses</a>
104                                                                         </td>
105                                                                 </tr>
106                                                                 <tr>
107                                                                         <td id='uedit_groups_label' class='main_nav_link'>                      
108                                                                                 <a href='javascript:uEditShowPage("uedit_groups");'>4. Groups and Permissions</a>
109                                                                         </td>
110                                                                 </tr>
111                                                                 <tr>
112                                                                         <td id='uedit_stat_cats_label' class='main_nav_link'>           
113                                                                                 <a href='javascript:uEditShowPage("uedit_stat_cats");'>5. Statistical Categories</a>
114                                                                         </td>
115                                                                 </tr>
116                                                                 <tr>
117                                                                         <td id='uedit_surveys_label' class='main_nav_link'>                     
118                                                                                 <a href='javascript:uEditShowPage("uedit_surveys");'>6. Surveys</a>
119                                                                         </td>
120                                                                 </tr>
121                                                                 <tr>
122                                                                         <td id='uedit_finalize_label' class='main_nav_link'>                    
123                                                                                 <a href='javascript:uEditShowPage("uedit_finalize");'>7. Finish</a>
124                                                                         </td>
125                                                                 </tr>
126                                                         </tbody>
127                                                 </table>
128                                         </td>
129
130                                         <td width='85%'>
131
132
133                                                 <!-- ************************************************************** -->
134                                                 <!--  Identification Pane -->
135                                                 <!-- ************************************************************** -->
136                                                 <div id='uedit_userid' class='main_div'>
137                                                         <table class='uedit_table'>
138                                                                 <tbody>
139                                                                         <tr>
140                                                                                 <td><div class='wide right'>Barcode</div></td>
141                                                                                 <td><div class='wide left'>
142
143                                                                                         <input type='text' id='ue_barcode' 
144                                                                                                 onblur=' var un = $("ue_username");
145                                                                                                         if(!un.value) un.value = this.value;'/>
146
147                                                                                 </div></td>
148                                                                         </tr>
149                                                                         <tr>
150                                                                                 <td><div class='wide right'>Username</div></td>
151                                                                                 <td><div class='wide left'><input type='text' id='ue_username'/></div></td>
152                                                                         </tr>
153                                                                         <tr>
154                                                                                 <td><div class='wide right'>Password</div></td>
155                                                                                 <td><div class='wide left'><input type='password' id='ue_password1'/></div></td>
156                                                                         </tr>
157                                                                         <tr>
158                                                                                 <td><div class='wide right'>Verify Password</div></td>
159                                                                                 <td><div class='wide left'><input type='password' id='ue_password2'/></div></td>
160                                                                         </tr>
161                                                                         <tr>
162                                                                                 <td><div class='wide right'>First Name</div></td>
163                                                                                 <td><div class='wide left'><input type='text' id='ue_firstname'/></div></td>
164                                                                         </tr>
165                                                                         <tr>
166                                                                                 <td><div class='wide right'>Middle Name</div></td>
167                                                                                 <td><div class='wide left'><input type='text' id='ue_middlename'/></div></td>
168                                                                         </tr>
169                                                                         <tr>
170                                                                                 <td><div class='wide right'>Last Name</div></td>
171                                                                                 <td><div class='wide left'><input type='text' id='ue_lastname'/></div></td>
172                                                                         </tr>
173                                                                         <tr>
174                                                                                 <td><div class='wide right'>Suffix</div></td>
175                                                                                 <td><div class='wide left'><input type='text' id='ue_suffix'/></div></td>
176                                                                         </tr>
177                                                                         <tr>
178                                                                                 <td><div class='wide right'>Date of Birth</div></td>
179                                                                                 <td>
180                                                                                         <div class='wide left'>
181         
182                                                                                                 <input type='text' id='ue_dob' size='10' maxlength='10' 
183                                                                                                         onfocus='/*$("ue_dob_trigger").onclick(event);*/'>1980-01-01</input>
184         
185                                                                                                 <button style='padding: 0px;' id='ue_dob_trigger'>
186                                                                                                         <img src="/opac/common/js/jscalendar/img.gif" 
187                                                                                                                 style="cursor: pointer; border: 1px solid red; padding: 0px; margin: -3px;" 
188                                                                                                                 title="Date selector"
189                                                                                                                 onmouseover="this.style.background='red';" 
190                                                                                                                 onmouseout="this.style.background=''" />
191                                                                                                 </button>
192
193                                                                                                 <span class='pad' style='font-size: 8pt;'>(YYYY-MM-DD)</span>
194         
195                                                                                                 <script type="text/javascript">
196                                                                                                         Calendar.setup({
197                                                                                                                 inputField      : "ue_dob",                             // id of the input field
198                                                                                                                 ifFormat                : "%Y-%m-%d",                   // format of the input field
199                                                                                                                 button          : "ue_dob_trigger",  // trigger for the calendar (button ID)
200                                                                                                                 align                   : "Tl",                                 // alignment (defaults to "Bl")
201                                                                                                                 singleClick     : true
202                                                                                                         });
203                                                                                                 </script>
204         
205                                                                                         </div>
206                                                                                 </td>
207                                                                         </tr>
208                                                                         <tr>
209                                                                                 <td><div class='wide right'>Primary Identification Type</div></td>
210                                                                                 <td><div class='wide left'>
211                                                                                                 <select id='ue_primary_ident_type'>
212                                                                                                         <option> -- Required -- </option>
213                                                                                                 </select>
214                                                                                         </div>
215                                                                                 </td>
216                                                                         </tr>
217                                                                         <tr>
218                                                                                 <td><div class='wide right'>Primary Identification</div></td>
219                                                                                 <td><div class='wide left'>
220                                                                                         <input type='text' id='ue_primary_ident'/>
221                                                                                         </div>
222                                                                                 </td>
223                                                                         </tr>
224                                                                         <tr>
225                                                                                 <td><div class='wide right'>Secondary Identification Type</div></td>
226                                                                                 <td><div class='wide left'>
227                                                                                                 <select id='ue_secondary_ident_type'>
228                                                                                                         <option> -- Required -- </option>
229                                                                                                 </select>
230                                                                                         </div>
231                                                                                 </td>
232                                                                         </tr>
233                                                                         <tr>
234                                                                                 <td><div class='wide right'>Secondary Identification</div></td>
235                                                                                 <td><div class='wide left'>
236                                                                                         <input type='text' id='ue_secondary_ident'/>
237                                                                                         </div>
238                                                                                 </td>
239                                                                         </tr>
240                                                                 </tbody>
241                                                         </table>
242                                                 </div>
243
244                                                 <!-- ************************************************************** -->
245                                                 <!-- Contact Info Pane -->
246                                                 <!-- ************************************************************** -->
247                                                 <div id='uedit_contact_info' class='main_div hide_me'>
248                                                         <table class='uedit_table'>
249                                                                 <tbody>
250                                                                         <tr>
251                                                                                 <td><div class='wide right'>Email Address</div></td>
252                                                                                 <td><div class='wide left'><input type='text' id='ue_email1'/></div></td>
253                                                                         </tr>
254                                                                         <tr>
255                                                                                 <td><div class='wide right'>Verify Email Address</div></td>
256                                                                                 <td><div class='wide left'><input type='text' id='ue_email2'/></div></td>
257                                                                         </tr>
258                                                                         <tr>
259                                                                                 <td><div class='wide right'>Daytime Phone</div></td>
260                                                                                 <td>
261                                                                                         <div class='wide left'>
262                                                                                                 <input class='pad' type='text' id='ue_day_phone_area' maxlength='3' size='3'/>
263                                                                                                 <span>-</span>
264                                                                                                 <input class='pad' type='text' id='ue_day_phone_prefix' maxlength='3' size='3'/>
265                                                                                                 <span>-</span>
266                                                                                                 <input class='pad' type='text' id='ue_day_phone_suffix' maxlength='4' size='4'/>
267                                                                                         </div>
268                                                                                 </td>
269                                                                         </tr>
270                                                                         <tr>
271                                                                                 <td><div class='wide right'>Evening Phone</div></td>
272                                                                                 <td>
273                                                                                         <div class='wide left'>
274                                                                                                 <input class='pad' type='text' id='ue_night_phone_area' maxlength='3' size='3'/>
275                                                                                                 <span>-</span>
276                                                                                                 <input class='pad' type='text' id='ue_night_phone_prefix' maxlength='3' size='3'/>
277                                                                                                 <span>-</span>
278                                                                                                 <input class='pad' type='text' id='ue_night_phone_suffix' maxlength='4' size='4'/>
279                                                                                         </div>
280                                                                                 </td>
281                                                                         </tr>
282                                                                         <tr>
283                                                                                 <td><div class='wide right'>Other/Cell Phone</div></td>
284                                                                                 <td>
285                                                                                         <div class='wide left'>
286                                                                                                 <input class='pad' type='text' id='ue_other_phone_area' maxlength='3' size='3'/>
287                                                                                                 <span>-</span>
288                                                                                                 <input class='pad' type='text' id='ue_other_phone_prefix' maxlength='3' size='3'/>
289                                                                                                 <span>-</span>
290                                                                                                 <input class='pad' type='text' id='ue_other_phone_suffix' maxlength='4' size='4'/>
291                                                                                         </div>
292                                                                                 </td>
293                                                                         </tr>
294                                                                         <tr>
295                                                                                 <td><div class='wide right'>Home Library</div></td>
296                                                                                 <td>
297                                                                                         <div class='wide left'>
298                                                                                                 <select style='width: 20em;' id='ue_org_selector'/>
299                                                                                         </div>
300                                                                                 </td>
301                                                                         </tr>
302                                                                 </tbody>
303                                                         </table>
304                                                 </div>
305         
306                                                 <!-- ************************************************************** -->
307                                                 <!-- Addresses Pane -->
308                                                 <!-- ************************************************************** -->
309                                                 <div id='uedit_addresses' class='main_div hide_me' >
310                                                         <table class='uedit_table' style='width: 98%; padding: 1px;'>
311                                                                 <thead>
312                                                                         <tr>
313                                                                                 <td>Address</td>
314                                                                                 <td>Incorporated</td>
315                                                                                 <td>Valid</td>
316                                                                                 <td>Mailing Address</td>
317                                                                                 <td>Physical Address</td>
318                                                                         </tr>
319                                                                 </thead>
320                                                                 <tbody id='ue_address_tbody'>
321                                                                         <tr id='ue_address_template'>
322                                                                                 <td>
323                                                                                         <table class='address_table'>
324                                                                                                 <tbody>
325                                                                                                         <tr>
326                                                                                                                 <td><div class='wide right'>Label</div></td>
327                                                                                                                 <td colspan='5'>
328                                                                                                                         <div class='wide left'>
329                                                                                                                                 <input type='text' name='ue_addr_label' id='ue_addr_label'/>
330                                                                                                                         </div>
331                                                                                                                 </td>
332                                                                                                         </tr>
333                                                                                                         <tr>
334                                                                                                                 <td><div class='wide right'>Street 1</div></td>
335                                                                                                                 <td colspan='5'>
336                                                                                                                         <div class='wide left'>
337                                                                                                                                 <input type='text' name='ue_addr_street1' size='42'/>
338                                                                                                                         </div>
339                                                                                                                 </td>
340                                                                                                         </tr>
341                                                                                                         <tr>
342                                                                                                                 <td><div class='wide right'>Street 2</div></td>
343                                                                                                                 <td colspan='5'>
344                                                                                                                         <div class='wide left'>
345                                                                                                                                 <input type='text' name='ue_addr_street2' size='42'/>
346                                                                                                                         </div>
347                                                                                                                 </td>
348                                                                                                         </tr>
349                                                                                                         <tr>
350                                                                                                                 <td><div class='wide right'>City</div></td>
351                                                                                                                 <td colspan='3'>
352                                                                                                                         <div class='wide left'>
353                                                                                                                                 <input type='text' name='ue_addr_city' size='17'/>
354                                                                                                                         </div>
355                                                                                                                 </td>
356                                                                                                                 <td><div class='wide right'>County</div></td>
357                                                                                                                 <td colspan='3'>
358                                                                                                                         <div class='wide left'>
359                                                                                                                                 <input type='text' name='ue_addr_county' size='17'/>
360                                                                                                                         </div>
361                                                                                                                 </td>
362                                                                                                         </tr>
363                                                                                                         <tr>
364                                                                                                                 <td><div class='wide right'>State</div></td>
365                                                                                                                 <td>
366                                                                                                                         <div class='wide left'>
367                                                                                                                                 <input type='text' name='ue_addr_state' size='2' maxlength='2'/>
368                                                                                                                         </div>
369                                                                                                                 </td>
370                                                                                                                 <td><div class='wide right'>Zip</div></td>
371                                                                                                                 <td>
372                                                                                                                         <div class='wide left'>
373                                                                                                                                 <input type='text' name='ue_addr_zip' size='6' maxlength='6'/>
374                                                                                                                         </div>
375                                                                                                                 </td>
376                                                                                                                 <td><div class='wide right'>Country</div></td>
377                                                                                                                 <td colspan='3'>
378                                                                                                                         <div class='wide left'>
379                                                                                                                                 <input type='text' name='ue_addr_country' size='6'/>
380                                                                                                                         </div>
381                                                                                                                 </td>
382                                                                                                         </tr>
383                                                                                                         <tr>
384                                                                                                                 <td colspan='6'>
385                                                                                                                         <div class='button_row'>
386                                                                                                                                 <input type='submit' name='ue_addr_delete' 
387                                                                                                                                         value='Delete this Address'
388                                                                                                                                         onclick='
389                                                                                                                                                 if( confirm($("ue_delete_addr_warn").innerHTML) ) {
390                                                                                                                                                         var td = this.parentNode.parentNode;
391                                                                                                                                                         var mytab = td.parentNode.parentNode.parentNode;
392                                                                                                                                                         var top = mytab.parentNode.parentNode.parentNode;
393                                                                                                                                                         top.removeChild(mytab.parentNode.parentNode);
394                                                                                                                                                 }
395                                                                                                                                         '/>
396                                                                                                                 </div>
397                                                                                                         </td>
398                                                                                                 </tr>
399
400                                                                                                 </tbody>
401                                                                                         </table>
402                                                                                 </td>
403                                                                                 <td><input type='checkbox' name='ue_addr_inc_yes' checked='checked'/></td>
404                                                                                 <td><input type='checkbox' name='ue_addr_valid_yes' checked='checked'/></td>
405                                                                                 <td>
406                                                                                         <div style='width: 100%; -moz-border-radius: 8px;'>
407                                                                                                 <input type='radio' name='ue_addr_mailing_yes' checked='checked'
408                                                                                                         onclick='uEditAddrHighlight(this, "mailing");'/>
409                                                                                         </div>
410                                                                                 </td>
411                                                                                 <td>
412                                                                                         <div style='width: 100%; -moz-border-radius: 8px;'>
413                                                                                                 <input type='radio' name='ue_addr_billing_yes' checked='checked'
414                                                                                                         onclick='uEditAddrHighlight(this, "billing");'/>
415                                                                                         </div>
416                                                                                 </td>
417                                                                         </tr>
418                                                                 </tbody>
419                                                         </table>
420
421                                                         <div class='button_row' style='margin-top: 20px;'>
422                                                                 <input type='submit' value='Create a New Address' id='ue_address_new'/>
423                                                         </div>
424                                                 </div>
425         
426                                                 <!-- ************************************************************** -->
427                                                 <!-- Groups Pane -->
428                                                 <!-- ************************************************************** -->
429                                                 <div id='uedit_groups' class='main_div hide_me'>
430                                                         <table class='uedit_table'>
431                                                                 <tbody>
432                                                                         <tr>
433                                                                                 <td><div class='wide right'>Profile Group</div></td>
434                                                                                 <td>
435                                                                                         <div class='wide left'>
436                                                                                                 <select id='ue_profile'>
437                                                                                                         <option> -- Required -- </option>
438                                                                                                 </select>
439                                                                                         </div>
440                                                                                 </td>
441                                                                         </tr>
442                                                                         <tr>
443                                                                                 <td><div class='wide right'>Account Expiration Date</div></td>
444                                                                                 <td>
445                                                                                         <div class='wide left'>
446                                                                                                 <input type='text' id='ue_expire' size='10' maxlength='10'/>
447         
448                                                                                                 <button style='padding: 0px;' id='ue_expire_trigger'>
449                                                                                                         <img src="/opac/common/js/jscalendar/img.gif" 
450                                                                                                                 style="cursor: pointer; border: 1px solid red; padding: 0px; margin: -3px;" 
451                                                                                                                 title="Date selector"
452                                                                                                                 onmouseover="this.style.background='red';" 
453                                                                                                                 onmouseout="this.style.background=''" />
454                                                                                                 </button>
455
456                                                                                                 <span class='pad' style='font-size: 8pt;'>(YYYY-MM-DD)</span>
457                                                                                                 <div style='margin-top: 5px;'>
458                                                                                                         Note: a default will be provided if none is selected
459                                                                                                 </div>
460         
461                                                                                                 <script type="text/javascript">
462                                                                                                         Calendar.setup({
463                                                                                                                 inputField      : "ue_expire",                          // id of the input field
464                                                                                                                 ifFormat                : "%Y-%m-%d",                           // format of the input field
465                                                                                                                 button          : "ue_expire_trigger",  // trigger for the calendar (button ID)
466                                                                                                                 align                   : "Tl",                                         // alignment (defaults to "Bl")
467                                                                                                                 singleClick     : true
468                                                                                                         });
469                                                                                                 </script>
470                                                                                         </div>
471                                                                                 </td>
472                                                                         </tr>
473                                                                         <tr>
474                                                                                 <td><div class='wide right'>Active</div></td>
475                                                                                 <td>
476                                                                                         <div class='wide left'>
477                                                                                                 <input id='ue_active' type='checkbox' checked='checked'/>
478                                                                                         </div>
479                                                                                 </td>
480                                                                         </tr>
481                                                                         <tr>
482                                                                                 <td><div class='wide right'>Barred</div></td>
483                                                                                 <td>
484                                                                                         <div class='wide left'>
485                                                                                                 <input id='ue_barred' type='checkbox'/>
486                                                                                         </div>
487                                                                                 </td>
488                                                                         </tr>
489                                                                         <tr>
490                                                                                 <td><div class='wide right'>Set as Family/Group Lead Account</div></td>
491                                                                                 <td>
492                                                                                         <div class='wide left'>
493                                                                                                 <input id='ue_group_lead' type='checkbox'/>
494                                                                                         </div>
495                                                                                 </td>
496                                                                         </tr>
497                                                                         <tr>
498                                                                                 <td><div class='wide right'>Claims Returned Count</div></td>
499                                                                                 <td>
500                                                                                         <div class='wide left'>
501                                                                                                 <input id='ue_claims_returned' type='text' disabled='disabled' size='6'/>
502                                                                                                 <script>$('ue_claims_returned').value = 0;</script>
503                                                                                                 <input class='pad' id='ue_claims_returned_reset' type='submit' value='Reset'/>
504                                                                                         </div>
505                                                                                 </td>
506                                                                         </tr>
507                                                                         <tr>
508                                                                                 <td><div class='wide right'>Alert Message</div></td>
509                                                                                 <td>
510                                                                                         <div class='wide left'>
511                                                                                                 <textarea wrap='soft' cols='30' rows='4' id='ue_alert_message'/>
512                                                                                                 <input class='pad' id='ue_alert_message_reset' 
513                                                                                                         type='submit' value='Clear' onclick='$("ue_alert_message").value = "";'/>
514                                                                                         </div>
515                                                                                 </td>
516                                                                         </tr>
517                                                                 </tbody>
518                                                         </table>
519                                                 </div>
520         
521                                                 <!-- ************************************************************** -->
522                                                 <!-- Stat Cats Pane -->
523                                                 <!-- ************************************************************** -->
524                                                 <div id='uedit_stat_cats' class='main_div hide_me'>
525                                                         <table class='uedit_table' style='width: 98%'>
526                                                                 <thead>
527                                                                         <tr style='font-weight: bold;'>
528                                                                                 <td>Stat Cat Name</td>
529                                                                                 <td>Owner</td>
530                                                                                 <td>Value</td>
531                                                                         </tr>
532                                                                 </thead>
533                                                                 <tbody id='ue_stat_cat_tbody'>
534                                                                         <tr id='ue_stat_cat_row'>
535                                                                                 <td><div class='wide right' name='ue_stat_cat_name'/></td>
536                                                                                 <td><div class='wide right' style='font-size: 8pt' name='ue_stat_cat_owner'/></td>
537                                                                                 <td>
538                                                                                         <div class='wide left'>
539                                                                                                 <select name='ue_stat_cat_selector'>
540                                                                                                         <option> -- Select One -- </option>
541                                                                                                 </select>
542                                                                                                 <span class='pad'> or </span>
543                                                                                                 <input class='pad' type='text' name='ue_stat_cat_newval'/>
544                                                                                         </div>
545                                                                                 </td>
546                                                                         </tr>
547                                                                 </tbody>
548                                                         </table>
549
550                                                 </div>
551         
552                                                 <!-- ************************************************************** -->
553                                                 <!-- Surveys Pane -->
554                                                 <!-- ************************************************************** -->
555                                                 <div id='uedit_surveys' class='main_div hide_me'>
556                                                         <table id='ue_survey_table' 
557                                                                 class='uedit_table data_grid' style='width: 95%; margin-top: 10px;'>
558                                                                 <thead>
559                                                                         <tr>
560                                                                                 <td colspan='2' style='text-align: left; padding-left: 20px;'>
561                                                                                         <span class='pad' name='ue_survey_name' style='font-weight: bold;'/>
562                                                                                         <span class='pad' name='ue_survey_desc'> : </span>
563                                                                                 </td>
564                                                                         </tr>
565                                                                 </thead>
566                                                                 <tbody name='ue_survey_tbody'>
567                                                                         <tr name='ue_survey_row'>
568                                                                                 <td name='ue_survey_question' 
569                                                                                         style='width: 60%; text-align: left; padding-left: 40px;'/>
570                                                                                 <td class='hide_me'>
571                                                                                         <select name='ue_survey_answer'>
572                                                                                                 <option> -- Select One -- </option>
573                                                                                         </select>
574                                                                                 </td>
575                                                                                 <td class='hide_me' name='ue_survey_answer_poll'>
576                                                                                         <table>
577                                                                                                 <tbody name='ue_survey_answer_poll_tbody'>
578                                                                                                         <tr name='ue_survey_answer_poll_row'>
579                                                                                                                 <td>
580                                                                                                                         <div class='right' name='ue_survey_answer_poll_radio'>
581                                                                                                                         </div>
582                                                                                                                 </td>
583                                                                                                                 <td><div class='left' name='ue_survey_answer_poll_answer'/></td>
584                                                                                                         </tr>
585                                                                                                 </tbody>
586                                                                                         </table>
587                                                                                 </td>
588                                                                         </tr>
589                                                                 </tbody>
590                                                         </table>
591                                                 </div>
592
593                                                 <!-- ************************************************************** -->
594                                                 <!-- Finish Up -->
595                                                 <!-- ************************************************************** -->
596                                                 <div id='uedit_finalize' class='main_div hide_me'>
597                                                         <div class='has_color' style='width: 95%; margin-top: 40px; text-align: center'>
598                                                                 <div style='padding: 5px;'>
599                                                                         You are now ready to save the user to the database.  <br/>
600                                                                         To view or print a summary of the changes, click on the "View Summary" link.  <br/>
601                                                                         To save the user, click on the 'Save User' button.
602                                                                 </div>
603                                                                 <br/>
604                                                                 <a style='margin-right: 30px;' id='ue_view_summary' 
605                                                                         href='javascript:uEditShowSummary();'>View Summary</a>
606                                                                 <input style='margin-left: 30px;' 
607                                                                         type='submit' value='Save User' onclick='uEditSaveUser();'/>
608                                                         </div>
609                                                 </div>
610
611         
612                                         </td>
613                                 </tr>
614
615                                 <tr>
616                                         <td colspan='2'>
617                                                 <!-- ************************************************************** -->
618                                                 <!-- Bottome Navigation Links -->
619                                                 <!-- ************************************************************** -->
620                                                 <table width='100%' class='no_border'>
621                                                         <tbody>
622                                                                 <tr id='uedit_nav_bar'>
623                                                                         <td width='10%'/>
624                                                                         <td width='40%'>
625                                                                                 <a id='ue_back' class='nav_link hide_me' 
626                                                                                         href='javascript:uEditPrev()'>&lt;&lt; Back</a>
627                                                                         </td>
628                                                                         <td width='40%'>
629                                                                                 <a id='ue_fwd' class='nav_link' 
630                                                                                         href='javascript:uEditNext()'>Forward &gt;&gt;</a>
631                                                                         </td>
632                                                                         <td width='10%'/>
633                                                                 </tr>
634                                                         </tbody>
635                                                 </table>
636                                         </td>
637                                 </tr>
638                         </tbody>
639                 </table>
640         </center>
641
642         <div id='ue_summary_page' class='hide_me'>
643                 <table id='ue_summary_table' class='summary_grid' width='55%'>
644                         <style type='text/css'>
645                                 .summary_grid { padding: 5px; }
646                                 .summary_grid thead tr { background: #E0F0E0; font-weight: bold;}
647                                 .summary_grid tbody tr td { border: 1px solid #E0F0E0; }
648                                 .hide_me{ visibility: hidden; display: none }
649                         </style>
650                         <thead><tr><td colspan='2'>User Summary Information</td></tr></thead>
651                         <tbody name='ue_summary_page_tbody'>
652                                 <tr>
653                                         <td><input type='submit' value='Print Page' onclick='window.print();'/></td>
654                                         <td><input type='submit' value='Close Window' onclick='window.close();'/></td>
655                                 </tr>
656                                 <tr><td>Username</td><td name='ue_summary_username'/></tr>
657                                 <tr><td>First Name</td><td name='ue_summary_firstname'/></tr>
658                                 <tr><td>Middle Name</td><td name='ue_summary_middlename'/></tr>
659                                 <tr><td>Last Name</td><td name='ue_summary_lastname'/></tr>
660                                 <tr><td>Suffix</td><td name='ue_summary_suffix'/></tr>
661                                 <tr><td>Date of Birth</td><td name='ue_summary_dob'/></tr>
662                                 <tr><td>Primary Identification Type</td><td name='ue_summary_primary_ident_type'/></tr>
663                                 <tr><td>Primary Identification</td><td name='ue_summary_primary_ident'/></tr>
664                                 <tr><td>Secondary Identification Type</td><td name='ue_summary_secondary_ident_type'/></tr>
665                                 <tr><td>Secondary Identification</td><td name='ue_summary_secondary_ident'/></tr>
666                                 <tr><td>Email Address</td><td name='ue_summary_email'/></tr>
667                                 <tr><td>Day Phone</td><td name='ue_summary_dayphone'/></tr>
668                                 <tr><td>Evening Phone</td><td name='ue_summary_nightphone'/></tr>
669                                 <tr><td>Other Phone</td><td name='ue_summary_otherphone'/></tr>
670                                 <tr><td>Home Library</td><td name='ue_summary_home_lib'/></tr>
671                                 <tr>
672                                         <td colspan='2'>
673                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
674                                                         <thead><tr><td>Addresses</td></tr></thead>
675                                                         <tbody name='ue_summary_addr_tbody'>
676                                                                 <tr name='ue_summary_addr_row'>
677                                                                         <td>
678                                                                                 <table name='ue_summary_addr_table' width='100%'>
679                                                                                         <thead><tr><td colspan='4'/><span> </span></tr></thead>
680                                                                                         <tbody>
681                                                                                                 <tr>
682                                                                                                         <td>Address Label</td><td name='label'/>
683                                                                                                         <td>Zip Code</td><td name='zip'/>
684                                                                                                 </tr>
685                                                                                                 <tr>
686                                                                                                         <td>Street1</td><td name='street1'/>
687                                                                                                         <td>Country</td><td name='country'/>
688                                                                                                 </tr>
689                                                                                                 <tr>
690                                                                                                         <td>Street2</td><td name='street2'/>
691                                                                                                         <td>Mailing</td><td name='mailing'/>
692                                                                                                 </tr>
693                                                                                                 <tr>
694                                                                                                         <td>City</td><td name='city'/>
695                                                                                                         <td>Billing</td><td name='billing'/>
696                                                                                                 </tr>
697                                                                                                 <tr>
698                                                                                                         <td>County</td><td name='county'/>
699                                                                                                         <td>Valid</td><td name='valid'/>
700                                                                                                 </tr>
701                                                                                                 <tr>
702                                                                                                         <td>State</td><td name='state'/>
703                                                                                                         <td>Incorporated</td><td name='incorporated'/>
704                                                                                                 </tr>
705                                                                                         </tbody>
706                                                                                 </table>
707                                                                         </td>
708                                                                 </tr>
709                                                         </tbody>
710                                                 </table>
711                                         </td>
712                                 </tr>
713                                 <tr><td>Profile</td><td name='ue_summary_profile'/></tr>
714                                 <tr><td>Expire Date</td><td name='ue_summary_expire'/></tr>
715                                 <tr><td>Family Lead Account</td><td name='ue_summary_family_lead'/></tr>
716                                 <tr><td>Claims Returned Count</td><td name='ue_summary_claims_returned'/></tr>
717                                 <tr><td>Alert Message</td><td name='ue_summary_alert_message'/></tr>
718                                 <tr class='hide_me' name='ue_summary_stat_cat_td'>
719                                         <td colspan='2' >
720                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
721                                                         <thead><tr><td colspan='2'>Statistical Category Updates</td></tr></thead>
722                                                         <tbody name='ue_summary_stats_tbody'>
723                                                                 <tr name='ue_summary_stats_row'>
724                                                                         <td name='ue_summary_stat_name'/><td name='ue_summary_stat_value'/>
725                                                                 </tr>
726                                                         </tbody>
727                                                 </table>
728                                         </td>
729                                 </tr>
730                                 <tr class='hide_me' name='ue_summary_survey_td'>
731                                         <td colspan='2'>
732                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
733                                                         <thead><tr><td>Survey</td><td>Question</td><td>Answer</td></tr></thead>
734                                                         <tbody name='ue_summary_survey_tbody'>
735                                                                 <tr name='ue_summary_survey_row'>
736                                                                         <td name='ue_summary_survey_name'/>
737                                                                         <td name='ue_summary_survey_question'/>
738                                                                         <td name='ue_summary_survey_answer'/>
739                                                                 </tr>
740                                                         </tbody>
741                                                 </table>
742                                         </td>
743                                 </tr>
744                                 <tr name='ue_summary_errors_row' class='hide_me'>
745                                         <td colspan='2'>
746                                                 <table width='100%' style='margin-top: 15px; margin-bottom: 15px;'>
747                                                         <thead>
748                                                                 <tr>
749                                                                         <td style='color: red;' ><b>Errors you would see if you saved now...</b></td>
750                                                                 </tr>
751                                                         </thead>
752                                                         <tbody><tr><td name='ue_summary_errors'/></tr></tbody>
753                                                 </table>
754                                         </td>
755                                 </tr>
756                                 <tr>
757                                         <td><input type='submit' value='Print Page' onclick='window.print();'/></td>
758                                         <td><input type='submit' value='Close Window' onclick='window.close();'/></td>
759                                 </tr>
760                         </tbody>
761                 </table>
762         </div>
763
764         <!-- ************************************************************** -->
765         <!-- This holds all of the strings we may have to alert to the user -->
766         <!-- ************************************************************** -->
767         <div class='hide_me'>
768                 <span id='ue_bad_dob'>The date of birth field is not formatted correctly.  We're expecting YYYY-MM-DD</span>
769                 <span id='ue_bad_username'>Username is invalid</span>
770                 <span id='ue_bad_password'>Passwords do not match or are invalid</span>
771                 <span id='ue_bad_firstname'>First name is invalid</span>
772                 <span id='ue_bad_middlename'>Middle name is invalid</span>
773                 <span id='ue_bad_lastname'>Last name is invalid</span>
774                 <span id='ue_bad_barcode'>Barcode is invalid</span>
775                 <span id='ue_duplicate_barcode'>The selected barcode already exists in the database</span>
776                 <span id='ue_new_barcode_warn'>
777                         This will de-activate the existing barcode for this user!  If you wish to continue, 
778                         enter the new barcode below.  Otherwise, click the Cancel button.
779                 </span>
780                 <span id='ue_no_ident'>You must select two types of identification</span>
781                 <span id='ue_bad_email'>The email addresses do not match or are invalid</span>
782                 <span id='ue_bad_phone'>An invalid phone number was entered</span>
783                 <span id='ue_no_profile'>A profile group must be selected</span>
784                 <span id='ue_bad_expire'>The user expiration date is invalid.  We're expecting YYYY-MM-DD</span>
785                 <span id='ue_bad_claims_returned'>The claims returned count is invalid</span>
786                 <span id='ue_no_profile'>A profile group must be selected</span>
787                 <span id='ue_unknown_error'>An unknown formatting error occurred</span>
788                 <span id='ue_bad_addr_label'>Address label is invalid</span>
789                 <span id='ue_bad_addr_street'>Address street is invalid</span>
790                 <span id='ue_bad_addr_city'>Address city is invalid</span>
791                 <span id='ue_bad_addr_county'>Address county is invalid</span>
792                 <span id='ue_bad_addr_state'>Address state is invalid</span>
793                 <span id='ue_bad_addr_country'>Address country is invalid</span>
794                 <span id='ue_bad_addr_zip'>Address zip is invalid</span>
795                 <span id='ue_delete_addr_warn'>
796                         This will remove this address from the user.  
797                         Are you sure you wish to continue?
798                 </span>
799                 <span id='yes'>Yes</span>
800                 <span id='no'>No</span>
801                 <span id='ue_summary_window'>Patron Summary</span>
802                 <span id='ue_success'>User update succeeded</span>
803         </div>
804
805         </body>
806 </html>
807