2001-06-18 08:57:33 +00:00
|
|
|
/**
|
|
|
|
* macro rendering username
|
|
|
|
*/
|
|
|
|
|
|
|
|
function name_macro(param) {
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.prefix)
|
2001-06-18 08:57:33 +00:00
|
|
|
res.write(this.name);
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.suffix);
|
2001-06-18 08:57:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* macro rendering password
|
|
|
|
*/
|
|
|
|
|
|
|
|
function password_macro(param) {
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.prefix)
|
2001-06-18 08:57:33 +00:00
|
|
|
if (param.as == "editor")
|
|
|
|
this.renderInputPassword(this.createInputParam("password",param));
|
|
|
|
else
|
|
|
|
res.write(this.password);
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.suffix);
|
2001-06-18 08:57:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* macro rendering URL
|
|
|
|
*/
|
|
|
|
|
|
|
|
function url_macro(param) {
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.prefix)
|
2001-06-18 08:57:33 +00:00
|
|
|
if (param.as == "editor")
|
|
|
|
this.renderInputText(this.createInputParam("url",param));
|
|
|
|
else
|
|
|
|
res.write(this.url);
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.suffix);
|
2001-06-18 08:57:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* macro rendering email
|
|
|
|
*/
|
|
|
|
|
|
|
|
function email_macro(param) {
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.prefix)
|
2001-06-18 08:57:33 +00:00
|
|
|
if (param.as == "editor")
|
|
|
|
this.renderInputText(this.createInputParam("email",param));
|
|
|
|
else
|
|
|
|
res.write(this.email);
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.suffix);
|
2001-06-18 08:57:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* macro rendering description
|
|
|
|
*/
|
|
|
|
|
|
|
|
function description_macro(param) {
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.prefix)
|
2001-06-18 08:57:33 +00:00
|
|
|
if (param.as == "editor")
|
|
|
|
this.renderInputTextarea(this.createInputParam("description",param));
|
|
|
|
else
|
|
|
|
res.write(this.description);
|
2001-07-18 15:58:18 +00:00
|
|
|
res.write(param.suffix);
|
2001-06-18 08:57:33 +00:00
|
|
|
}
|
|
|
|
|