<%@ page language="C#" autoeventwireup="true" inherits="admin_manage_templetlist, localhost_deploy" %>
<%@ Register Src="../../common/pageContent.ascx" TagName="pageContent" TagPrefix="uc1" %>
<!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 runat="server">
<title>模板列表页面</title>
<link href="/admin/common/client.css" rel="stylesheet" type="text/css" />
</head>
<body class="mg3">
<%
	PageContent.ImagePageBar=true;
  PageContent.Table="User_Template";
	PageContent.Url = "templetlist.aspx?ord=" + Para("ord") + "&pn=@pagenumber@";
	PageContent.SQL="select T_ID,T_Name,T_Path,T_Type from User_Template  ";
	PageContent.Action="";//本页处理	
	
	
	PageContent.PageBody("@@Const.PageTable()@@","@@Const.PageBar(\"##Const.AddButton('templetitem.aspx?ord=" + Para("ord") + "')## ##Const.DeleteButton()## ##Const.SearchButton('模板名称','T_Name')## &nbsp; \")@@","<tr id='trhead'>@content@</tr>","<tr id='tr_@T_ID@'>@content@</tr>");
	PageContent.AddList("@@Const.RowToggleAll()@@","@@Const.RowToggleItem('@T_ID@')@@");
	PageContent.AddList("<td>编号</td>","<td>@ItemNumber@</td>");
	PageContent.AddList("<td>模板ID</td>","<td>@T_ID@</td>");
  PageContent.AddList("@@Const.PageOrderField('templetlist.aspx?type=" + Para("type") + "&ord=','T_Name','" + Para("ord") + "','模板名称')@@", "<td>@T_Name@</td>");
	PageContent.AddList("@@Const.PageOrderField('templetlist.aspx?type=" + Para("type") + "&ord=','T_Path','"+Para("ord")+"','模板文件')@@","<td>@T_Path@</td>");
	
	//PageContent.AddList("@@Const.PageOrderField('templetlist.aspx?type=" + Para("type") + "&ord=','T_Type','"+Para("ord")+"','模板类型')@@","<td>@@Csharp.GetSelectValue('@T_Type@','0,分类模板|1,内容模板|2,内容内部模板|10,标签分类模板|11,标签内容模板')@@</td>");
	
	PageContent.AddList("<td> </td>","<td><a target='main' href='templetitem.aspx?id=@T_ID@' class='edit'>编辑</a></td>");
	
%>
<uc1:pageContent ID="PageContent" runat="server" />
<script type="text/javascript" >
/*
$('seltype').onchange=function (){
 //禁用某些字段显示
 location.href="templetlist.aspx?ord=<%=Para("ord")%>&type="+$('seltype').value;
}
$('seltype').value="<%=Para("type")%>";
*/
</script>

</body>
</html>   
