+ if [ -z "$AJAX" ]; then
+
+ echo "<form action=\"/cgi-bin/switch.cgi\">"
+ echo "<input type=\"hidden\" name=\"id\" value=\"$DISPID\" />"
+ echo "<div class=\"switchbox\"><div class=\"switchnameleft\">$NAME</div><span class=\"alignbuttonsright\">"
+ echo " <input class=\"onbutton\" type='submit' name='power' value='on' />"
+ echo " <input class=\"offbutton\" type='submit' name='power' value='off' />"
+ echo "</span>"
+ echo "</div>"
+ echo "</form>"
+
+ else
+
+ echo "<div class=\"switchbox\">"
+ echo "<span class=\"alignbuttonsleft\">"
+ echo " <button class=\"onbutton\" onClick='sendButton(\"on\",\"$DISPID\");'>On</button>"
+ echo " <button class=\"offbutton\" onClick='sendButton(\"off\",\"$DISPID\");'>Off</button>"
+ echo "</span>"
+ echo "<div class=\"switchnameright\">$NAME</div>"
+ echo "</div>"
+
+ fi
+ if [ "$MOBILE" == "1" ]; then
+ echo "<br/>"
+ fi
+done
+echo "</div>"
+if [ "$MOBILE" != "1" ]; then
+echo "<div style=\"float:left; border:1px solid black; margin-top:5px;\">"
+
+ if [ -z "$AJAX" ]; then
+
+ echo "<div class=\"switchbox\"><div class=\"switchnameleft\">Receiver Power</div><span class=\"alignbuttonsright\">"
+ echo "<form action=\"/cgi-bin/switch.cgi\"><input type=\"hidden\" name=\"id\" value=\"ymhpower\" /><input class=\"sendbutton\" type='submit' name='power' value='tgl' /></form>"
+ echo "<form action=\"/cgi-bin/switch.cgi\"><input type=\"hidden\" name=\"id\" value=\"ymhpower\" /><input class=\"offbutton\" type='submit' name='power' value='off' /></form>"
+ echo "</span></div>"
+
+ echo "<div class=\"switchbox\"><div class=\"switchnameleft\">Receiver Volume</div><span class=\"alignbuttonsright\">"
+ echo "<form action=\"/cgi-bin/switch.cgi\"><input type=\"hidden\" name=\"id\" value=\"ymhvolup\" /><input class=\"sendbutton\" type='submit' name='power' value='↑' /></form>"
+ echo "<form action=\"/cgi-bin/switch.cgi\"><input type=\"hidden\" name=\"id\" value=\"ymhvoldown\" /><input class=\"sendbutton\" type='submit' name='power' value='↓' /></form>"
+ echo "</span></div>"
+
+ else
+
+ echo "<div class=\"switchbox\">"
+ echo "<span class=\"alignbuttonsleft\">"
+ echo " <button class=\"sendbutton\" onClick='sendButton(\"on\",\"ymhpower\");'>Tgl</button>"
+ echo " <button class=\"offbutton\" onClick='sendButton(\"on\",\"ymhpoweroff\");'>Off</button>"
+ echo "</span>"
+ echo "<div class=\"switchnameright\">Receiver Power</div>"
+ echo "</div>"
+
+ echo "<div class=\"switchbox\">"
+ echo "<span class=\"alignbuttonsleft\">"
+ echo " <button class=\"sendbutton\" onClick='sendButton(\"on\",\"ymhvolup\");'>↑</button>"
+ echo " <button class=\"sendbutton\" onClick='sendButton(\"on\",\"ymhvoldown\");'>↓</button>"
+ echo "</span>"
+ echo "<div class=\"switchnameright\">Receiver Volume</div>"
+ echo "</div>"
+
+ fi
+
+for DISPID in $VALID_SEND_IDS; do
+ NAME="$(eval echo \$DESC_$DISPID)"
+ [ -z "$NAME" ] && NAME=$DISPID
+ if [ -z "$AJAX" ]; then
+