<%
Response.Buffer = EW_RESPONSE_BUFFER
%>
<!--#include file="ewcfg7.asp"-->
<!--#include file="zxzxinfo.asp"-->
<!--#include file="zlogininfo.asp"-->
<!--#include file="aspfn7.asp"-->
<!--#include file="userfn7.asp"-->
<% Session.Timeout = 900 %>
<%
Response.Expires = 0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, no-store, must-revalidate"
%>
<%

' Define page object
Dim zxzx_list
Set zxzx_list = New czxzx_list
Set Page = zxzx_list

' Page init processing
Call zxzx_list.Page_Init()

' Page main processing
Call zxzx_list.Page_Main()
%>
<!--#include file="header.asp"-->
<% If zxzx.Export = "" Then %>
<script type="text/javascript">
<!--
// Create page object
var zxzx_list = new ew_Page("zxzx_list");
// page properties
zxzx_list.PageID = "list"; // page ID
var EW_PAGE_ID = zxzx_list.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
zxzx_list.Form_CustomValidate = 
 function(fobj) { // DO NOT CHANGE THIS LINE!
 	// Your custom validation code here, return false if invalid. 
 	return true;
 }
zxzx_list.SelectAllKey = function(elem) {
	ew_SelectAll(elem);
}
<% If EW_CLIENT_VALIDATE Then %>
zxzx_list.ValidateRequired = true; // uses JavaScript validation
<% Else %>
zxzx_list.ValidateRequired = false; // no JavaScript validation
<% End If %>
//-->
</script>
<script type="text/javascript">
<!--
var ew_DHTMLEditors = [];
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js"); 
//-->
</script>
<% End If %>
<% If zxzx.Export = "" Then %>
<% End If %>
<%

' Load recordset
Set Rs = zxzx_list.LoadRecordset()
	zxzx_list.lTotalRecs = Rs.RecordCount
	zxzx_list.lStartRec = 1
	If zxzx_list.lDisplayRecs <= 0 Then ' Display all records
		zxzx_list.lDisplayRecs = zxzx_list.lTotalRecs
	End If
	If Not (zxzx.ExportAll And zxzx.Export <> "") Then
		zxzx_list.SetUpStartRec() ' Set up start record position
	End If
%>
<p style='display:none'><span class="aspmaker" style="white-space: nowrap;">表: 在线咨询
</span></p>
<% zxzx_list.ShowMessage %>
<br>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<% If zxzx.Export = "" Then %>
<div class="ewGridUpperPanel">
<% If zxzx.CurrentAction <> "gridadd" And zxzx.CurrentAction <> "gridedit" Then %>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<%= ew_CurrentPage %>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
	<tr>
		<td>
<% If Not IsObject(zxzx_list.Pager) Then Set zxzx_list.Pager = ew_NewPrevNextPager(zxzx_list.lStartRec, zxzx_list.lDisplayRecs, zxzx_list.lTotalRecs) %>
<% If zxzx_list.Pager.RecordCount > 0 Then %>
	<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="aspmaker">页&nbsp;</span></td>
<!--first page button-->
	<% If zxzx_list.Pager.FirstButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.FirstButton.Start %>"><img src="images/first.gif" alt="首页" width="16" height="16" border="0"></a></td>
	<% Else %>
	<td><img src="images/firstdisab.gif" alt="首页" width="16" height="16" border="0"></td>
	<% End If %>
<!--previous page button-->
	<% If zxzx_list.Pager.PrevButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.PrevButton.Start %>"><img src="images/prev.gif" alt="上一页" width="16" height="16" border="0"></a></td>
	<% Else %>
	<td><img src="images/prevdisab.gif" alt="上一页" width="16" height="16" border="0"></td>
	<% End If %>
<!--current page number-->
	<td><input type="text" name="<%= EW_TABLE_PAGE_NO %>" id="<%= EW_TABLE_PAGE_NO %>" value="<%= zxzx_list.Pager.CurrentPage %>" size="4"></td>
<!--next page button-->
	<% If zxzx_list.Pager.NextButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.NextButton.Start %>"><img src="images/next.gif" alt="下一页" width="16" height="16" border="0"></a></td>
	<% Else %>
	<td><img src="images/nextdisab.gif" alt="下一页" width="16" height="16" border="0"></td>
	<% End If %>
<!--last page button-->
	<% If zxzx_list.Pager.LastButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.LastButton.Start %>"><img src="images/last.gif" alt="尾页" width="16" height="16" border="0"></a></td>	
	<% Else %>
	<td><img src="images/lastdisab.gif" alt="尾页" width="16" height="16" border="0"></td>
	<% End If %>
	<td><span class="aspmaker">&nbsp;的 <%= zxzx_list.Pager.PageCount %></span></td>
	</tr></table>
	</td>	
	<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td>
	<span class="aspmaker">记录数 <%= zxzx_list.Pager.FromIndex %> 到 <%= zxzx_list.Pager.ToIndex %> 的 <%= zxzx_list.Pager.RecordCount %></span>
<% Else %>
	<% If Security.CanList Then %>
	<% If zxzx_list.sSrchWhere = "0=101" Then %>
	<span class="aspmaker">请输入查询条件</span>
	<% Else %>
	<span class="aspmaker">没有找到记录</span>
	<% End If %>
	<% Else %>
	<span class="aspmaker">你无权查看</span>
	<% End If %>
<% End If %>
		</td>
	</tr>
