<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_InfoModel_CustomFormInfoList, QianboCMS" EnableEventValidation="false" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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="../Css/layout.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../Js/jquery.js"></script>
<script type="text/javascript" src="../../Js/lhgdialog/lhgdialog.min.js?self=true"></script>
<script src="../../Js/Common.js" type="text/javascript"></script>
<script>
function UpdateFormField(CustomFormId,FieldName,Id)
{
    //WinOpenDialog('UpdateFormField.aspx?CustomFormId='+CustomFormId+'&FieldName='+FieldName+'&Id='+Id+'','500','170')
    jQuery.dialog({
        id: 'txtUpdateFormField',
        lock: true,
        title: '设置表单字段',
        content: "url:UpdateFormField.aspx?CustomFormId=" + CustomFormId + "&FieldName=" + FieldName + "&Id=" + Id + "",
        width: 650,
        height: 'auto'
    });
}
</script>
</head>

<body>
<table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
  <tr>
    <td style="padding-left: 10px;"><img src="../Images/Skin/Default/you.gif" align="absmiddle" /> 您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="CustomFormList.aspx">表单列表</a> &gt;&gt; <asp:Label ID="CustomFormName" runat="server" Text="Label"></asp:Label>信息列表</td>
  </tr>
</table>
<form id="form1" runat="server">
  <table width="99%" align="center" class="border" cellspacing="1" cellpadding="0">
    <asp:Repeater ID="CustomTableRep" runat="server" OnItemDataBound="CustomTableRep_ItemDataBound" OnItemCommand="CustomTableRep_Delete">
      <HeaderTemplate>
        <tr class="title">
          <td width="60px">编号</td>
          <td>用户名</td>
          <asp:Literal ID="lit_head" runat="server"></asp:Literal>
          <td width="90px">操作</td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
          <td><asp:Label ID="CustomFormFieldId" runat="server" Text='<%# Eval("Id") %>'></asp:Label></td>
          <td><%# Eval("UName") %></td>
          <asp:Literal ID="lit_item" runat="server"></asp:Literal>
          <td><a href="UpdateInfoCustomForm.aspx?CustomFormId=<%=Request.QueryString["CustomFormId"] %>&Id=<%#Eval("Id") %>">修改</a> | <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('是否确定删除该信息？')">删除</asp:LinkButton></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <table cellpadding="0" cellspacing="1" class="border" align="center">
    <tr class="wzlist">
      <td><webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页" ShowInputBox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left" Width="99%" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager></td>
    </tr>
  </table>
  <table cellpadding="0" cellspacing="1" class="border" align="center" runat="server" id="SearchTable">
    <tr class="wzlist">
      <td><asp:Literal ID="Lit_Search" runat="server"></asp:Literal>
        <asp:Button ID="Btn_Search" runat="server" Text="搜索" CssClass="btn" OnClick="Btn_Search_Click" /></td>
    </tr>
  </table>
</form>
<br />
</body>
</html>