<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="renderer" content="webkit">

    <title>文章管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link href="{dede:global.cfg_cmsurl/}/templates/admin/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="{dede:global.cfg_cmsurl/}/templates/admin/font-awesome/css/font-awesome.css?v=4.3.0" rel="stylesheet">
    <link href="{dede:global.cfg_cmsurl/}/templates/admin/css/animate.css" rel="stylesheet">
    <link href="{dede:global.cfg_cmsurl/}/templates/admin/css/style.css?v=2.2.0" rel="stylesheet">
<script>
var jsui={
    uri: '{dede:global.cfg_cmsurl/}'
};
</script>
</head>

<body>
    <div id="wrapper">
        

        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="form_editors.html#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                            <span class="m-r-sm text-muted welcome-message"><a href="index.html" title="返回首页"><i class="fa fa-home"></i></a>欢迎使用H+后台主题</span>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
                                <i class="fa fa-envelope"></i>  <span class="label label-warning">16</span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li>
                                    <div class="dropdown-messages-box">
                                        <a href="profile.html" class="pull-left">
                                            <img alt="image" class="img-circle" src="{dede:global.cfg_cmsurl/}/templates/admin/img/a7.jpg">
                                        </a>
                                        <div class="media-body">
                                            <small class="pull-right">46小时前</small>
                                            <strong>小四</strong> 项目已处理完结
                                            <br>
                                            <small class="text-muted">3天前 2014.11.8</small>
                                        </div>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="dropdown-messages-box">
                                        <a href="profile.html" class="pull-left">
                                            <img alt="image" class="img-circle" src="{dede:global.cfg_cmsurl/}/templates/admin/img/a4.jpg">
                                        </a>
                                        <div class="media-body ">
                                            <small class="pull-right text-navy">25小时前</small>
                                            <strong>国民岳父</strong> 这是一条测试信息
                                            <br>
                                            <small class="text-muted">昨天</small>
                                        </div>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a href="mailbox.html">
                                            <i class="fa fa-envelope"></i>  <strong> 查看所有消息</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
                                <i class="fa fa-bell"></i>  <span class="label label-primary">8</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                <li>
                                    <a href="mailbox.html">
                                        <div>
                                            <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
                                            <span class="pull-right text-muted small">4分钟前</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="profile.html">
                                        <div>
                                            <i class="fa fa-qq fa-fw"></i> 3条新回复
                                            <span class="pull-right text-muted small">12分钟钱</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a href="notifications.html">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>


                        <li>
                            <a href="{dede:global.cfg_cmsurl/}/admin/login" target="_top">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>

                </nav>
            </div>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>文章管理</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="{dede:global.cfg_cmsurl/}/admin/index">主页</a>
                        </li>
                        <li>
                            <a>文章</a>
                        </li>
                        <li>
                            <strong>添加/修改</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
            <div class="wrapper wrapper-content animated fadeInRight">
                
                
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                           
                            <div class="ibox-content">
                                <form method="post" action="{dede:global.cfg_cmsurl/}/admin/article?method=form"  enctype="multipart/form-data" class="form-horizontal" id="formid">
                                    <input type="hidden" name="id" value="{dede:field.id/}" />
			                        <input type="hidden" name="shortPic" value="{dede:field.shortpic/}" />
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">标题</label>

                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" name="name" value="{dede:field.title/}" required="">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">所属栏目</label>

                                        <div class="col-sm-10">
                                        <select name="typeid" class="form-control m-b">
											{dede:nav.option/}
											</select>
                                            
                                        </div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">标签</label>

                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" name="tag" value="{dede:field.tag/}">
                                        </div>
                                    </div>
                                    
                                     <div class="form-group">
                                        <label class="col-sm-2 control-label">类型</label>

                                        <div class="col-sm-10">
                                            <select class="form-control m-b" name="type">
                                                {dede:type.option/}
                                                
                                            </select>
                                            <span class="help-block m-b-none">温馨提示：选择了图片一定要上传文件</span>
                                        </div>
                                        
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">文件</label>

                                        <div class="col-sm-10">
                                            <input type="file" class="form-control" name="file" value="">
                                            <span class="help-block m-b-none">{dede:field.shortpic/}</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">描述</label>

                                        <div class="col-sm-10">
                                            <textarea rows="" cols="" class="form-control" name="shortDesc" required="">{dede:field.description/}</textarea>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">关键字</label>

                                        <div class="col-sm-10">
                                            <textarea rows="" cols="" class="form-control" name="shortKeywords" required="">{dede:field.keywords/}</textarea>
                                        </div>
                                    </div>
                                     <div class="form-group">
                                        <label class="col-sm-2 control-label">内容</label>
                                        <div class="col-sm-10">
                                        <textarea id="editor" name="content" class="xheditor" rows="15" cols="100" style="width: 100%">{dede:field.body/}</textarea>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                   
                                    
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button class="btn btn-white" type="submit">取消</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer">
                    <div class="pull-right">
                        <a href="http://www.mbzj.net" target="_blank">模板建站</a>
                    </div>
                    <div>
                        <strong>Copyright</strong> mbzj.net &copy; 2015
                    </div>
                </div>

        </div>
    </div>


    <!-- Mainly scripts -->
    <script src="{dede:global.cfg_cmsurl/}/templates/admin/js/jquery-2.1.1.min.js"></script>
    <script src="{dede:global.cfg_cmsurl/}/templates/admin/js/bootstrap.min.js?v=3.4.0"></script>
      <script src="{dede:global.cfg_cmsurl/}/templates/admin/js/xheditor-1.2.2/xheditor-1.2.2.min.js" type="text/javascript"></script>
      <script src="{dede:global.cfg_cmsurl/}/templates/admin/js/xheditor-1.2.2/xheditor_lang/zh-cn.js" type="text/javascript"></script>
    <script>
       
        var editor = $("#editor").xheditor({upImgUrl:"!{dede:global.cfg_cmsurl/}/admin/article?method=upload",upImgExt:"jpg,jpeg,gif,png"});
        
    </script>

</body>

</html>