antville/code/User/macros.js

65 lines
1.2 KiB
JavaScript
Raw Normal View History

2001-06-18 08:57:33 +00:00
/**
* macro rendering username
*/
function name_macro(param) {
res.write(param.prefix)
2001-06-18 08:57:33 +00:00
res.write(this.name);
res.write(param.suffix);
2001-06-18 08:57:33 +00:00
}
/**
* macro rendering password
*/
function password_macro(param) {
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);
res.write(param.suffix);
2001-06-18 08:57:33 +00:00
}
/**
* macro rendering URL
*/
function url_macro(param) {
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);
res.write(param.suffix);
2001-06-18 08:57:33 +00:00
}
/**
* macro rendering email
*/
function email_macro(param) {
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);
res.write(param.suffix);
2001-06-18 08:57:33 +00:00
}
/**
* macro rendering description
*/
function description_macro(param) {
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);
res.write(param.suffix);
2001-06-18 08:57:33 +00:00
}