<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%-- jstl1.2--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 

<%@ page isELIgnored="false" %> 
<%@page  import="miinshop.entryDomain.dao.ShopProductCat" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="ShopProductCat 添加实体类列表，path: 请情: www.juuluu.net " />

<title>Admin Cat</title>

                                    <!--
*
 * @author http://www.juuluu.org 逐龙juuluu
* tel:020-28983330 mobile:15975485229
 * email:wujavei@126.com  QQ:274390981
 * @see /entryJsp/ShopProductCatList.jsp
 -->
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/Resource/RIA/jquery-easyui-1.3.2/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/Resource/RIA/jquery-easyui-1.3.2/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/Resource/RIA/jquery-easyui-1.3.2/demo/demo.css">
	<script type="text/javascript" src="<%=request.getContextPath()%>/MyApp/Resource/RIA/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/MyApp/Resource/RIA/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>

 
 
<script src="/JuuluuApp/javascript/juuluu.js" type="text/javascript" language="javascript" charset="UTF-8" ></script>

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/Resource/RIA/miin/base/blue/css.css">

<link rel="stylesheet" type="text/css" href="/MyApp/Resource/RIA/miin/base/blue/css.css">

</head>
<body>
<html:errors/>


<!--
<div class="juuluu_ui_nav_bar1">
	<ul>
		<li class="juuluu_bt_c1">
		<a href="miincms/gcms/admin/entryJsp/ShopProductCatFormAdd.jsp">
<img src="/JuuluuApp/UiIcon/16_16_png_icons/calendar1.png" alt="" width="16" height="16" />
添加记录</a> 
		</li>
				<li class="juuluu_bt_c1">
	
<a href="#" onClick="return backPage()" ><img src="/JuuluuApp/UiIcon/16_16_png_icons/shortkey.png" alt="" width="16" height="16" style="margin-bottom:-2px;"/>返回</a>

		</li>

	</ul>
</div>
-->





<script language="javascript" type="text/javascript">
 function backPage(){
 	history.back();
 }
</script>
</div>

<div id="title">
产品类别列表

</div>


	
<table  border='0' cellpadding='0' cellspacing='1' class="ListTable" width="100%" aligen="center">
<tr class="header"><td>ID</td><td>类别</td><td>编辑</td></tr>
<%
  
/*java.util.Map rmap=(java.util.Map) request.getAttribute("mapRequest");
   java.util.List<miinshop.entryDomain.dao.ShopProductCat> objectList=null;
   Object ol=rmap.get("objectList");
 objectList=(java.util.List<miinshop.entryDomain.dao.ShopProductCat>)ol;
 //out.write("<p/> data list size:"+objectList.size());
 request.setAttribute("objectList", objectList);
 */

 //java.util.List<miinshop.entryDomain.dao.ShopProductCat> al=new java.util.ArrayList<miinshop.entryDomain.dao.ShopProductCat>();
//miinshop.entryDomain.dao.ShopProductCat cats=new miinshop.entryDomain.dao.ShopProductCat();
// cats.setCatName("bb");
 
 //al.add(cats );
 //request.setAttribute("alb", al);
 %>
 <c:if test="${objectList!=null}">
<c:forEach  items="${objectList}" var="cat"  >

    <tr class="ListEntrydataRow">
<td class="tdColor1"  >

        <c:out  value="${cat.catid}"/>
</td>
	
<td class="tdColor2" >
        <c:if test="${cat.catName==null}" >
&nbsp;</c:if>
    <c:if test="${cat.catName!=null}" >
        
&nbsp;</c:if>

<c:out value="${cat.catName}"></c:out>
    
</td>
	

	<td class="tdColor2" >
<div class="juuluu_ui_nav_bar2"><ul>
        
         <li class="juuluu_bt_entry_01"><a href="<%=request.getContextPath()%>/MyApp/miinshop/pages/default/articleList.jsp?catid=<c:out value="${cat.catid}"/>" target="_blank" >预览</a>
         </li>
        <li class="juuluu_bt_entry_01"><a href="<%=request.getContextPath()%>/MyApp/miinshop/admin/smallProductCat/controller.jsp?act=view&id=<c:out value="${cat.catid}"/>"/>查看</a>
</li><li class="juuluu_bt_entry_01"><a href="<%=request.getContextPath()%>/MyApp/miinshop/admin/smallProductCat/controller.jsp?act=updateInit&id=<c:out value="${cat.catid}"/>"/>更新</a>
</li><li class="juuluu_bt_entry_01"><a href="<%=request.getContextPath()%>/MyApp/miinshop/admin/smallProductCat/controller.jsp?act=delete&id=<c:out value="${cat.catid}"/>" onclick="return deleteShopProductCat()"  >删除</a>
</li></ul><div></td>
</tr>

</c:forEach>
 </c:if>
</table>
        </p>	


<script language="javascript">
function deleteShopProductCat(){
var value=confirm("是否确认删除产品类别");
	 if(value==true){
	 return true;
}	 else {return false;
}
	}

</script>

<c:if test="${info!=null}">
	<script type="text/javascript">
		alert("<c:out value="${info}"></c:out>");
	</script>
</c:if>

</body>
</html>
