tazpanel annotate help.cgi @ rev 446

Default user is nobody
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 09 20:37:35 2015 +0200 (2015-04-09)
parents 299f204b8f1f
children 3117717c007d
rev   line source
pankso@112 1 #!/bin/sh
pankso@112 2 #
pankso@112 3 # help.cgi - Display TazPanel doc and README.
pankso@112 4 #
al@419 5 # Copyright (C) 2011-2015 SliTaz GNU/Linux - BSD License
pankso@112 6 #
pankso@112 7
pankso@112 8 # Common functions from libtazpanel
pankso@112 9 . lib/libtazpanel
pankso@112 10 get_config
pascal@200 11 header
pascal@200 12
al@419 13
pascal@200 14 # ENTER will search but user may search for a button, so put one.
al@419 15
pascal@200 16 search_form() {
al@419 17 cat <<EOT
al@419 18 <form class="search"><!--
al@419 19 --><input type="search" name="manual" results="5" autosave="pkgsearch" autocomplete="on"><!--
al@443 20 --><button type="submit">$(_ 'Manual')</button><!--
al@419 21 --></form>
pascal@200 22 EOT
pascal@200 23 }
pankso@112 24
al@419 25
pankso@112 26 # Cat translated help content
al@419 27
al@443 28 TITLE=$(_ 'TazPanel - Help &amp; Doc')
pankso@112 29
pankso@112 30 xhtml_header
pascal@200 31 search_form
pankso@112 32
al@419 33 if [ -n "$(GET manual)" ]; then
al@419 34 echo "<pre>"
pascal@200 35 man $(GET manual)
al@419 36 echo "</pre>"
pankso@112 37 else
al@419 38 cat doc/tazpanel.html
al@303 39 cat $PANEL/README.html
pankso@112 40 fi
pankso@112 41
pankso@112 42 xhtml_footer
pankso@112 43 exit 0