99be66d50db7ac4e93fe5f243bee47d5281fcb19
[Evergreen.git] / Open-ILS / xul / staff_client / server / admin / stat_cat_editor.xml
1 <?xml version='1.0'?>
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
3
4         <head>
5                 <title>Evergreen: Statistical Category Editor</title>
6                 <script language='javascript' src='/opac/common/js/utils.js'> </script>
7                 <script language='javascript' src='/opac/common/js//config.js'> </script> <script language='javascript' src='/opac/common/js/CGI.js'> </script>
8                 <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
9         
10                 <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
11                 <script language='javascript' src='/opac/common/js/JSON.js'> </script>
12                 <script language='javascript' src='/opac/common/js/fmall.js'> </script>
13                 <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
14                 <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
15                 <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
16                 <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
17                 <script language='javascript' src='/opac/common/js/init.js'> </script>
18                 <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
19                 <script language='javascript' src='stat_cat_editor.js'> </script>
20
21                 <style type='text/css'>
22                         .hide_me { visibility: hidden; display: none }
23                         .has_color { background: #E0F0E0; color: #000000; }
24                         .data_grid { font-weight: 500; border-collapse: collapse;}
25                         .data_grid thead tr { background: #E0F0E0; color: #000000; }
26                         .data_grid thead td { border: 1px solid #808080; padding-right: 5px; padding-left: 5px;}
27                         .data_grid tbody td { border: 1px solid #E0E0E0; padding: 5px; }
28                         .data_grid_center { text-align: center; }
29                         .data_grid_padded tbody td { padding: 10px; }
30                         /*.selector option { width: 10em; }*/
31                         .insert_row { border: 2px solid #A0B0A0; padding: 50px;}
32                         .padded { padding-left: 7px; padding-right: 7px; }
33                         select { width: 12em; }
34                 </style>
35
36         </head>
37
38         <body onload='try{scEditorInit();}catch(e){alert(js2JSON(e));}'>
39
40
41                 <div style='position:absolute; top: 5px; right: 5px;'>
42                         <span>Welcome </span><b><span id='sc_user'/></b>
43                 </div>
44
45                 <center>
46                         <div style='font-weight: bold; font-size: 12pt;'> Statistical Category Editor</div>
47                 </center>
48
49                 <hr/> 
50
51                 <center>
52                         <br/>
53
54                         <table class='data_grid data_grid_center' width='80%'>
55                                 <thead>
56                                         <tr>
57                                                 <td colspan='4'>Create a new statistical category</td>
58                                         </tr>
59                                 </thead>
60                                 <tbody>
61                                         <tr>
62                                                 <td>Enter the name: </td>
63                                                 <td>
64                                                         <input type='text' id='sc_new_name'> </input>
65                                                         <script>$('sc_new_name').focus();</script>
66                                                 </td>
67                                                 <td>Owning Library: </td>
68                                                 <td>
69                                                         <select id='sc_owning_lib_selector'>
70                                                         </select>
71                                                 </td>
72                                         </tr>
73                                         <tr>
74                                                 <td>Opac Visibility: </td>
75                                                 <td>    
76                                                         <span>On</span>
77                                                         <input type='radio' name='opac_visibility' id='sc_make_opac_visible'> </input>
78                                                         <span>Off</span>
79                                                         <input type='radio' name='opac_visibility' checked='checked'> </input>
80                                                 </td>
81                                                 <td>Type: </td>
82                                                 <td>
83                                                         <select id='sc_type_selector'>
84                                                                 <option value='actor'>Patron</option>
85                                                                 <option value='asset'>Copy</option>
86                                                         </select>
87                                                 </td>
88                                         </tr>
89                                         <tr>
90                                                 <td colspan='4'>
91                                                         <input type='submit' value='Create new stat cat' onclick='scNew();' id='sc_new'/>
92                                                 </td>
93                                         </tr>
94                                 </tbody>
95                         </table>
96
97                         <br/>
98                         <hr/>
99                         <br/>
100
101                         <div id='loading' class='has_color'><h2>Loading permissions and stat cats...</h2></div>
102
103                         <table width='98%'>
104                                 <tbody>
105                                         <tr>
106                                                 <td width='20%'> </td>
107                                                 <td id='sc_show_copy' width='30%' class='has_color'
108                                                         align='center'><a href='javascript:scShow("asset");'>Copy Stat Cats</a></td>
109                                                 <td id='sc_show_actor' width='30%' 
110                                                         align='center'><a href='javascript:scShow("actor");'>Patron Stat Cats</a></td>
111                                                 <td width='20%'> </td>
112                                         </tr>
113                                 </tbody>
114                         </table>
115
116
117
118                         <br/>
119                         <div>* To edit or view information about an entry, click on the entry in the drop-down menu</div>
120                         <br/>
121
122                         <!--
123                         <div style='overflow: auto; max-height: 200px;'>
124                         -->
125                                 <table width='95%' class='hide_me data_grid data_grid_center' id='sc_table'>
126                                         <thead>
127                                                 <tr>
128                                                         <td>Stat Cat Name</td>
129                                                         <td>Owning Library</td>
130                                                         <td>OPAC Visiblity</td>
131                                                         <td>Entries</td>
132                                                         <td>Add Entry</td>
133                                                         <td>Edit</td>
134                                                 </tr>
135                                         </thead>
136         
137                                         <tbody id='sc_tbody'>
138                                                 <tr id='sc_tr'>
139                                                         <td><b name='sc_name'> </b></td>
140                                                         <td name='sc_owning_lib'> </td>
141         
142                                                         <td>
143                                                                 <span class='hide_me' name='sc_opac_visible'>On</span> 
144                                                                 <span class='hide_me' name='sc_opac_invisible'>Off</span> 
145                                                         </td>
146         
147                                                         <td><select class='selector' name='sc_entries_selector'><option>(none)</option></select></td>
148                                                         <td><a href='javascript:void(0);' name='sc_new_entry'>Add</a></td>
149                                                         <td><a href='javascript:void(0);' name='sc_edit'>Edit</a></td>
150                                                 </tr>
151                                         </tbody>
152                                 </table>
153                         <!--
154                         </div>
155                         -->
156         
157                 
158
159                         
160                 </center>
161
162
163                 <!-- Text spans  / template +++++++++++++++++++++++++++++++++++++  -->
164                 <span class='hide_me' id='sc_new_entry_text'>Enter the value for the new stat cat entry</span>
165
166                 <span class='hide_me' id='sc_delete_confirm'>
167                         This will delete the selected stat cat and all attached entries
168                         Are you sure you wish to continue?
169                 </span>
170
171                 <span class='hide_me' id='sc_entry_delete_confirm'>
172                         Are you sure you wish to remove this stat cat entry?
173                 </span>
174
175                 <table class='hide_me'>
176                         <tr class='insert_row' id='sc_edit_row'>
177                                 <td><input name='sc_edit_name'> </input></td>
178                                 <td>
179                                         <span class='hide_me' name='sc_edit_show_owning_lib'> </span>
180                                         <select class='hide_me' name='sc_edit_owning_lib'> </select>
181                                 </td>
182
183                                 <td>
184                                         <span>On</span>
185                                         <span name='sc_edit_opac_vis'>
186                                                 <input type='radio' name='sc_edit_opac_visibility'> </input>
187                                         </span>
188                                         <span>Off</span>
189                                         <span name='sc_edit_opac_invis'>
190                                                 <input type='radio' name='sc_edit_opac_visibility'> </input>
191                                         </span>
192                                 </td>
193                                 <td colspan='4'>
194                                         <span class='padded'>
195                                                 <input  type='submit' value='Update Stat Cat' name='sc_edit_submit'/>
196                                         </span>
197                                         <span class='padded'>
198                                                 <input  type='submit' value='Delete Stat Cat' name='sc_edit_delete'/>
199                                         </span>
200                                         <input type='submit' name='sc_edit_cancel' value='Cancel'/>
201                                 </td>
202                         </tr>
203
204                         <tr class='insert_row' id='sc_edit_entry_row'>
205                                 <td colspan='7'>
206                                         <span class='padded'>
207                                                 <span>Owned By </span><b name='sc_edit_entry_owner'/>
208                                         </span>
209                                         <span class='padded'>
210                                                 <input type='text' name='sc_edit_entry_name' class='padded'/>
211                                         </span>
212                                         <span class='padded'>
213                                                 <input type='submit' name='sc_edit_entry_name_submit' value='Update Entry Value' class='padded'/>
214                                         </span>
215                                         <span class='padded'>
216                                                 <input type='submit' name='sc_edit_entry_delete' value='Delete Entry' class='padded'/>
217                                         </span>
218                                         <span class='padded'>
219                                                 <input type='submit' name='sc_edit_entry_cancel' value='Cancel'/>
220                                         </span>
221                                 </td>
222                         </tr>
223
224                         <tr class='insert_row' id='sc_new_entry_row'>
225                                 <td colspan='7'> 
226                                         <span>Enter the value of the new entry: </span>
227                                         <span class='padded'>
228                                                 <input type='text' name='sc_new_entry_name'/>
229                                         </span>
230                                         <span class='padded'>
231                                                 <select name='sc_new_entry_lib'> </select>
232                                         </span>
233                                         <span class='padded'>
234                                                 <input type='submit' name='sc_new_entry_create' value='Create new entry'/>
235                                         </span>
236                                         <span class='padded'>
237                                                 <input type='submit' name='sc_new_entry_cancel' value='Cancel'/>
238                                         </span>
239                                 </td>
240                         </tr>
241                 </table>
242
243         </body>
244 </html>
245