<%@ Page Language="C#" AutoEventWireup="True" Inherits="Admin_Field_Default" CodeBehind="Admin_Field_Default.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="Memu/InfovrsionControl.ascx" TagName="InfovrsionControl" TagPrefix="uc2" %>
<%@ Register Src="Admin_Filed_Menu.ascx" TagName="MemuControl" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
  <title>字段管理</title>
  <link href="Css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
  <div>
    <uc1:MemuControl ID="MemuControl1" runat="server" />
    <table border="0" cellspacing="1" cellpadding="3" height="1" class="table">
      <tr>
        <td colspan="6" class="title">
          字段列表
        </td>
      </tr>
      <tr>
        <td class="td" width="5%" align="center">
          排序
        </td>
        <td class="td" width="30%">
          字段名称
        </td>
        <td class="td" width="10%" align="center">
          字段别名
        </td>
        <td class="td" width="10%" align="center">
          归属模型
        </td>
        <td class="td" width="20%" align="center">
          字段类型
        </td>
        <td class="td" width="15%" align="center">
          管理操作
        </td>
      </tr>
      <asp:Repeater ID="Repeater1" runat="server">
        <ItemTemplate>
          <tr>
            <td class="td" align="center">
              <input type="text" name="OrderID<%#Eval("FieldID") %>" style="width: 50px; text-align: center" value="<%#Eval("OrderID") %>">
            </td>
            <td class="td">
              <%# Eval("FieldName") %>
            </td>
            <td class="td" align="center">
              <%# Eval("Title") %>
            </td>
            <td class="td" align="center">
            <%# GetChannelName(Eval("ChannelID")) %>
            </td>
            <td class="td" align="center">
            <%# GetFieldTypeName(Eval("FieldType"))%>
            </td>
            <td class="td" align="center">
              <a href="Admin_Field_Showinfo.aspx?action=Edit&FieldID=<%# Eval("FieldID") %>&ChannelID=<%# Eval("ChannelID") %>">
                修改</a> ｜ <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" OnClientClick="return window.confirm('确定删除吗？');"
                    CommandName='<%#Eval("FieldID") %>'>删除</asp:LinkButton>
            </td>
          </tr>
        </ItemTemplate>
      </asp:Repeater>
      <tr>
      <td class="td">
        <asp:Button ID="btnSaveOrderID" runat="server" onclick="btnSaveOrderID_Click" Text="批量排序" />
        </td>
      <td colspan="5" class="td"></td>
      </tr>
    </table>
  </div>
  <uc2:InfovrsionControl ID="InfovrsionControl1" runat="server" />
  </form>
</body>
</html>
