Index.html 5.8 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>

<div class="contentpanel">
    <div class="panel panel-default" style="...">
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input type="text" id="startTime" jsaction="time:end:endTime" class="form-control panel-input hasDatepicker " name="start_time" placeholder="开始时间"/>
                </div>
                <div class="panel-col">
                    <input type="text" id="endTime" jsaction="time:start:startTime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间"/>
                </div>
                <div class="panel-col">
                    <select name="status" id="status-filter" tabindex="-1" title="" class="form-control">
                        <option value="-1">选择状态</option>
                        <option value="0">未编辑</option>
                        <option value="1">已编辑</option>
                        <option value="2">已发布</option>
                    </select>
                </div>
                <div class="panel-col">
                    <select name="clientType" id="clientType-filter" tabindex="-1" title="" class="form-control">
                        <option value="">来源</option>
                        <option value="iphone">iPhone</option>
                        <option value="android">Android</option>
                        <option value="h5">h5</option>
                        <option value="custom">自定义</option>
                    </select>
                </div>
            </div>
            <div class="row" id="radios-select">
                <div class="panel-col">
                    <label class="radio-inline"><input type="radio" name="hasImage" value="0">无图</label>
                    <label class="radio-inline"><input type="radio" name="hasImage" value="1">有图</label>
                    <input type="hidden" id="hasImage" for="radio">
                </div>
                <div class="panel-col">
                    <label class="radio-inline"><input type="radio" name="isReliable" value="0">不靠谱</label>
                    <label class="radio-inline"><input type="radio" name="isReliable" value="1">靠谱</label>
                    <input type="hidden" id="isReliable" for="radio">
                </div>
            </div>
            <div class="row">
                <a href="/suggest/hotsuggest/index" class="btn btn-info  pull-right"><i class="fa fa-list"></i> 全部</a>
                <a class="btn btn-info pull-right" style="margin-right: 5px!important" id="filter-info"><i class="fa fa-search"></i> 查询</a>
            </div>
        </div>
    </div>
    <div id="quick">

    </div>
    <div id="content-list"></div>
</div>

<script type="text/template" id="status-search">
    <div class="pull-left">
        <label class="radio-inline">
            <input name="quick_select" type="radio"  value="-1" [[quick_select.status=="-1"?"checked":""]]>全部
        </label>
        <label class="radio-inline">
            <input name="quick_select" type="radio"  value="0" [[quick_select.status=="0"?"checked":""]]>未编辑
            <span style="color:#0066CC;">[[quick_select.uneditCount]] </span>
        </label>
        <label class="radio-inline">
            <input name="quick_select" type="radio"  value="1" [[quick_select.status=="1"?"checked":""]]>已编辑
            <span style="color:#0066CC;"> [[quick_select.editedCount]]</span>
        </label>
        <label class="radio-inline">
            <input name="quick_select" type="radio"  value="2" [[quick_select.status=="2"?"checked":""]]>已发布
            <span style="color:#0066CC;"> [[quick_select.publishCount]]</span>
        </label>
    </div>
    <div class="pull-right">
        <a id="batchPublish" href="javascript:;" class="btn btn-dark btn-xs pull-right">批量发布</a>
    </div>
</script>

<script type="text/template" id="edit-template">
    <div id="edit-content" class="row">
        <div class="form-group">
            <label class="col-sm-2 control-label">标题 <span class="red">*</span></label>
            <div class="col-sm-8">
                <input type="text" data-field="content" value="[[content]]" class="form-control observe" placeholder="标题" required>
                <label style="color: #9f9f9f;"><span style="color: indianred;">限制27个字符</span></label>
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">封面图 </label>
            <div class="col-sm-8">
                <input type="file" name="封面图" value="[[imageUrl]]" id="coverImageUrl" data-field="coverImage">
                <br>
                <label style="color: #9f9f9f;">支持jpg/png/gif,尺寸:1080*523px;图片不是必选项 </label>
                <br>
                <button id="delImage" type="button" class="btn btn-xs btn-danger">删除</button>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">回复内容 <span class="red">*</span></label>
            <div class="col-sm-8">
                <textarea rows="3" data-field="replyContent" class="form-control observe" placeholder="回复内容" required>[[replyContent]]</textarea>
                <label style="color: #9f9f9f;"><span style="color: indianred;">限制80个字符</span></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">排序</label>
            <div class="col-sm-2">
                <input type="text" value="[[orderBy]]" data-field="orderBy" class="form-control observe" placeholder="排序" required>
            </div>
        </div>
    </div>
</script>