"name" : "Pman.Tab.AdminNotify",
"parent" : "Pman.Tab.AdminWatchNotify",
"title" : "Pman.Tab.AdminNotify",
- "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotify.bjs",
+ "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Tab.AdminNotify.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
"e4b478c05a833569833f9cc63b6c4354" : "Displaying core_notify{0} - {1} of {2}",
"4c3880bb027f159e801041b1021e88e8" : "Method",
"a4ecfc70574394990cf17bd83df499f7" : "Event",
+ "12ea1a38991aa3bc4992b10adac0f3bc" : "Event Details",
"f2a6c498fb90ee345d997f888fce3b18" : "Delete",
"f821027bade4aa6b7a4191cd1676cf41" : "Show Completed"
},
"items" : [
{
"xtype" : "NestedLayoutPanel",
+ "String region" : "center",
"$ xns" : "Roo",
+ "String title" : "Current Notifications",
+ "Boolean background" : false,
"items" : [
{
"xtype" : "BorderLayout",
"$ xns" : "Roo",
"* prop" : "layout",
"items" : [
+ {
+ "xtype" : "LayoutRegion",
+ "$ xns" : "Roo",
+ "* prop" : "center"
+ },
+ {
+ "autoScroll" : true,
+ "String collapsedTitle" : "View Details",
+ "xtype" : "LayoutRegion",
+ "$ xns" : "Roo",
+ "Boolean collapsible" : true,
+ "split" : true,
+ "String title" : "Event Details",
+ "height" : 150,
+ "* prop" : "south",
+ "Boolean split" : true
+ },
{
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n \n}"
},
"bool background" : true,
- "fitToframe" : true,
"region" : "center",
+ "fitToframe" : true,
"title" : "Current Notifications",
"xtype" : "GridPanel",
"fitContainer" : true,
"items" : [
{
"$ url" : "baseURL + '/Roo/core_notify.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
}
]
},
+ {
+ "listeners" : {
+ "afterselectionchange" : "function (_self)\n{\n // load detail log in _this.viewPanel;\n if (!this.getSelected()) {\n this.viewPanel.setContent(\"Nothing Selected\");\n return;\n }\n var id = this.getSelected().data.event_id;\n if (id *1 < 0) {\n \n this.viewPanel.setContent(\"No Event for this line\"); \n return;\n }\n _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n \n}"
+ },
+ "xtype" : "RowSelectionModel",
+ "singleSelect" : true,
+ "$ xns" : "Roo.grid",
+ "* prop" : "sm"
+ },
{
"pageSize" : 25,
"xtype" : "PagingToolbar",
"items" : [
{
"$ url" : "baseURL + '/Roo/core_notify.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
"items" : [
{
"$ url" : "baseURL + '/Roo/core_enum.php'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"xtype" : "ColumnModel",
- "header" : "Ontable",
"width" : 150,
+ "header" : "Ontable",
"$ renderer" : "function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "header" : "Who to notify",
"width" : 100,
+ "header" : "Who to notify",
"$ renderer" : "function(v,x,r) {\n\n var pt = r.data.person_table.toLowerCase() ;\n var pt = pt.length ? pt : 'person';\n var ecol = pt + '_id_email' ;\n var ncol = pt + '_id_name' ;\n return String.format('{0} <u><{1}></u>', r.data[ncol], r.data[ecol]); \n }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "header" : "Triggered by",
"width" : 100,
+ "header" : "Triggered by",
"$ renderer" : "function(v,x,r) {\n return String.format(\n '{0} : {1} {2}', \n r.data.trigger_event_id_on_table, \n r.data.trigger_event_id_on_id, \n r.data.trigger_event_id_remarks\n ); \n }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "width" : 200,
"header" : "Msgid",
+ "width" : 200,
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "header" : "Event",
"width" : 300,
+ "header" : "Event",
"$ renderer" : "function(v) { return String.format('<span qtip=\"{0}\">{0}</span>', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
]
}
]
+ },
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
+ },
+ "fitToFrame" : true,
+ "region" : "south",
+ "xtype" : "ContentPanel",
+ "$ xns" : "Roo"
}
]
}