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