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