tazpanel view help.cgi @ rev 295
installer.cgi: back to a translatable title
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed Apr 25 22:08:53 2012 +0200 (2012-04-25) |
parents | aa12dc99e177 |
children | fdfc6b494539 |
line source
1 #!/bin/sh
2 #
3 # help.cgi - Display TazPanel doc and README.
4 #
5 # Copyright (C) 2011 SliTaz GNU/Linux - BSD License
6 #
8 # Common functions from libtazpanel
9 . lib/libtazpanel
10 get_config
11 header
13 # ENTER will search but user may search for a button, so put one.
14 search_form() {
15 cat << EOT
16 <div class="search">
17 <form method="get" action="$SCRIPT_NAME">
18 <p>
19 <input type="text" name="manual" size="20">
20 <input type="submit" class="radius" value="$(gettext "Manual")">
21 </p>
22 </form>
23 </div>
24 EOT
25 }
27 # Cat translated help content
28 TITLE=$(gettext 'TazPanel - Help \& Doc')
30 xhtml_header
31 search_form
33 if [ "$(GET manual)" ]; then
34 echo '<pre>'
35 man $(GET manual)
36 echo '</pre>'
37 else
38 if [ -d doc ]; then
39 cat doc/tazpanel.html
40 else
41 cat /usr/share/doc/tazpanel/tazpanel.html
42 fi
44 echo '<h3>README</h3>'
45 echo '<pre>'
46 cat $PANEL/README
47 echo '</pre>'
49 fi
51 xhtml_footer
52 exit 0