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

<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">入口信息管理</a></li>
                <li>入口信息管理</li>
            </ul>

            <div>
                <div style="width: 30%;float: left;">
                    <h4>入口信息管理</h4>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="panel panel-default" style="margin-bottom:10px;">
    <div class="panel-heading">
        <a class="btn btn-success " id="add-entry"><i class="fa fa-plus"></i> 添加信息</a>
    </div>
    <div class="panel-body">
        <div class="row">
            <div class="panel-col">
                <select id="entrance-status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
                    <option value="">请选择状态</option>
                    <option value="0">关闭</option>
                    <option value="1">开启</option>
                </select>
            </div>
            <div class="panel-col">
                <select id="entrance-platform" title="" class="select2-offscreen brandBtn-group">
                    <option value="" selected="">请选择类别</option>
                    <option value="1">手机</option>
                    <option value="2">ipad</option>
                </select>
            </div>
            <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
            <a id="filter-all" href="/operations/entrance/index" class="btn btn-info">全部</a>
        </div>
    </div>
    <div id="entrance-list"></div>
</div>

<script type="text/template" id="template-add">
    <div class="row" id="base-form">
        <div class="form-group">
            <label class="col-sm-2 control-label">入口名称</label>
            <div class="col-sm-8">
                <input type="hidden" id="id" value="<%id%>" />
                <input type="text" data-field="entryName" value="<%entryName%>" class="form-control observe" placeholder="入口名称" required="required">
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">点击前图片名</label>
            <div class="col-sm-8">
                <input type="text" value="<%clickBeforeImg%>" data-field="clickBeforeImg" placeholder="点击前的图片名称" class="form-control observe" required="required"/>
                <p style="color:#999">注:图片文件的文件名。如:123.png</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">点击后图片名</label>
            <div class="col-sm-8">
                <input type="text" value="<%clickAfterImg%>" data-field="clickAfterImg" placeholder="点击后的图片名称" class="form-control observe" required="required"/>
                <p style="color:#999">注:图片文件的文件名。如:123.png</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">上传</label>
            <div class="col-sm-8">
                <input id="zipUrl" value="<%zipUrl%>" class="form-control" type="text" disabled="disabled" style="cursor:default">
                <div class="col-sm-4" style="position: relative">
                    <input id="zip" name="zip" extend="zip" type="file" style="position: absolute; top: 0;left: 0;">
                    <div class="file-name btn btn-default">请选择文件</div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">url地址</label>
            <div class="col-sm-4">
                <select id="intent" name="goTo" class="form-control">
                    <%layout action_template%>
                </select>
            </div>
            <div class="col-sm-4">
                <input id="url" value="<%url%>" class="form-control" placeholder="URL地址" required="required" />
                <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">类别</label>
            <div class="col-sm-8">
                <select value="<%platform%>" data-field="platform" id="platform" style="width: 177px" tabindex="-1" class="observe">
                    <option value="1">手机</option>
                    <option value="2">ipad</option>
                </select> &nbsp;&nbsp;
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">排序</label>
            <div class="col-sm-4">
                <input type="text" value="<%orderBy%>" data-field="orderBy" class="form-control observe number" placeholder="排序"/>
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">频道ID</label>
            <div class="col-sm-4">
                <input data-field="channelId" class="form-control observe number" type="text" placeholder="频道ID" value="<%channelId%>"/>
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">性别</label>
            <div class="col-sm-4">
                <select value="<%gender%>" data-field="gender" style="width: 177px" id="gender" tabindex="-1" title="" class="select2-offscreen observe">
                    <option value="1,3"></option>
                    <option value="2,3"></option>
                    <option value="1,2,3">通用</option>
                </select> &nbsp;&nbsp;
            </div>
        </div><!-- form-group -->
    </div>
</script>

<%include '../__partail/actions'%>