123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>后台管理</title>
- <link rel="stylesheet" href="__PUBLIC__/editor.md-master/css/editormd.css" />
- <include file="Common:header"/>
- <include file="Common:left"/>
- <script src="__PUBLIC__/editor.md-master/editormd.min.js"></script>
- <div class="main-wrap">
- <div class="crumb-wrap">
- <div class="crumb-list"><i class="icon-font"></i><a href="#">首页</a><span class="crumb-step">></span><a class="crumb-name" href="#">通知管理</a><span class="crumb-step">></span><span>新增通知</span></div>
- </div>
- <div class="result-wrap">
- <div class="result-content">
- <form action="{:U('Mk/add')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
- <table class="insert-tab" width="100%">
- <tbody>
- <tr>
- <th><i class="require-red">*</i>首页标题:</th>
- <td>
- <input class="common-text required" id="title" name="title" size="50" value="" type="text">
- </td>
- </tr>
- <tr>
- <th><i class="require-red">*</i>作者</th>
- <td>
- <input class="common-text required" id="auth" name="auth" size="50" value="" type="text">
- </td>
- </tr>
- <tr>
- <th>类别</th>
- <td>
- <input type="radio" name="category" value="php">php
- <input type="radio" name="category" value="js">is
- <input type="radio" name="category" value="technology">技术
- <input type="radio" name="category" value="share">分享
- <input type="radio" name="category" value="study">学习
- </td>
- </tr>
- <tr>
- <th>摘要:</th>
- <td><textarea name="summary" class="common-textarea" id="summary" cols="30" style="width: 98%;" rows="10"></textarea></td>
- </tr>
- <tr>
- <th><i class="require-red">*</i>缩略图:</th>
- <td><input name="file" id="" type="file"></td>
- </tr>
- <tr>
- <th>内容:</th>
- <td>
- <div id="demo1">
- <textarea name="content" class="common-textarea" cols="30" style="width: 98%;" rows="10"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th></th>
- <td>
- <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
- <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- </div>
- </div>
- <!--/main-->
- </div>
- </body>
- </html>
- <script type="text/javascript">
- // 实例化
- $(function () {
- var testEditor;
- testEditor = editormd("demo1",{
- placeholder:'本编辑器支持Markdown编辑,左边编写,右边预览', //默认显示的文字
- width: "90%",
- height: 640,
- syncScrolling: "single",
- path: "__PUBLIC__/editor.md-master/lib/", //你的path路径(原资源文件中lib包在我们项目中所放的位置)
- theme: "dark",//工具栏主题
- previewTheme: "dark",//预览主题
- editorTheme: "pastel-on-dark",//编辑主题
- saveHTMLToTextarea: true,
- emoji: false,
- taskList: true,
- tocm: true, // Using [TOCM]
- tex: true, // 开启科学公式TeX语言支持,默认关闭
- flowChart: true, // 开启流程图支持,默认关闭
- sequenceDiagram: true, // 开启时序/序列图支持,默认关闭,
- toolbarIcons : function() { //自定义工具栏,后面有详细介绍
- return editormd.toolbarModes['simple']; // full, simple, mini
- },
- });
- // testEditor.getMarkdown();
- })
- </script>
|