"name" : "Pman.Tab.AdminEmailTemplates",
"parent" : "Pman.Tab.Admin",
"title" : "Manage Email Templates",
- "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminEmailTemplates.bjs",
+ "path" : "/home/johns/gitlive/web.coba/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Tab.AdminEmailTemplates.bjs",
"permname" : "",
"modOrder" : "999",
"strings" : {
"items" : [
{
"region" : "center",
- "title" : "Email Template",
"xtype" : "NestedLayoutPanel",
+ "title" : "Email Template",
"$ xns" : "Roo",
"items" : [
{
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
},
+ "fitToframe" : true,
"background" : true,
"region" : "center",
- "fitToframe" : true,
"title" : "core_email",
"xtype" : "GridPanel",
"fitContainer" : true,
"items" : [
{
"$ url" : "baseURL + '/Roo/Core_email.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"xtype" : "ColumnModel",
- "header" : "Name",
"width" : 250,
+ "header" : "Name",
"$ renderer" : "function(v,x,r) \n{ \n if(r.data.active * 1 < 1){\n return String.format('<s>{0}</s>', v ? v : ''); \n }\n \n return String.format('{0}', v ? v : ''); \n}",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
},
{
"xtype" : "ColumnModel",
- "header" : "Title",
"width" : 300,
+ "header" : "Title",
"$ renderer" : "function(v,x,r) \n{ \n if(r.data.active * 1 < 1){\n return String.format('<s>{0}</s>', v ? v : ''); \n }\n \n return String.format('{0}', v ? v : ''); \n}",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
},
{
"xtype" : "ColumnModel",
- "header" : "From Name",
"width" : 300,
+ "header" : "From Name",
"$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
},
{
"xtype" : "ColumnModel",
- "width" : 300,
"header" : "From Email",
+ "width" : 300,
"$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
},
{
"xtype" : "ColumnModel",
- "header" : "BCC Group",
"width" : 300,
+ "header" : "BCC Group",
"$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
"render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
},
"autoScroll" : true,
- "fitToFrame" : true,
"background" : false,
+ "fitToFrame" : true,
"region" : "south",
"title" : "View Message",
"xtype" : "ContentPanel",
"items" : [
{
"$ url" : "baseURL+'/Roo/Core_email.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
name : "Manage Email Templates",
disabled : false,
permname : '',
- _tree : function()
+ _tree : function(_data)
{
var _this = this;
var MODULE = this;
return {
+ xtype : 'NestedLayoutPanel',
region : 'center',
title : _this._strings['f49559cda3fb906fbd7736f8b8a0e37d'] /* Email Template */,
xns : Roo,
'|xns' : 'Roo',
- xtype : 'NestedLayoutPanel',
layout : {
+ xtype : 'BorderLayout',
xns : Roo,
'|xns' : 'Roo',
- xtype : 'BorderLayout',
center : {
+ xtype : 'LayoutRegion',
autoScroll : false,
split : true,
xns : Roo,
- '|xns' : 'Roo',
- xtype : 'LayoutRegion'
+ '|xns' : 'Roo'
},
south : {
+ xtype : 'LayoutRegion',
autoScroll : false,
height : 300,
split : true,
titlebar : true,
xns : Roo,
- '|xns' : 'Roo',
- xtype : 'LayoutRegion'
+ '|xns' : 'Roo'
},
items : [
{
+ xtype : 'GridPanel',
background : true,
fitContainer : true,
fitToframe : true,
region : 'center',
tableName : 'core_email',
title : _this._strings['c7d299bf3f9e37c77ab646f7e5366696'] /* core_email */,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'GridPanel',
listeners : {
activate : function() {
_this.panel = this;
}
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
grid : {
+ xtype : 'Grid',
autoExpandColumn : 'subject',
loadMask : true,
- xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'Grid',
listeners : {
render : function()
{
});
}
},
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid',
footer : {
+ xtype : 'PagingToolbar',
displayInfo : true,
displayMsg : _this._strings['00d6e06d2f3c092b4f5e1e708a360b0f'] /* Displaying Message{0} - {1} of {2} */,
emptyMsg : _this._strings['9076cbba1d9ef79280b4f39e2aa0d115'] /* Nothing found */,
pageSize : 25,
xns : Roo,
'|xns' : 'Roo',
- xtype : 'PagingToolbar',
items : [
{
- text : _this._strings['01bd6a16732dfa2b760dc8566c58afae'] /* Download to Excel */,
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
xtype : 'Button',
+ text : _this._strings['01bd6a16732dfa2b760dc8566c58afae'] /* Download to Excel */,
listeners : {
click : function()
{
Roo.MessageBox.alert("Notice", "Should be downloading now");
}
- }
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
}
]
},
toolbar : {
+ xtype : 'Toolbar',
xns : Roo,
'|xns' : 'Roo',
- xtype : 'Toolbar',
items : [
{
- xns : Roo.form,
- '|xns' : 'Roo.form',
xtype : 'TextField',
listeners : {
render : function (_self)
{
_this.grid.footer.onClick('first');
}
- }
+ },
+ xns : Roo.form,
+ '|xns' : 'Roo.form'
},
{
+ xtype : 'Button',
cls : 'x-btn-icon',
icon : rootURL + '/Pman/templates/images/search.gif',
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Button',
listeners : {
click : function (_self, e)
{
_this.grid.footer.onClick('first');
}
- }
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
},
{
+ xtype : 'Button',
cls : 'x-btn-icon',
icon : rootURL + '/Pman/templates/images/edit-clear.gif',
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Button',
listeners : {
click : function (_self, e)
{
_this.searchBox.setValue('');\r
_this.grid.footer.onClick('first');\r
}
- }
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
},
{
+ xtype : 'Fill',
xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Fill'
+ '|xns' : 'Roo.Toolbar'
},
{
+ xtype : 'Button',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['5fb63579fc981698f97d55bfecb213ea'] /* Copy */,
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Button',
listeners : {
click : function()
{
});
}
- }
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
},
{
+ xtype : 'Button',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Button',
listeners : {
click : function()
{
_this.grid.footer.onClick('first');
});
}
- }
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
},
{
+ xtype : 'Separator',
xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Separator'
+ '|xns' : 'Roo.Toolbar'
},
{
+ xtype : 'Button',
cls : 'x-btn-text-icon',
icon : rootURL + '/Pman/templates/images/trash.gif',
text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Button',
listeners : {
click : function()
{
Pman.genericDelete(_this, 'core_email');
}
- }
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
}
]
},
dataSource : {
+ xtype : 'Store',
remoteSort : true,
sortInfo : { field : 'name', direction: 'ASC' },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'Store',
listeners : {
beforeload : function (_self, options)
{
}
},
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
proxy : {
+ xtype : 'HttpProxy',
method : 'GET',
url : baseURL + '/Roo/Core_email.php',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
+ '|xns' : 'Roo.data'
},
reader : {
+ xtype : 'JsonReader',
fields : [
{
"name":"name",
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
+ '|xns' : 'Roo.data'
}
},
sm : {
+ xtype : 'RowSelectionModel',
singleSelect : true,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'RowSelectionModel'
+ '|xns' : 'Roo.grid'
},
cm : [
{
+ xtype : 'ColumnModel',
dataIndex : 'name',
header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
renderer : function(v,x,r)
sortable : true,
width : 250,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
},
{
+ xtype : 'ColumnModel',
dataIndex : 'subject',
header : _this._strings['b78a3223503896721cca1303f776159b'] /* Title */,
renderer : function(v,x,r)
sortable : true,
width : 300,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
},
{
+ xtype : 'ColumnModel',
dataIndex : 'from_name',
header : _this._strings['4a4a8fe0c6dfb6bd2a41755d15eb6f0b'] /* From Name */,
renderer : function(v) { return String.format('{0}', v ? v : ''); },
sortable : true,
width : 300,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
},
{
+ xtype : 'ColumnModel',
dataIndex : 'from_email',
header : _this._strings['4ca679a383343ab3d4ca1cd7c91b43f7'] /* From Email */,
renderer : function(v) { return String.format('{0}', v ? v : ''); },
sortable : true,
width : 300,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
},
{
+ xtype : 'ColumnModel',
dataIndex : 'bcc_group_name',
header : _this._strings['68b00d723d37122f64da8d9939f836f0'] /* BCC Group */,
renderer : function(v) { return String.format('{0}', v ? v : ''); },
sortable : true,
width : 300,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
}
]
}
},
{
+ xtype : 'ContentPanel',
autoScroll : true,
background : false,
fitContainer : true,
fitToFrame : true,
region : 'south',
title : _this._strings['9e11143e29a031212f2cdefcf61f39e9'] /* View Message */,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'ContentPanel',
listeners : {
render : function (_self)
{
_this.viewPanel = _self;
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
view : {
- tpl : new Roo.DomTemplate({url : rootURL+'/Pman/Crm/domtemplates/crm_mail.html'}),
- xns : Roo,
- '|xns' : 'Roo',
xtype : 'View',
+ tpl : new Roo.DomTemplate({url : rootURL+'/Pman/Crm/domtemplates/crm_mail.html'}),
listeners : {
preparedata : function (_self, data, i, rec)
{
//Roo.apply(data, rec.json);
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
store : {
- xns : Roo.data,
- '|xns' : 'Roo.data',
xtype : 'Store',
listeners : {
beforeload : function (_self, options)
*/
}
},
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
proxy : {
+ xtype : 'HttpProxy',
method : 'GET',
url : baseURL+'/Roo/Core_email.php',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
+ '|xns' : 'Roo.data'
},
reader : {
+ xtype : 'JsonReader',
id : 'id',
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
+ '|xns' : 'Roo.data'
}
}
}