first partial with 'Fieldify' and 'g_prefsf' variable
[brisk.git] / web / index.php
index 5d1a92e..9a1459f 100644 (file)
@@ -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="g_prefsn.show(); menu_over(-1,this);">'
+   onmouseover="menu_hide(0,1);" onclick="g_prefsf.visible(true); menu_over(-1,this);">'
           // MLANG garantisci
    .$mlang_room['tit_prefs'][$G_lang].'</a><br>' : '').'
 
@@ -1039,7 +1039,8 @@ var g_tables_appr_n = <? echo TABLES_APPR_N; ?>;
 var g_tables_auth_n = <? echo TABLES_AUTH_N; ?>;
 var g_tables_cert_n = <? echo TABLES_CERT_N; ?>;
 var g_prefs, g_prefs_new = null;
-var g_prefsn, g_prefsn_old = null;
+var g_prefsn = null, g_prefsn_old = null;
+var g_prefsf = null;
 var g_listen;
 var g_withflash = false;
 var g_is_spawn = 0;
@@ -1208,7 +1209,8 @@ cookie_law(null);
    var g_tables_auth_n = <? echo TABLES_AUTH_N; ?>;
    var g_tables_cert_n = <? echo TABLES_CERT_N; ?>;
    var g_prefs, g_prefs_new = null;
-   var g_prefsn, g_prefsn_old = null;
+   var g_prefsn = null, g_prefsn_old = null;
+   var g_prefsf = null;
    var g_listen;
    var g_is_spawn = 0;
    var g_withflash = false;
@@ -1224,12 +1226,17 @@ cookie_law(null);
    // var nonunload = false;
    var spo_slide, sup_slide;
 
+   function status_cb()
+   {
+       console.log("status_cb");
+   }
+
    window.onload = function() {
      g_brow = get_browser_agent();
 
      g_prefs = new client_prefs(null);
-     g_prefsn = new Prefsn($('prefsn'));
-
+     /* g_prefsn = new Prefsn($('prefsn')); */
+     g_prefsf = new Fieldify(null, null, null, {}, "prefsf", [$("prefsf")], status_cb);
      spo_slide  = new sideslide($('spon_caro'), 80, 20);
      sup_slide  = new sideslide($('supp_caro'), 80, 20);
 
@@ -1596,9 +1603,10 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi
 
 
 
-<!-- PREFSN -->
-<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;">
+
+<!-- PREFSF -->
+<div id="prefsf" class="notify" style="z-index: 200; width: 600px; margin-left: -300px; height: 240px; top: 150px; visibility: hidden;">
+<div id="prefsf_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;">
@@ -1676,14 +1684,11 @@ title="<?php echo $mlang_room['suppcomp_range'][$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="g_prefsn.reset();" value="<?php echo $mlang_room['btn_reset'][$G_lang]; ?>"/>
+<input type="submit" class="input_sub" style="bottom: 4px;" onclick="g_prefsf.visible(false);" value="<?php echo $mlang_room['btn_close'][$G_lang]; ?>"/>
+<input type="submit" class="input_sub" style="bottom: 4px;" onclick="g_prefsf.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 -->
-
-
-
+</div> <!-- end prefsf -->
 
 <script language="JavaScript">
 <!--