msend.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.wechat_bind_list}</h3>
  7. </div>
  8. </div>
  9. </div>
  10. <div class="ncap-form-default">
  11. <form method="post" id="m_form" enctype="multipart/form-data">
  12. <dl>
  13. <dt>{$Think.lang.message_type}</dt>
  14. <dd>
  15. <input type="radio" name="type" value="text" onclick="shownews(2)" title="{$Think.lang.message_type_text}" checked>{$Think.lang.message_type_text}
  16. <input type="radio" name="type" value="news" onclick="shownews(1)" title="{$Think.lang.message_type_news}" >{$Think.lang.message_type_news}
  17. </dd>
  18. </dl>
  19. <div id="menu1">
  20. <dl>
  21. <dt><span class="error">*</span> {$Think.lang.k_value}</dt>
  22. <dd><textarea name="text" id="text" placeholder="{$Think.lang.k_value}"></textarea></dd>
  23. </dl>
  24. </div>
  25. <div id="menu2" style="display: none">
  26. <!-- <dl>
  27. <dt><label class="layui-form-label" style="color: #d15b47">{$Think.lang.message_type_news}:</label></dt>
  28. <dd>
  29. <button class="btn btn-sm btn-info" onclick="" type="button"><i class="iconfont">&#xe72a;</i>{$Think.lang.message_type_news_add}</button>
  30. </dd>
  31. </dl>-->
  32. <dl>
  33. <dt>{$Think.lang.wechat_title}</dt>
  34. <dd>
  35. <input type="text" name="title" id="Title" style="width: 300px">
  36. </dd>
  37. </dl>
  38. <dl>
  39. <dt>{$Think.lang.wechat_digest}</dt>
  40. <dd>
  41. <input type="text" name="description" id="Description" style="width: 300px">
  42. </dd>
  43. </dl>
  44. <dl>
  45. <dt>{$Think.lang.wechat_file}</dt>
  46. <dd>
  47. <input type="file" name="s_pic">
  48. </dd>
  49. </dl>
  50. <dl>
  51. <dt>{$Think.lang.wechat_content_source_url}</dt>
  52. <dd>
  53. <input type="text" name="url" id="Url" style="width: 300px">
  54. </dd>
  55. </dl>
  56. </div>
  57. <dl>
  58. <dt></dt>
  59. <dd><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></dd>
  60. </dl>
  61. </form>
  62. </div>
  63. </div>
  64. <script>
  65. $(document).ready(function(){
  66. $('#m_form').validate({
  67. errorPlacement: function (error, element) {
  68. },
  69. rules : {
  70. text : {
  71. required : true,
  72. }
  73. }
  74. });
  75. });
  76. function shownews(t){
  77. if (t == 2) {
  78. document.getElementById('menu1').style.display = "";
  79. document.getElementById('menu2').style.display = "none";
  80. }else{
  81. document.getElementById('menu1').style.display = "none";
  82. document.getElementById('menu2').style.display = "";
  83. }
  84. }
  85. </script>