Branch: Tag:

1997-08-21

1997-08-21 13:16:38 by Per Hedbor <ph@opera.com>

neigh

Rev: server/base_server/neighborhood.pike:1.1
Rev: server/base_server/roxen.pike:1.110
Rev: server/base_server/wizard.pike:1.24
Rev: server/config_actions/network_neighboorhood.pike:1.1
Rev: server/config_actions/upgrade.pike:1.11

1: - /* $Id: wizard.pike,v 1.23 1997/08/21 11:31:22 per Exp $ + /* $Id: wizard.pike,v 1.24 1997/08/21 13:16:35 per Exp $    * name="Wizard generator";    * doc="This plugin generats all the nice wizards";    */
62:    m_delete(m,"default");    m_delete(m, m->name);    m_delete(id->variables, m->name); -  if(!search(lower_case(current||""),"on")) current="1"; +  if(search(lower_case(current||""),"on")+1) current="1";    if((int)current) m->checked="checked";    res=make_tag("input", m);    m->type="hidden";
365:    "<tr><td>\n");    r += "<table border=0 cellspacing=0 cellpadding=4>\n";    r += "<tr bgcolor=#113377>\n"; -  foreach(subtitles, string s) +  int cols; +  foreach(subtitles, mixed s) +  { +  if(stringp(s)) +  {    r += "<th nowrap align=left><font color=#ffffff>"+s+" &nbsp; </font></th>"; -  +  cols++; +  } else { +  r += "</tr><tr><th nowrap align=left colspan="+cols+">" +  "<font color=#ffffff>"+s[0]+"</font></th>"; +  } +     r += "</tr>";    for(int i = 0; i < sizeof(table); i++) {    r += "<tr bgcolor="+(i%2?"#ddeeff":"#ffffff")+">"; -  foreach(table[i], string s) { +  foreach(table[i], mixed s) +  if(stringp(s))    r += "<td nowrap>"+s+"&nbsp;&nbsp;</td>"; -  +  else +  r += "</tr><tr bgcolor="+(i%2?"#ddeeff":"#ffffff")+ +  "><td colspan="+cols+">"+s[0]+"</td>";    }    r += "</tr>\n";    }