Roxen.git / server / modules / tags / obox.pike

version» Context lines:

Roxen.git/server/modules/tags/obox.pike:1:   // The outlined box module   //   // Fredrik Noring et al   //   // Several modifications by Francesco Chemolli.       - constant cvs_version = "$Id: obox.pike,v 1.10 1999/05/24 23:48:31 neotron Exp $"; + constant cvs_version = "$Id: obox.pike,v 1.11 1999/05/25 00:39:09 neotron Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";   inherit "roxenlib";      constant unit_gif = "/internal-roxen-unit";      static private int loaded;   
Roxen.git/server/modules/tags/obox.pike:44:    "%s</td></tr>\n",    args->outlinecolor,    img_placeholder(args));   }      static string title(mapping args)   {    if (!args->title)    return horiz_line(args);    string empty=img_placeholder(args); -  switch (args->style) { -  case "groupbox": +     if (!args->left && !args->fixedleft)    if (args->width && !args->fixedright)    args->fixedleft = "7";    else -  args->left = "1"; +  args->left = "20";    if (!args->right && !args->fixedright) -  args->right = "1"; +  args->right = args->width || "20"; +  switch (args->style) { +  case "groupbox": +     return sprintf("<tr><td colspan=2><font size=-3>&nbsp;</font></td>\n" -  "<td rowspan=3%s>&nbsp;<b>" /* bgcolor */ +  "<td rowspan=3%s nowrap>&nbsp;<b>" /* bgcolor */    "%s%s%s" /* titlecolor, title, titlecolor */    "</b>&nbsp;</td>\n"    "<td colspan=2><font size=-3>&nbsp;</font></td></tr>\n"    "<tr%s>" /* bgcolor */    "<td bgcolor=\"%s\" colspan=2>\n" /* outlinecolor */    "%s</td>\n" /* empty */    "<td bgcolor=\"%s\" colspan=2>\n"    "%s</td></tr>\n" /* empty */       "<tr%s><td bgcolor=\"%s\">" /* bgcolor, outlinecolor */
Roxen.git/server/modules/tags/obox.pike:83:    args->title,    args->titlecolor ? "</FONT>" : "",    args->bgcolor ? " bgcolor=\""+args->bgcolor+"\"" : "",    args->outlinecolor,    empty,    args->outlinecolor,    empty,    args->bgcolor ? " bgcolor=\""+args->bgcolor+"\"" : "",    args->outlinecolor,    empty, -  (args->left ? " width="+args->left+"000" : ""), +  (args->left ? " width="+args->left : ""),    (args->fixedleft ?    String.strmult ("&nbsp;", (int) args->fixedleft) : "&nbsp;"), -  (args->right ? " width="+args->right+"000" : ""), +  (args->right ? " width="+args->right : ""),    (args->fixedright ?    String.strmult ("&nbsp;", (int) args->fixedright) : "&nbsp;"),    args->outlinecolor,    empty);    case "caption": -  return sprintf("<TR bgcolor=\"%s\">" -  "<TD>%s</TD>" -  "<TD%s>&nbsp;</TD>" -  "<TD>%s%s%s</TD>" -  "<TD%s>&nbsp;</TD>" -  "<TD>%s</TD></TR>", -  args->outlinecolor, -  empty, -  (args->left ? " width="+args->left : ""), +  return sprintf("<tr%s><td colspan=2><font size=-3>&nbsp;</font></td>\n" +  "<td rowspan=3 nowrap>&nbsp;<b>" /* bgcolor */ +  "%s%s%s" /* titlecolor, title, titlecolor */ +  "</b>&nbsp;</td>\n" +  "<td colspan=2><font size=-3>&nbsp;</font></td></tr>\n" +  "<tr bgcolor=\"%s\">" /* outlinecolor */ +  "<td colspan=2>\n" +  "%s</td>\n" /* empty */ +  "<td colspan=2>\n" +  "%s</td></tr>\n" /* empty */ +  +  "<tr bgcolor=\"%s\"><td>" /* outlinecolor */ +  "%s</td>\n" /* empty */ +  "<td%s><font size=-3>%s</font></td>" /* left, fixedleft */ +  "<td%s><font size=-3>%s</font></td>\n" /* right, fixedright */ +  "<td bgcolor=\"%s\">" /* outlinecolor */ +  "%s</td></tr>\n" /* empty */ +  , +  args->outlinecolor ? " bgcolor=\""+args->outlinecolor+"\"" : "",    args->titlecolor ? "<FONT color=\""+args->titlecolor+"\">" : "",    args->title,    args->titlecolor ? "</FONT>" : "", -  +  args->outlinecolor, +  empty, +  empty, +  args->outlinecolor, +  empty, +  (args->left ? " width="+args->left : ""), +  (args->fixedleft ? +  String.strmult ("&nbsp;", (int) args->fixedleft) : "&nbsp;"),    (args->right ? " width="+args->right : ""), -  +  (args->fixedright ? +  String.strmult ("&nbsp;", (int) args->fixedright) : "&nbsp;"), +  args->outlinecolor,    empty);    }   }      string container_obox(string name, mapping args,    string contents, object request_id)   {    string s;       if (args->help) {