You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB

  1. ::use 'design.mtt'::
  2. <!--<script src="/js/tinymce.min.js"></script>
  3. <script src="/js/jquery.tinymce.min.js"></script>-->
  4. <div class="col-md-3">
  5. <div class="article">
  6. ::if user.isAmapManager()::
  7. <b>::_("All sent messages")::</b>
  8. ::else::
  9. <b>::_("Last sent messages")::</b>
  10. ::end::
  11. <div style="overflow-y:scroll;height:600px;">
  12. ::foreach m sentMessages::
  13. <a href="/messages/message/::m.id::">::m.title::
  14. <div style="color:#666;font-size:11px;border-bottom:1px solid #DDD;">::hDate(m.date)::</div>
  15. </a>
  16. ::end::
  17. </div>
  18. </div>
  19. </div>
  20. <div class="col-md-9">
  21. <div class="article">
  22. <h3>::_("Send an e-mail")::</h3>
  23. ::raw form::
  24. </div>
  25. </div>
  26. <script src="/js/tinymce/tinymce.min.js"></script>
  27. <script>
  28. tinymce.init({
  29. selector:'textarea',
  30. plugins: "autolink textcolor emoticons image",
  31. toolbar: "styleselect bold italic alignleft aligncenter emoticons image bullist outdent indent forecolor",
  32. language: '::session.lang::',
  33. image_list: [
  34. ::foreach c user._amap.getActiveContracts(false)::
  35. ::if c._vendor._image!=null::
  36. {title: '::escapeJS(c._vendor.name)::', value: '::file(c._vendor._image)::'},
  37. ::end::
  38. ::end::
  39. ]
  40. });
  41. </script>
  42. ::end::