tazpanel view utils/template.cgi @ rev 86

pkgs.cgi: add administration buttons
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 13 18:58:27 2011 +0200 (2011-04-13)
parents
children c9bc33ec8b6f
line source
1 #!/bin/sh
2 #
3 # CGI template interface for TazPanel (must go in $PANEL root to work).
4 #
5 echo "Content-Type: text/html"
6 echo ""
8 # Common functions from libtazpanel
9 . lib/libtazpanel
10 get_config
12 # Include gettext helper script.
13 . /usr/bin/gettext.sh
15 # Export package name for gettext.
16 TEXTDOMAIN='tazpanel-template'
17 export TEXTDOMAIN
19 #
20 # Commands
21 #
23 case "$QUERY_STRING" in
24 cmd)
25 echo "" ;;
26 *)
27 #
28 # Default xHTML content
29 #
30 xhtml_header
31 cat << EOT
32 <div id="wrapper">
33 <h2>`gettext "Page title - Template"`</h2>
34 <p>`gettext "Page information"`<p>
35 </div>
37 <h3>`gettext "h3 title"`</h3>
39 <pre>
40 Preformated output
41 </pre>
42 EOT
43 ;;
44 esac
46 xhtml_footer
47 exit 0