BUGS |
------+
+ - manage client answer (ping) on closing ws
+ - manage 'close' prefs when change visibilty
+
+
- /cont and /rules just during 'bidding' phase
DONE - Not sequence of 3 same chars
DONE . check server side with test
if ($ACTION == "room") {
$tables .= '<div class="room_tab">';
$tables .= '<table class="room_tab">';
+
+ $direct = ($user->is_auth() && !$user->is_appr());
for ($ii = 0 ; $ii < TABLES_N ; $ii++) {
- if ($user->is_auth() && !$user->is_appr())
+ if ($direct)
$i = $ii;
else
$i = TABLES_N - $ii - 1;
if ($ii % 4 == 0) {
- $tables .= '<tr id = "tr_noauth'.$ii.'">';
- }
- if (TRUE || !($user->flags & USER_FLAG_ISOLAUTH) || $i < TABLES_APPR_N) {
- $tables .= '<td id = "td_noauth'.$ii.'">';
-
- $tables .= '<div class="room_div"><div class="room_tit"><b>'.$mlang_room['tit_tabl'][$G_lang].$i.'</b></div>';
- $tables .= sprintf('<div class="proxhr" id="table%d"></div>', $i);
- $tables .= sprintf('<div class="table_act" id="table_act%d"></div>', $i);
- $tables .= '</div>';
- $tables .= '</td>'."\n";
+ if ($direct) {
+ $noauth_class = ($i + 3 < TABLES_APPR_N ? "" : "noauth");
+ }
+ else {
+ $noauth_class = ($i < TABLES_APPR_N ? "" : "noauth");
+ }
+ $tables .= sprintf('<tr class="%s">', $noauth_class);
}
+
+ $noauth_class = ($i < TABLES_APPR_N ? "" : "noauth");
+ $tables .= sprintf('<td class="%s">', $noauth_class);
+
+ $tables .= '<div class="room_div"><div class="room_tit"><b>'.$mlang_room['tit_tabl'][$G_lang].$i.'</b></div>';
+ $tables .= sprintf('<div class="proxhr" id="table%d"></div>', $i);
+ $tables .= sprintf('<div class="table_act" id="table_act%d"></div>', $i);
+ $tables .= '</div>';
+ $tables .= '</td>'."\n";
+
if ($ii % 4 == 3) {
$tables .= '</tr>';
}
}
if (relo || !is_update) {
- for (i = g_tables_appr_n ; i < g_tables_n ; i++) {
- if (i % 4 == 0) {
- $('tr_noauth'+i).style.display = (prefs_new.listen == l_list_isol ? 'none' : '');
- }
+ $('tr.noauth').style.display = (prefs_new.listen == l_list_isol ? 'none' : '');
+ $('td.noauth').style.display = (prefs_new.listen == l_list_isol ? 'none' : '');
- $('td_noauth'+i).style.display = (prefs_new.listen == l_list_isol ? 'none' : '');
- }
if (prefs_new.listen == l_list_isol) {
tra.hide_noauth();
}
if (relo || !is_update) {
- for (i = g_tables_appr_n ; i < g_tables_n ; i++) {
-
- if (i % 4 == 0) {
- $('tr_noauth'+i).style.display = (what == 'isolation' ? 'none' : '');
- }
-
- $('td_noauth'+i).style.display = (what == 'isolation' ? 'none' : '');
- }
+ $('tr.noauth').style.display = (what == 'isolation' ? 'none' : '');
+ $('td.noauth').style.display = (what == 'isolation' ? 'none' : '');
+
if (what == 'isolation') {
tra.hide_noauth();
}