<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>EasyBuy 商场列表</title>
<%@ include file="/common/meta.jsp" %>
<link href="${ctx}/css/yui.css" type="text/css" rel="stylesheet"/>
<link href="${ctx}/css/style.css" type="text/css" rel="stylesheet"/>
<link href="${ctx}/css/shop/shop.css" type="text/css" rel="stylesheet"/>
<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/messages_cn.js" type="text/javascript"></script>
<script language="javascript" src="${ctx}/js/main.js"></script>
<script src="${ctx}/js/table.js" type="text/javascript"></script>
<script src="${ctx}/js/shop/shop.js" type="text/javascript"></script>
</head>
<body>
<div id="doc3">
<%@ include file="/common/header.jsp" %>
<form id="mainForm" action="shopinfo!addGoodsSave.action" method="post">
<table width="100%" border="0" cellspacing="0" class="noborder">
<tr class="top_td">
<td valign="middle">
当前操作:<a href="shopinfo.action" >商场管理</a>->添加商品
</td>
</tr>
<tr>
<td bgcolor="#dbe9e8"
style="border: 1px solid #c2c2c2; padding-left: 10px;"></td>
</tr>
</table>
<div id="shopinfo_mg" class="listgoods">
<h2>
<span style="">商店名称:</span>
<span style="color:orange">${entity.shopname }</span>
<input type="hidden" name="id" value="${entity.id }" />
</h2>
<ul>
<c:if test="${not empty goodscategorys}">
<c:forEach items="${goodscategorys }" var="goodscategory">
<div><span style="font-weight:bold;color:blue">${goodscategory.name }</span></div>
<div id="box">
<ul style="overflow:hidden">
<c:forEach items="${goodscategory.goods }" var="goods">
<li><input type="checkbox" name="goodsids" <c:if test="${fn:contains(selectedGoods, goods.id)}" >checked</c:if> value="${goods.id }" /><span>${goods.name }</span></li>
</c:forEach>
</ul>
<div class="clearboth"></div>
</div>
</c:forEach>
</c:if>
</ul>
</div>
<div class="clearboth"></div>
<div style="margin:20px"><input type="submit" name="" value="提交" /> <input type="reset" name="" value="重置" /> <input type="button" value="返回" οnclick="javascript:history.back()" /></div>
</form>
<%@ include file="/common/footer.jsp" %>
</div>
</body>
</html>