</table>
</form>
<% End If %>
<span class="aspmaker">
<% If Security.CanAdd Then %>
<a href="<%= zxzx.AddUrl %>">增加</a>&nbsp;&nbsp;
<% End If %>
<% If zxzx_list.lTotalRecs > 0 Then %>
<% If Security.CanDelete Then %>
<a href="" onclick="if (!ew_KeySelected(document.fzxzxlist)) alert('没有选择记录'); else {document.fzxzxlist.action='zxzxdelete.asp';document.fzxzxlist.encoding='application/x-www-form-urlencoded';document.fzxzxlist.submit();};return false;">删除所选记录</a>&nbsp;&nbsp;
<% End If %>
<% End If %>
</span>
</div>
<% End If %>
<div class="ewGridMiddlePanel">
<form name="fzxzxlist" id="fzxzxlist" class="ewForm" action="" method="post">
<% If zxzx_list.lTotalRecs > 0 Then %>
<table cellspacing="0" rowhighlightclass="ewTableHighlightRow" rowselectclass="ewTableSelectRow" roweditclass="ewTableEditRow" class="ewTable ewTableSeparate">
<%
	zxzx_list.lOptionCnt = 0
If Security.CanView Then
	zxzx_list.lOptionCnt = zxzx_list.lOptionCnt + 1 ' View
End If
If Security.CanEdit Then
	zxzx_list.lOptionCnt = zxzx_list.lOptionCnt + 1 ' Edit
End If
If Security.CanAdd Then
	zxzx_list.lOptionCnt = zxzx_list.lOptionCnt + 1 ' Copy
End If
If Security.CanDelete Then
	zxzx_list.lOptionCnt = zxzx_list.lOptionCnt + 1 ' Multi-select
End If
	zxzx_list.lOptionCnt = zxzx_list.lOptionCnt + zxzx_list.ListOptions.Items.Count ' Custom list options
%>
<%= zxzx.TableCustomInnerHTML %>
<thead><!-- Table header -->
	<tr class="ewTableHeader">
<% If zxzx.id.Visible Then ' id %>
	<% If zxzx.SortUrl(zxzx.id) = "" Then %>
		<td>编号</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.id) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>编号</td><td style="width: 10px;"><% If zxzx.id.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.id.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.zt.Visible Then ' zt %>
	<% If zxzx.SortUrl(zxzx.zt) = "" Then %>
		<td>主题</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.zt) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>主题</td><td style="width: 10px;"><% If zxzx.zt.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.zt.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.zxr.Visible Then ' zxr %>
	<% If zxzx.SortUrl(zxzx.zxr) = "" Then %>
		<td>咨询人</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.zxr) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>咨询人</td><td style="width: 10px;"><% If zxzx.zxr.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.zxr.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.xb.Visible Then ' xb %>
	<% If zxzx.SortUrl(zxzx.xb) = "" Then %>
		<td>性别</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.xb) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>性别</td><td style="width: 10px;"><% If zxzx.xb.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.xb.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.gsmc.Visible Then ' gsmc %>
	<% If zxzx.SortUrl(zxzx.gsmc) = "" Then %>
		<td>公司名称</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.gsmc) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>公司名称</td><td style="width: 10px;"><% If zxzx.gsmc.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.gsmc.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.sf.Visible Then ' sf %>
	<% If zxzx.SortUrl(zxzx.sf) = "" Then %>
		<td>省份</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.sf) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>省份</td><td style="width: 10px;"><% If zxzx.sf.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.sf.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.zemail.Visible Then ' email %>
	<% If zxzx.SortUrl(zxzx.zemail) = "" Then %>
		<td>Email</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.zemail) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Email</td><td style="width: 10px;"><% If zxzx.zemail.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.zemail.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.dh.Visible Then ' dh %>
	<% If zxzx.SortUrl(zxzx.dh) = "" Then %>
		<td>电话</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.dh) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>电话</td><td style="width: 10px;"><% If zxzx.dh.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.dh.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.cz.Visible Then ' cz %>
	<% If zxzx.SortUrl(zxzx.cz) = "" Then %>
		<td>传真</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.cz) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>传真</td><td style="width: 10px;"><% If zxzx.cz.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.cz.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.xxdz.Visible Then ' xxdz %>
	<% If zxzx.SortUrl(zxzx.xxdz) = "" Then %>
		<td>详细地址</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.xxdz) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>详细地址</td><td style="width: 10px;"><% If zxzx.xxdz.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.xxdz.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.url.Visible Then ' url %>
	<% If zxzx.SortUrl(zxzx.url) = "" Then %>
		<td>网址</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.url) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>网址</td><td style="width: 10px;"><% If zxzx.url.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.url.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.zxrq.Visible Then ' zxrq %>
	<% If zxzx.SortUrl(zxzx.zxrq) = "" Then %>
		<td>咨询日期</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.zxrq) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>咨询日期</td><td style="width: 10px;"><% If zxzx.zxrq.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.zxrq.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.isshow.Visible Then ' isshow %>
	<% If zxzx.SortUrl(zxzx.isshow) = "" Then %>
		<td>审核</td>
	<% Else %>
		<td class="ewPointer" onmousedown="ew_Sort(event,'<%= zxzx.SortUrl(zxzx.isshow) %>',1);">
			<table cellspacing="0" class="ewTableHeaderBtn"><tr><td>审核</td><td style="width: 10px;"><% If zxzx.isshow.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf zxzx.isshow.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
		</td>
	<% End If %>
