/*
+
data = [ [ flags, name ], ... ]
*/
-var l_list_all = 0x00;
-var l_list_auth = 0x01;
-var l_list_isol = 0x02;
-function state_add(flags)
+function state_add(flags, comp)
{
var content = "", supercont = "";
var st, superst, name = "", supername = "", supersfx = "";
switch (superst) {
case 0x20000:
- supername = "superuser"+supersfx+".png";
+ if (comp != null) {
+ supername = "suprend.php?comp="+comp+"&sfx="+supersfx;
+ }
+ else {
+ supername = "img/superuser"+supersfx+".png";
+ }
supertit = (g_lang == 'en' ? "Brisk Supporter" : "Brisk Supporter");
break;
}
}
if (supername != "") {
- content += ' <img title="'+supertit+'" class="inline" src="img/'+supername+'">';
+ content += ' <img title="'+supertit+'" class="inline" src="'+supername+'">';
}
if (name != "") {
}
-
-
-function list_set(what, is_update, info)
-{
- // console.log(what);
- var i;
- var relo = false;
- var old_st = readCookie("CO_list");
-
- if (what == 'auth') {
- $('list_auth').style.color = 'red';
- $('list_isol').style.color = 'black';
- $('list_all').style.color = 'black';
- if (old_st == 'isolation')
- relo = true;
- g_listen = l_list_auth;
- }
- else if (what == 'isolation') {
- $('list_auth').style.color = 'black';
- $('list_isol').style.color = 'red';
- $('list_all').style.color = 'black';
- if (old_st != 'isolation')
- relo = true;
- g_listen = l_list_isol;
- }
- else {
- $('list_auth').style.color = 'black';
- $('list_isol').style.color = 'black';
- $('list_all').style.color = 'red';
- if (old_st == 'isolation')
- relo = true;
- g_listen = l_list_all;
- }
-
- set_checked_value($('ra_listen_auth'), what);
- set_checked_value($('ra_listen_isol'), what);
- set_checked_value($('ra_listen_all'), what);
-
- $('list_info').innerHTML = info;
- if (is_update) {
- createCookie("CO_list", what, 24*365, cookiepath);
- }
-
-
- if (relo || !is_update) {
- for (i = g_tables_auth_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' : '');
- }
- if (what == 'isolation') {
- tra.hide_noauth();
- }
- else {
- tra.show_noauth();
- }
-
- if (false) {
- // ricalculation of standup area
- if (standup_data_old != null) {
- standup_data = standup_data_old;
- standup_data_old = null;
- j_stand_cont(standup_data);
- }
- }
- }
-}
-
function sideslide(domobj, height, step)
{
this.st = 'wait';