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