<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<form class="layui-form whitebg pb10 pt10" action="" id="data_form">  
	<div class="tab-pane active">     
		<div class="panel-body">
			<div class="wrapper wrapper-content">
				<div class="panel-form animated fadeInRight wp60 fc">
					<div class="layui-form-item dn	has-error" >   
						<label class="layui-form-label">id</label>  
						<div class="layui-input-block">
							<input type="text" name="id" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.id }" >
						</div>  
					</div>
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">userId</label>  
						<div class="layui-input-block">
							<input type="text" name="userId" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.userId }" >
						</div>  
					</div> --%>
					<!--  管理员看到的-->
					<shiro:hasAnyRoles name="超级系统管理员">
					       <div class="form-group">
                            <div class="layui-form-item">          
                                <label class="layui-form-label">商户</label>
                                <div class="layui-input-block">
                                    <select name="merchantCode" lay-filter="selectMerchantCode" id="merchantCode">  
                                        <option value="">请选择</option>
                                        <c:forEach items="${merchantBaseInfoList }" var="mb">
                                            <option value="${mb.merchantCode }" <c:if test="${activityRecommend.merchantCode eq mb.merchantCode }">selected</c:if>>${mb.merchantName }</option>
                                        </c:forEach>
                                    </select>              
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="layui-form-item">          
                                <label class="layui-form-label">门店</label>
                                <div class="layui-input-block">
                                    <select name="storeId" id="storeId">  
                                        <option value="">请选择</option>
                                        <c:forEach items="${merchantStoreList }" var="ms">
                                            <option value="${ms.storeId }" <c:if test="${ms.storeId eq activityRecommend.storeId }">selected</c:if>>${ms.storeName }</option>
                                        </c:forEach>
                                    </select>              
                                </div>
                            </div>
                        </div>
                        <input type="hidden" id="isAdmin" value="1">
					</shiro:hasAnyRoles>
					
					<!-- 不是管理员 但是是商户看到的 -->
					<shiro:lacksRole name="超级系统管理员">
						   <c:if test="${not empty sessionScope.merchantCodeSession}">
							 <div class="form-group">
	                            <div class="layui-form-item">          
	                                <label class="layui-form-label">门店</label>
	                                <div class="layui-input-block">
	                                    <select name="storeId" id="storeId">  
	                                        <option value="">请选择</option>
	                                        <c:forEach items="${merchantStoreList }" var="ms">
	                                            <option value="${ms.storeId }" <c:if test="${ms.storeId eq activityRecommend.storeId }">selected</c:if>>${ms.storeName }</option>
	                                        </c:forEach>
	                                    </select>              
	                                </div>
	                            </div>
	                        </div>
						   </c:if>
					</shiro:lacksRole>
					
					<%-- <div class="layui-form-item    has-error" >   
                        <label class="layui-form-label">merchantCode</label>  
                        <div class="layui-input-block">
                            <input type="text" name="merchantCode" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.merchantCode }" >
                        </div>  
                    </div>
                    <div class="layui-form-item     has-error" >   
                        <label class="layui-form-label">merchantName</label>  
                        <div class="layui-input-block">
                            <input type="text" name="merchantName" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.merchantName }" >
                        </div>  
                    </div>
                    <div class="layui-form-item     has-error" >   
                        <label class="layui-form-label">storeId</label>  
                        <div class="layui-input-block">
                            <input type="text" name="storeId" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.storeId }" >
                        </div>  
                    </div>
                    <div class="layui-form-item     has-error" >   
                        <label class="layui-form-label">storeName</label>  
                        <div class="layui-input-block">
                            <input type="text" name="storeName" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.storeName }" >
                        </div>  
                    </div> --%>
					
					
					
					<div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">活动名称</label>  
						<div class="layui-input-block">
							<input type="text" name="name" id="name" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.name }" >
						</div>  
					</div>
					<div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">首充最低充值金额</label>  
						<div class="layui-input-block">
							<input type="text" name="firstMixRechargeMoney" id="firstMixRechargeMoney" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.firstMixRechargeMoney }" >
						</div>  
					</div>
					<div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">推荐人与被推荐人金额</label>  
						<div class="layui-input-block">
							<input type="text" name="recommendMoney" id="recommendMoney" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.recommendMoney }" >
						</div>  
					</div>
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">createDt</label>  
						<div class="layui-input-block">
							<input type="text" name="createDt" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${activityRecommend.createDt }" >
						</div>  
					</div> --%>
	
				</div>
			</div>
		</div>  
	</div>
</form>

<script type="text/javascript">
$(function(){
    //form表单样式
    layui.use(['layer', 'form'], function() {    
        var layer = layui.layer,
            form = layui.form;
        form.render();
    });
})
    
</script>

