LP#1694577 Reports template searching and paging
[Evergreen.git] / Open-ILS / web / reports / oils_rpt.xhtml
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 " ">
7         <!--#include virtual="/opac/locale/${locale}/reports.dtd"-->
8 ]>
9
10 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
11
12         <head>
13                 <title>&reports.oils_rpt.title;</title>
14                 <!--#include virtual="oils_rpt_common.xhtml"-->
15                 <script type="text/javascript">
16                 <![CDATA[
17                         var rptInit = function() {
18                                 if (oilsInitReports()) {
19                                         oilsRtpInitFolders();
20                                 }
21                         }
22                         dojo.addOnLoad(rptInit);
23                         dojo.addOnUnload(oilsCleanupReports);
24                 ]]>
25                 </script>
26         </head>
27
28         <body>
29
30                 <div class='welcome_box'>
31                         <span>&reports.common.logged_in_as;</span><b><span id='oils_rpt_user'></span></b>
32                 </div>
33
34                 <div id='oils_rpt_permission_denied' class='hide_me'>
35                         &reports.oils_rpt.insufficient_permissions;
36                 </div>
37
38                 <!--
39                 <div>
40                         <a class='oils_rpt_main_link' href='javascript:_l("oils_rpt_builder.xhtml");'>Build a New Report Template</a>
41                 </div>
42                 -->
43
44                 <div id='oils_rpt_tree_loading'>
45                         &reports.common.loading;
46                 </div>
47
48         <div id='template_search_form_wrapper' class='hide_me'>
49             <span><label>&reports.oils_rpt_template_search_label;</label></span>
50             <span><input type='text' id='template_search_query' 
51                 placeholder="&reports.oils_rpt_template_search_query;"/></span>
52             <span>
53                 <select id='template_search_fields_selector'>
54                     <option value='' selected='selected'>&reports.oils_rpt_template_search_all_fields;</option>
55                     <option value='name'>&reports.oils_rpt_template_search_name;</option>
56                     <option value='description'>&reports.oils_rpt_template_search_desc;</option>
57                 </select>
58             </span>
59             <span>
60                 <select id='template_search_folder_selector'>
61                     <option value=''>&reports.oils_rpt_template_search_all_folders;</option>
62                 </select>
63             </span>
64             <span>
65                 <button id='template_search_submit_button'>
66                     &reports.oils_rpt_folder_manager.fldr_mngr_actions_submit;
67                 </button>
68             </span>
69         </div>
70
71                 <table id='oils_rpt_folder_table' class='hide_me'>
72                         <tbody>
73                                 <tr>
74                                         <td id='oils_rpt_folder_table_left_td'>
75                                                 <div class='oils_rpt_folder_tree_div'>
76                                                         <div><b>&reports.oils_rpt.my_folders;</b></div>
77                                                         <div id='oils_rpt_template_folder_tree' class='oils_rpt_folder_tree'></div>
78                                                         <div id='oils_rpt_report_folder_tree' class='oils_rpt_folder_tree'></div>
79                                                         <div id='oils_rpt_output_folder_tree' class='oils_rpt_folder_tree'></div>
80                                                 </div>
81                                                 <div class='oils_rpt_folder_tree_div'>
82                                                         <div><b>&reports.oils_rpt.shared_folders;</b></div>
83                                                         <div id='oils_rpt_template_shared_folder_tree' class='oils_rpt_folder_tree'></div>
84                                                         <div id='oils_rpt_report_shared_folder_tree' class='oils_rpt_folder_tree'></div>
85                                                         <div id='oils_rpt_output_shared_folder_tree' class='oils_rpt_folder_tree'></div>
86                                                 </div>
87                                         </td>
88                                         <td/>
89                                         <td id='oils_rpt_folder_table_right_td' class='hide_me'>
90                                                 <div class='oils_rpt_folder_window'>
91
92                                                         <table class='oils_rpt_tab_table hidden-for-search-results' 
93                                     id='oils_rpt_folder_manager_tab_table'><tbody>
94                                                                 <tr>
95                                                                         <td width='50%'>
96                                                                                 <a id='oils_rpt_folder_window_manage_tab' href='javascript:void(0);'>&reports.oils_rpt.manage_folder_contents;</a></td>
97                                                                         <td width='50%'>
98                                                                                 <a id='oils_rpt_folder_window_edit_tab' href='javascript:void(0);'>&reports.oils_rpt.manage_folder;</a></td>
99                                                                 </tr>
100                                                         </tbody></table>
101
102                                                         <table id='oils_rpt_folder_details_table'>
103                                                                 <tbody><tr><td>
104                                     <div id='real_folder_name'>
105                                                                         <span><b id='oils_rpt_folder_name_label'/>: 
106                                                                                 &reports.oils_rpt.created_by;</span> <b id='oils_rpt_folder_creator_label'/>
107                                     </div>
108                                     <div id='search_results_folder_name'>
109                                         <b>&reports.oils_rpt_template_search_results;</b>
110                                     </div>
111                                                         </td></tr></tbody>
112                                                         </table>
113
114                                                         <div>
115                                                                 <!--#include virtual="oils_rpt_folder_window.xhtml"-->
116                                                         </div>
117                                                         <div>
118                                                                 <!--#include virtual="oils_rpt_folder_manager.xhtml"-->
119                                                         </div>
120                                                 </div>
121                                         </td>
122
123                                         <td id='oils_rpt_folder_table_alt_td' class='hide_me' valign='top'>
124                                                 <div class='oils_rpt_folder_window'>
125                                                         <!--#include virtual="oils_rpt_editor.xhtml"-->
126                                                 </div>
127
128                                                 <div id='oils_rpt_top_folder' class='hide_me oils_rpt_folder_window'>
129                                                         <div>
130                                                                 <span><b>&reports.oils_rpt.create_new_sub_folder;</b>. &reports.oils_rpt.folder_type;</span> <b id='oils_rpt_top_folder_type'/>
131                                                         </div>
132                                                         <table class='oils_rpt_generic_table'>
133                                                                 <tbody>
134                                                                         <tr>
135                                                                                 <td>&reports.oils_rpt.folder_name;</td>
136                                                                                 <td><input id='oils_rpt_top_folder_name' type='text'/></td>
137                                                                         </tr>
138                                                                         <tr>
139                                                                                 <td>&reports.oils_rpt.share_folder;</td>
140                                                                                 <td>
141                                                                                         <select id='oils_rpt_top_folder_shared'>
142                                                                                                 <option value='f' selected='selected'>&reports.oils_rpt.do_not_share;</option>
143                                                                                                 <option value='t'>&reports.oils_rpt.share;</option>
144                                                                                         </select>
145                                                                                 </td>
146                                                                         </tr>
147                                                                         <tr>
148                                                                                 <td>&reports.oils_rpt.share_with;</td>
149                                                                                 <td><select id='oils_rpt_top_folder_lib_picker'/></td>
150                                                                         </tr>
151                                                                         <tr><td colspan='2' align='center'>
152                                                                                 <input type='submit' value='&reports.oils_rpt.create_sub_folder;' id='oils_rpt_top_folder_create'/>
153                                                                         </td></tr>
154                                                                 </tbody>
155                                                         </table>
156                                                 </div>
157                                         </td>
158
159                                 </tr>
160                         </tbody>
161                 </table>
162                 
163         </body>
164 </html>
165
166