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