<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fields.aspx.cs" Inherits="TotCms.Web.Office.Source.Fields" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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="../style/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">字段管理</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic"><a href="Fields_Edit.aspx">添加字段</a></td>
      </tr>   
    </table>
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border"> 
    <asp:Repeater ID="RepeatList" runat="server" 
        onitemcommand="RepeatList_ItemCommand">
        <HeaderTemplate>
          <tr class="suphead">
              <td>内容模型</td>
              <td>字段名称</td>
              <td>字段说明</td>
              <td>字段类型</td>
              <td>表单类型</td>
              <td>操作</td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr class="lines">
            <td><%# GetDataModule(Convert.ToInt32(Eval("DataModule")))%></td>
            <td><%# Eval("FieldName")%></td>
            <td><%# Eval("FieldTitle")%></td>
            <td><%# GetFieldType(Convert.ToInt32(Eval("FieldType")))%></td>
            <td><%# GetFormType(Convert.ToInt32(Eval("FormType")))%></td>
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="edit" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
						  |
						<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="delete" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
          </tr>
         </ItemTemplate>
      </asp:Repeater>
    </table>
    <div class="pages">
      <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" /></div>
    </form>
</body>
</html>
