Index: wizard.pike =================================================================== RCS file: /cvs/roxen_1.3/server/base_server/wizard.pike,v retrieving revision 1.89 retrieving revision 1.92 diff -C3 -r1.89 -r1.92 *** wizard.pike 1999/11/28 21:35:29 1.89 --- wizard.pike 2000/02/13 14:39:57 1.92 *************** *** 1,7 **** /* Copyright © 1997, 1998, Idonex AB. * Some modifications by Francesco Chemolli * ! * $Id: wizard.pike,v 1.89 1999/11/28 21:35:29 mast Exp $ * name="Wizard generator"; * doc="This file generates all the nice wizards"; * --- 1,7 ---- /* Copyright © 1997, 1998, Idonex AB. * Some modifications by Francesco Chemolli * ! * $Id: wizard.pike,v 1.92 2000/02/13 14:39:57 grubba Exp $ * name="Wizard generator"; * doc="This file generates all the nice wizards"; * *************** *** 115,121 **** { default: // String or password field or hidden value.... if((m->type != "password") && (m->type != "hidden")) ! m->type = "string"; m_delete(m,"default"); m->value = loc_encode(current||m->value||"", m, "none"); if(!m->size)m->size="60,1"; --- 115,121 ---- { default: // String or password field or hidden value.... if((m->type != "password") && (m->type != "hidden")) ! m->type = "text"; m_delete(m,"default"); m->value = loc_encode(current||m->value||"", m, "none"); if(!m->size)m->size="60,1"; *************** *** 125,131 **** string n = m->name, res=""; if(!id->variables[n]) id->variables[n]=current; ! m->type = "string"; if(!m->size)m->size="60,1"; m_delete(m,"default"); foreach((current||"")/"\0"-({""}), string v) --- 125,131 ---- string n = m->name, res="
"; if(!id->variables[n]) id->variables[n]=current; ! m->type = "text"; if(!m->size)m->size="60,1"; m_delete(m,"default"); foreach((current||"")/"\0"-({""}), string v) *************** *** 137,143 **** res+=make_tag("input",m)+""; } m->name = "_new_"+n; ! m->type = "string"; m->value = ""; res+= ""; } m->name = "_new_"+n; ! m->type = "text"; m->value = ""; res+= "
"+make_tag("input", m)+""; m->name="_Add"; --- 137,143 ---- res+=make_tag("input",m)+"
"+make_tag("input", m)+""; m->name="_Add"; *************** *** 408,415 **** object gz = Gz; if(sizeof(indices(gz))) from = gz->inflate()->inflate(from); }; ! return decode_value(from); } --- 408,416 ---- object gz = Gz; if(sizeof(indices(gz))) from = gz->inflate()->inflate(from); + return decode_value(from); }; ! return ([]); } *************** *** 492,502 **** // page. Netscape ignores one of them, but IE sends both. Thus we // have to discard the extra value in the IE case. (We simply assume // both values are the same here; maybe it could be done better.) ! id->variables->action = (id->variables->action/"\0")[0]; res = ("\n" ! "
\n" ! " variables->action+"\">\n" " \n" " variables)+"\">\n" "\n" --- 493,506 ---- // page. Netscape ignores one of them, but IE sends both. Thus we // have to discard the extra value in the IE case. (We simply assume // both values are the same here; maybe it could be done better.) ! if (stringp (id->variables->action)) ! id->variables->action = (id->variables->action/"\0")[0]; res = ("\n" ! "\n" + ! (stringp (id->variables->action) ? ! " variables->action+"\">\n" : ! "") + " \n" " variables)+"\">\n" "
\n"