tazpanel view help.cgi @ rev 501

*.cgi: Implement TazPanel title and sub-title; hardware.cgi: fix and improve modules search; index.cgi: complex code using awk was prevented 'make pot' to collect all messages, fix terminal history removing; tazpanel.js: disable buttons when no packages selected (pkgs.cgi: up / search / category lists); network.cgi: complex comment was prevented 'make pot' to collect all messages; powersaving.cgi: starting development; *.po: rebuild; tazpanel.ttf: add messages icons, so remove all the style/png images and change libtazpanel; *.css: title and sub-title, messages icons; test.cgi: add new icons.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 08 04:32:19 2015 +0300 (2015-06-08)
parents 169f1ccfb613
children e4207d6f46b0
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 &amp; 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 cat doc/tazpanel.html
39 cat $PANEL/README.html
40 fi
42 xhtml_footer
43 exit 0