moved qdb here because matt is lazy
[public/www-new.git] / pub / qdb / src / templates / default / administration.html
1 <TMPL_INCLUDE NAME="_head.html">\r
2         <script type="text/javascript" src="<TMPL_VAR NAME="RESOURCES_URL">/js/tabbed_pane.js"></script>\r
3         <h2>\r
4                 <TMPL_VAR NAME="PAGE_TITLE">\r
5         </h2>\r
6         <TMPL_IF NAME="UPDATE_CHECK_FAILED">\r
7                 <div id="update-information">\r
8                         <p><TMPL_VAR NAME="UPDATE_CHECK_FAILED_TEXT"></p>\r
9                         <blockquote><TMPL_VAR NAME="UPDATE_CHECK_ERROR_MESSAGE"></blockquote>\r
10                 </div>\r
11         <TMPL_ELSE>\r
12                 <TMPL_IF NAME="UPDATE_AVAILABLE">\r
13                         <div id="update-information">\r
14                                 <a href="<TMPL_VAR NAME="UPDATE_URL">"><TMPL_VAR NAME="UPDATE_AVAILABLE_TEXT">\r
15                                 <TMPL_VAR NAME="UPDATE_LINK_TEXT"></a>\r
16                         </div>\r
17                 </TMPL_IF>\r
18         </TMPL_IF>\r
19         <ul id="admin-navigation" class="tabbed-pane-header"><li><TMPL_IF NAME="APPROVE_QUOTES_ALLOWED"><a\r
20                 href="#approve-quotes" id="tab-approve-quotes"><TMPL_VAR NAME="APPROVE_QUOTES"></a></li></TMPL_IF><TMPL_IF NAME="FLAGGED_QUOTES_ALLOWED"><li><a\r
21                 href="#flagged-quotes" id="tab-flagged-quotes"><TMPL_VAR NAME="FLAGGED_QUOTES"></a></li></TMPL_IF><TMPL_IF NAME="MANAGE_QUOTES_ALLOWED"><li><a\r
22                 href="#manage-quotes" id="tab-manage-quotes"><TMPL_VAR NAME="MANAGE_QUOTES"></a></li></TMPL_IF><TMPL_IF NAME="MANAGE_NEWS_ALLOWED"><li><a\r
23                 href="#manage-news" id="tab-manage-news"><TMPL_VAR NAME="MANAGE_NEWS"></a></li></TMPL_IF><TMPL_IF NAME="VIEW_EVENT_LOG_ALLOWED"><li><a\r
24                 href="#view_event_log" id="tab-view-event-log"><TMPL_VAR NAME="VIEW_EVENT_LOG"></a></li></TMPL_IF><TMPL_IF NAME="MANAGE_ACCOUNTS_ALLOWED"><li><a\r
25                 href="#manage_accounts" id="tab-manage-accounts"><TMPL_VAR NAME="MANAGE_ACCOUNTS"></a></li></TMPL_IF><li><a\r
26                 href="#change-password" id="tab-change-password"><TMPL_VAR NAME="CHANGE_PASSWORD"></a></li></ul>\r
27         <ul id="admin-contents" class="tabbed-pane-contents"><TMPL_IF NAME="APPROVE_QUOTES_ALLOWED">\r
28                 <li id="approve-quotes">\r
29                         <h3 class="tab-title"><TMPL_VAR NAME="APPROVE_QUOTES"></h3>\r
30                         <TMPL_VAR NAME="APPROVE_QUOTES_HTML">\r
31                 </li></TMPL_IF><TMPL_IF NAME="FLAGGED_QUOTES_ALLOWED"><li id="flagged-quotes">\r
32                         <h3 class="tab-title"><TMPL_VAR NAME="FLAGGED_QUOTES"></h3>\r
33                         <TMPL_VAR NAME="FLAGGED_QUOTES_HTML">\r
34                 </li></TMPL_IF><TMPL_IF NAME="MANAGE_QUOTES_ALLOWED"><li id="manage-quotes">\r
35                         <h3 class="tab-title"><TMPL_VAR NAME="MANAGE_QUOTES"></h3>\r
36                         <TMPL_VAR NAME="MANAGE_QUOTES_HTML">\r
37                 </li></TMPL_IF><TMPL_IF NAME="MANAGE_NEWS_ALLOWED"><li id="manage-news">\r
38                         <h3 class="tab-title"><TMPL_VAR NAME="MANAGE_NEWS"></h3>\r
39                         <TMPL_VAR NAME="MANAGE_NEWS_HTML">\r
40                 </li></TMPL_IF><TMPL_IF NAME="VIEW_EVENT_LOG_ALLOWED"><li id="view-event-log">\r
41                         <h3 class="tab-title"><TMPL_VAR NAME="VIEW_EVENT_LOG"></h3>\r
42                         <TMPL_VAR NAME="VIEW_EVENT_LOG_HTML">\r
43                 </li></TMPL_IF><TMPL_IF NAME="MANAGE_ACCOUNTS_ALLOWED"><li id="manage-accounts">\r
44                         <h3 class="tab-title"><TMPL_VAR NAME="MANAGE_ACCOUNTS"></h3>\r
45                         <TMPL_VAR NAME="MANAGE_ACCOUNTS_HTML">\r
46                 </li></TMPL_IF><li id="change-password">\r
47                         <h3 class="tab-title"><TMPL_VAR NAME="CHANGE_PASSWORD"></h3>\r
48                         <TMPL_VAR NAME="CHANGE_PASSWORD_HTML">\r
49                 </li></ul>\r
50         <script type="text/javascript">initializeTabbedPane('admin'\r
51                 <TMPL_IF NAME="ACTION_IS_QUOTE_FLAGS"   >, document.getElementById('tab-flagged-quotes')</TMPL_IF>\r
52                 <TMPL_IF NAME="ACTION_IS_QUOTE_EDIT"    >, document.getElementById('tab-manage-quotes')</TMPL_IF>\r
53                 <TMPL_IF NAME="ACTION_IS_QUOTE_REMOVE"  >, document.getElementById('tab-manage-quotes')</TMPL_IF>\r
54                 <TMPL_IF NAME="ACTION_IS_NEWS_ADD"      >, document.getElementById('tab-manage-news')</TMPL_IF>\r
55                 <TMPL_IF NAME="ACTION_IS_NEWS_EDIT"     >, document.getElementById('tab-manage-news')</TMPL_IF>\r
56                 <TMPL_IF NAME="ACTION_IS_NEWS_REMOVE"   >, document.getElementById('tab-manage-news')</TMPL_IF>\r
57                 <TMPL_IF NAME="ACTION_IS_LOG"           >, document.getElementById('tab-view-event-log')</TMPL_IF>\r
58                 <TMPL_IF NAME="ACTION_IS_ACCOUNTS"      >, document.getElementById('tab-manage-accounts')</TMPL_IF>\r
59                 <TMPL_IF NAME="ACTION_IS_PASSWORD"      >, document.getElementById('tab-change-password')</TMPL_IF>\r
60         );</script>\r
61 <TMPL_INCLUDE NAME="_foot.html">