12 "tabPosition" : "top",
13 "xtype" : "LayoutRegion"
20 "title" : "Images / Attachments",
23 "xtype" : "LayoutRegion"
28 "fitContainer" : true,
36 "$ xns" : "Roo.Toolbar",
46 "function (_self, e)",
48 " Pman.Dialog.CoreImportUrl.show({",
49 " target : '/Core/ImportMailMessage.php'",
50 " }, function(data) {",
53 " _this.form.findField('bodytext').setValue(data);",
66 "function (_self, e)",
68 " Pman.Dialog.Image.show({",
69 " _url : baseURL + '/Core/ImportMailMessage.php'",
70 " }, function(data) {",
72 " _this.form.findField('bodytext').setValue(data);",
89 "$ xns" : "Roo.Toolbar",
99 "function (_self, e)",
102 " var l = document.location;",
103 " new Pman.Request({",
105 " url : baseURL + '/Core/ImportMailMessage.php',",
108 " mask : \"Loading\",",
110 " importUrl : l.protocol +'//' + l.host + rootURL + '/Pman/Crm/mail_templates/responsive1.html'",
112 " success : function (res) {",
114 " _this.form.findField('bodytext').setValue(res.data);",
121 "text" : "Responsive Email (1)",
128 "text" : "Use template",
132 "$ xns" : "Roo.form",
134 "alwaysQuery" : true,
135 "displayField" : "file",
137 "emptyText" : "Select Template",
138 "fieldLabel" : "Template",
139 "forceSelection" : true,
140 "hiddenName" : "template",
143 "$ sortInfo" : "{ direction : 'DESC', field: 'file' }",
144 "$ xns" : "Roo.data",
148 "$ url" : "baseURL + '/Core/MailTemplateList.php'",
149 "$ xns" : "Roo.data",
152 "xtype" : "HttpProxy"
155 "$ fields" : "[{\"name\":\"file\",\"type\":\"string\"},{\"name\":\"content\",\"type\":\"string\"}]",
156 "$ xns" : "Roo.data",
160 "totalProperty" : "total",
161 "xtype" : "JsonReader"
166 "function (_self, o){",
167 " o.params = o.params || {};",
181 "function (combo, record, index)",
186 " combo.setValue('');",
192 " _this.form.findField('bodytext').setValue(record.data.content);",
197 "loadingText" : "Searching...",
201 "qtip" : "Select Template",
202 "selectOnFocus" : true,
203 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{file}</b> </div>",
204 "triggerAction" : "all",
206 "valueField" : "file",
211 "$ xns" : "Roo.Toolbar",
215 "$ xns" : "Roo.Toolbar",
218 "function (_self, e)",
220 " var el = _this.dialog.layout.getRegion('east');",
221 " if (el.visible) {",
231 "text" : "Images / Attachments >>",
245 "xtype" : "LayoutRegion"
249 "autoScroll" : false,
250 "background" : false,
251 "fitContainer" : true,
256 "function(done_callback) {",
258 " Roo.MessageBox.progress(\"Uploading Images\", \"Uploading\");",
260 " if(!_this.form.findField('bodytext').editorcore.sourceEditMode){",
261 " _this.form.findField('bodytext').syncValue();",
263 " _this.form.findField('bodytext').pushValue();",
266 " var html = _this.form.findField('bodytext').getValue();",
268 " var s = Roo.get(_this.form.findField('bodytext').editorcore.doc.documentElement);",
270 " var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
273 " s.select('img[src]').each(function(i) {",
274 " nodes.push(i.dom);",
276 " var total = nodes.length;",
277 " var mkimg = function() {",
279 " if (!nodes.length) {",
280 " Roo.MessageBox.hide();",
281 " _this.form.findField('bodytext').syncValue();",
282 " done_callback(true);",
283 " // _this.form.doAction(\"submit\");",
286 " var i = nodes.pop(); ",
288 " var n = i.getAttribute('src').match(/(baseURL|server_baseurl)/);",
295 " n = i.getAttribute('src').match(/^http(.*)/);",
302 " new Pman.Request({",
303 " url : baseURL + '/Roo/Images.php',",
306 " onid : _this.form.findField('id').getValue(),",
307 " ontable : ontable ,",
308 " _remote_upload : i.src",
310 " success : function(res){",
311 " if(res.success == true){ ",
312 " i.setAttribute('src', res.data);",
313 " Roo.MessageBox.updateProgress( (total - nodes.length) / total , \"Done \" + (total - nodes.length) + '/' + total);",
321 " if (!_this.form.findField('bodytext').getValue().match(/unsubscribe/i)) {",
322 " Roo.MessageBox.confirm(\"Missing unusubscribe\",",
323 " \"There is no unsubscribe link on the email are you sure you want to save it\",",
325 " if (res == 'no') {",
339 "$ url" : "baseURL + '/Roo/crm_mailing_list_message.php'",
340 "$ xns" : "Roo.form",
343 "$ xns" : "Roo.form",
346 "$ xns" : "Roo.form",
347 "allowBlank" : false,
348 "fieldLabel" : "Mailout Name",
351 "xtype" : "TextField"
354 "$ xns" : "Roo.form",
355 "Number labelWidth" : 0,
356 "String labelSeparator" : " ",
359 "$ xns" : "Roo.form",
360 "Boolean checked" : true,
362 "String boxLabel" : "Enabled - will be sent out",
363 "String name" : "active",
364 "String valueOff" : 0,
367 "function (_self, checked)",
369 " var boxLabel = 'Enabled - will be sent out';",
372 " boxLabel = 'Disabled - will NOT be sent out';",
375 " this.setBoxLabel(boxLabel);",
388 "$ xns" : "Roo.form",
391 "$ xns" : "Roo.form",
392 "allowBlank" : false,
393 "fieldLabel" : "From",
394 "name" : "from_name",
396 "xtype" : "TextField"
399 "$ xns" : "Roo.form",
400 "allowBlank" : false,
401 "fieldLabel" : "Email address",
402 "name" : "from_email",
404 "xtype" : "TextField"
407 "$ xns" : "Roo.form",
408 "Boolean forceSelection" : true,
410 "alwaysQuery" : true,
411 "displayField" : "name",
413 "emptyText" : "Select BCC Group",
414 "fieldLabel" : "BCC Group",
415 "hiddenName" : "bcc_group_id",
418 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
419 "$ xns" : "Roo.data",
423 "$ url" : "baseURL + '/Roo/Core_group'",
424 "$ xns" : "Roo.data",
427 "xtype" : "HttpProxy"
430 "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"id\",\"type\":\"int\"}]",
431 "$ xns" : "Roo.data",
435 "totalProperty" : "total",
436 "xtype" : "JsonReader"
441 "function (_self, o){",
442 " o.params = o.params || {};",
444 " o.params._direct_return = 1;",
453 "loadingText" : "Searching...",
455 "name" : "bcc_group_id_name",
457 "qtip" : "Select BCC Group",
458 "selectOnFocus" : true,
459 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
460 "triggerAction" : "all",
470 "$ xns" : "Roo.form",
473 "$ xns" : "Roo.form",
474 "allowBlank" : false,
475 "fieldLabel" : "Subject",
478 "xtype" : "TextField"
481 "$ xns" : "Roo.form",
482 "allowBlank" : false,
483 "displayField" : "title",
485 "fieldLabel" : "Language",
486 "hiddenName" : "language",
489 "$ fields" : "['code', 'title']",
490 "$ xns" : "Roo.data",
492 "xtype" : "SimpleStore",
493 "| data" : "(function() {return typeof(Pman) == 'object' ? Pman.I18n.simpleStoreData('l') : []})()"
498 "name" : "language_name",
499 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
500 "triggerAction" : "all",
501 "valueField" : "code",
509 "$ xns" : "Roo.form",
513 "$ xns" : "Roo.form",
520 " 'background-color',",
527 " 'border-collapse',",
555 " '-ms-interpolation-mode',",
556 " 'mso-table-rspace',",
557 " '-ms-text-size-adjust',",
561 " 'padding-bottom',",
568 " 'text-decoration',",
570 " 'vertical-align',",
571 " '-webkit-text-size-adjust',",
577 "$ xns" : "Roo.form",
578 "bool allowComments" : true,
579 "boolean autoClean" : false,
580 "boolean enableBlocks" : false,
585 "$ xns" : "Roo.form.HtmlEditor",
586 "* prop" : "toolbars[]",
587 "xtype" : "ToolbarContext"
590 "$ xns" : "Roo.form.HtmlEditor",
591 "* prop" : "toolbars[]",
594 "$ xns" : "Roo.form",
596 "alwaysQuery" : true,
597 "displayField" : "name",
599 "emptyText" : "Add Image",
600 "fieldLabel" : "Images",
601 "forceSelection" : true,
604 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
605 "$ xns" : "Roo.data",
609 "$ url" : "baseURL + '/Roo/Images.php'",
610 "$ xns" : "Roo.data",
613 "xtype" : "HttpProxy"
616 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"filename\",\"type\":\"string\"},{\"name\":\"url_thumb\",\"type\":\"string\"}]",
617 "$ xns" : "Roo.data",
621 "totalProperty" : "total",
622 "xtype" : "JsonReader"
627 "function (_self, o){",
628 " o.params = o.params || {};",
630 " var id = _this.form.findField('id').getValue() * 1; ",
632 " Roo.MessageBox.alert(\"Error\", \"Save email template first\");",
635 " o.params.onid = id;",
636 " o.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
638 " // o.params.imgtype = 'PressRelease';",
639 " //o.params['query[imagesize]'] = '150x150';",
652 "function (combo, query, forceAll, cancel, e)",
654 " var id = _this.form.findField('id').getValue() * 1; ",
656 " Roo.MessageBox.alert(\"Error\", \"Save message first\");",
664 " _this.extendimgselect = _self;",
668 "function (combo, record, index)",
672 " combo.setValue('');",
674 " var editor = _this.form.findField('bodytext').editorcore;",
676 " var curnode = editor.getSelectedNode();",
677 " if (curnode && curnode.tagName == 'IMG') {",
678 " curnode.src= String.format('{0}/Images/{1}/{2}#image-{1}',",
679 " baseURL, record.data.id, record.data.filename",
681 " // note -forces an update... hopefully...",
682 " editor.owner.fireEvent('editorevent', editor, false);",
685 " editor.insertAtCursor(",
686 " String.format('<img src=\"{0}/Images/{1}/{2}#image-{1}\">',",
687 " baseURL, record.data.id, record.data.filename",
696 "loadingText" : "Searching...",
699 "qtip" : "Select Images",
700 "selectOnFocus" : true,
701 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><img src=\"{public_baseURL}/Core/Images/Thumb/150x150/{id}.jpg\" height=\"150\" width=\"150\"><b>{filename}</b> </div>",
702 "triggerAction" : "all",
709 "$ xns" : "Roo.form",
711 "alwaysQuery" : true,
712 "displayField" : "name",
714 "emptyText" : "Insert Field",
715 "fieldLabel" : "Field",
716 "forceSelection" : true,
721 " [ '{person.firstname}', \"First Name\"],",
722 " [ '{person.lastname}' , \"Last Name\"],",
723 " [ '{person.name}', \"Full Name\"],",
724 " [ '#unsubscribe', \"Unsubscribe\"]",
728 "$ fields" : "[ 'type', 'name']",
729 "$ xns" : "Roo.data",
731 "xtype" : "SimpleStore"
739 " _this.unsubscribeselect = _self;",
743 "function (combo, record, index)",
747 " combo.setValue('');",
749 " var editor = _this.form.findField('bodytext').editorcore;",
751 " if(record.data.name == 'Unsubscribe'){",
752 " editor.insertAtCursor(",
753 " String.format('<a href=\"{0}\">{1}</a>',",
754 " record.data.type, record.data.name",
760 " editor.insertAtCursor(",
761 " String.format('{0}',",
769 "loadingText" : "Searching...",
772 "qtip" : "Insert Field",
773 "selectOnFocus" : true,
774 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
775 "triggerAction" : "all",
777 "valueField" : "type",
782 "$ xns" : "Roo.Toolbar",
784 "xtype" : "Separator"
787 "$ xns" : "Roo.Toolbar",
789 "String cls" : "x-init-enable",
792 "function (_self, e)",
794 " this.scope.owner.fireEvent('savedpreview', this.scope.owner);",
799 "text" : "Saved Version",
803 "xtype" : "ToolbarStandard"
810 " Roo.log('autosave');",
812 " var id = _this.form.findField('id').getValue() * 1;",
815 " if(!_self.editorcore.sourceEditMode){",
816 " _self.syncValue();",
818 " _self.pushValue();",
822 " new Pman.Request({",
823 " url : baseURL + '/Roo/Events.php',",
827 " action : 'AUTOSAVE',",
828 " on_id : (id > 0) ? id : 0,",
829 " on_table : 'crm_mailing_list_message',",
830 " remarks : 'BODY',",
831 " source: _self.getValue()",
833 " success : function() {",
834 " _self.originalValue = _self.getValue();",
837 " failure : function() ",
839 " Roo.log('body autosave failed?!');",
848 " var id = _this.form.findField('id').getValue() * 1;",
850 " var successFn = function(res){",
851 " return res.data.POST.source;",
855 " action : 'AUTOSAVE',",
856 " remarks : 'BODY',",
857 " on_id : (id < 1) ? 0 : id,",
858 " on_table : 'crm_mailing_list_message',",
859 " successFn : successFn",
863 " Pman.Dialog.CoreAutoSavePreview.show(params, function(res){",
864 " _self.setValue(res);",
865 " _self.originalValue = res;",
872 "xtype" : "HtmlEditor",
873 "| function autosave" : [
876 " var body = _this.form.findField('bodytext');",
878 " if(!body.wrap.isVisible(true) || body.getValue() == '' || !body.isDirty()){",
879 " Roo.log('body not dirty');",
883 " Roo.log('body dirty, auto save!');",
885 " body.fireEvent('autosave', body);",
892 "legend" : "Html Editor",
893 "style" : "text-align:center;",
900 "$ xns" : "Roo.form",
907 "function (_self, e)",
909 " var h = _this.form.findField('bodytext').getValue();",
910 " var p = _this.form.findField('plaintext');",
912 " new Pman.Request({\r",
913 " url : baseURL + '/Core/ImportMailMessage.php',\r",
914 " method : 'POST',\r",
917 " _convertToPlain : true,",
918 " _check_unsubscribe : true\r",
920 " success : function(res) {\r",
921 " if(res.success == true){",
922 " p.setValue(res.data);",
930 "text" : "Convert Html to Text",
937 "$ xns" : "Roo.form",
941 "$ xns" : "Roo.form",
945 "$ xns" : "Roo.form",
947 "name" : "plaintext",
951 "legend" : "Plain Text",
952 "style" : "text-align:center;",
959 "$ xns" : "Roo.form",
962 "$ xns" : "Roo.form",
963 "Boolean readOnly" : true,
965 "fieldLabel" : "Test Class <BR/> (for system reference only)",
966 "name" : "test_class",
968 "xtype" : "TextField"
974 "$ xns" : "Roo.form",
979 "labelAlign" : "right",
982 "|actioncomplete" : [
983 "function(_self,action)",
986 " if (action.type == 'setdata') {",
988 " setInterval(_this.form.findField('bodytext').autosave, 5000);",
990 " _this.data.module = _this.data.module || 'crm_mailing_list_message';",
992 " _this.form.url = baseURL + '/Roo/' + _this.data.module;",
994 " _this.html_preview.hide();",
995 " _this.preview_btn.hide();",
997 " if(_this.data.id*1 > 0){",
998 " _this.dialog.el.mask(\"Loading\");",
999 " this.load({ method: 'GET', params: { '_id' : _this.data.id }});",
1000 " _this.html_preview.show();",
1001 " _this.preview_btn.show();",
1004 " _this.form.setValues({",
1005 " 'from_name' : Pman.Login.authUser.name,",
1006 " 'from_email' : Pman.Login.authUser.email",
1011 " if (action.type == 'load') {",
1012 " _this.dialog.el.unmask();",
1014 " _this.form.findField('bodytext').originalValue = _this.form.findField('bodytext').getValue();",
1018 " if (action.type =='submit') {",
1020 " _this.dialog.el.unmask();",
1021 " _this.dialog.hide();",
1023 " if (_this.callback) {",
1024 " _this.callback.call(_this, action.result.data);",
1026 " _this.form.reset();",
1035 " _this.form= form;",
1041 "style" : "margin:10px",
1047 "function (_self, width, height)",
1050 " Roo.log(\"RESIZE, \" + width + ',' + height);",
1052 " var ew = Math.max(250, width-50);",
1053 " var eh = Math.max(250,height-50) ;",
1060 "function (_self, width, height)\r",
1062 " var ew = Math.max(250, width-50);\r",
1063 " var eh = Math.max(250,height-50) ;",
1065 " if (!_this.form) {\r",
1068 " var bdtext = _this.form.findField('bodytext');\r",
1069 " var ptext = _this.form.findField('plaintext');\r",
1070 " if(bdtext.resizeEl){\r",
1071 " bdtext.width = ew-50;\r",
1072 " bdtext.resizeEl.resizeTo.defer(110, bdtext.resizeEl,[ bdtext.width, bdtext.height ] );\r",
1073 " ptext.setSize(bdtext.width , bdtext.height);\r",
1079 "region" : "center",
1080 "title" : "Message",
1081 "xtype" : "ContentPanel"
1084 "xtype" : "BorderLayout"
1087 "region" : "center",
1088 "xtype" : "NestedLayoutPanel"
1092 "autoScroll" : false,
1093 "background" : false,
1094 "fitContainer" : true,
1095 "fitToframe" : true,
1098 "$ xns" : "Roo.grid",
1100 "autoExpandColumn" : "filename",
1103 "$ sortInfo" : "{ field : 'filename', direction: 'ASC' }",
1104 "$ xns" : "Roo.data",
1105 "* prop" : "dataSource",
1108 "$ url" : "baseURL + '/Roo/Images.php'",
1109 "$ xns" : "Roo.data",
1112 "xtype" : "HttpProxy"
1122 " 'name': 'filename',",
1123 " 'type': 'string'",
1126 " 'name': 'ontable',",
1127 " 'type': 'string'",
1134 " 'name': 'mimetype',",
1135 " 'type': 'string'",
1138 " 'name': 'width',",
1142 " 'name': 'height',",
1146 " 'name': 'filesize',",
1150 " 'name': 'displayorder',",
1154 " 'name': 'language',",
1155 " 'type': 'string'",
1158 " 'name': 'parent_image_id',",
1162 " 'name': 'created',",
1164 " 'dateFormat': 'Y-m-d'",
1167 " 'name': 'imgtype',",
1168 " 'type': 'string'",
1171 " 'name': 'linkurl',",
1172 " 'type': 'string'",
1175 " 'name': 'descript',",
1176 " 'type': 'string'",
1179 " 'name': 'title',",
1180 " 'type': 'string'",
1183 " 'name': 'parent_image_id_id',",
1187 " 'name': 'parent_image_id_filename',",
1188 " 'type': 'string'",
1191 " 'name': 'parent_image_id_ontable',",
1192 " 'type': 'string'",
1195 " 'name': 'parent_image_id_onid',",
1199 " 'name': 'parent_image_id_mimetype',",
1200 " 'type': 'string'",
1203 " 'name': 'parent_image_id_width',",
1207 " 'name': 'parent_image_id_height',",
1211 " 'name': 'parent_image_id_filesize',",
1215 " 'name': 'parent_image_id_displayorder',",
1219 " 'name': 'parent_image_id_language',",
1220 " 'type': 'string'",
1223 " 'name': 'parent_image_id_parent_image_id',",
1227 " 'name': 'parent_image_id_created',",
1231 " 'name': 'parent_image_id_imgtype',",
1232 " 'type': 'string'",
1235 " 'name': 'parent_image_id_linkurl',",
1236 " 'type': 'string'",
1239 " 'name': 'parent_image_id_descript',",
1240 " 'type': 'string'",
1243 " 'name': 'parent_image_id_title',",
1244 " 'type': 'string'",
1248 "$ xns" : "Roo.data",
1249 "* prop" : "reader",
1252 "totalProperty" : "total",
1253 "xtype" : "JsonReader"
1258 "function (_self, options)",
1260 " options.params = options.params || {};",
1261 " if (typeof(_this.data) == 'undefined') {",
1264 " if(_this.data.id * 1 >= 0)",
1266 " options.params.onid = _this.data.id;",
1268 " options.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
1273 "remoteSort" : true,
1278 "* prop" : "toolbar",
1281 "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
1282 "$ xns" : "Roo.Toolbar",
1283 "cls" : "x-btn-text-icon",
1288 " var id = _this.form.findField('id').getValue();",
1291 " Roo.MessageBox.alert('Error', 'Please save the email template first');",
1295 " var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
1297 " Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() {",
1298 " _this.igrid.getDataSource().load({});",
1308 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
1309 "$ xns" : "Roo.Toolbar",
1310 "cls" : "x-btn-text-icon",
1315 " Pman.genericDelete({grid: _this.igrid}, 'Images');",
1330 " var width = r.data.width;",
1331 " var height = r.data.height;",
1334 " height = Math.round(height * 50 / width);",
1338 " return '<img src=\"' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '\" width=\"' + width + '\" height=\"' + height + '\" />';",
1341 "$ xns" : "Roo.grid",
1342 "* prop" : "colModel[]",
1343 "dataIndex" : "filename",
1344 "header" : "Filename",
1346 "xtype" : "ColumnModel"
1349 "$ renderer" : "function(v) { return String.format('{0}', v); }",
1350 "$ xns" : "Roo.grid",
1351 "* prop" : "colModel[]",
1352 "dataIndex" : "displayorder",
1353 "header" : "Displayorder",
1355 "xtype" : "ColumnModel"
1358 "$ renderer" : "function(v) { return String.format('{0}', v); }",
1359 "$ xns" : "Roo.grid",
1360 "* prop" : "colModel[]",
1361 "dataIndex" : "title",
1364 "xtype" : "ColumnModel"
1371 " _this.igrid = this; ",
1372 " //_this.dialog = Pman.Dialog.FILL_IN",
1373 " if (_this.ipanel.active) {",
1374 " // _this.igrid.ds.load({});",
1386 " _this.ipanel = this;",
1387 " if (_this.igrid) {",
1388 " _this.igrid.ds.load({});",
1394 "tableName" : "Images",
1395 "title" : "Images / Attachments",
1396 "xtype" : "GridPanel"
1400 "* prop" : "buttons[]",
1403 "function (_self, e)",
1405 " //_this.dialog.hide();",
1406 " Roo.log(_this.data.module);",
1407 " Pman.Dialog.CoreEmailPreview.show({ id : _this.form.findField('id').getValue(), module : _this.data.module });",
1413 " _this.preview_btn = _self;",
1422 "* prop" : "buttons[]",
1425 "function (_self, e)",
1427 " //_this.dialog.hide();",
1429 " var id = _this.form.findField('id').getValue();",
1432 " Roo.MessageBox.alert('Error', 'Please save the message frist!');",
1436 " new Pman.Request({",
1437 " url : baseURL + '/Core/MessagePreview',",
1438 " method : 'POST',",
1439 " mask: 'Sending',",
1442 " _table : _this.data.module",
1444 " success : function(res) { ",
1445 " if(res.data == 'SUCCESS'){",
1446 " Roo.MessageBox.alert(\"Email Sent\", 'The report was sent to your email (HTML format).');",
1455 " _this.html_preview = _self;",
1459 "text" : "Send me a test copy",
1464 "* prop" : "buttons[]",
1467 "function (_self, e)",
1469 " _this.dialog.hide();",
1478 "* prop" : "buttons[]",
1481 "function (_self, e)",
1484 " // do some checks?",
1485 " _this.form.preValidate(function(res) {",
1487 " return; //failed.",
1489 " _this.form.doAction(\"submit\");",
1504 " _self.layout.getRegion('center').showPanel(0);",
1505 " var w = Roo.lib.Dom.getViewWidth();\r",
1506 " var h = Roo.lib.Dom.getViewHeight(); \r this.resizeTo(w-50, h-50);\r",
1507 " this.center();\r ",
1508 " var ew = Math.max(250, w-320);\r",
1509 " var eh = Math.max(250, h-350) ;\r",
1510 " var e = _this.dialog.layout.getRegion('east');",
1511 " if (e.visible) {",
1515 " var el = _self.getEl();",
1516 " var elw = el.dom.clientWidth;",
1518 " var bdtext = _this.form.findField('bodytext');",
1519 " var ptext = _this.form.findField('plaintext');",
1520 " if(bdtext.resizeEl){",
1521 " bdtext.width = elw-100;",
1522 " bdtext.resizeEl.resizeTo.defer(110, bdtext.resizeEl,[ bdtext.width, bdtext.height ] );",
1523 " ptext.setSize(bdtext.width , bdtext.height);",
1531 "title" : "Edit / Create Message",
1533 "xtype" : "LayoutDialog"
1537 "name" : "Pman.Dialog.CoreEmail",
1539 "active_boxLabel" : "28690be026c0bb9003aa58e45e5662ca",
1540 "active_value" : "c4ca4238a0b923820dcc509a6f75849b",
1541 "bcc_group_id_name_emptyText" : "2c466a2c159463f1d9ef5a7b57b52827",
1542 "bcc_group_id_name_fieldLabel" : "68b00d723d37122f64da8d9939f836f0",
1543 "bcc_group_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
1544 "bcc_group_id_name_qtip" : "2c466a2c159463f1d9ef5a7b57b52827",
1545 "from_email_fieldLabel" : "b357b524e740bc85b9790a0712d84a30",
1546 "from_name_fieldLabel" : "5da618e8e4b89c66fe86e32cdafde142",
1547 "language_name_fieldLabel" : "4994a8ffeba4ac3140beb89e8d41f174",
1548 "name_fieldLabel" : "b20a8b77b05d53b4e695738731400c85",
1549 "subject_fieldLabel" : "c7892ebbb139886662c6f2fc8c450710",
1550 "template_emptyText" : "31bb2f6e9b8fb11cbb7fb63c6025223f",
1551 "template_fieldLabel" : "278c491bdd8a53618c149c4ac790da34",
1552 "template_loadingText" : "1243daf593fa297e07ab03bf06d925af",
1553 "template_qtip" : "31bb2f6e9b8fb11cbb7fb63c6025223f",
1554 "test_class_fieldLabel" : "b337c8a67244afb6551ee1f8f9717676"
1557 "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreEmail.bjs",
1560 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
1561 "1351017ac6423911223bc19a8cb7c653" : "Filename",
1562 "1bd18d39370b7f26c1c5e18067b74c6f" : "Html File",
1563 "2393ad754ba179442d85e415d1d5167c" : "Displayorder",
1564 "278c491bdd8a53618c149c4ac790da34" : "Template",
1565 "28690be026c0bb9003aa58e45e5662ca" : "Enabled - will be sent out",
1566 "2c466a2c159463f1d9ef5a7b57b52827" : "Select BCC Group",
1567 "2f26e35d61be90501e099089dc533638" : "Select Images",
1568 "308f2757bfc9ce92fb00ff93fdffd279" : "Images / Attachments",
1569 "31bb2f6e9b8fb11cbb7fb63c6025223f" : "Select Template",
1570 "31fde7b05ac8952dacf4af8a704074ec" : "Preview",
1571 "396ecabf0cd1f9503e591418851ef406" : "Edit / Create Message",
1572 "4994a8ffeba4ac3140beb89e8d41f174" : "Language",
1573 "4c2a8fe7eaf24721cc7a9f0175115bd4" : "Message",
1574 "5b8ef4e762c00a15a41cfc26dc3ef99c" : "Send me a test copy",
1575 "5da618e8e4b89c66fe86e32cdafde142" : "From",
1576 "5feb9bf3c03b32635135006cbacb9542" : "Insert Field",
1577 "68b00d723d37122f64da8d9939f836f0" : "BCC Group",
1578 "6f16a5f8ff5d75ab84c018adacdfcbb7" : "Field",
1579 "72d6d7a1885885bb55a565fd1070581a" : "Import",
1580 "884df8e413319ff51a3f5f528606238a" : "Use template",
1581 "962b90039a542a29cedd51d87a9f28a1" : "Html Editor",
1582 "b20a8b77b05d53b4e695738731400c85" : "Mailout Name",
1583 "b337c8a67244afb6551ee1f8f9717676" : "Test Class <BR/> (for system reference only)",
1584 "b357b524e740bc85b9790a0712d84a30" : "Email address",
1585 "b78a3223503896721cca1303f776159b" : "Title",
1586 "b9c49611cfda3259a2b837b39489e650" : "Add Image",
1587 "bd88a20b53a47f7b5704a83a15ff5506" : "Saved Version",
1588 "c4ca4238a0b923820dcc509a6f75849b" : "1",
1589 "c7892ebbb139886662c6f2fc8c450710" : "Subject",
1590 "c9cc8cce247e49bae79f15173ce97354" : "Save",
1591 "dc0de523c25be298ba751c63c694109e" : "Responsive Email (1)",
1592 "e44b145bd8b49b06e0ad2ced1ad56466" : "Plain Text",
1593 "e6b391a8d2c4d45902a23a8b6585703d" : "URL",
1594 "e9968623956c15023d54335ea3699855" : "Convert Html to Text",
1595 "ea30b40c3caf28acb29198d20d243e54" : "Images / Attachments >>",
1596 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
1597 "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
1598 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
1599 "fff0d600f8a0b5e19e88bfb821dd1157" : "Images"