From 30d411c5782453456a5818f04fad113305300443 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 10 Dec 2012 16:57:41 -0800 Subject: Bug 786777: add facility for direct read-only database access --- .../en/default/pages/query_database.html.tmpl | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 extensions/BMO/template/en/default/pages/query_database.html.tmpl (limited to 'extensions/BMO/template/en/default') diff --git a/extensions/BMO/template/en/default/pages/query_database.html.tmpl b/extensions/BMO/template/en/default/pages/query_database.html.tmpl new file mode 100644 index 000000000..97f5c0a25 --- /dev/null +++ b/extensions/BMO/template/en/default/pages/query_database.html.tmpl @@ -0,0 +1,47 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% INCLUDE global/header.html.tmpl + title = "Query Database" + style_urls = [ "extensions/BMO/web/styles/reports.css" ] +%] + +
+ +
+ +
+ +[% IF executed %] +
+ + [% IF sql_error %] + [% sql_error FILTER html %] + [% ELSIF rows.size %] + + + [% FOREACH column = columns %] + + [% END %] + + [% FOREACH row = rows %] + [% tr_class = loop.count % 2 ? 'report_row_even' : 'report_row_odd' %] + + [% FOREACH field = row %] + + [% END %] + + [% END %] +
[% column FILTER html %]
[% field FILTER html %]
+ [% ELSE %] + no results + [% END %] + +[% END %] + +[% INCLUDE global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b