<%@ page language="C#" autoeventwireup="true" inherits="admin_class_contentlist, 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" />

<script type="text/javascript" src="contentlist.js" charset="utf-8"></script>
<!--#include file="keydensity.inc" -->
<script type="text/javascript" >
 var s_cid="<%=Para("cid")%>";
</script>
</head>
<body class="mg3" onload="LoadBody()">
<%
	PageContent.ImagePageBar=true;
  PageContent.Table ="User_Content";
	PageContent.Url = "Contentlist.aspx?cid=" + Para("cid") + "&ord=" + Para("ord") + "&pn=@pagenumber@";
	PageContent.SQL="select C_Publish,C_Commend,C_Property,C_Price,C_Density as _density_showhtml,len(C_Content) as clen,C_ID,C_Url,C_Title,C_Click,C_Update,C_status,C_CID,C_Type,C_Repeat,C_RepMd5 from User_Content  where c_index<>2 and C_CID="+Para("cid")+"   ";
	PageContent.PageBody("@@Const.PageTable()@@","@@Const.PageBar(\"##Const.AddButton('contentitem.aspx?"+GetInheritClass()+"&cid="+Para("cid")+"&ord=" + Para("ord") + "')## ##Const.DeleteButton()##  <input type='button' value='移动'  onclick='MoveItem()' class='button'> <input type='button' value='更新' onclick='UpdateTime()' class='button'> 	<input type='button' value='批量'  onclick='Batch()' class='button'>##Const.SearchButton('标题','C_Title')## <img id='imgall' onclick='ShowAllDesity()' src='/admin/images/plusBox.gif' />关键词密度 \")@@	","<tr id='trhead'>@content@</tr>","<tr id='tr_@c_id@'>@content@</tr>");
	PageContent.Action="";//本页处理
	PageContent.AddList("@@Const.RowToggleAll()@@","@@Const.RowToggleItem('@C_ID@')@@");
	PageContent.AddList("<td>编号</td>","<td>@ItemNumber@</td>");
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_ID','" + Para("ord") + "','ID')@@", "<td>@C_ID@</td>");
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Type','" + Para("ord") + "','页面类型')@@", "<td>@@Csharp.GetSelectValue('@C_Type@','##Const.ContentType()##')@@</td>");
  PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Title','" + Para("ord") + "','标题')@@", "<td>@C_Title@</td>");
  PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Url','" + Para("ord") + "','页面地址')@@","<td><a target='_blank' href='@C_Url@'>@C_Url@</a></td>");
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Update','"+Para("ord")+"','更新时间')@@","<td>@C_Update@</td>");
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Click','" + Para("ord") + "','查看次数')@@","<td>@C_Click@</td>");
	
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Property','" + Para("ord") + "','扩展属性')@@","<td>@@Csharp.GetSelectValue('@C_Property@','##Const.Property()##')@@</td>");
	//PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','cint(C_Price)','" + Para("ord") + "','价格')@@","<td>@C_Price@ 元</td>");
	
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_status','" + Para("ord") + "','文件状态')@@","<td>@@Csharp.GetSelectValue('@C_status@','<span class=\"red\">草稿文章</span>,<span class=\"green\">发布文章</span>,<span class=\"blue\">推荐文章</span>,锁定文章,其他类型')@@</td>");
	PageContent.AddList("<td >关键词密度</td>","<td>@@Csharp.GetKeyDensity(\"@c_id@\",\"@_density_showhtml@\")@@</td>");
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','len(C_Content)','" + Para("ord") + "','文件大小')@@","<td>@clen@</td>");
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Repeat','" + Para("ord") + "','重复')@@", "<td>@@Csharp.GetSelectValue('@C_Repeat@',' ,<a href=\"javascript:GetRepeat(&#34;@C_RepMd5@$"+Para("cid")+"&#34;)\">重复</a>')@@</td>");
	
	PageContent.AddList("@@Const.PageOrderField('contentlist.aspx?cid=" + Para("cid") + "&ord=','C_Publish','" + Para("ord") + "','访问')@@","<td>@@Csharp.GetSelectValue('@C_Publish@','0,|1,通过')@@</td>");
	
	PageContent.AddList("<td> </td>","<td><a target='content' href='contentitem.aspx?id=@c_id@&cid=@C_CID@' class='edit'>编辑</a></td>");
%>
<uc1:pageContent ID="PageContent" runat="server" />
<script type="text/javascript" src="/common/popwindow.js" charset="utf-8"></script>

</body>
</html>   
