tazpanel view help.cgi @ rev 622
hardware.cgi: /dev/mapper/ disks support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 21 16:29:11 2017 +0100 (2017-12-21) |
parents | e4207d6f46b0 |
children |
line source
1 #!/bin/sh
2 #
3 # help.cgi - Display TazPanel doc and README.
4 #
5 # Copyright (C) 2011-2015 SliTaz GNU/Linux - BSD License
6 #
8 # Common functions from libtazpanel
9 . ./lib/libtazpanel
10 get_config
11 header
14 # ENTER will search but user may search for a button, so put one.
16 search_form() {
17 cat <<EOT
18 <form class="search"><!--
19 --><input type="search" name="manual" results="5" autosave="pkgsearch" autocomplete="on"><!--
20 --><button type="submit">$(_ 'Manual')</button><!--
21 --></form>
22 EOT
23 }
26 # Cat translated help content
28 TITLE=$(_ 'Help & Doc')
30 xhtml_header
31 search_form
33 if [ -n "$(GET manual)" ]; then
34 echo "<pre>"
35 man $(GET manual)
36 echo "</pre>"
37 else
38 for i in doc/tazpanel $PANEL/README ; do
39 cat $i.${LANG%_*}.html 2> /dev/null || cat $i.html
40 done
41 fi
43 xhtml_footer
44 exit 0