X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=373a7213fd70211993f93cfa8f5c8fa68d829ce2;hb=4e8dece98633187fad214fb847a189a3f460e4af;hp=0ed96ea5c7e46dfc95590aaab78e66da49901072;hpb=fc9da8c324934f916209035ae09ec53260d7e6f7;p=brisk.git diff --git a/web/index.php b/web/index.php index 0ed96ea..373a721 100644 --- a/web/index.php +++ b/web/index.php @@ -524,24 +524,33 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f if ($ACTION == "room") { $tables .= '
'; $tables .= ''; + + $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 .= ''; - } - if (TRUE || !($user->flags & USER_FLAG_ISOLAUTH) || $i < TABLES_APPR_N) { - $tables .= ''."\n"; + if ($direct) { + $noauth_class = ($i + 3 < TABLES_APPR_N ? "" : "noauth"); + } + else { + $noauth_class = ($i < TABLES_APPR_N ? "" : "noauth"); + } + $tables .= sprintf('', $noauth_class); } + + $noauth_class = ($i < TABLES_APPR_N ? "" : "noauth"); + $tables .= sprintf(''."\n"; + if ($ii % 4 == 3) { $tables .= ''; } @@ -1020,6 +1029,7 @@ supported by:
Brisk + @@ -1039,6 +1049,8 @@ supported by:
'; - - $tables .= '
'.$mlang_room['tit_tabl'][$G_lang].$i.'
'; - $tables .= sprintf('
', $i); - $tables .= sprintf('
', $i); - $tables .= '
'; - $tables .= '
', $noauth_class); + + $tables .= '
'.$mlang_room['tit_tabl'][$G_lang].$i.'
'; + $tables .= sprintf('
', $i); + $tables .= sprintf('
', $i); + $tables .= '
'; + $tables .= '