From: Matteo Nastasi (mop) <nastasi@alternativeoutput.it> Date: Tue, 1 Jan 2013 17:05:45 +0000 (+0100) Subject: add html elements to be able to activate graphical feedback for data streaming status X-Git-Tag: v4.5.0~3 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=d002471a22f3eb88175fcb7397fa3d2668a7d6a3;p=brisk.git add html elements to be able to activate graphical feedback for data streaming status --- diff --git a/web/briskin5/index.php b/web/briskin5/index.php index ca57254..181b9e9 100644 --- a/web/briskin5/index.php +++ b/web/briskin5/index.php @@ -32,8 +32,14 @@ require_once("Obj/briskin5.phh"); $mlang_bin5_index = array( 'aucwin' => array( 'it' => 'Hai vinto l\'asta.<br> Scegli il seme:', 'en' => 'You win the auction.<br> Choose the seed:' ), - 'tit_pref'=>array( 'it' => 'Preferenze.', - 'en' => 'Preferences.'), + 'tit_info' => array( 'it' => 'Info', + 'en' => 'Info'), + 'tit_relo' => array( 'it' => 'Reload', + 'en' => 'Reload'), + 'tit_out' => array( 'it' => 'Fuori', + 'en' => 'Out'), + 'tit_pref' => array( 'it' => 'Prefs', + 'en' => 'Prefs'), 'itm_ringauc' => array('it' => 'riproduci un suono di notifica alla fine dell\' asta', 'en' => 'play a sound at the end of the auction'), 'btn_update' => array('it' => 'Aggiorna.', @@ -247,11 +253,13 @@ window.onload = function() { <div class="table_commands"> <table> <tr> -<td style="text-align: center;"><input type="button" class="button" name="xinfo" value="Info." onclick="act_tableinfo();"></td> -<td style="text-align: center;"><input type="button" class="button" name="xreload" value="Reload." onclick="act_reload();"></td> -<td style="text-align: center;"><input type="button" class="button" name="xout" value="Out." onclick="safelogout();"></td> +<td style="text-align: center;"><input type="button" class="button" name="xinfo" value="<?php echo $mlang_bin5_index['tit_info'][$G_lang]; ?>" onclick="act_tableinfo();"></td> +<td style="text-align: center;"><input type="button" class="button" name="xreload" value="<?php echo $mlang_bin5_index['tit_relo'][$G_lang]; ?>" onclick="act_reload();"></td> +<td style="text-align: center;"><input type="button" class="button" name="xout" value="<?php echo $mlang_bin5_index['tit_out'][$G_lang]; ?>" onclick="safelogout();"></td> </tr><tr> -<td style="text-align: center;" colspan="2"><input type="button" class="button" name="xpref" value="<?php echo $mlang_bin5_index['tit_pref'][$G_lang]; ?>" onclick="preferences_showhide();"></td> +<td style="text-align: center;"><img id="stm_stat" class="nobo" src="img/line-status_cb.png"></td> +<td style="text-align: center;"><input type="button" class="button" name="xpref" value="<?php echo $mlang_bin5_index['tit_pref'][$G_lang]; ?>" onclick="preferences_showhide();"></td> +</td> <td style="text-align: center;"><img id="exitlock" class="button" style="visibility: hidden; border: 0px; display: inline; position: relative;" onclick="act_exitlock();"></td> </tr> </table> diff --git a/web/heartbit.js b/web/heartbit.js index d408775..c1d0180 100644 --- a/web/heartbit.js +++ b/web/heartbit.js @@ -1,4 +1,4 @@ -function heartbit(symb) +function heartbit_old(symb) { if ($("heartbit").innerHTML.length >= 120) { $("heartbit").innerHTML = $("heartbit").innerHTML.substring(10); @@ -9,3 +9,13 @@ function heartbit(symb) } } +function heartbit(s_stat, w_stat) +{ + if (w_stat == "r") { + $("stm_stat").src = "img/line-status_cb.png"; + } + else { + $("stm_stat").src = "img/line-status_o"+s_stat+".png"; + } +} + diff --git a/web/index.php b/web/index.php index 0534005..5604db1 100644 --- a/web/index.php +++ b/web/index.php @@ -20,13 +20,7 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - - -TODO: - - header - - setcookie - - gestire per intero la var globale di output -*/ + */ require_once("Obj/brisk.phh"); require_once("Obj/auth.phh"); @@ -889,7 +883,8 @@ supported by:<br> </div><br><br></div> %s %s -<br></div>'; +<br> +<img id="stm_stat" class="nobo" src="img/line-status_cb.png"></div>'; /* Templates. */ if ($ACTION == 'login') {