From: Bernhard Tittelbach Date: Thu, 5 Aug 2010 18:01:15 +0000 (+0000) Subject: ajax version X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=5f37c9ae4672a2eac20127b8b24fbd96695cf5ec;p=svn42.git ajax version --- diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index 1565c53..58147d9 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -10,6 +10,10 @@ for QUERY in `echo $QUERY_STRING | tr '&' ' '`; do POWER='?' elif [ "$POWER" == "?" ]; then POWER=$VALUE + elif [ "$VALUE" == "ajax" ]; then + AJAX='?' + elif [ "$AJAX" == "?" ]; then + AJAX=$VALUE fi i=$i+1 done @@ -76,6 +80,15 @@ echo "" echo "" echo "" echo "Realraum rf433ctl" +echo '' echo "" echo "" #echo "

Realraum rf433ctl

" @@ -83,6 +96,8 @@ echo "
" for DISPID in $VALID_ONOFF_IDS; do NAME="$(eval echo \$DESC_$DISPID)" [ -z "$NAME" ] && NAME=$DISPID + if [ -z "$AJAX" ]; then + echo "
" echo "" echo "
$NAME
" @@ -90,18 +105,37 @@ for DISPID in $VALID_ONOFF_IDS; do echo " " echo "
" echo "
" + + else + + echo "
$NAME
" + echo " " + echo " " + echo "
" + + fi done echo "
" echo "
" for DISPID in $VALID_SEND_IDS; do NAME="$(eval echo \$DESC_$DISPID)" [ -z "$NAME" ] && NAME=$DISPID + if [ -z "$AJAX" ]; then + echo "
" echo "" echo "
$NAME
" echo " " echo "
" echo "
" + + else + + echo "
$NAME
" + echo " " + echo "
" + + fi done echo "
" echo ""