"00d6e06d2f3c092b4f5e1e708a360b0f" : "Displaying Message{0} - {1} of {2}",
"9076cbba1d9ef79280b4f39e2aa0d115" : "Nothing found",
"b78a3223503896721cca1303f776159b" : "Title",
+ "68b00d723d37122f64da8d9939f836f0" : "BCC Group",
"9e11143e29a031212f2cdefcf61f39e9" : "View Message",
"f49559cda3fb906fbd7736f8b8a0e37d" : "Email Template",
+ "01bd6a16732dfa2b760dc8566c58afae" : "Download to Excel",
"4a4a8fe0c6dfb6bd2a41755d15eb6f0b" : "From Name",
"4ca679a383343ab3d4ca1cd7c91b43f7" : "From Email",
"5fb63579fc981698f97d55bfecb213ea" : "Copy",
},
"items" : [
{
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.nest = this;\n}"
+ },
"region" : "center",
- "xtype" : "NestedLayoutPanel",
"title" : "Email Template",
+ "xtype" : "NestedLayoutPanel",
"$ xns" : "Roo",
"items" : [
{
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
},
+ "region" : "center",
"fitToframe" : true,
"background" : true,
- "region" : "center",
"title" : "core_email",
"xtype" : "GridPanel",
"fitContainer" : true,
"items" : [
{
"listeners" : {
- "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n var data = this.getDataSource().getAt(rowIndex).data;\n _this.dialog.show( {id : data.id, module : 'core_email'} , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n",
+ "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) { \n return;\n }\n var data = this.getDataSource().getAt(rowIndex).data;\n _this.dialog.show( {id : data.id, module : 'core_email'} , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n",
"|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.CoreEmail;\n if (_this.panel.active) {\n _this.grid.footer.onClick('first');\n }\n}",
"rowclick" : "function (_self, rowIndex, e)\n{\n // _this.grid.ds.load({});\n _this.viewPanel.view.store.load({});\n}"
},
},
"xtype" : "Store",
"remoteSort" : true,
- "$ sortInfo" : "{ field : 'id', direction: 'DESC' }",
+ "$ sortInfo" : "{ field : 'description', direction: 'ASC' }",
"$ xns" : "Roo.data",
"* prop" : "dataSource",
"items" : [
{
"$ url" : "baseURL + '/Roo/Core_email.php'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
"$ xns" : "Roo",
"displayMsg" : "Displaying Message{0} - {1} of {2}",
"displayInfo" : true,
- "* prop" : "footer"
+ "* prop" : "footer",
+ "items" : [
+ {
+ "listeners" : {
+ "|click" : "function()\n{\n \nnew Pman.Download({\n url : baseURL + '/Roo/Core_email',\n method : 'GET',\n params : {\n csvCols : '*',\n csvTitles : '*'\n }\n});\nRoo.MessageBox.alert(\"Notice\", \"Should be downloading now\");\n \n}\n"
+ },
+ "text" : "Download to Excel",
+ "xtype" : "Button",
+ "$ xns" : "Roo.Toolbar"
+ }
+ ]
},
{
"xtype" : "Toolbar",
},
{
"listeners" : {
- "|click" : "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0, module : 'core_email' } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
+ "|click" : "function()\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( { id : 0, module : 'core_email' } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
},
"text" : "Add",
"xtype" : "Button",
"xtype" : "ColumnModel",
"header" : "Name",
"width" : 250,
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "$ renderer" : "function(v,x,r) \n{ \n if (r.data.description.length > 0) {\n v = r.data.description;\n }\n \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,
- "* prop" : "colModel[]",
+ "* prop" : "cm[]",
"dataIndex" : "name"
},
{
"xtype" : "ColumnModel",
"header" : "Title",
"width" : 300,
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "$ 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,
- "* prop" : "colModel[]",
+ "* prop" : "cm[]",
"dataIndex" : "subject"
},
{
"xtype" : "ColumnModel",
"header" : "From Name",
- "width" : 400,
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "width" : 150,
+ "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
- "* prop" : "colModel[]",
+ "* prop" : "cm[]",
"dataIndex" : "from_name"
},
{
"xtype" : "ColumnModel",
+ "width" : 150,
"header" : "From Email",
- "width" : 400,
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
- "* prop" : "colModel[]",
+ "* prop" : "cm[]",
"dataIndex" : "from_email"
+ },
+ {
+ "xtype" : "ColumnModel",
+ "header" : "BCC Group",
+ "width" : 150,
+ "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
+ "$ xns" : "Roo.grid",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "dataIndex" : "bcc_group_name"
}
]
}
"render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
},
"autoScroll" : true,
- "background" : false,
"fitToFrame" : true,
+ "background" : false,
"region" : "south",
"title" : "View Message",
"xtype" : "ContentPanel",
"items" : [
{
"$ url" : "baseURL+'/Roo/Core_email.php'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},