<% End If %>		
<% If zxzx.Export = "" Then %>
<% If Security.CanView Then %>
<td style="white-space: nowrap;">&nbsp;</td>
<% End If %>
<% If Security.CanEdit Then %>
<td style="white-space: nowrap;">&nbsp;</td>
<% End If %>
<% If Security.CanAdd Then %>
<td style="white-space: nowrap;">&nbsp;</td>
<% End If %>
<% If Security.CanDelete Then %>
<td style="white-space: nowrap;">
<input type="checkbox" name="key" id="key" class="aspmaker" onclick="zxzx_list.SelectAllKey(this);">
</td>
<% End If %>
<%

' Custom list options
For i = 0 to zxzx_list.ListOptions.Items.Count -1
	If zxzx_list.ListOptions.Items(i).Visible Then Response.Write zxzx_list.ListOptions.Items(i).HeaderCellHtml
Next
%>
<% End If %>
	</tr>
</thead>
<tbody><!-- Table body -->
<%
If (zxzx.ExportAll And zxzx.Export <> "") Then
	zxzx_list.lStopRec = zxzx_list.lTotalRecs
Else
	zxzx_list.lStopRec = zxzx_list.lStartRec + zxzx_list.lDisplayRecs - 1 ' Set the last record to display
End If

' Move to first record
zxzx_list.lRecCnt = zxzx_list.lStartRec - 1
If Not Rs.Eof Then
	Rs.MoveFirst
	If zxzx_list.lStartRec > 1 Then Rs.Move zxzx_list.lStartRec - 1
End If
zxzx_list.lRowCnt = 0

' Output date rows
Do While (Not Rs.Eof Or zxzx.CurrentAction = "gridadd") And (zxzx_list.lRecCnt < zxzx_list.lStopRec)
	zxzx_list.lRecCnt = zxzx_list.lRecCnt + 1
	If CLng(zxzx_list.lRecCnt) >= CLng(zxzx_list.lStartRec) Then
		zxzx_list.lRowCnt = zxzx_list.lRowCnt + 1
	zxzx.CssClass = ""
	zxzx.CssStyle = ""
	zxzx.RowClientEvents = "onmouseover='ew_MouseOver(event, this);' onmouseout='ew_MouseOut(event, this);' onclick='ew_Click(event, this);'"
	If zxzx.CurrentAction = "gridadd" Then
		Call zxzx_list.LoadDefaultValues() ' Load default values
	Else
		Call zxzx_list.LoadRowValues(Rs) ' Load row values
	End If
	zxzx.RowType = EW_ROWTYPE_VIEW ' Render view

	' Render row
	Call zxzx_list.RenderRow()
%>
	<tr<%= zxzx.RowAttributes %>>
	<% If zxzx.id.Visible Then ' id %>
		<td<%= zxzx.id.CellAttributes %>>
<div<%= zxzx.id.ViewAttributes %>><%= zxzx.id.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.zt.Visible Then ' zt %>
		<td<%= zxzx.zt.CellAttributes %>>
<div<%= zxzx.zt.ViewAttributes %>><%= zxzx.zt.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.zxr.Visible Then ' zxr %>
		<td<%= zxzx.zxr.CellAttributes %>>
<div<%= zxzx.zxr.ViewAttributes %>><%= zxzx.zxr.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.xb.Visible Then ' xb %>
		<td<%= zxzx.xb.CellAttributes %>>
<div<%= zxzx.xb.ViewAttributes %>><%= zxzx.xb.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.gsmc.Visible Then ' gsmc %>
		<td<%= zxzx.gsmc.CellAttributes %>>
<div<%= zxzx.gsmc.ViewAttributes %>><%= zxzx.gsmc.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.sf.Visible Then ' sf %>
		<td<%= zxzx.sf.CellAttributes %>>
<div<%= zxzx.sf.ViewAttributes %>><%= zxzx.sf.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.zemail.Visible Then ' email %>
		<td<%= zxzx.zemail.CellAttributes %>>
<div<%= zxzx.zemail.ViewAttributes %>><%= zxzx.zemail.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.dh.Visible Then ' dh %>
		<td<%= zxzx.dh.CellAttributes %>>
<div<%= zxzx.dh.ViewAttributes %>><%= zxzx.dh.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.cz.Visible Then ' cz %>
		<td<%= zxzx.cz.CellAttributes %>>
<div<%= zxzx.cz.ViewAttributes %>><%= zxzx.cz.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.xxdz.Visible Then ' xxdz %>
		<td<%= zxzx.xxdz.CellAttributes %>>
<div<%= zxzx.xxdz.ViewAttributes %>><%= zxzx.xxdz.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.url.Visible Then ' url %>
		<td<%= zxzx.url.CellAttributes %>>
<div<%= zxzx.url.ViewAttributes %>><%= zxzx.url.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.zxrq.Visible Then ' zxrq %>
		<td<%= zxzx.zxrq.CellAttributes %>>
<div<%= zxzx.zxrq.ViewAttributes %>><%= zxzx.zxrq.ListViewValue %></div>
</td>
	<% End If %>
	<% If zxzx.isshow.Visible Then ' isshow %>
		<td<%= zxzx.isshow.CellAttributes %>>
<div<%= zxzx.isshow.ViewAttributes %>><%= zxzx.isshow.ListViewValue %></div>
</td>
	<% End If %>
