<%@ 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="miin.core.miinSysConfigValiday.entryDomain.dao.MiinSysConfigValidatyCat,miin.core.miinSysConfigValiday.domain.ArticleAdminDomain" %>
<%--
第一次加载时，显示系统变量分类列表
点击分类后，加载该分类的系统变量列表

--%>
<!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="添加实体类列表，path: 请情: www.guuraa.net " />

<title>系统变量管理</title>

<!--
*
 * @author http://www.guuraa.org 鲸浪guuraa
* 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>

 
<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"    >

 <jsp:include page="/MyApp/Core/SysConfigValiday/admin/SystemManage/superUserHome/html_header.jsp"></jsp:include>
 
 
</head>
<body scroll="no">
<% ArticleAdminDomain domain=new ArticleAdminDomain(request, response, out);
		 java.util.List<miin.core.miinSysConfigValiday.entryDomain.dao.MiinSysConfigValidatyCat> catList=null;   
	 Object ol=domain.getController().getAttribute("ShopProductCatList");
 catList=(java.util.List<miin.core.miinSysConfigValiday.entryDomain.dao.MiinSysConfigValidatyCat>)ol;
					//out.write("cat list size:"+catList.size());
					 %>
									


	<div id="layout">
            <jsp:include page="/MyApp/Core/SysConfigValiday/admin/SystemManage/superUserHome/body_header.jsp"></jsp:include>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">
					<div class="accordionHeader">
						<h2><span>Folder</span>变量管理</h2>
					</div>
				
		
					<jsp:include page="/MyApp/Core/SysConfigValiday/admin/SystemManage/superUserHome/MenuBar2.jsp"	></jsp:include>

				
				</div>

			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span>
                                                                    <span class="home_icon">系统变量</span></span>
                                                            </a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">系统变量</a></li>
                                      
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
													
							<div class="pageContent">
								<div class="pageFormContent" layoutH="56">
								
								


							
									
									
										<div id="catList"  style="width:700px;padding:3px; border: solid 1px #6C8EA1;">
											  <p>
												  选择分类:
											 <c:if test="${ShopProductCatList!=null}">
											<c:forEach  items="${ShopProductCatList}" var="cat"  >
											  <a href="<%=request.getContextPath()%>/MyApp/Core/SysConfigValiday/admin/ArticleAdmin/controller.jsp?act=admin&catid=<c:out value="${cat.catid}"/>"/>
											 <c:out value="${cat.catName}"></c:out></a>
											</c:forEach>
											</c:if>
											 </p>	
										</div>
									 
									 
										<p/>
										
									
							
										
									<table  border='0' cellpadding='0' cellspacing='1' class="ListTable" width="100%" aligen="center">
									<tr class="header"><td>ID</td><td>名称</td> <td>值</td> <td>类别</td><td>编辑</td></tr>
										<%
										//test code
										/*
										ArticleAdminDomain domain2=new ArticleAdminDomain(request, response, out);
									
										java.util.List<miin.core.miinSysConfigValiday.entryDomain.dao.ShopProduct> articletListTest=null;
									   Object ol_alist=domain2.getController().getAttribute("ArticleListAdmin");   
										articletListTest=(java.util.List<miin.core.miinSysConfigValiday.entryDomain.dao.ShopProduct> )ol_alist;
										if(articletListTest!=null){
										  //  out.write("<p/> article data list size:"+articletListTest.size());
									
										}
									   
									 
									java.util.List<miin.core.miinSysConfigValiday.entryDomain.dao.ShopProduct> articlelist=new java.util.ArrayList<miin.core.miinSysConfigValiday.entryDomain.dao.ShopProduct>();
									miin.core.miinSysConfigValiday.entryDomain.dao.ShopProduct a=new miin.core.miinSysConfigValiday.entryDomain.dao.ShopProduct();
									 a.setCatName("bb");
									 a.setTitle("article title");
									 
									articlelist.add(a );
									request.setAttribute("alist", articlelist);
									 */
									 %>
									 
									 <c:if test="${ShopProductListAdmin!=null}" >
											<c:forEach  items="${ShopProductListAdmin}" var="article"  >
									
										 <tr class="ListEntrydataRow">
											<td class="tdColor1"  >
									
											<c:out  value="${article.aid}"/>
											</td>
										
											<td class="tdColor2" >
											<c:if test="${article.name==null}" >
										&nbsp;</c:if>
										<c:if test="${article.name!=null}" >
											
											&nbsp;</c:if>
									
										<c:out value="${article.name}"></c:out>
										
										</td>
                                                                                
                                                                                	<td class="tdColor2" >
											<c:if test="${article.entryValue==null}" >
										&nbsp;</c:if>
										<c:if test="${article.entryValue!=null}" >
											
											&nbsp;</c:if>
									
										<c:out value="${article.entryValue}"></c:out>
										
										</td>
									
											<td class="tdColor2" >
											<c:if test="${article.catName==null}" >
											&nbsp;</c:if>
										<c:if test="${article.catName!=null}" >
											
											&nbsp;</c:if>
									
										<c:out value="${article.catName}"></c:out>
										
										</td>
										
									
											<td class="tdColor2" >
											<div class="crudLINK">
                                                                                            <%--
											  <a href="<%=request.getContextPath()%>/MyApp/Core/SysConfigValiday/pages/default/article.jsp?aid=<c:out value="${article.aid}"/>" target="_blank">
										   预览
											</a>--%>
												&nbsp;
											 <a href="<%=request.getContextPath()%>/MyApp/Core/SysConfigValiday/admin/ArticleAdmin/controller.jsp?act=view&id=<c:out value="${article.aid}"/>">
										   查看
											</a>
										   &nbsp;
											   
										   <a href="<%=request.getContextPath()%>/MyApp/Core/SysConfigValiday/admin/ArticleAdmin/controller.jsp?act=updateInit&id=<c:out value="${article.aid}"/>">
										   修改
											</a>
										   &nbsp;
											<a href="<%=request.getContextPath()%>/MyApp/Core/SysConfigValiday/admin/ArticleAdmin/controller.jsp?act=delete&id=<c:out value="${article.aid}"/>" onclick="return deleteShopProduct()"  >删除</a>
										 
											<div></td>
										</tr>
									
										</c:forEach>
									</c:if>
									</table>
											</p>	
										
									
									
									<script language="javascript">
									function deleteShopProduct(){
									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>

								</div>		
							
							</div>
							
					</div>
					
				</div>
			</div>
		</div>

	</div>

<jsp:include page="/MyApp/Core/pages/tags/footer.jsp"></jsp:include>


</body>
</html>
