tazpanel annotate utils/template.cgi @ rev 169
Update Makefile for release
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 26 14:46:20 2011 +0200 (2011-04-26) |
parents | 8837cdc7c1c5 |
children | 4a32da860faf |
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 |
pankso@114 | 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 |