<%@ page language="C#" autoeventwireup="true" inherits="admin_seo_clientlist, 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="sys_Client";
	PageContent.Url = "clientlist.aspx?ord=" + Para("ord") + "&pn=@pagenumber@";
	PageContent.SQL=" select C_Session,C_ID,C_Name,C_Memo as _html_cmemo,C_Time,C_Type from sys_Client ";
	
	PageContent.PageBody("@@Const.PageTable()@@","@@Const.PageBar(\" ##Const.AddButton('clientitem.aspx?ord=" + Para("ord") + "')## ##Const.DeleteButton()## ##Const.SearchButton('客户姓名','C_Name')##	\")@@","<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('clientlist.aspx?ord=','C_Name','" + Para("ord") + "','客户姓名')@@","<td>@C_Name@</td>");
  PageContent.AddList("@@Const.PageOrderField('clientlist.aspx?ord=','C_Type','" + Para("ord") + "','客户类型')@@", "<td>@@Csharp.GetSelectValue('@C_Type@','0,潜在客户|1,<span class=\"green\">购买客户</span>|2,<span class=\"red\">热门客户</span>')@@</td>");
  PageContent.AddList("@@Const.PageOrderField('clientlist.aspx?ord=','C_Time','" + Para("ord") + "','最后访问时间')@@","<td>@C_Time@</td>");
  PageContent.AddList("@@Const.PageOrderField('clientlist.aspx?ord=','C_Session','" + Para("ord") + "','校验码')@@","<td>@C_Session@</td>");
  PageContent.AddList("<td >联系信息</td>","<td style='text-align:left;padding:0px 10px;'>@_html_cmemo@</td>");
  PageContent.AddList("<td> </td>","<td><a href='clientitem.aspx?id=@C_ID@' class='edit'>编辑</a></td>");
  
%>
<uc1:pageContent ID="PageContent" runat="server" />
<script type="text/javascript" >

</script>
</body>
</html>   
