fix #8131 - chinese translations
[Pman.Core] / Pman.Dialog.CoreEmail.bjs
1 {
2  "items" : [
3   {
4    "$ xns" : "Roo",
5    "closable" : true,
6    "collapsible" : false,
7    "height" : 500,
8    "items" : [
9     {
10      "$ xns" : "Roo",
11      "* prop" : "center",
12      "tabPosition" : "top",
13      "xtype" : "LayoutRegion"
14     },
15     {
16      "$ xns" : "Roo",
17      "* prop" : "east",
18      "hidden" : true,
19      "split" : true,
20      "title" : "Images / Attachments",
21      "titlebar" : true,
22      "width" : 500,
23      "xtype" : "LayoutRegion"
24     },
25     {
26      "$ xns" : "Roo",
27      "autoScroll" : false,
28      "fitContainer" : true,
29      "fitToFrame" : true,
30      "items" : [
31       {
32        "$ xns" : "Roo",
33        "* prop" : "toolbar",
34        "items" : [
35         {
36          "$ xns" : "Roo.Toolbar",
37          "items" : [
38           {
39            "$ xns" : "Roo.menu",
40            "* prop" : "menu",
41            "items" : [
42             {
43              "$ xns" : "Roo.menu",
44              "listeners" : {
45               "click" : [
46                "function (_self, e)",
47                "{",
48                "    Pman.Dialog.CoreImportUrl.show({",
49                "        target : '/Core/ImportMailMessage.php'",
50                "    }, function(data) {",
51                "        if  (data) {",
52                "          //  Roo.log(data);",
53                "            _this.form.findField('bodytext').setValue(data);",
54                "        }",
55                "    });",
56                "}"
57               ]
58              },
59              "text" : "URL",
60              "xtype" : "Item"
61             },
62             {
63              "$ xns" : "Roo.menu",
64              "listeners" : {
65               "click" : [
66                "function (_self, e)",
67                "{",
68                "    Pman.Dialog.Image.show({",
69                "        _url : baseURL + '/Core/ImportMailMessage.php'",
70                "    }, function(data) {",
71                "        if  (data) {",
72                "            _this.form.findField('bodytext').setValue(data);",
73                "        }",
74                "    });",
75                "}"
76               ]
77              },
78              "text" : "Html File",
79              "xtype" : "Item"
80             }
81            ],
82            "xtype" : "Menu"
83           }
84          ],
85          "text" : "Import",
86          "xtype" : "Button"
87         },
88         {
89          "$ xns" : "Roo.Toolbar",
90          "items" : [
91           {
92            "$ xns" : "Roo.menu",
93            "* prop" : "menu",
94            "items" : [
95             {
96              "$ xns" : "Roo.menu",
97              "listeners" : {
98               "click" : [
99                "function (_self, e)",
100                "{",
101                "",
102                "    var l = document.location;",
103                "    new Pman.Request({",
104                "",
105                "        url : baseURL + '/Core/ImportMailMessage.php',",
106                "",
107                "        method: 'POST',",
108                "        mask : \"Loading\",",
109                "        params : {",
110                "              importUrl : l.protocol +'//' + l.host +   rootURL + '/Pman/Crm/mail_templates/responsive1.html'",
111                "       },",
112                "        success : function (res) {",
113                "",
114                "         _this.form.findField('bodytext').setValue(res.data);",
115                "        }",
116                "  ",
117                "    });",
118                "}"
119               ]
120              },
121              "text" : "Responsive Email (1)",
122              "xtype" : "Item"
123             }
124            ],
125            "xtype" : "Menu"
126           }
127          ],
128          "text" : "Use template",
129          "xtype" : "Button"
130         },
131         {
132          "$ xns" : "Roo.form",
133          "allowBlank" : true,
134          "alwaysQuery" : true,
135          "displayField" : "file",
136          "editable" : false,
137          "emptyText" : "Select Template",
138          "fieldLabel" : "Template",
139          "forceSelection" : true,
140          "hiddenName" : "template",
141          "items" : [
142           {
143            "$ sortInfo" : "{ direction : 'DESC', field: 'file' }",
144            "$ xns" : "Roo.data",
145            "* prop" : "store",
146            "items" : [
147             {
148              "$ url" : "baseURL + '/Core/MailTemplateList.php'",
149              "$ xns" : "Roo.data",
150              "* prop" : "proxy",
151              "method" : "GET",
152              "xtype" : "HttpProxy"
153             },
154             {
155              "$ fields" : "[{\"name\":\"file\",\"type\":\"string\"},{\"name\":\"content\",\"type\":\"string\"}]",
156              "$ xns" : "Roo.data",
157              "* prop" : "reader",
158              "id" : "name",
159              "root" : "data",
160              "totalProperty" : "total",
161              "xtype" : "JsonReader"
162             }
163            ],
164            "listeners" : {
165             "|beforeload" : [
166              "function (_self, o){",
167              "    o.params = o.params || {};",
168              "    // set more here",
169              "   ",
170              "}",
171              ""
172             ]
173            },
174            "remoteSort" : true,
175            "xtype" : "Store"
176           }
177          ],
178          "listWidth" : 400,
179          "listeners" : {
180           "select" : [
181            "function (combo, record, index)",
182            "{",
183            "   ",
184            "/*",
185            "    (function() { ",
186            "        combo.setValue('');",
187            "    }).defer(100);",
188            "*/    ",
189            "    if(!record){",
190            "        return;",
191            "    }",
192            "    _this.form.findField('bodytext').setValue(record.data.content);",
193            "",
194            "}"
195           ]
196          },
197          "loadingText" : "Searching...",
198          "minChars" : 2,
199          "name" : "template",
200          "pageSize" : 20,
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",
205          "typeAhead" : true,
206          "valueField" : "file",
207          "width" : 200,
208          "xtype" : "ComboBox"
209         },
210         {
211          "$ xns" : "Roo.Toolbar",
212          "xtype" : "Fill"
213         },
214         {
215          "$ xns" : "Roo.Toolbar",
216          "listeners" : {
217           "click" : [
218            "function (_self, e)",
219            "{",
220            "    var el = _this.dialog.layout.getRegion('east');",
221            "    if (el.visible) {",
222            "        el.hide();",
223            "    } else {",
224            "        el.show();",
225            "        el.showPanel(0);",
226            "    }",
227            "    ",
228            "}"
229           ]
230          },
231          "text" : "Images / Attachments >>",
232          "xtype" : "Button"
233         }
234        ],
235        "xtype" : "Toolbar"
236       },
237       {
238        "$ xns" : "Roo",
239        "* prop" : "layout",
240        "items" : [
241         {
242          "$ xns" : "Roo",
243          "* prop" : "center",
244          "autoScroll" : true,
245          "xtype" : "LayoutRegion"
246         },
247         {
248          "$ xns" : "Roo",
249          "autoScroll" : false,
250          "background" : false,
251          "fitContainer" : true,
252          "fitToFrame" : true,
253          "items" : [
254           {
255            "$ preValidate" : [
256             "function(done_callback) {",
257             "    ",
258             "    Roo.MessageBox.progress(\"Uploading Images\", \"Uploading\");",
259             "    ",
260             "    if(!_this.form.findField('bodytext').editorcore.sourceEditMode){",
261             "        _this.form.findField('bodytext').syncValue();",
262             "    }else{",
263             "        _this.form.findField('bodytext').pushValue();",
264             "    }",
265             "    ",
266             "    var html = _this.form.findField('bodytext').getValue();",
267             "    ",
268             "    var s = Roo.get(_this.form.findField('bodytext').editorcore.doc.documentElement);",
269             "    ",
270             "    var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
271             "    ",
272             "    var nodes = [];",
273             "    s.select('img[src]').each(function(i) {",
274             "        nodes.push(i.dom);",
275             "    });",
276             "    var total = nodes.length;",
277             "    var mkimg = function() {",
278             "    ",
279             "        if (!nodes.length) {",
280             "              Roo.MessageBox.hide();",
281             "              _this.form.findField('bodytext').syncValue();",
282             "              done_callback(true);",
283             "           //    _this.form.doAction(\"submit\");",
284             "              return;",
285             "        }",
286             "        var i = nodes.pop(); ",
287             "        ",
288             "        var n = i.getAttribute('src').match(/(baseURL|server_baseurl)/);",
289             "        ",
290             "        if(n){",
291             "            mkimg();",
292             "            return;",
293             "        }",
294             "        ",
295             "        n = i.getAttribute('src').match(/^http(.*)/);",
296             "       ",
297             "        if(!n ){",
298             "            mkimg();",
299             "            return;",
300             "        }",
301             "        ",
302             "        new Pman.Request({",
303             "            url : baseURL + '/Roo/Images.php',",
304             "            method : 'POST',",
305             "            params : {",
306             "                onid : _this.form.findField('id').getValue(),",
307             "                ontable : ontable ,",
308             "                _remote_upload : i.src",
309             "            },",
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);",
314             "                }",
315             "                mkimg();",
316             "            }",
317             "        });",
318             "       ",
319             "    }",
320             "    ",
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\",",
324             "            function(res) {",
325             "                if (res == 'no') {",
326             "                    return;",
327             "                }",
328             "                mkimg();",
329             "            }",
330             "        );",
331             "",
332             "        return;",
333             "    }",
334             "    ",
335             "    mkimg();",
336             "}",
337             ""
338            ],
339            "$ url" : "baseURL + '/Roo/crm_mailing_list_message.php'",
340            "$ xns" : "Roo.form",
341            "items" : [
342             {
343              "$ xns" : "Roo.form",
344              "items" : [
345               {
346                "$ xns" : "Roo.form",
347                "allowBlank" : false,
348                "fieldLabel" : "Mailout Name",
349                "name" : "name",
350                "width" : 400,
351                "xtype" : "TextField"
352               },
353               {
354                "$ xns" : "Roo.form",
355                "Number labelWidth" : 0,
356                "String labelSeparator" : " ",
357                "items" : [
358                 {
359                  "$ xns" : "Roo.form",
360                  "Boolean checked" : true,
361                  "Mixed value" : 1,
362                  "String boxLabel" : "Enabled - will be sent out",
363                  "String name" : "active",
364                  "String valueOff" : 0,
365                  "listeners" : {
366                   "check" : [
367                    "function (_self, checked)",
368                    "{",
369                    "    var boxLabel = 'Enabled - will be sent out';",
370                    "    ",
371                    "    if(!checked){",
372                    "        boxLabel = 'Disabled - will NOT be sent out';",
373                    "    }",
374                    "    ",
375                    "    this.setBoxLabel(boxLabel);",
376                    "}"
377                   ]
378                  },
379                  "xtype" : "Checkbox"
380                 }
381                ],
382                "xtype" : "Column"
383               }
384              ],
385              "xtype" : "Row"
386             },
387             {
388              "$ xns" : "Roo.form",
389              "items" : [
390               {
391                "$ xns" : "Roo.form",
392                "allowBlank" : false,
393                "fieldLabel" : "From",
394                "name" : "from_name",
395                "width" : 300,
396                "xtype" : "TextField"
397               },
398               {
399                "$ xns" : "Roo.form",
400                "allowBlank" : false,
401                "fieldLabel" : "Email address",
402                "name" : "from_email",
403                "width" : 300,
404                "xtype" : "TextField"
405               },
406               {
407                "$ xns" : "Roo.form",
408                "Boolean forceSelection" : true,
409                "allowBlank" : true,
410                "alwaysQuery" : true,
411                "displayField" : "name",
412                "editable" : false,
413                "emptyText" : "Select BCC Group",
414                "fieldLabel" : "BCC Group",
415                "hiddenName" : "bcc_group_id",
416                "items" : [
417                 {
418                  "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
419                  "$ xns" : "Roo.data",
420                  "* prop" : "store",
421                  "items" : [
422                   {
423                    "$ url" : "baseURL + '/Roo/Core_group'",
424                    "$ xns" : "Roo.data",
425                    "* prop" : "proxy",
426                    "method" : "GET",
427                    "xtype" : "HttpProxy"
428                   },
429                   {
430                    "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"id\",\"type\":\"int\"}]",
431                    "$ xns" : "Roo.data",
432                    "* prop" : "reader",
433                    "id" : "name",
434                    "root" : "data",
435                    "totalProperty" : "total",
436                    "xtype" : "JsonReader"
437                   }
438                  ],
439                  "listeners" : {
440                   "|beforeload" : [
441                    "function (_self, o){",
442                    "    o.params = o.params || {};",
443                    "    ",
444                    "    o.params._direct_return = 1;",
445                    "}",
446                    ""
447                   ]
448                  },
449                  "remoteSort" : true,
450                  "xtype" : "Store"
451                 }
452                ],
453                "loadingText" : "Searching...",
454                "minChars" : 2,
455                "name" : "bcc_group_id_name",
456                "pageSize" : 25,
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",
461                "typeAhead" : true,
462                "valueField" : "id",
463                "width" : 300,
464                "xtype" : "ComboBox"
465               }
466              ],
467              "xtype" : "Row"
468             },
469             {
470              "$ xns" : "Roo.form",
471              "items" : [
472               {
473                "$ xns" : "Roo.form",
474                "allowBlank" : false,
475                "fieldLabel" : "Subject",
476                "name" : "subject",
477                "width" : 600,
478                "xtype" : "TextField"
479               },
480               {
481                "$ xns" : "Roo.form",
482                "allowBlank" : false,
483                "displayField" : "title",
484                "editable" : false,
485                "fieldLabel" : "Language",
486                "hiddenName" : "language",
487                "items" : [
488                 {
489                  "$ fields" : "['code', 'title']",
490                  "$ xns" : "Roo.data",
491                  "* prop" : "store",
492                  "xtype" : "SimpleStore",
493                  "| data" : "(function() {return typeof(Pman) == 'object'  ? Pman.I18n.simpleStoreData('l') : []})()"
494                 }
495                ],
496                "listWidth" : 200,
497                "mode" : "local",
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",
502                "width" : 200,
503                "xtype" : "ComboBox"
504               }
505              ],
506              "xtype" : "Row"
507             },
508             {
509              "$ xns" : "Roo.form",
510              "hideLabels" : true,
511              "items" : [
512               {
513                "$ xns" : "Roo.form",
514                "hideLabels" : true,
515                "items" : [
516                 {
517                  "$ cwhite" : [
518                   "[ ",
519                   "    'background',",
520                   "    'background-color',",
521                   "    'border',",
522                   "    'border-radius',",
523                   "    'border-bottom',",
524                   "    'border-left',",
525                   "    'border-right',",
526                   "    'border-top',",
527                   "    'border-collapse',",
528                   "     'border-color',",
529                   "     'border-style',",
530                   "    'border-width',",
531                   "",
532                   "    ",
533                   "    'box-shadow',",
534                   "    'clear',",
535                   "    'color',",
536                   "    'cursor',",
537                   "    'display',",
538                   "    'float' ,",
539                   "    'font-family',",
540                   "    'font-size',",
541                   "    'font-style',        ",
542                   "    'font-weight',",
543                   "",
544                   "    'height',",
545                   "    'left',",
546                   "    'line-height',",
547                   "    'list-style',",
548                   "    'margin',",
549                   "    'margin-bottom',",
550                   "    'margin-left',",
551                   "    'margin-right',",
552                   "    'margin-top',",
553                   "    'max-width',",
554                   "    'min-height',",
555                   "    '-ms-interpolation-mode',",
556                   "    'mso-table-rspace',",
557                   "    '-ms-text-size-adjust',",
558                   "    'outline',",
559                   "    'overflow',",
560                   "    'padding',",
561                   "    'padding-bottom',",
562                   "    'padding-left',",
563                   "    'padding-right',",
564                   "    'padding-top',",
565                   "    'position',",
566                   "    'right',",
567                   "    'text-align',",
568                   "    'text-decoration',",
569                   "    'top',",
570                   "    'vertical-align',",
571                   "    '-webkit-text-size-adjust',",
572                   "    'width',",
573                   "    'width',",
574                   "    'z-index'",
575                   " ]"
576                  ],
577                  "$ xns" : "Roo.form",
578                  "bool allowComments" : true,
579                  "boolean autoClean" : false,
580                  "boolean enableBlocks" : false,
581                  "clearUp" : false,
582                  "height" : 250,
583                  "items" : [
584                   {
585                    "$ xns" : "Roo.form.HtmlEditor",
586                    "* prop" : "toolbars[]",
587                    "xtype" : "ToolbarContext"
588                   },
589                   {
590                    "$ xns" : "Roo.form.HtmlEditor",
591                    "* prop" : "toolbars[]",
592                    "items" : [
593                     {
594                      "$ xns" : "Roo.form",
595                      "* prop" : "btns[]",
596                      "alwaysQuery" : true,
597                      "displayField" : "name",
598                      "editable" : false,
599                      "emptyText" : "Add Image",
600                      "fieldLabel" : "Images",
601                      "forceSelection" : true,
602                      "items" : [
603                       {
604                        "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
605                        "$ xns" : "Roo.data",
606                        "* prop" : "store",
607                        "items" : [
608                         {
609                          "$ url" : "baseURL + '/Roo/Images.php'",
610                          "$ xns" : "Roo.data",
611                          "* prop" : "proxy",
612                          "method" : "GET",
613                          "xtype" : "HttpProxy"
614                         },
615                         {
616                          "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"filename\",\"type\":\"string\"},{\"name\":\"url_thumb\",\"type\":\"string\"}]",
617                          "$ xns" : "Roo.data",
618                          "* prop" : "reader",
619                          "id" : "id",
620                          "root" : "data",
621                          "totalProperty" : "total",
622                          "xtype" : "JsonReader"
623                         }
624                        ],
625                        "listeners" : {
626                         "|beforeload" : [
627                          "function (_self, o){",
628                          "    o.params = o.params || {};",
629                          "",
630                          "    var id = _this.form.findField('id').getValue() * 1;    ",
631                          "    if (!id) {",
632                          "        Roo.MessageBox.alert(\"Error\", \"Save email template first\");",
633                          "        return false;",
634                          "    }",
635                          "    o.params.onid = id;",
636                          "    o.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
637                          "    ",
638                          "   // o.params.imgtype = 'PressRelease';",
639                          "    //o.params['query[imagesize]'] = '150x150';",
640                          "    // set more here",
641                          "}",
642                          ""
643                         ]
644                        },
645                        "remoteSort" : true,
646                        "xtype" : "Store"
647                       }
648                      ],
649                      "listWidth" : 400,
650                      "listeners" : {
651                       "beforequery" : [
652                        "function (combo, query, forceAll, cancel, e)",
653                        "{",
654                        "    var id = _this.form.findField('id').getValue() * 1;    ",
655                        "    if (!id) {",
656                        "        Roo.MessageBox.alert(\"Error\", \"Save message first\");",
657                        "        return false;",
658                        "    }",
659                        "}"
660                       ],
661                       "render" : [
662                        "function (_self)",
663                        "{",
664                        "    _this.extendimgselect = _self;",
665                        "}"
666                       ],
667                       "select" : [
668                        "function (combo, record, index)",
669                        "{",
670                        "    Roo.log(record);",
671                        "    (function() { ",
672                        "        combo.setValue('');",
673                        "    }).defer(100);",
674                        "    var editor = _this.form.findField('bodytext').editorcore;",
675                        "    ",
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",
680                        "            );",
681                        "            // note -forces an update... hopefully...",
682                        "        editor.owner.fireEvent('editorevent', editor, false);",
683                        "    } else {",
684                        "    ",
685                        "        editor.insertAtCursor(",
686                        "            String.format('<img src=\"{0}/Images/{1}/{2}#image-{1}\">',",
687                        "            baseURL,  record.data.id, record.data.filename",
688                        "            )",
689                        "        );",
690                        "",
691                        "    }",
692                        "    ",
693                        " }"
694                       ]
695                      },
696                      "loadingText" : "Searching...",
697                      "minChars" : 2,
698                      "pageSize" : 20,
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",
703                      "typeAhead" : true,
704                      "valueField" : "id",
705                      "width" : 100,
706                      "xtype" : "ComboBox"
707                     },
708                     {
709                      "$ xns" : "Roo.form",
710                      "* prop" : "btns[]",
711                      "alwaysQuery" : true,
712                      "displayField" : "name",
713                      "editable" : false,
714                      "emptyText" : "Insert Field",
715                      "fieldLabel" : "Field",
716                      "forceSelection" : true,
717                      "items" : [
718                       {
719                        "$ data" : [
720                         "[ ",
721                         "    [ '{person.firstname}', \"First Name\"],",
722                         "    [ '{person.lastname}' , \"Last Name\"],",
723                         "    [ '{person.name}', \"Full Name\"],",
724                         "    [ '#unsubscribe', \"Unsubscribe\"]",
725                         "]",
726                         ""
727                        ],
728                        "$ fields" : "[  'type', 'name']",
729                        "$ xns" : "Roo.data",
730                        "* prop" : "store",
731                        "xtype" : "SimpleStore"
732                       }
733                      ],
734                      "listWidth" : 400,
735                      "listeners" : {
736                       "render" : [
737                        "function (_self)",
738                        "{",
739                        "    _this.unsubscribeselect = _self;",
740                        "}"
741                       ],
742                       "select" : [
743                        "function (combo, record, index)",
744                        "{",
745                        "    Roo.log(record);",
746                        "    (function() { ",
747                        "        combo.setValue('');",
748                        "    }).defer(100);",
749                        "    var editor = _this.form.findField('bodytext').editorcore;",
750                        "    ",
751                        "    if(record.data.name == 'Unsubscribe'){",
752                        "        editor.insertAtCursor(",
753                        "            String.format('<a href=\"{0}\">{1}</a>',",
754                        "                record.data.type,  record.data.name",
755                        "            )",
756                        "        );",
757                        "        return;     ",
758                        "    }",
759                        "    ",
760                        "    editor.insertAtCursor(",
761                        "        String.format('{0}',",
762                        "            record.data.type",
763                        "        )",
764                        "    );",
765                        "    ",
766                        " }"
767                       ]
768                      },
769                      "loadingText" : "Searching...",
770                      "minChars" : 2,
771                      "pageSize" : 20,
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",
776                      "typeAhead" : true,
777                      "valueField" : "type",
778                      "width" : 100,
779                      "xtype" : "ComboBox"
780                     },
781                     {
782                      "$ xns" : "Roo.Toolbar",
783                      "* prop" : "btns[]",
784                      "xtype" : "Separator"
785                     },
786                     {
787                      "$ xns" : "Roo.Toolbar",
788                      "* prop" : "btns[]",
789                      "String cls" : "x-init-enable",
790                      "listeners" : {
791                       "click" : [
792                        "function (_self, e)",
793                        "{",
794                        "    this.scope.owner.fireEvent('savedpreview', this.scope.owner);",
795                        "    ",
796                        "}"
797                       ]
798                      },
799                      "text" : "Saved Version",
800                      "xtype" : "Button"
801                     }
802                    ],
803                    "xtype" : "ToolbarStandard"
804                   }
805                  ],
806                  "listeners" : {
807                   "autosave" : [
808                    "function (_self)",
809                    "{",
810                    "    Roo.log('autosave');",
811                    "    ",
812                    "    var id = _this.form.findField('id').getValue() * 1;",
813                    "    ",
814                    "    /*",
815                    "    if(!_self.editorcore.sourceEditMode){",
816                    "        _self.syncValue();",
817                    "    }else{",
818                    "        _self.pushValue();",
819                    "    }",
820                    "    */",
821                    "    ",
822                    "    new Pman.Request({",
823                    "        url : baseURL + '/Roo/Events.php',",
824                    "        method :'POST',",
825                    "        params : {",
826                    "            id : 0,",
827                    "            action : 'AUTOSAVE',",
828                    "            on_id : (id > 0) ? id : 0,",
829                    "            on_table : 'crm_mailing_list_message',",
830                    "            remarks : 'BODY',",
831                    "            source: _self.getValue()",
832                    "        },",
833                    "        success : function() {",
834                    "            _self.originalValue = _self.getValue();",
835                    "            ",
836                    "        },",
837                    "        failure : function() ",
838                    "        {",
839                    "            Roo.log('body autosave failed?!');",
840                    "        }",
841                    "    });",
842                    "    ",
843                    "}"
844                   ],
845                   "savedpreview" : [
846                    "function (_self)",
847                    "{",
848                    "    var id = _this.form.findField('id').getValue() * 1;",
849                    "    ",
850                    "    var successFn = function(res){",
851                    "        return res.data.POST.source;",
852                    "    };",
853                    "    ",
854                    "    var params = {",
855                    "        action : 'AUTOSAVE',",
856                    "        remarks : 'BODY',",
857                    "        on_id : (id < 1) ? 0 : id,",
858                    "        on_table : 'crm_mailing_list_message',",
859                    "        successFn : successFn",
860                    "    };",
861                    "    ",
862                    "    ",
863                    "    Pman.Dialog.CoreAutoSavePreview.show(params, function(res){",
864                    "        _self.setValue(res);",
865                    "        _self.originalValue = res;",
866                    "    });",
867                    "}"
868                   ]
869                  },
870                  "name" : "bodytext",
871                  "resizable" : "s",
872                  "xtype" : "HtmlEditor",
873                  "| function autosave" : [
874                   "function() {",
875                   "    ",
876                   "    var body = _this.form.findField('bodytext');",
877                   "    ",
878                   "    if(!body.wrap.isVisible(true) || body.getValue() == '' || !body.isDirty()){",
879                   "        Roo.log('body not dirty');",
880                   "        return;",
881                   "    }",
882                   "    ",
883                   "    Roo.log('body dirty, auto save!');",
884                   "    ",
885                   "    body.fireEvent('autosave', body);",
886                   "   ",
887                   "}",
888                   ""
889                  ]
890                 }
891                ],
892                "legend" : "Html Editor",
893                "style" : "text-align:center;",
894                "xtype" : "FieldSet"
895               }
896              ],
897              "xtype" : "Row"
898             },
899             {
900              "$ xns" : "Roo.form",
901              "hideLabels" : true,
902              "items" : [
903               {
904                "$ xns" : "Roo",
905                "listeners" : {
906                 "click" : [
907                  "function (_self, e)",
908                  "{",
909                  "    var h = _this.form.findField('bodytext').getValue();",
910                  "    var p = _this.form.findField('plaintext');",
911                  "    ",
912                  "    new Pman.Request({\r",
913                  "        url : baseURL + '/Core/ImportMailMessage.php',\r",
914                  "        method : 'POST',\r",
915                  "        params : {",
916                  "          bodytext : h,\r",
917                  "          _convertToPlain : true,",
918                  "          _check_unsubscribe : true\r",
919                  "        }, \r",
920                  "        success : function(res) {\r",
921                  "            if(res.success == true){",
922                  "               p.setValue(res.data);",
923                  "            }\r",
924                  "        }\r",
925                  "    });",
926                  "    ",
927                  "}"
928                 ]
929                },
930                "text" : "Convert Html to Text",
931                "xtype" : "Button"
932               }
933              ],
934              "xtype" : "Row"
935             },
936             {
937              "$ xns" : "Roo.form",
938              "hideLabels" : true,
939              "items" : [
940               {
941                "$ xns" : "Roo.form",
942                "hideLabels" : true,
943                "items" : [
944                 {
945                  "$ xns" : "Roo.form",
946                  "height" : 50,
947                  "name" : "plaintext",
948                  "xtype" : "TextArea"
949                 }
950                ],
951                "legend" : "Plain Text",
952                "style" : "text-align:center;",
953                "xtype" : "FieldSet"
954               }
955              ],
956              "xtype" : "Row"
957             },
958             {
959              "$ xns" : "Roo.form",
960              "items" : [
961               {
962                "$ xns" : "Roo.form",
963                "Boolean readOnly" : true,
964                "allowBlank" : true,
965                "fieldLabel" : "Test Class <BR/> (for system reference only)",
966                "name" : "test_class",
967                "width" : 300,
968                "xtype" : "TextField"
969               }
970              ],
971              "xtype" : "Row"
972             },
973             {
974              "$ xns" : "Roo.form",
975              "name" : "id",
976              "xtype" : "Hidden"
977             }
978            ],
979            "labelAlign" : "right",
980            "labelWidth" : 120,
981            "listeners" : {
982             "|actioncomplete" : [
983              "function(_self,action)",
984              "{",
985              "   ",
986              "    if (action.type == 'setdata') {",
987              "    ",
988              "        setInterval(_this.form.findField('bodytext').autosave, 5000);",
989              "        ",
990              "        _this.data.module = _this.data.module || 'crm_mailing_list_message';",
991              "        ",
992              "        _this.form.url = baseURL + '/Roo/' + _this.data.module;",
993              "        ",
994              "        _this.html_preview.hide();",
995              "        _this.preview_btn.hide();",
996              "            ",
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();",
1002              "            ",
1003              "        } else {",
1004              "            _this.form.setValues({",
1005              "                'from_name' : Pman.Login.authUser.name,",
1006              "                'from_email' : Pman.Login.authUser.email",
1007              "            });",
1008              "        }",
1009              "       return;",
1010              "    }",
1011              "    if (action.type == 'load') {",
1012              "        _this.dialog.el.unmask();",
1013              "        ",
1014              "        _this.form.findField('bodytext').originalValue = _this.form.findField('bodytext').getValue();",
1015              "        ",
1016              "        return;",
1017              "    }",
1018              "    if (action.type =='submit') {",
1019              "    ",
1020              "        _this.dialog.el.unmask();",
1021              "        _this.dialog.hide();",
1022              "    ",
1023              "         if (_this.callback) {",
1024              "            _this.callback.call(_this, action.result.data);",
1025              "         }",
1026              "         _this.form.reset();",
1027              "         return;",
1028              "    }",
1029              "}",
1030              ""
1031             ],
1032             "|rendered" : [
1033              "function (form)",
1034              "{",
1035              "    _this.form= form;",
1036              "}",
1037              ""
1038             ]
1039            },
1040            "method" : "POST",
1041            "style" : "margin:10px",
1042            "xtype" : "Form"
1043           }
1044          ],
1045          "listeners" : {
1046           "render" : [
1047            "function (_self, width, height)",
1048            "{",
1049            "    ",
1050            "      Roo.log(\"RESIZE, \" + width + ',' + height);",
1051            "    ",
1052            "    var ew = Math.max(250, width-50);",
1053            "    var eh = Math.max(250,height-50) ;",
1054            "    ",
1055            "   ",
1056            "",
1057            "}"
1058           ],
1059           "resize" : [
1060            "function (_self, width, height)\r",
1061            "{\r",
1062            "   var ew = Math.max(250, width-50);\r",
1063            "    var eh = Math.max(250,height-50) ;",
1064            "    ",
1065            "    if (!_this.form) {\r",
1066            "        return;\r",
1067            "    }\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",
1074            "    }\r\r",
1075            "\r",
1076            "}"
1077           ]
1078          },
1079          "region" : "center",
1080          "title" : "Message",
1081          "xtype" : "ContentPanel"
1082         }
1083        ],
1084        "xtype" : "BorderLayout"
1085       }
1086      ],
1087      "region" : "center",
1088      "xtype" : "NestedLayoutPanel"
1089     },
1090     {
1091      "$ xns" : "Roo",
1092      "autoScroll" : false,
1093      "background" : false,
1094      "fitContainer" : true,
1095      "fitToframe" : true,
1096      "items" : [
1097       {
1098        "$ xns" : "Roo.grid",
1099        "* prop" : "grid",
1100        "autoExpandColumn" : "filename",
1101        "items" : [
1102         {
1103          "$ sortInfo" : "{ field : 'filename', direction: 'ASC' }",
1104          "$ xns" : "Roo.data",
1105          "* prop" : "dataSource",
1106          "items" : [
1107           {
1108            "$ url" : "baseURL + '/Roo/Images.php'",
1109            "$ xns" : "Roo.data",
1110            "* prop" : "proxy",
1111            "method" : "GET",
1112            "xtype" : "HttpProxy"
1113           },
1114           {
1115            "$ fields" : [
1116             "[",
1117             "    {",
1118             "        'name': 'id',",
1119             "        'type': 'int'",
1120             "    },",
1121             "    {",
1122             "        'name': 'filename',",
1123             "        'type': 'string'",
1124             "    },",
1125             "    {",
1126             "        'name': 'ontable',",
1127             "        'type': 'string'",
1128             "    },",
1129             "    {",
1130             "        'name': 'onid',",
1131             "        'type': 'int'",
1132             "    },",
1133             "    {",
1134             "        'name': 'mimetype',",
1135             "        'type': 'string'",
1136             "    },",
1137             "    {",
1138             "        'name': 'width',",
1139             "        'type': 'int'",
1140             "    },",
1141             "    {",
1142             "        'name': 'height',",
1143             "        'type': 'int'",
1144             "    },",
1145             "    {",
1146             "        'name': 'filesize',",
1147             "        'type': 'int'",
1148             "    },",
1149             "    {",
1150             "        'name': 'displayorder',",
1151             "        'type': 'int'",
1152             "    },",
1153             "    {",
1154             "        'name': 'language',",
1155             "        'type': 'string'",
1156             "    },",
1157             "    {",
1158             "        'name': 'parent_image_id',",
1159             "        'type': 'int'",
1160             "    },",
1161             "    {",
1162             "        'name': 'created',",
1163             "        'type': 'date',",
1164             "        'dateFormat': 'Y-m-d'",
1165             "    },",
1166             "    {",
1167             "        'name': 'imgtype',",
1168             "        'type': 'string'",
1169             "    },",
1170             "    {",
1171             "        'name': 'linkurl',",
1172             "        'type': 'string'",
1173             "    },",
1174             "    {",
1175             "        'name': 'descript',",
1176             "        'type': 'string'",
1177             "    },",
1178             "    {",
1179             "        'name': 'title',",
1180             "        'type': 'string'",
1181             "    },",
1182             "    {",
1183             "        'name': 'parent_image_id_id',",
1184             "        'type': 'int'",
1185             "    },",
1186             "    {",
1187             "        'name': 'parent_image_id_filename',",
1188             "        'type': 'string'",
1189             "    },",
1190             "    {",
1191             "        'name': 'parent_image_id_ontable',",
1192             "        'type': 'string'",
1193             "    },",
1194             "    {",
1195             "        'name': 'parent_image_id_onid',",
1196             "        'type': 'int'",
1197             "    },",
1198             "    {",
1199             "        'name': 'parent_image_id_mimetype',",
1200             "        'type': 'string'",
1201             "    },",
1202             "    {",
1203             "        'name': 'parent_image_id_width',",
1204             "        'type': 'int'",
1205             "    },",
1206             "    {",
1207             "        'name': 'parent_image_id_height',",
1208             "        'type': 'int'",
1209             "    },",
1210             "    {",
1211             "        'name': 'parent_image_id_filesize',",
1212             "        'type': 'int'",
1213             "    },",
1214             "    {",
1215             "        'name': 'parent_image_id_displayorder',",
1216             "        'type': 'int'",
1217             "    },",
1218             "    {",
1219             "        'name': 'parent_image_id_language',",
1220             "        'type': 'string'",
1221             "    },",
1222             "    {",
1223             "        'name': 'parent_image_id_parent_image_id',",
1224             "        'type': 'int'",
1225             "    },",
1226             "    {",
1227             "        'name': 'parent_image_id_created',",
1228             "        'type': 'date'",
1229             "    },",
1230             "    {",
1231             "        'name': 'parent_image_id_imgtype',",
1232             "        'type': 'string'",
1233             "    },",
1234             "    {",
1235             "        'name': 'parent_image_id_linkurl',",
1236             "        'type': 'string'",
1237             "    },",
1238             "    {",
1239             "        'name': 'parent_image_id_descript',",
1240             "        'type': 'string'",
1241             "    },",
1242             "    {",
1243             "        'name': 'parent_image_id_title',",
1244             "        'type': 'string'",
1245             "    }",
1246             "]"
1247            ],
1248            "$ xns" : "Roo.data",
1249            "* prop" : "reader",
1250            "id" : "id",
1251            "root" : "data",
1252            "totalProperty" : "total",
1253            "xtype" : "JsonReader"
1254           }
1255          ],
1256          "listeners" : {
1257           "beforeload" : [
1258            "function (_self, options)",
1259            "{",
1260            "    options.params = options.params || {};",
1261            "    if (typeof(_this.data) == 'undefined') {",
1262            "        return false;",
1263            "    }",
1264            "    if(_this.data.id * 1 >= 0)",
1265            "    {",
1266            "        options.params.onid = _this.data.id;",
1267            "",
1268            "        options.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
1269            "    }",
1270            "}"
1271           ]
1272          },
1273          "remoteSort" : true,
1274          "xtype" : "Store"
1275         },
1276         {
1277          "$ xns" : "Roo",
1278          "* prop" : "toolbar",
1279          "items" : [
1280           {
1281            "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
1282            "$ xns" : "Roo.Toolbar",
1283            "cls" : "x-btn-text-icon",
1284            "listeners" : {
1285             "|click" : [
1286              "function()",
1287              "{",
1288              "    var id = _this.form.findField('id').getValue();",
1289              "    ",
1290              "    if(id*1 < 1){",
1291              "        Roo.MessageBox.alert('Error', 'Please save the email template first');",
1292              "        return;",
1293              "    }",
1294              "    ",
1295              "    var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';",
1296              "    ",
1297              "    Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() {",
1298              "        _this.igrid.getDataSource().load({});",
1299              "    });",
1300              "}",
1301              ""
1302             ]
1303            },
1304            "text" : "Add",
1305            "xtype" : "Button"
1306           },
1307           {
1308            "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
1309            "$ xns" : "Roo.Toolbar",
1310            "cls" : "x-btn-text-icon",
1311            "listeners" : {
1312             "|click" : [
1313              "function()",
1314              "{",
1315              "           Pman.genericDelete({grid: _this.igrid}, 'Images');",
1316              "}",
1317              "        "
1318             ]
1319            },
1320            "text" : "Delete",
1321            "xtype" : "Button"
1322           }
1323          ],
1324          "xtype" : "Toolbar"
1325         },
1326         {
1327          "$ renderer" : [
1328           "function(v,x,r)",
1329           "{",
1330           "    var width = r.data.width;",
1331           "    var height = r.data.height;",
1332           "    ",
1333           "    if(width > 50){",
1334           "        height = Math.round(height * 50 / width);",
1335           "        width = 50;",
1336           "    }",
1337           "    ",
1338           "   return '<img src=\"' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '\" width=\"' + width + '\" height=\"' + height + '\" />';",
1339           "}"
1340          ],
1341          "$ xns" : "Roo.grid",
1342          "* prop" : "colModel[]",
1343          "dataIndex" : "filename",
1344          "header" : "Filename",
1345          "width" : 300,
1346          "xtype" : "ColumnModel"
1347         },
1348         {
1349          "$ renderer" : "function(v) { return String.format('{0}', v); }",
1350          "$ xns" : "Roo.grid",
1351          "* prop" : "colModel[]",
1352          "dataIndex" : "displayorder",
1353          "header" : "Displayorder",
1354          "width" : 75,
1355          "xtype" : "ColumnModel"
1356         },
1357         {
1358          "$ renderer" : "function(v) { return String.format('{0}', v); }",
1359          "$ xns" : "Roo.grid",
1360          "* prop" : "colModel[]",
1361          "dataIndex" : "title",
1362          "header" : "Title",
1363          "width" : 75,
1364          "xtype" : "ColumnModel"
1365         }
1366        ],
1367        "listeners" : {
1368         "|render" : [
1369          "function() ",
1370          "{",
1371          "    _this.igrid = this; ",
1372          "    //_this.dialog = Pman.Dialog.FILL_IN",
1373          "    if (_this.ipanel.active) {",
1374          "   //    _this.igrid.ds.load({});",
1375          "    }",
1376          "}"
1377         ]
1378        },
1379        "loadMask" : true,
1380        "xtype" : "Grid"
1381       }
1382      ],
1383      "listeners" : {
1384       "|activate" : [
1385        "function() {",
1386        "    _this.ipanel = this;",
1387        "    if (_this.igrid) {",
1388        "       _this.igrid.ds.load({});",
1389        "    }",
1390        "}"
1391       ]
1392      },
1393      "region" : "east",
1394      "tableName" : "Images",
1395      "title" : "Images / Attachments",
1396      "xtype" : "GridPanel"
1397     },
1398     {
1399      "$ xns" : "Roo",
1400      "* prop" : "buttons[]",
1401      "listeners" : {
1402       "click" : [
1403        "function (_self, e)",
1404        "{",
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 });",
1408        "}"
1409       ],
1410       "render" : [
1411        "function (_self)",
1412        "{",
1413        "    _this.preview_btn = _self;",
1414        "}"
1415       ]
1416      },
1417      "text" : "Preview",
1418      "xtype" : "Button"
1419     },
1420     {
1421      "$ xns" : "Roo",
1422      "* prop" : "buttons[]",
1423      "listeners" : {
1424       "click" : [
1425        "function (_self, e)",
1426        "{",
1427        "    //_this.dialog.hide();",
1428        "",
1429        "    var id = _this.form.findField('id').getValue();",
1430        "    ",
1431        "    if(id*1 < 1){",
1432        "        Roo.MessageBox.alert('Error', 'Please save the message frist!');",
1433        "        return;",
1434        "    }",
1435        "   ",
1436        "    new Pman.Request({",
1437        "        url : baseURL + '/Core/MessagePreview',",
1438        "        method : 'POST',",
1439        "        mask: 'Sending',",
1440        "        params : {",
1441        "            _id : id,",
1442        "            _table : _this.data.module",
1443        "        }, ",
1444        "        success : function(res) { ",
1445        "            if(res.data == 'SUCCESS'){",
1446        "                Roo.MessageBox.alert(\"Email Sent\", 'The report was sent to your email (HTML format).');",
1447        "            }",
1448        "        }",
1449        "    });",
1450        "}"
1451       ],
1452       "render" : [
1453        "function (_self)",
1454        "{",
1455        "    _this.html_preview = _self;",
1456        "}"
1457       ]
1458      },
1459      "text" : "Send me a test copy",
1460      "xtype" : "Button"
1461     },
1462     {
1463      "$ xns" : "Roo",
1464      "* prop" : "buttons[]",
1465      "listeners" : {
1466       "click" : [
1467        "function (_self, e)",
1468        "{",
1469        "    _this.dialog.hide();",
1470        "}"
1471       ]
1472      },
1473      "text" : "Cancel",
1474      "xtype" : "Button"
1475     },
1476     {
1477      "$ xns" : "Roo",
1478      "* prop" : "buttons[]",
1479      "listeners" : {
1480       "click" : [
1481        "function (_self, e)",
1482        "{",
1483        "",
1484        "    // do some checks?",
1485        "    _this.form.preValidate(function(res) {",
1486        "        if (!res) {",
1487        "            return; //failed.",
1488        "        }",
1489        "         _this.form.doAction(\"submit\");",
1490        "    });",
1491        "",
1492        "}"
1493       ]
1494      },
1495      "text" : "Save",
1496      "xtype" : "Button"
1497     }
1498    ],
1499    "listeners" : {
1500     "show" : [
1501      "function (_self)",
1502      "{",
1503      "    ",
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) {",
1512      "        e.hide();",
1513      "    }",
1514      "    ",
1515      "    var el = _self.getEl();",
1516      "    var elw = el.dom.clientWidth;",
1517      "    ",
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);",
1524      "    }",
1525      "    ",
1526      "}"
1527     ]
1528    },
1529    "modal" : true,
1530    "resizable" : true,
1531    "title" : "Edit / Create Message",
1532    "width" : 800,
1533    "xtype" : "LayoutDialog"
1534   }
1535  ],
1536  "modOrder" : "001",
1537  "name" : "Pman.Dialog.CoreEmail",
1538  "named_strings" : {
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"
1555  },
1556  "parent" : "",
1557  "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreEmail.bjs",
1558  "permname" : "",
1559  "strings" : {
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"
1600  },
1601  "title" : ""
1602 }