<% If zxzx.Export = "" Then %>
<% If Security.CanView Then %>
<td style="white-space: nowrap;"><span class="aspmaker">
<a href="<%= zxzx.ViewUrl %>">查看</a>
</span></td>
<% End If %>
<% If Security.CanEdit Then %>
<td style="white-space: nowrap;"><span class="aspmaker">
<a href="<%= zxzx.EditUrl %>">编辑</a>
</span></td>
<% End If %>
<% If Security.CanAdd Then %>
<td style="white-space: nowrap;"><span class="aspmaker">
<a href="<%= zxzx.CopyUrl %>">复制</a>
</span></td>
<% End If %>
<% If Security.CanDelete Then %>
<td style="white-space: nowrap;"><span class="aspmaker">
<input type="checkbox" name="key_m" id="key_m" value="<%= Server.HtmlEncode(zxzx.id.CurrentValue) %>" class="aspmaker" onclick='ew_ClickMultiCheckbox(this);'>
</span></td>
<% End If %>
<%

' Custom list options
For i = 0 to zxzx_list.ListOptions.Items.Count -1
	If zxzx_list.ListOptions.Items(i).Visible Then Response.Write zxzx_list.ListOptions.Items(i).BodyCellHtml
Next
%>
<% End If %>
	</tr>
<%
	End If
	If zxzx.CurrentAction <> "gridadd" Then Rs.MoveNext
Loop
%>
</tbody>
</table>
<% End If %>
</form>
<%

' Close recordset and connection
Rs.Close
Set Rs = Nothing
%>
</div>
<% If zxzx_list.lTotalRecs > 0 Then %>
<% If zxzx.Export = "" Then %>
<div class="ewGridLowerPanel">
<% If zxzx.CurrentAction <> "gridadd" And zxzx.CurrentAction <> "gridedit" Then %>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<%= ew_CurrentPage %>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
	<tr>
		<td>
<% If Not IsObject(zxzx_list.Pager) Then Set zxzx_list.Pager = ew_NewPrevNextPager(zxzx_list.lStartRec, zxzx_list.lDisplayRecs, zxzx_list.lTotalRecs) %>
<% If zxzx_list.Pager.RecordCount > 0 Then %>
	<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="aspmaker">页&nbsp;</span></td>
<!--first page button-->
	<% If zxzx_list.Pager.FirstButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.FirstButton.Start %>"><img src="images/first.gif" alt="首页" width="16" height="16" border="0"></a></td>
	<% Else %>
	<td><img src="images/firstdisab.gif" alt="首页" width="16" height="16" border="0"></td>
	<% End If %>
<!--previous page button-->
	<% If zxzx_list.Pager.PrevButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.PrevButton.Start %>"><img src="images/prev.gif" alt="上一页" width="16" height="16" border="0"></a></td>
	<% Else %>
	<td><img src="images/prevdisab.gif" alt="上一页" width="16" height="16" border="0"></td>
	<% End If %>
<!--current page number-->
	<td><input type="text" name="<%= EW_TABLE_PAGE_NO %>" id="<%= EW_TABLE_PAGE_NO %>" value="<%= zxzx_list.Pager.CurrentPage %>" size="4"></td>
<!--next page button-->
	<% If zxzx_list.Pager.NextButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.NextButton.Start %>"><img src="images/next.gif" alt="下一页" width="16" height="16" border="0"></a></td>
	<% Else %>
	<td><img src="images/nextdisab.gif" alt="下一页" width="16" height="16" border="0"></td>
	<% End If %>
<!--last page button-->
	<% If zxzx_list.Pager.LastButton.Enabled Then %>
	<td><a href="<%= zxzx_list.PageUrl %>start=<%= zxzx_list.Pager.LastButton.Start %>"><img src="images/last.gif" alt="尾页" width="16" height="16" border="0"></a></td>	
	<% Else %>
	<td><img src="images/lastdisab.gif" alt="尾页" width="16" height="16" border="0"></td>
	<% End If %>
	<td><span class="aspmaker">&nbsp;的 <%= zxzx_list.Pager.PageCount %></span></td>
	</tr></table>
	</td>	
	<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td>
	<span class="aspmaker">记录数 <%= zxzx_list.Pager.FromIndex %> 到 <%= zxzx_list.Pager.ToIndex %> 的 <%= zxzx_list.Pager.RecordCount %></span>
<% Else %>
	<% If Security.CanList Then %>
	<% If zxzx_list.sSrchWhere = "0=101" Then %>
	<span class="aspmaker">请输入查询条件</span>
	<% Else %>
	<span class="aspmaker">没有找到记录</span>
	<% End If %>
	<% Else %>
	<span class="aspmaker">你无权查看</span>
	<% End If %>
<% End If %>
		</td>
	</tr>
</table>
</form>
<% End If %>
<% 'If zxzx_list.lTotalRecs > 0 Then %>
<span class="aspmaker">
<% If Security.CanAdd Then %>
<a href="<%= zxzx.AddUrl %>">增加</a>&nbsp;&nbsp;
<% End If %>
<% If zxzx_list.lTotalRecs > 0 Then %>
<% If Security.CanDelete Then %>
<a href="" onclick="if (!ew_KeySelected(document.fzxzxlist)) alert('没有选择记录'); else {document.fzxzxlist.action='zxzxdelete.asp';document.fzxzxlist.encoding='application/x-www-form-urlencoded';document.fzxzxlist.submit();};return false;">删除所选记录</a>&nbsp;&nbsp;
<% End If %>
<% End If %>
</span>
<% 'End If %>
</div>
<% End If %>
<% End If %>
</td></tr></table>
<% If zxzx.Export = "" And zxzx.CurrentAction = "" Then %>
<script type="text/javascript">
<!--
//ew_ToggleSearchPanel(zxzx_list); // uncomment to init search panel as collapsed
//-->
</script>
<% End If %>
<% If zxzx.Export = "" Then %>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
<% End If %>
<!--#include file="footer.asp"-->
<%

