Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.82 2003/10/23 15:25:32 jonasw Exp $ + // $Id: module.pmod,v 1.83 2003/11/17 16:01:36 anders Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1444:       string res = "<a name='"+path()+"'>\n</a><table>\n"    "<input type='hidden' name='"+prefix+"count' value='"+_current_count+"' />\n";       foreach( map(query(), transform_to_form), mixed val )    {    res += "<tr>\n<td><font size='-1'>"+ render_row(prefix+"set."+i, val, width)    + "</font></td>\n";   #define BUTTON(X,Y) ("<submit-gbutton2 name='"+X+"'>"+Y+"</submit-gbutton2>")   #define REORDER(X,Y) ("<submit-gbutton2 name='"+X+"' icon-src='"+Y+"'></submit-gbutton2>") + #define DIMBUTTON(X) ("<disabled-gbutton icon-src='"+X+"'></disabled-gbutton>")    if( i )    res += "\n<td>"+    REORDER(prefix+"up."+i, "/internal-roxen-up")+    "</td>";    else -  res += "\n<td></td>"; +  res += "\n<td>"+DIMBUTTON("/internal-roxen-up")+"</td>";    if( i != sizeof( query())- 1 )    res += "\n<td>"+    REORDER(prefix+"down."+i, "/internal-roxen-down")    +"</td>";    else -  res += "\n<td></td>"; +  res += "\n<td>"+DIMBUTTON("/internal-roxen-down")+"</td>";    res += "\n<td>"+    BUTTON(prefix+"delete."+i, LOCALE(227, "Delete") )    +"</td>";    "</tr>";    i++;    }    res +=    "\n<tr><td colspan='2'>"+    BUTTON(prefix+"new", LOCALE(297, "New row") )+    "</td></tr></table>\n\n";
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1593:    {    if( p == split->scheme )    res += "<option selected='t'>"+p+"</option>";    else    res += "<option>"+p+"</option>";    }    res += "</select>";       res += "://<input type=text name='"+prefix+"host' value='"+    Roxen.html_encode_string(split->host)+"' />"; -  res += ":<input type=text size=6 name='"+prefix+"port' value='"+ +  res += ":<input type=text size=5 name='"+prefix+"port' value='"+    split->port+"' />";       res += "/<input type=text name='"+prefix+"path' value='"+    Roxen.html_encode_string(split->path[1..])+"' /><br />";    mapping opts = ([]);    string a,b;    foreach( (split->fragment||"")/";", string x )    {    sscanf( x, "%s=%s", a, b );    opts[a]=b;