sendgroup.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.sendgroup}</h3>
  7. </div>
  8. </div>
  9. </div>
  10. <div class="explanation" id="explanation">
  11. <div class="title" id="checkZoom">
  12. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  13. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  14. </div>
  15. <ul>
  16. <li>{$Think.lang.wechat_sendgroup_help1}</li>
  17. <li>{$Think.lang.wechat_sendgroup_help2}</li>
  18. </ul>
  19. </div>
  20. <div class="ncap-form-default">
  21. <form method="post" id="m_form">
  22. <dl>
  23. <dt>{$Think.lang.message_type}</dt>
  24. <dd>
  25. <input type="radio" name="type" value="text" onclick="showDiv(1)" checked>{$Think.lang.message_type_text}
  26. <!-- <input type="radio" name="type" value="news" onclick="showDiv(2)">{$Think.lang.message_type_news}-->
  27. </dd>
  28. </dl>
  29. <div id="radioDIV1">
  30. <dl>
  31. <dt><span class="error">*</span> {$Think.lang.sendgroup_text}</dt>
  32. <dd><textarea name="text" id="text" placeholder="{$Think.lang.sendgroup_text}"></textarea></dd>
  33. </dl>
  34. </div>
  35. <div id="radioDIV2" style="display: none">
  36. <dl>
  37. <dt></dt>
  38. <dd><a href="javascript:;" onclick="addArticle()" class="btn btn-sm btn-success"><i class="iconfont bigger-120">&#xe72e;</i>{$Think.lang.message_type_news_add}</a>
  39. </dd>
  40. </dl>
  41. <dl>
  42. <dt>{$Think.lang.wechat_title}</dt>
  43. <dd>
  44. <input type="text" name="title" id="title" style="width: 300px">
  45. </dd>
  46. </dl>
  47. <dl>
  48. <dt>{$Think.lang.wechat_digest}</dt>
  49. <dd>
  50. <input type="text" name="digest" id="digest" style="width: 300px">
  51. </dd>
  52. </dl>
  53. <dl>
  54. <dt>{$Think.lang.wechat_author}</dt>
  55. <dd>
  56. <input type="text" name="author" id="author" style="width: 300px">
  57. </dd>
  58. </dl>
  59. <dl>
  60. <dt>{$Think.lang.wechat_content_source_url}</dt>
  61. <dd>
  62. <input type="text" name="content_source_url" id="content_source_url" style="width: 300px">
  63. </dd>
  64. </dl>
  65. <dl>
  66. <dt>{$Think.lang.wechat_file}</dt>
  67. <dd>
  68. <input type="file" name="file" >
  69. <input type="hidden" name="mediaId"/>
  70. </dd>
  71. </dl>
  72. <dl>
  73. <dt>{$Think.lang.wechat_article_content}</dt>
  74. <dd>
  75. <textarea name="article_content" id="article_content"> </textarea>
  76. </dd>
  77. </dl>
  78. </div>
  79. <dl>
  80. <dt></dt>
  81. <dd><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></dd>
  82. </dl>
  83. </form>
  84. </div>
  85. </div>
  86. <script>
  87. function showDiv(objID) {
  88. if(objID == 1)
  89. {
  90. document.getElementById('radioDIV1').style.display = "block";
  91. document.getElementById('radioDIV2').style.display = "none";
  92. }
  93. else
  94. {
  95. document.getElementById('radioDIV1').style.display = "none";
  96. document.getElementById('radioDIV2').style.display = "block";
  97. }
  98. }
  99. $(document).ready(function(){
  100. $('#m_form').validate({
  101. errorPlacement: function(error, element) {
  102. error.appendTo(element.parent().parent().find('dd:last'));
  103. },
  104. rules : {
  105. text : {
  106. required : true,
  107. }
  108. },
  109. messages:{
  110. text :{
  111. required:'{$Think.lang.sendgroup_text_required}'
  112. }
  113. }
  114. });
  115. });
  116. </script>