add.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>后台管理</title>
  6. <link rel="stylesheet" href="__PUBLIC__/editor.md-master/css/editormd.css" />
  7. <include file="Common:header"/>
  8. <include file="Common:left"/>
  9. <script src="__PUBLIC__/editor.md-master/editormd.min.js"></script>
  10. <div class="main-wrap">
  11. <div class="crumb-wrap">
  12. <div class="crumb-list"><i class="icon-font"></i><a href="#">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="#">通知管理</a><span class="crumb-step">&gt;</span><span>新增通知</span></div>
  13. </div>
  14. <div class="result-wrap">
  15. <div class="result-content">
  16. <form action="{:U('Mk/add')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
  17. <table class="insert-tab" width="100%">
  18. <tbody>
  19. <tr>
  20. <th><i class="require-red">*</i>首页标题:</th>
  21. <td>
  22. <input class="common-text required" id="title" name="title" size="50" value="" type="text">
  23. </td>
  24. </tr>
  25. <tr>
  26. <th><i class="require-red">*</i>作者</th>
  27. <td>
  28. <input class="common-text required" id="auth" name="auth" size="50" value="" type="text">
  29. </td>
  30. </tr>
  31. <tr>
  32. <th>类别</th>
  33. <td>
  34. <input type="radio" name="category" value="php">php
  35. <input type="radio" name="category" value="js">is
  36. <input type="radio" name="category" value="technology">技术
  37. <input type="radio" name="category" value="share">分享
  38. <input type="radio" name="category" value="study">学习
  39. </td>
  40. </tr>
  41. <tr>
  42. <th>摘要:</th>
  43. <td><textarea name="summary" class="common-textarea" id="summary" cols="30" style="width: 98%;" rows="10"></textarea></td>
  44. </tr>
  45. <tr>
  46. <th><i class="require-red">*</i>缩略图:</th>
  47. <td><input name="file" id="" type="file"></td>
  48. </tr>
  49. <tr>
  50. <th>内容:</th>
  51. <td>
  52. <div id="demo1">
  53. <textarea name="content" class="common-textarea" cols="30" style="width: 98%;" rows="10"></textarea>
  54. </div>
  55. </td>
  56. </tr>
  57. <tr>
  58. <th></th>
  59. <td>
  60. <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
  61. <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
  62. </td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. <!--/main-->
  71. </div>
  72. </body>
  73. </html>
  74. <script type="text/javascript">
  75. // 实例化
  76. $(function () {
  77. var testEditor;
  78. testEditor = editormd("demo1",{
  79. placeholder:'本编辑器支持Markdown编辑,左边编写,右边预览', //默认显示的文字
  80. width: "90%",
  81. height: 640,
  82. syncScrolling: "single",
  83. path: "__PUBLIC__/editor.md-master/lib/", //你的path路径(原资源文件中lib包在我们项目中所放的位置)
  84. theme: "dark",//工具栏主题
  85. previewTheme: "dark",//预览主题
  86. editorTheme: "pastel-on-dark",//编辑主题
  87. saveHTMLToTextarea: true,
  88. emoji: false,
  89. taskList: true,
  90. tocm: true, // Using [TOCM]
  91. tex: true, // 开启科学公式TeX语言支持,默认关闭
  92. flowChart: true, // 开启流程图支持,默认关闭
  93. sequenceDiagram: true, // 开启时序/序列图支持,默认关闭,
  94. toolbarIcons : function() { //自定义工具栏,后面有详细介绍
  95. return editormd.toolbarModes['simple']; // full, simple, mini
  96. },
  97. });
  98. // testEditor.getMarkdown();
  99. })
  100. </script>