From: Matteo Nastasi (mop) <nastasi@alternativeoutput.it> Date: Wed, 10 Feb 2016 06:20:41 +0000 (+0100) Subject: add new preferences form X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=18c2f8c04345fdb34fc68f308225475c92afbbef;p=brisk.git add new preferences form --- diff --git a/web/index.php b/web/index.php index d641a6f..14b7961 100644 --- a/web/index.php +++ b/web/index.php @@ -956,7 +956,7 @@ google_color_url = "000000"; <a href="#" title="' // MLANG garantisci per un tuo conoscente .$mlang_room['prefs_desc'][$G_lang].'" - onmouseover="menu_hide(0,1);" onclick="$(\'preferences\').style.visibility = \'visible\'; menu_over(-1,this);">' + onmouseover="menu_hide(0,1);" onclick="$(\'prefsn\').style.visibility = \'visible\'; menu_over(-1,this);">' // MLANG garantisci .$mlang_room['tit_prefs'][$G_lang].'</a><br>' : '').' @@ -1594,7 +1594,118 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi <input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_reset();" value="<?php echo $mlang_room['btn_reset'][$G_lang]; ?>"/> <input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_save();" value="<?php echo $mlang_room['btn_save'][$G_lang]; ?>"/> </div> +</div> <!-- end preferences --> + + + + +<div id="prefsn" class="notify" style="z-index: 200; width: 600px; margin-left: -300px; height: 240px; top: 150px; visibility: hidden;"> +<div id="prefsn_child" style="background-color: text-align: left; border-bottom: 1px solid gray; overflow: auto; height: 370px;"> + <h4 style="text-align: left;"><?php echo $mlang_room['tit_prefs'][$G_lang]; ?></h4> +<table style="text-align: center; margin: auto; border-collapse: collapse;"><tr><td style="vertical-align: top;"> +<tr><td style="vertical-align: top; border: 1px solid black; border-width: 1px 0px 1px 0px;"> +<!--# + # LISTEN + #--> +<table><tr><td> + <span style="font-weight: bold;"><?php echo $mlang_room['itm_list'][$G_lang];?>:</span> +</td></tr> +<tr><td><input style="vertical-align: bottom;" id="ra_listen_all" type="radio" name="listen" value="0" onclick="prefs_update('listen');" title="' +<?php echo $mlang_room['listall_desc'][$G_lang];?> +'"><span id="list_all"> +<?php echo $mlang_room['tit_listall'][$G_lang];?> +</span></td></tr> +<tr><td><input style="vertical-align: bottom;" id="ra_listen_auth" type="radio" name="listen" value="1" onclick="prefs_update('listen');" title="' +<?php echo $mlang_room['listaut_desc'][$G_lang];?> +'"><span id="list_auth"> +<?php echo $mlang_room['tit_listaut'][$G_lang];?> +</span></td></tr> +<tr><td><input style="vertical-align: bottom;" id="ra_listen_isol" type="radio" name="listen" value="2" onclick="prefs_update('listen');" title="' +<?php echo $mlang_room['listisol_desc'][$G_lang];?> +'"><span id="list_isol"> +<?php echo $mlang_room['tit_listisol'][$G_lang];?> +</span></td></tr> +</table> +</td> +<?php + if ($user->is_supp_custom()) { +?> +<td style="vertical-align: top; border: 1px solid black; border-width: 1px 0px 1px 1px;""> +<!--# + # SUPPORTER ONLY + #--> +<table> +<tr><td colspan="4"> +<span style="font-weight: bold;"><?php echo $mlang_room['suppcomp_tit'][$G_lang];?>: +</span></td></tr> +<tr> +<td style="border: 0px solid black; border-width: 0px 0px 1px 0px;"><span style="font-weight: bold;"> +<?php echo $mlang_room['suppcomp_fg'][$G_lang];?>:</span> +</td><td style="border: 0px solid black; border-width: 0px 0px 1px 0px;"><input style="width: 3em;" id="s_fg_r" type="text" maxlength="3" size="3" name="s_fg_r" + onchange="prefs_update('supp');" value="255" + title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'"> + <span id="list_all"><?php echo $mlang_room['suppcomp_r'][$G_lang];?></span></td> +<td style="border: 0px solid black; border-width: 0px 0px 1px 0px;"><input style="width: 3em;" id="s_fg_g" type="text" maxlength="3" size="3" name="s_fg_g" + onchange="prefs_update('supp');" value="255" + title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'"> + <span id="list_all"><?php echo $mlang_room['suppcomp_g'][$G_lang];?></span></td> +<td style="border: 0px solid black; border-width: 0px 0px 1px 0px;"><input style="width: 3em;" id="s_fg_b" type="text" maxlength="3" size="3" name="s_fg_b" + onchange="prefs_update('supp');" value="255" + title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'"> + <span id="list_all"><?php echo $mlang_room['suppcomp_b'][$G_lang];?></span></td> +</tr> +<tr> +<td><span style="font-weight: bold;"> +<?php echo $mlang_room['suppcomp_bg'][$G_lang];?>:</span> +</td> +<td><input style="width: 3em;" id="s_bg_r" type="text" maxlength="3" size="3" name="s_bg_r" + onchange="prefs_update('supp');" value="255" + title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'"> + <span id="list_all"><?php echo $mlang_room['suppcomp_r'][$G_lang];?></span></td> +<td><input style="width: 3em;" id="s_bg_g" type="text" maxlength="3" size="3" name="s_bg_g" + onchange="prefs_update('supp');" value="255" + title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'"> + <span id="list_all"><?php echo $mlang_room['suppcomp_g'][$G_lang];?></span></td> +<td><input style="width: 3em;" id="s_bg_b" type="text" maxlength="3" size="3" name="s_bg_b" + onchange="prefs_update('supp');" value="255" + title="'<?php echo $mlang_room['suppcomp_range'][$G_lang];?>'"> + <span id="list_all"><?php echo $mlang_room['suppcomp_b'][$G_lang];?></span></td> +</tr> +<tr><td colspan="4" style="text-align: center;"> +<img id="s_img" class="nobo" src="img/noimg.png"> +</td></tr> +</table> +</td></tr></table> +<?php + } + else { +?> +</tr></table> +<input id="s_fg_r" type="hidden" name="s_fg_r"> +<input id="s_fg_g" type="hidden" name="s_fg_g"> +<input id="s_fg_b" type="hidden" name="s_fg_b"> +<input id="s_bg_r" type="hidden" name="s_bg_r"> +<input id="s_bg_g" type="hidden" name="s_bg_g"> +<input id="s_bg_b" type="hidden" name="s_bg_b"> +<input id="s_img" type="hidden" name="s_bg_b"> +<?php + } +?> +<div style="width: 95%; /* background-color: red; */ margin: auto; text-align: left;"> +<br><br> +<!-- <input type="checkbox" name="pref_ring_endauct" id="pref_ring_endauct" onclick="pref_ring_endauct_set(this);"><?php /* echo $mlang_room['itm_ringauc'][$G_lang]; */ ?> --> +</div> </div> +<div class="notify_clo"> +<input type="submit" class="input_sub" style="bottom: 4px;" onclick="$('prefsn').style.visibility = 'hidden';" value="<?php echo $mlang_room['btn_close'][$G_lang]; ?>"/> +<input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_reset();" value="<?php echo $mlang_room['btn_reset'][$G_lang]; ?>"/> +<input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_save();" value="<?php echo $mlang_room['btn_save'][$G_lang]; ?>"/> +</div> +</div> <!-- end prefsn --> + + + + <script language="JavaScript"> <!-- cookie_law(null); diff --git a/web/room.css b/web/room.css index 54b188b..9a9ec47 100644 --- a/web/room.css +++ b/web/room.css @@ -646,3 +646,7 @@ color: red; .ffy_normal { color: black; } + +#prefsn > div > table > tbody > tr > td { + padding: 8px 16px 8px 16px; +} \ No newline at end of file