<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ShopModule, mallz" title="新增/修改模块" validaterequest="false" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">商城文章模块管理</th>
      <td align="right">
        <div style="width:100px"><a href="Admin_ShopManageModule.aspx">返回列表</a></div>
        
      </td>
      
   </tr>
</table>

   <asp:FormView ID="FormView1"  DataKeyNames="id" runat="server" DefaultMode="Insert" Width="100%"  
   style="background-color:#FFFFFF;">
     <InsertItemTemplate>
        <table class="nick">
           <tr><td colspan="2" class="tit">新建模块</td></tr>          
            <tr>
              <td class="ltd">模块标题名称</td>
              <td class="rtd">                 
                  <asp:TextBox ID="Title" runat="server" Width="300px"  Text='<%# Bind("Title") %>'/><span style="color: Blue"> 建议使用中文</span>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Title" ErrorMessage="请输入模块标题名称"></asp:RequiredFieldValidator>
                </td>
           </tr>          
           <tr>
              <td class="ltd">系统标记</td>
              <td class="rtd">
                
              <asp:TextBox ID="name" runat="server" Width="150"  Text='<%# Bind("name") %>'/><span style="color: Blue"> 建议使用英文</span>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name" ErrorMessage="请输入模块名称"></asp:RequiredFieldValidator>
                </td>
           </tr>          
            <tr>
              <td class="ltd">模块状态</td>
              <td class="rtd">
                <asp:RadioButtonList ID="Status" runat="server" SelectedValue='<%# Bind("Status") %>' RepeatLayout="Flow" RepeatDirection="Horizontal">
                   <asp:ListItem Text="启用" Value="1"  Selected="True"/>
                   <asp:ListItem Text="禁用" Value="0" />
                </asp:RadioButtonList></td>
           </tr>              
          
            <tr>
              <td colspan="2" style="text-align:center;"><asp:Button ID="Add" CommandName="Insert" Text="添 加" OnCommand="AddModule" runat="server"/>
              <input type="button" onclick="location.href='Admin_ShopManageModule.aspx'" value="返 回" />
              </td>
           </tr>
        </table>
     
     </InsertItemTemplate>
     <EditItemTemplate>
        <table class="nick">
           <tr><td colspan="2" class="tit">修改模块</td></tr>          
            <tr>
              <td class="ltd">模块名称</td>
              <td class="rtd">                 
                 <asp:TextBox ID="name" runat="server" Width="209px"  Text='<%# Bind("name") %>'/><span style="color: Blue">建议使用英文</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name" ErrorMessage="请输入模块名称"></asp:RequiredFieldValidator>
                </td>
           </tr>           
           <tr>
              <td class="ltd">模块标题名称</td>
              <td class="rtd">
                 <asp:TextBox ID="Title" runat="server" Width="209px"  Text='<%# Bind("Title") %>'/><span style="color: Blue">建议使用中文</span>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Title" ErrorMessage="请输入模块标题名称"></asp:RequiredFieldValidator>
                </td>
           </tr> 
           <tr>
              <td class="ltd">模块状态</td>
              <td class="rtd">
                <asp:RadioButtonList ID="Status" runat="server" SelectedValue='<%# Bind("Status") %>' RepeatLayout="Flow" RepeatDirection="Horizontal">
                   <asp:ListItem Text="启用" Value="1" />
                   <asp:ListItem Text="禁用" Value="0" />
                </asp:RadioButtonList></td>
           </tr>           
            <tr>
              <td colspan="2" style=" text-align:center;"><asp:Button ID="Update" CommandName="Update" Text="修 改" OnCommand="EditModule" runat="server"/>
              <input type="button" onclick="location.href='Admin_Passport.aspx'" value="返 回" />
              </td>
           </tr>
        </table>
        </table>
     
     </EditItemTemplate>
   
   </asp:FormView>
    

</asp:Content>

