<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopModule, WebApp_deploy" title="新增、修改模块" validaterequest="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="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"  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='<%#JustStatusNull(Eval("id").ToString()) %>' 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_ShopManageModule.aspx?MenuID=4&MenuName=文章&FileName=模块管理'" value="返 回" />
              </td>
           </tr>
        </table>
        </table>
     
     </EditItemTemplate>
   
   </asp:FormView>
    

</asp:Content>

