<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.Article.UI_List"  CodePage="65001" PathLevel="1" PageFileFlag="Article_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 type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
<script>
//<%=PageFileTitle%>//GetCurrentBigClassName
var CurrentBigClassName = "<%=GetCurrentSubClassName(BigClassId)%>";//"公司信息";
var ClassQueryParam = "BigClassId=<%=BigClassId%>&SubClassId=<%=SubClassId%>&PClassId=<%=_PClassId %>";

//编辑
function edit_address(id){
//访问类型,AJAX路径,数据JSON,弹出框ID,弹出框标题,等执行的函数名;
var _url="update.aspx?"+ClassQueryParam;
var _data = {"id":id};
Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","<%=GetCurrentSubClassName(BigClassId)%>:编辑","_ArticleUpdate");
//将本行设置为选中颜色
SetActive(id);
//加载编辑器
LoadEditor();
}


//删除
function del_address(id){
//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "update.aspx?IsAdd=30&PClassId=<%=_PClassId %>";
var _data ={"id":id};
Common.ConfirmDelete2 ("POST",_url,_data,"<%=PageFileFlag%>","删除确认","");
SetActive(id);
}


</script>



</head>
<body>

<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_400_2" PathLevel="1" />	
	<div class1="mainbox" class="MainBox W1100 ">

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

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

		<div class="ContBox MGT10 " >

<table class="Table FS12 ">
<tr style="height:30px;	font-weight: bold;" >
<TH class="W50" >ID</TH>
<TH >标题</TH>
<TH style="width:100px">分类</TH>
<!--<TH style="width:60px">链接</TH>
<TH style="width:100px">图片</TH>-->
<TH style="width:150px">创建时间</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><a href="/article/artinfo.aspx?id=<%#Eval("id")%>" m="/index.aspx?s=/Help/id/" target="_blank"><%#Eval("title")%></a></TD>
		<td><%#GetCurrentSubClassName(Eval("SubClassId"))%></TD>
		<!--		
		<TD><a href="<%#Eval("href")%>" target="_blank">预览</a></td>
		<td title="<%#Eval("ImagePath")%>" style="text-align:center"> <img src="/<%#Eval("ImagePath")%>" style="width:60px;height:45px"  /></td>
		-->
		
		<td ><%#Eval("CreateTime","{0:yyyy-MM-dd}")%></td>
		<td ><%#Eval("orderid")%>星</td>
		<td ><%#Eval("IsChecked").Equals(1)?"<font color='green'>启用</font>":"<font color='red'>停用</font>"%></td>
		<td>
				<a onclick="edit_address('<%#Eval("id")%>')" >编辑</a>
				<a onclick="del_address('<%#Eval("id")%>')" >删除</a>
		</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>


		</div>
		<div class="ContBox" >
			<div class="page" style="margin-left:-13px;"><%=strPageInfo%>  -  <a href="#"onclick="edit_address();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>



