<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.SystemClass.UI_List"  CodePage="65001" PathLevel="1" PageFileFlag="System_List" PageFileTitle="分类管理" DataBindingType="1" PageFlagId="1"  %>

<%@ Register TagPrefix="Site" TagName="Menu" Src="../WUC/Site_Menu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<Site:Menu id="menu_headtitle" runat="server" Flag="HeadTitle" CurrentPageTitle = "后台管理 - 分类管理" />
<Site:Menu id="menu_headjs" runat="server" Flag="HeadJs" PathLevel="1" />
<Site:Menu id="menu_headcss" runat="server" Flag="HeadCss" PathLevel="1" />

<script>

//编辑
function Edit_Info(id)
{
//访问类型,AJAX路径,数据JSON,弹出框ID,弹出框标题,等执行的函数名;
var _url="update.aspx?IsAdd=1";
var _data = {"id":id,"ClassType":<%=ClassType%>};	
//if(id>0)Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","<%=PageFileTitle%>:编辑","");	
//else
Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","<%=PageFileTitle%>:编辑","SaveSub");	
//将本行设置为选中颜色
SetActive(id);
}


//删除
function Del_Info(id,IsReserve){

if(IsReserve>0) {Alert("系统保留，不允许删除。",1);return false;}
//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "update.aspx?IsAdd=3";
var _data ={"id":id,"DeleteType":3};
Common.ConfirmDelete2 ("POST",_url,_data,"<%=PageFileFlag%>","删除确认","");
SetActive(id);	

}

//08:57 2011-07-01
function PicManage(id){
	SetActive(id);
	PaiPaiCMS.PicBox.UserLogo.Show(6,1,1,"/UpPic/SysClassLogo.aspx",id,"分类LOGO管理");
}

//11:43 2010-9-29
$(document).ready(function(){
//	client_SetPageNo(<%=intPageNo%>);//记录页码
});



</script>



</head>
<body>

<%
if(ClassType==1)
{
PageFileTitle="信息分类";
}
else if(ClassType==1)
{
PageFileTitle="信息分类";
}
else if(ClassType==3)
{PageFileTitle="商品分类";}
else if(ClassType==1)
{}
else if(ClassType==1)
{}
%>

<Site:Menu id="menu_topmenu" runat="server" Flag="TopMenu"  />
<div class1="wrap" id="wrap">
	<Site:Menu id="Wuc_LeftMenu" runat="server" Flag="LeftMenu" PageFileFlag="Menu_A_800_801" PathLevel="1" />	
	<div class1="mainbox" class="MainBox W1100 ">

		<div class="PGTitle LH30 ">
			<div class="W200 FL MGL10 FWB FS12"><%=PageFileTitle%></div>
			<div class="ChileMenu1 FL FS12">

			</div>
			<div class="Clear"></div>
		</div>
		<div class="ContBox MGT10 " >

<table class="Table FS12 ">


<tr style="height:10px;	font-weight: bold;">
<TH style="width:60px">序号</TH>
<!--
<TH style="width:100px">LOGO</TH>-->
<TH >名称</TH>

<TH style="width:150px;<%=ClassType==3||ClassType==1?"":"display:none;"%>">上级分类</TH>
<TH style="width:60px">星级</TH>
<TH style="width:60px">状态</TH>
<TH style="width:130px">操作</TH>
</tr>

<asp:Repeater id="rpList" runat="server">
<ItemTemplate>

<tr id="tr_<%#Eval("id")%>">
		<td><%#Eval("id")%></TD>

		<TD style="font-weight:<%#(Eval("PClassID").ToString()=="0"?"bold":"normal")%>;color:<%#(Eval("PClassID").ToString()=="0"?"#dd0000":"#666666")%>" ><%#Eval("ClassName")%> <%# ClassType==3||ClassType==1?(Eval("PClassID").ToString()=="0"?"(一级)":"(二级)"):""%><font color='red' title="(<%#Eval("Depth")%>级)"></font></td>
		<td  style="<%=ClassType==3||ClassType==1?"":"display:none;"%>"  ><%#GetParentClassName(Eval("PClassID"))%></td>
		<td><%#Eval("Orderid")%> 级</TD>
		<td ><%#Eval("IsChecked").Equals(1)?"<font color='green'>启用</font>":"<font color='red'>停用</font>"%></td>
		<td>
			
				<a onclick="Edit_Info('<%#Eval("id")%>');" >编辑</a>
				<a onclick ="Del_Info(<%#Eval("id")%>,<%#Eval("IsReserve")%>)"><%#Eval("IsReserve").ToString()=="1"?"<font class='Red'>保留</font>":"删除"%></a>
				<%//#CreateButton(Eval("id"),Eval("IsReserve"))%>
			
		</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
		</div>
		<div class="ContBox" >
			<div class="page" style="margin-left:-13px;"><%=strPageInfo%>  <a href="#"onclick="Edit_Info(0);return false;"  class="A_Add">添加</a> </div>		
			
		</div>

	</div>
</div>


<div class="clear"></div>
<Site:Menu id="menu_foot" runat="server" Flag="Foot"   />
</body>
</html>