' Drop page object
Set zxzx_list = Nothing
%>
<%

' -----------------------------------------------------------------
' Page Class
'
Class czxzx_list

	' Page ID
	Public Property Get PageID()
		PageID = "list"
	End Property

	' Table Name
	Public Property Get TableName()
		TableName = "zxzx"
	End Property

	' Page Object Name
	Public Property Get PageObjName()
		PageObjName = "zxzx_list"
	End Property

	' Page Name
	Public Property Get PageName()
		PageName = ew_CurrentPage()
	End Property

	' Page Url
	Public Property Get PageUrl()
		PageUrl = ew_CurrentPage() & "?"
		If zxzx.UseTokenInUrl Then PageUrl = PageUrl & "t=" & zxzx.TableVar & "&" ' add page token
	End Property

	' Message
	Public Property Get Message()
		Message = Session(EW_SESSION_MESSAGE)
	End Property

	Public Property Let Message(v)
		If Session(EW_SESSION_MESSAGE) <> "" Then ' Append
			Session(EW_SESSION_MESSAGE) = Session(EW_SESSION_MESSAGE) & "<br>" & v
		Else
			Session(EW_SESSION_MESSAGE) = v
		End If
	End Property

	' Show Message
	Public Sub ShowMessage()
		If Message <> "" Then ' Message in Session, display
			Response.Write "<p><span class=""ewMessage"">" & Message & "</span></p>"
			Session(EW_SESSION_MESSAGE) = "" ' Clear message in Session
		End If
	End Sub

	' -----------------------
	'  Validate Page request
	'
	Public Function IsPageRequest()
		If zxzx.UseTokenInUrl Then
			IsPageRequest = False
			If Not (ObjForm Is Nothing) Then
				IsPageRequest = (zxzx.TableVar = ObjForm.GetValue("t"))
			End If
			If Request.QueryString("t").Count > 0 Then
				IsPageRequest = (zxzx.TableVar = Request.QueryString("t"))
			End If
		Else
			IsPageRequest = True
		End If
	End Function

	' -----------------------------------------------------------------
	'  Class initialize
	'  - init objects
	'  - open ADO connection
	'
	Private Sub Class_Initialize()

		' Initialize table object
		Set zxzx = New czxzx

		' Initialize other table object
		Set zlogin = New czlogin

		' Initialize form object
		Set ObjForm = Nothing

		' Intialize page id (for backward compatibility)
		EW_PAGE_ID = "list"

		' Initialize table name (for backward compatibility)
		EW_TABLE_NAME = "zxzx"

		' Open connection to the database
		Set Conn = Server.CreateObject("ADODB.Connection")
		Conn.Open EW_DB_CONNECTION_STRING

		' Initialize list options
		Set ListOptions = New cListOptions
	End Sub

	' -----------------------------------------------------------------
	'  Subroutine Page_Init
	'  - called before page main
	'  - check Security
	'  - set up response header
	'  - call page load events
	'
	Sub Page_Init()
		Set Security = New cAdvancedSecurity
		If Not Security.IsLoggedIn() Then Call Security.AutoLogin()
		If Not Security.IsLoggedIn() Then
			Call Security.SaveLastUrl()
			Call Page_Terminate("login.asp")
		End If

		' Table Permission loading event
		Call Security.TablePermission_Loading()
		Call Security.LoadCurrentUserLevel(TableName)

		' Table Permission loaded event
		Call Security.TablePermission_Loaded()
		If Not Security.CanList Then
			Call Security.SaveLastUrl()
			Call Page_Terminate("login.asp")
		End If
		zxzx.Export = Request.QueryString("export") ' Get export parameter
		gsExport = zxzx.Export ' Get export parameter, used in header
		gsExportFile = zxzx.TableVar ' Get export file, used in header

		' Global page loading event (in userfn7.asp)
		Call Page_Loading()

		' Page load event, used in current page
		Call Page_Load()
	End Sub

	' -----------------------------------------------------------------
	'  Class terminate
	'  - clean up page object
	'
	Private Sub Class_Terminate()
		Call Page_Terminate("")
	End Sub

	' -----------------------------------------------------------------
	'  Subroutine Page_Terminate
	'  - called when exit page
	'  - clean up ADO connection and objects
	'  - if url specified, redirect to url
	'
	Sub Page_Terminate(url)

		' Page unload event, used in current page
		Call Page_Unload()

		' Global page unloaded event (in userfn60.asp)
		Call Page_Unloaded()
		If Not (Conn Is Nothing) Then Conn.Close ' Close Connection
		Set Conn = Nothing
		Set Security = Nothing
		Set zxzx = Nothing
		Set ListOptions = Nothing

		' Go to url if specified
		If url <> "" Then
			Response.Clear
			Response.Redirect url
		End If
	End Sub

	'
	'  Subroutine Page_Terminate (End)
	' ----------------------------------------

	Dim lDisplayRecs ' Number of display records
	Dim lStartRec, lStopRec, lTotalRecs, lRecRange
	Dim sSrchWhere
	Dim lRecCnt
	Dim lEditRowCnt
	Dim lRowCnt, lRowIndex
	Dim lOptionCnt
	Dim lRecPerRow, lColCnt
	Dim sDeleteConfirmMsg ' Delete confirm message
	Dim sDbMasterFilter, sDbDetailFilter
	Dim bMasterRecordExists
	Dim ListOptions
	Dim sMultiSelectKey

	' -----------------------------------------------------------------
	' Page main processing
	'
	Sub Page_Main()
		lDisplayRecs = 20
		lRecRange = 10
		lRecCnt = 0 ' Record count

		' Search filters
		Dim sSrchAdvanced, sSrchBasic, sFilter
		sSrchAdvanced = "" ' Advanced search filter
		sSrchBasic = "" ' Basic search filter
		sSrchWhere = "" ' Search where clause
		sFilter = ""

		' Master/Detail
		sDbMasterFilter = "" ' Master filter
		sDbDetailFilter = "" ' Detail filter
		If IsPageRequest Then ' Validate request

			' Handle reset command
			ResetCmd()

			' Set Up Sorting Order
			SetUpSortOrder()
		End If ' End Validate Request

		' Restore display records
		If zxzx.RecordsPerPage <> "" Then
			lDisplayRecs = zxzx.RecordsPerPage ' Restore from Session
		Else
			lDisplayRecs = 20 ' Load default
		End If

		' Load Sorting Order
		LoadSortOrder()

		' Build filter
		sFilter = ""
		If Not Security.CanList Then
			sFilter = "(0=1)" ' Filter all records
		End If
		If sDbDetailFilter <> "" Then
			If sFilter <> "" Then
				sFilter = "(" & sFilter & ") AND (" & sDbDetailFilter & ")"
			Else
				sFilter = sDbDetailFilter
			End If
		End If
		If sSrchWhere <> "" Then
			If sFilter <> "" Then
				sFilter = "(" & sFilter & ") AND (" & sSrchWhere & ")"
			Else
				sFilter = sSrchWhere
			End If
		End If

		' Set up filter in Session
		zxzx.SessionWhere = sFilter
		zxzx.CurrentFilter = ""
	End Sub

	' -----------------------------------------------------------------
	' Set up Sort parameters based on Sort Links clicked
	'
	Sub SetUpSortOrder()
		Dim sOrderBy
		Dim sSortField, sLastSort, sThisSort
		Dim bCtrl

		' Check for an Order parameter
		If Request.QueryString("order").Count > 0 Then
			zxzx.CurrentOrder = Request.QueryString("order")
			zxzx.CurrentOrderType = Request.QueryString("ordertype")

			' Field id
			Call zxzx.UpdateSort(zxzx.id)

			' Field zt
			Call zxzx.UpdateSort(zxzx.zt)

			' Field zxr
			Call zxzx.UpdateSort(zxzx.zxr)

			' Field xb
			Call zxzx.UpdateSort(zxzx.xb)

			' Field gsmc
			Call zxzx.UpdateSort(zxzx.gsmc)

			' Field sf
			Call zxzx.UpdateSort(zxzx.sf)

			' Field email
			Call zxzx.UpdateSort(zxzx.zemail)

			' Field dh
			Call zxzx.UpdateSort(zxzx.dh)

			' Field cz
			Call zxzx.UpdateSort(zxzx.cz)

			' Field xxdz
			Call zxzx.UpdateSort(zxzx.xxdz)

			' Field url
			Call zxzx.UpdateSort(zxzx.url)

			' Field zxrq
			Call zxzx.UpdateSort(zxzx.zxrq)

			' Field isshow
			Call zxzx.UpdateSort(zxzx.isshow)
			zxzx.StartRecordNumber = 1 ' Reset start position
		End If
	End Sub

	' -----------------------------------------------------------------
	' Load Sort Order parameters
	'
	Sub LoadSortOrder()
		Dim sOrderBy
		sOrderBy = zxzx.SessionOrderBy ' Get order by from Session
		If sOrderBy = "" Then
			If zxzx.SqlOrderBy <> "" Then
				sOrderBy = zxzx.SqlOrderBy
				zxzx.SessionOrderBy = sOrderBy
			End If
		End If
	End Sub

	' -----------------------------------------------------------------
	' Reset command based on querystring parameter cmd=
	' - RESET: reset search parameters
	' - RESETALL: reset search & master/detail parameters
	' - RESETSORT: reset sort parameters
	'
	Sub ResetCmd()
		Dim sCmd

		' Get reset cmd
		If Request.QueryString("cmd").Count > 0 Then
			sCmd = Request.QueryString("cmd")

			' Reset Sort Criteria
			If LCase(sCmd) = "resetsort" Then
				Dim sOrderBy
				sOrderBy = ""
				zxzx.SessionOrderBy = sOrderBy
				zxzx.id.Sort = ""
				zxzx.zt.Sort = ""
				zxzx.zxr.Sort = ""
				zxzx.xb.Sort = ""
				zxzx.gsmc.Sort = ""
				zxzx.sf.Sort = ""
				zxzx.zemail.Sort = ""
				zxzx.dh.Sort = ""
				zxzx.cz.Sort = ""
				zxzx.xxdz.Sort = ""
				zxzx.url.Sort = ""
				zxzx.zxrq.Sort = ""
				zxzx.isshow.Sort = ""
			End If

			' Reset start position
			lStartRec = 1
			zxzx.StartRecordNumber = lStartRec
		End If
	End Sub
	Dim Pager

	' -----------------------------------------------------------------
	' Set up Starting Record parameters based on Pager Navigation
	'
	Sub SetUpStartRec()
		Dim nPageNo

		' Exit if lDisplayRecs = 0
		If lDisplayRecs = 0 Then Exit Sub
		If IsPageRequest Then ' Validate request

			' Check for a START parameter
			If Request.QueryString(EW_TABLE_START_REC).Count > 0 Then
				lStartRec = Request.QueryString(EW_TABLE_START_REC)
				zxzx.StartRecordNumber = lStartRec
			ElseIf Request.QueryString(EW_TABLE_PAGE_NO).Count > 0 Then
				nPageNo = Request.QueryString(EW_TABLE_PAGE_NO)
				If IsNumeric(nPageNo) Then
					lStartRec = (nPageNo-1)*lDisplayRecs+1
					If lStartRec <= 0 Then
						lStartRec = 1
					ElseIf lStartRec >= ((lTotalRecs-1)\lDisplayRecs)*lDisplayRecs+1 Then
						lStartRec = ((lTotalRecs-1)\lDisplayRecs)*lDisplayRecs+1
					End If
					zxzx.StartRecordNumber = lStartRec
				End If
			End If
		End If
		lStartRec = zxzx.StartRecordNumber

		' Check if correct start record counter
		If Not IsNumeric(lStartRec) Or lStartRec = "" Then ' Avoid invalid start record counter
			lStartRec = 1 ' Reset start record counter
			zxzx.StartRecordNumber = lStartRec
		ElseIf CLng(lStartRec) > CLng(lTotalRecs) Then ' Avoid starting record > total records
			lStartRec = ((lTotalRecs-1)\lDisplayRecs)*lDisplayRecs+1 ' Point to last page first record
			zxzx.StartRecordNumber = lStartRec
		ElseIf (lStartRec-1) Mod lDisplayRecs <> 0 Then
			lStartRec = ((lStartRec-1)\lDisplayRecs)*lDisplayRecs+1 ' Point to page boundary
			zxzx.StartRecordNumber = lStartRec
		End If
	End Sub

	' -----------------------------------------------------------------
	' Load recordset
	'
	Function LoadRecordset()

		' Call Recordset Selecting event
		Call zxzx.Recordset_Selecting(zxzx.CurrentFilter)

		' Load list page sql
		Dim sSql
		sSql = zxzx.ListSQL
		If EW_DEBUG_ENABLED Then Response.Write sSql ' Show SQL for debugging

		' Load recordset
		Dim RsRecordset
		Set RsRecordset = Server.CreateObject("ADODB.Recordset")
		RsRecordset.CursorLocation = EW_CURSORLOCATION
		RsRecordset.Open sSql, Conn, 1, 2

		' Call Recordset Selected event
		Call zxzx.Recordset_Selected(RsRecordset)
		Set LoadRecordset = RsRecordset
	End Function

	' -----------------------------------------------------------------
	' Load row based on key values
	'
	Function LoadRow()
		Dim RsRow, sSql, sFilter
		sFilter = zxzx.KeyFilter

		' Call Row Selecting event
		Call zxzx.Row_Selecting(sFilter)

		' Load sql based on filter
		zxzx.CurrentFilter = sFilter
		sSql = zxzx.SQL
		If EW_DEBUG_ENABLED Then Response.Write sSql ' Show SQL for debugging
		Set RsRow = Server.CreateObject("ADODB.Recordset")
		RsRow.Open sSql, Conn
		If RsRow.Eof Then
			LoadRow = False
		Else
			LoadRow = True
			RsRow.MoveFirst
			Call LoadRowValues(RsRow) ' Load row values

			' Call Row Selected event
			Call zxzx.Row_Selected(RsRow)
		End If
		RsRow.Close
		Set RsRow = Nothing
	End Function

	' -----------------------------------------------------------------
	' Load row values from recordset
	'
	Sub LoadRowValues(RsRow)
		zxzx.id.DbValue = RsRow("id")
		zxzx.zt.DbValue = RsRow("zt")
		zxzx.zxr.DbValue = RsRow("zxr")
		zxzx.xb.DbValue = RsRow("xb")
		zxzx.gsmc.DbValue = RsRow("gsmc")
		zxzx.sf.DbValue = RsRow("sf")
		zxzx.zemail.DbValue = RsRow("email")
		zxzx.dh.DbValue = RsRow("dh")
		zxzx.cz.DbValue = RsRow("cz")
		zxzx.xxdz.DbValue = RsRow("xxdz")
		zxzx.url.DbValue = RsRow("url")
		zxzx.zxrq.DbValue = RsRow("zxrq")
		zxzx.zxnr.DbValue = RsRow("zxnr")
		zxzx.hf.DbValue = RsRow("hf")
		zxzx.isshow.DbValue = RsRow("isshow")
	End Sub

	' -----------------------------------------------------------------
	' Render row values based on field settings
	'
	Sub RenderRow()

		' Call Row Rendering event
		Call zxzx.Row_Rendering()

		' ---------------------------------------
		'  Common render codes for all row types
		' ---------------------------------------
		' id

		zxzx.id.CellCssStyle = ""
		zxzx.id.CellCssClass = ""

		' zt
		zxzx.zt.CellCssStyle = ""
		zxzx.zt.CellCssClass = ""

		' zxr
		zxzx.zxr.CellCssStyle = ""
		zxzx.zxr.CellCssClass = ""

		' xb
		zxzx.xb.CellCssStyle = ""
		zxzx.xb.CellCssClass = ""

		' gsmc
		zxzx.gsmc.CellCssStyle = ""
		zxzx.gsmc.CellCssClass = ""

		' sf
		zxzx.sf.CellCssStyle = ""
		zxzx.sf.CellCssClass = ""

		' email
		zxzx.zemail.CellCssStyle = ""
		zxzx.zemail.CellCssClass = ""

		' dh
		zxzx.dh.CellCssStyle = ""
		zxzx.dh.CellCssClass = ""

		' cz
		zxzx.cz.CellCssStyle = ""
		zxzx.cz.CellCssClass = ""

		' xxdz
		zxzx.xxdz.CellCssStyle = ""
		zxzx.xxdz.CellCssClass = ""

		' url
		zxzx.url.CellCssStyle = ""
		zxzx.url.CellCssClass = ""

		' zxrq
		zxzx.zxrq.CellCssStyle = ""
		zxzx.zxrq.CellCssClass = ""

		' isshow
		zxzx.isshow.CellCssStyle = ""
		zxzx.isshow.CellCssClass = ""

		' -----------
		'  View  Row
		' -----------

		If zxzx.RowType = EW_ROWTYPE_VIEW Then ' View row

			' id
			zxzx.id.ViewValue = zxzx.id.CurrentValue
			zxzx.id.CssStyle = ""
			zxzx.id.CssClass = ""
			zxzx.id.ViewCustomAttributes = ""

			' zt
			zxzx.zt.ViewValue = zxzx.zt.CurrentValue
			zxzx.zt.CssStyle = ""
			zxzx.zt.CssClass = ""
			zxzx.zt.ViewCustomAttributes = ""

			' zxr
			zxzx.zxr.ViewValue = zxzx.zxr.CurrentValue
			zxzx.zxr.CssStyle = ""
			zxzx.zxr.CssClass = ""
			zxzx.zxr.ViewCustomAttributes = ""

			' xb
			zxzx.xb.ViewValue = zxzx.xb.CurrentValue
			zxzx.xb.CssStyle = ""
			zxzx.xb.CssClass = ""
			zxzx.xb.ViewCustomAttributes = ""

			' gsmc
			zxzx.gsmc.ViewValue = zxzx.gsmc.CurrentValue
			zxzx.gsmc.CssStyle = ""
			zxzx.gsmc.CssClass = ""
			zxzx.gsmc.ViewCustomAttributes = ""

			' sf
			zxzx.sf.ViewValue = zxzx.sf.CurrentValue
			zxzx.sf.CssStyle = ""
			zxzx.sf.CssClass = ""
			zxzx.sf.ViewCustomAttributes = ""

			' email
			zxzx.zemail.ViewValue = zxzx.zemail.CurrentValue
			zxzx.zemail.CssStyle = ""
			zxzx.zemail.CssClass = ""
			zxzx.zemail.ViewCustomAttributes = ""

			' dh
			zxzx.dh.ViewValue = zxzx.dh.CurrentValue
			zxzx.dh.CssStyle = ""
			zxzx.dh.CssClass = ""
			zxzx.dh.ViewCustomAttributes = ""

			' cz
			zxzx.cz.ViewValue = zxzx.cz.CurrentValue
			zxzx.cz.CssStyle = ""
			zxzx.cz.CssClass = ""
			zxzx.cz.ViewCustomAttributes = ""

			' xxdz
			zxzx.xxdz.ViewValue = zxzx.xxdz.CurrentValue
			zxzx.xxdz.CssStyle = ""
			zxzx.xxdz.CssClass = ""
			zxzx.xxdz.ViewCustomAttributes = ""

			' url
			zxzx.url.ViewValue = zxzx.url.CurrentValue
			zxzx.url.CssStyle = ""
			zxzx.url.CssClass = ""
			zxzx.url.ViewCustomAttributes = ""

			' zxrq
			zxzx.zxrq.ViewValue = zxzx.zxrq.CurrentValue
			zxzx.zxrq.ViewValue = ew_FormatDateTime(zxzx.zxrq.ViewValue, 5)
			zxzx.zxrq.CssStyle = ""
			zxzx.zxrq.CssClass = ""
			zxzx.zxrq.ViewCustomAttributes = ""

			' isshow
			If Not IsNull(zxzx.isshow.CurrentValue) Then
				Select Case zxzx.isshow.CurrentValue
					Case "0"
						zxzx.isshow.ViewValue = "否"
					Case "1"
						zxzx.isshow.ViewValue = "是"
					Case Else
						zxzx.isshow.ViewValue = zxzx.isshow.CurrentValue
				End Select
			Else
				zxzx.isshow.ViewValue = Null
			End If
			zxzx.isshow.CssStyle = ""
			zxzx.isshow.CssClass = ""
			zxzx.isshow.ViewCustomAttributes = ""

			' View refer script
			' id

			zxzx.id.HrefValue = ""

			' zt
			zxzx.zt.HrefValue = ""

			' zxr
			zxzx.zxr.HrefValue = ""

			' xb
			zxzx.xb.HrefValue = ""

			' gsmc
			zxzx.gsmc.HrefValue = ""

			' sf
			zxzx.sf.HrefValue = ""

			' email
			zxzx.zemail.HrefValue = ""

			' dh
			zxzx.dh.HrefValue = ""

			' cz
			zxzx.cz.HrefValue = ""

			' xxdz
			zxzx.xxdz.HrefValue = ""

			' url
			zxzx.url.HrefValue = ""

			' zxrq
			zxzx.zxrq.HrefValue = ""

			' isshow
			zxzx.isshow.HrefValue = ""
		End If

		' Call Row Rendered event
		Call zxzx.Row_Rendered()
	End Sub

	' Page Load event
	Sub Page_Load()

		'Response.Write "Page Load"
	End Sub

	' Page Unload event
	Sub Page_Unload()

		'Response.Write "Page Unload"
	End Sub

	' Form Custom Validate event
	Function Form_CustomValidate(CustomError)

		'Return error message in CustomError
		Form_CustomValidate = True
	End Function
End Class
%>
