FSN#36226 fac_email bewerken via scaffolding
svn path=/Website/trunk/; revision=29332
This commit is contained in:
71
APPL/API2/model_fac_email_setting.inc
Normal file
71
APPL/API2/model_fac_email_setting.inc
Normal file
@@ -0,0 +1,71 @@
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: model_fac_email_setting.inc
|
||||
|
||||
Description:
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<%
|
||||
|
||||
function fac_email_setting()
|
||||
{
|
||||
this.table = "fac_email_setting";
|
||||
this.primary = "fac_email_setting_key";
|
||||
this.records_name = "emailsettings";
|
||||
this.record_name = "emailsetting";
|
||||
this.autfunction = "WEB_FACTAB";
|
||||
this.record_title = L("fac_email_setting");
|
||||
this.records_title = L("fac_email_setting_m");
|
||||
|
||||
this.fields = {
|
||||
"id": {
|
||||
"dbs": "fac_email_setting_key",
|
||||
"label": "Key",
|
||||
"typ": "key",
|
||||
"required": true,
|
||||
"filter": "exact",
|
||||
"seq": "fac_s_fac_email_setting_key",
|
||||
"defaultvalue": null
|
||||
},
|
||||
"name": {
|
||||
"dbs": "fac_email_setting_user",
|
||||
"label": L("lcl_user"),
|
||||
"typ": "varchar",
|
||||
"required": true,
|
||||
"insertonly": true
|
||||
},
|
||||
"from": {
|
||||
"dbs": "fac_email_setting_from",
|
||||
"label": L("fac_email_setting_from"),
|
||||
"typ": "varchar"
|
||||
},
|
||||
"action": {
|
||||
"dbs": "fac_email_setting_action",
|
||||
"label": L("fac_email_setting_action"),
|
||||
"typ": "varchar"
|
||||
},
|
||||
"expire": {
|
||||
"dbs": "fac_email_setting_expire",
|
||||
"label": L("fac_email_setting_expire"),
|
||||
"typ": "date"
|
||||
},
|
||||
"attachmentspath": {
|
||||
"dbs": "fac_email_setting_attachpath",
|
||||
"label": L("fac_email_setting_attachpath"),
|
||||
"typ": "varchar"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
this.REST_GET = generic_REST_GET(this);
|
||||
this.REST_POST = generic_REST_POST(this);
|
||||
this.REST_PUT = generic_REST_PUT(this);
|
||||
this.REST_DELETE = generic_REST_DELETE(this);
|
||||
}
|
||||
%>
|
||||
41
APPL/MGT/fac_email_setting.asp
Normal file
41
APPL/MGT/fac_email_setting.asp
Normal file
@@ -0,0 +1,41 @@
|
||||
<%@language = "javascript" %>
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: fac_email_setting.asp
|
||||
|
||||
Description:
|
||||
|
||||
Context:
|
||||
|
||||
Notes: Eerste opzet, zie FSN#36226
|
||||
*/
|
||||
%>
|
||||
<!-- #include file="../scf/scaffolding.inc" -->
|
||||
<!-- #include file="../api2/model_fac_email_setting.inc" -->
|
||||
<%
|
||||
var this_model = new fac_email_setting();
|
||||
|
||||
scaffolding(this_model,
|
||||
{
|
||||
"search": {
|
||||
"autosearch": true,
|
||||
"filters": [
|
||||
"name",
|
||||
"action"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"columns": [
|
||||
"id",
|
||||
"name",
|
||||
"action",
|
||||
"attachmentspath"
|
||||
]
|
||||
},
|
||||
"edit": {
|
||||
"modal": true
|
||||
}
|
||||
});
|
||||
%>
|
||||
Reference in New Issue
Block a user