<!--# layout("/common/layout.html",{"jsBase":"/js/directed/festivalProduct/"}){ -->
<style type="text/css">

.right-content{
    width: 260px;
    background: #fff;
    float: left;
    margin-left: 10px;
    overflow: hidden;}
.layui-input-inline{
	width: 500px;
}

</style>
<style type="text/css">
.layui-input{
	width: 500px;
}

</style>
<style type="text/css">
.layui-input-inline{
	width: 500px;
}
.xm-select-parent{
	width: 500px;
}
.xm-form-select{
	width: 500px;
}
.xm-hide-input{
	width: 500px;
}
</style>

<form class="layui-form layui-form-pane " id="addForm">

    <div class="layui-row">
        <input type="hidden" name="id" value="${entity.id}">

        <input type="hidden" name="fescod" value="${fescod}">
        <input type="hidden" name="productname" id="productname" value="${entity.productname}">

        <input type="hidden" id="cpid1" value="${entity.cpid}">
        <input type="hidden" id="fescod" value="${entity.fescod}">
        <input type="hidden" id="productid1" value="${entity.productid}">

        <input type="hidden" id="smsord1" value="${entity.smsord}">
        <input type="hidden" id="smscan1" value="${entity.smscan}">
        <input type="hidden" id="ordervercode1" value="${entity.ordervercode}">
        <input type="hidden" id="cancelvercode1" value="${entity.cancelvercode}">
        <input type="hidden" id="prevercode1" value="${entity.prevercode}">
        <input type="hidden" id="activevercode1" value="${entity.activevercode}">
        <input type="hidden" id="orderfail1" value="${entity.orderfail}">
        <input type="hidden" id="drawvercode1" value="${entity.drawvercode}">

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">合作方</label>
                <div class="layui-input-block">
                    <select name="cpid" id="cpid" lay-filter="cpid"></select>
                </div>
            </div>
        </div>

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">产品名称</label>
                <div class="layui-input-block">
                    <select name="productid" id="productid" lay-filter="productid"></select>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">订购成功</label>
                <div class="layui-input-block">
                    <select name="smsord" id="smsord"></select>
                </div>
            </div>
        </div>

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">退订成功</label>
                <div class="layui-input-block">
                    <select name="smscan" id="smscan"></select>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">订购验证码</label>
                <div class="layui-input-block">
                    <select name="ordervercode" id="ordervercode"></select>
                </div>
            </div>
        </div>

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">预订验证码</label>
                <div class="layui-input-block">
                    <select name="prevercode" id="prevercode"></select>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">退订验证码</label>
                <div class="layui-input-block">
                    <select name="cancelvercode" id="cancelvercode"></select>
                </div>
            </div>
        </div>

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">领取验证码</label>
                <div class="layui-input-block">
                    <select name="drawvercode" id="drawvercode"></select>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">激活验证码</label>
                <div class="layui-input-block">
                    <select name="activevercode" id="activevercode"></select>
                </div>
            </div>
        </div>

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">订购失败</label>
                <div class="layui-input-block">
                    <select name="orderfail" id="orderfail"></select>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">开始时间</label>
                <div class="layui-input-block">
                    <input type="text" id="stime" name="stime"  lay-verify="required|date|etime"
                           placeholder="请选择" autocomplete="off" class="layui-input input-date"
                           value="">
                </div>
            </div>
        </div>

        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">结束时间</label>
                <div class="layui-input-inline">
                    <input type="text" id="etime" name="etime" lay-verify="required|date|etime"
                           placeholder="请选择" autocomplete="off" class="layui-input input-date"
                           value="">
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form-item">
                <label class="layui-form-label">url</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="url" id="url" value="tt" placeholder="如果不清楚意思，保持默认值即可，如果修改会导致异常">
                </div>
            </div>
        </div>
    </div>

    <hr class="layui-bg-blue">

    <div class="layui-row">
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
            <div class="grid-demo grid-demo-bg1">&nbsp;</div>
        </div>
        <div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
            <div class="layui-input-block">
                <button class="layui-btn" type="button" lay-submit="" lay-filter="submitButton">立即提交</button>
                <button class="layui-btn layui-btn-danger" type="button" id="closeButton">关闭</button>
            </div>
        </div>
        <div class="layui-col-xs4 layui-col-sm12 layui-col-md4">
            <div class="grid-demo layui-bg-blue"></div>
        </div>
    </div>
</form>
<!--#} -->

<script>

layui.use(['add'], function() {
    var festivalAdd = layui.add;
    festivalAdd.init("${fescod}}");

});


</script>


