Roxen.git / server / config_interface / dbs / db_matrix.pike

version» Context lines:

Roxen.git/server/config_interface/dbs/db_matrix.pike:78:    mapping(string:string) rres = ([]);    foreach( DBManager.list_groups(), string g )    rres[g]="";       foreach( sort(indices(q)), string db )    {    string db_group = DBManager.db_group(db);       string res =    "<tr><td class='db'>" + -  (view_mode ? "" : "<a href='browser.pike?db="+db+"'>") + +  (view_mode ? "" : "<a href='browser.pike?db="+db+"&amp;&usr.set-wiz-id;'>") +    "<cimg style='vertical-align: -2px' border='0' format='gif'"    " src='&usr.database-small;' alt='' max-height='12'/> " +    db +    (view_mode ? "" : "</a>") +    "</td>";       mapping(string:int) p = q[db];    foreach( conf_cols, string conf )    {   #define PERM(P,T,L) \    ((view_mode ? "" : \    "<a href='?set_"+L+"="+ \ -  Roxen.http_encode_url(conf)+"&db="+Roxen.http_encode_url(db)+"'>") \ +  Roxen.http_encode_url(conf)+"&amp;db="+Roxen.http_encode_url(db)+\ +  "&amp;&usr.set-wiz-id;'>") \    + (p[conf] == DBManager.P ? T : "&#x2013;") \    + (view_mode?"":"</a>"))    res += "<td>" +    PERM(NONE,_(431,"N"),"none") + " " +    PERM(READ,_(432,"R"),"read") + " " +    PERM(WRITE,_(433,"W"),"write") + "</td>";    }       rres[db_group] += res + "</tr>\n";    }
Roxen.git/server/config_interface/dbs/db_matrix.pike:114:    foreach( indices(rres), string c )    if( c != "internal" )    cats += ({ ({DBManager.get_group(c)->lname, c}) });    else    cats = ({ ({DBManager.get_group(c)->lname, c}) }) + cats;       if (sizeof (cats)) {    res += "<thead>\n"    "<tr class='group-hdr'><th><br/>"    "<a style='font-size: larger'" -  " href='edit_group.pike?group=" + cats[0][1] + "'>" + +  " href='edit_group.pike?group=" + cats[0][1] + "&amp;&usr.set-wiz-id;'>" +    cats[0][0] + "</a></th>";    foreach( conf_cols, string conf )    {    res += "<th class='conf'>"    "<gtext href='/sites/site.html/" + conf + "/' "    "scale='0.35' fgcolor='black' bgcolor='&usr.matrix12;' rotate='90'>" +    get_conf_name(conf) + "</gtext>"    "</th>";    }    res += "</tr>\n</thead>\n" +    "<tbody>\n" + rres[ cats[0][1] ] + "</tbody>\n";       foreach( sort(cats[1..]), array q )    {    res += "<tbody>\n"    "<tr class='group-hdr'><th><br/>"    "<a style='font-size: larger'" -  " href='edit_group.pike?group=" + q[1] + "'>" + q[0] + "</a></th>" + +  " href='edit_group.pike?group=" + q[1] + "&amp;&usr.set-wiz-id;'>" + +  q[0] + "</a></th>" +    ("<td></td>" *    sizeof( roxen->configurations )) +    "</tr>\n" +    rres[ q[1] ] +    "</tbody>\n";    }    }       return Roxen.http_string_answer(res+"</table>");   }