tazpanel annotate utils/template.cgi @ rev 427

tazpanel.js: remove debug code.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Mar 30 11:49:48 2015 +0300 (2015-03-30)
parents c9bc33ec8b6f
children
rev   line source
pankso@21 1 #!/bin/sh
pankso@21 2 #
pankso@114 3 # CGI template interface for TazPanel.
pankso@21 4 #
pankso@21 5
pankso@21 6 # Common functions from libtazpanel
pankso@21 7 . lib/libtazpanel
pankso@114 8 header
pankso@21 9 get_config
pankso@21 10
pankso@21 11 #
pankso@21 12 # Commands
pankso@21 13 #
pankso@21 14
pankso@114 15 case " $(GET) " in
pankso@114 16 *\ cmd\ *)
pankso@21 17 echo "" ;;
pankso@21 18 *)
pankso@21 19 #
pankso@21 20 # Default xHTML content
pankso@21 21 #
pankso@21 22 xhtml_header
pankso@21 23 cat << EOT
pankso@21 24 <div id="wrapper">
pankso@114 25 <h2>$(gettext "Page title - Template")</h2>
pankso@114 26 <p>$(gettext "Page information")<p>
pankso@21 27 </div>
pankso@21 28
domcox@201 29 <h3>$(gettext "h3 title")</h3>
pankso@21 30
pankso@21 31 <pre>
pankso@21 32 Preformated output
pankso@21 33 </pre>
pankso@21 34 EOT
pankso@21 35 ;;
pankso@21 36 esac
pankso@21 37
pankso@21 38 xhtml_footer
pankso@21 39 exit 0