<%@ page language="C#" masterpagefile="~/HL_Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopModule, HoWaveVGO" 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%" DataSourceID="ObjectDataSource1" 
   style="background-color:#FFFFFF;"  OnItemInserted="FormView_Done" OnItemUpdated="FormView_Done">
     <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>
                </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>
              </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:linkButton ID="Add" CommandName="Insert" Text="添加"  runat="server"/></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>
                </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>
              </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:linkButton ID="Update" CommandName="Update" Text="修改"  runat="server"/></td>
           </tr>
        </table>
        </table>
     
     </EditItemTemplate>
   
   </asp:FormView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" InsertMethod="AddModule"
        SelectMethod="GetModuleById" TypeName="Shop_Module" UpdateMethod="UpdateModule">
        <UpdateParameters>
            <asp:Parameter Name="id" Type="Int32" />
            <asp:Parameter Name="IDName" Type="String" />
            <asp:Parameter Name="CssName" Type="String" />
            <asp:Parameter Name="ContentTemplate" Type="String" />
            <asp:Parameter Name="Layout" Type="String" />
            <asp:Parameter Name="MoreLinkUrl" Type="String" DefaultValue="#"/>
            <asp:Parameter Name="name" Type="String" />
            <asp:Parameter Name="NeedMoreLink" Type="Int32" DefaultValue="0"/>
            <asp:Parameter Name="NeedSummary" Type="Int32" DefaultValue="0"/>
            <asp:Parameter Name="NeedTitleHead" Type="Int32" DefaultValue="1"/>
            <asp:Parameter Name="Summary" Type="String" />
            <asp:Parameter Name="Title" Type="String" />
            <asp:Parameter Name="TitleLink" Type="String"  DefaultValue="#"/>
            <asp:Parameter Name="Status" Type="Int32" />
        </UpdateParameters>
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
        </SelectParameters>
        <InsertParameters>
            <asp:Parameter Name="id" Type="Int32" />
            <asp:Parameter Name="IDName" Type="String" />
            <asp:Parameter Name="CssName" Type="String" />
            <asp:Parameter Name="ContentTemplate" Type="String" />
            <asp:Parameter Name="Layout" Type="String" />
            <asp:Parameter Name="MoreLinkUrl" Type="String" DefaultValue="#"/>
            <asp:Parameter Name="name" Type="String" />
            <asp:Parameter Name="NeedMoreLink" Type="Int32" DefaultValue="0"/>
            <asp:Parameter Name="NeedSummary" Type="Int32" DefaultValue="0" />
            <asp:Parameter Name="NeedTitleHead" Type="Int32" DefaultValue="1"/>
            <asp:Parameter Name="Summary" Type="String" />
            <asp:Parameter Name="Title" Type="String" />
            <asp:Parameter Name="TitleLink" Type="String" DefaultValue="#"/>
            <asp:Parameter Name="Status" Type="Int32" />
        </InsertParameters>
    </asp:ObjectDataSource>
   
   

</asp:Content>

