<%@ page language="C#" autoeventwireup="true" inherits="Admin_Control_List, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>
<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

<!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>Untitled Page</title>
       <link type="text/css" rel="Stylesheet" href="css/index.css" />
     <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form2" runat="server">
    <div class="navigator">【 管理页面控件 】</div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
       <%--  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
                
    <div class="query">
            <table style="width:100%">
                <tr>
                    <td width="20%" align="right" >
                        <asp:Label ID="LabelPageType" runat="server" Text="当前页面类型："></asp:Label>
                    </td>
                    <td >
                        <asp:Label ID="LabelPageTypeShow" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelPageName" runat="server" Text="当前页面名称："></asp:Label>
                    </td>
                    <td >
                        <asp:Label ID="LabelPageNameShow" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelPagePath" runat="server" Text="当前页面源文件："></asp:Label>
                    </td>
                    <td >
                        <asp:Label ID="LabelPagePathShow" runat="server"></asp:Label>
                    </td>
                </tr>
           
            </table>
        </div>
        
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" 
                AllowPaging="True" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" 
                AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" 
                DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
                Font-Size="Small" GridViewSortDirection="Ascending" PagingStyle="None" 
                style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="White"></HeaderStyle>

<PagerStyle HorizontalAlign="center" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                       <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
<%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                        <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
               </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="Guid" Visible="False" />
                    <asp:BoundField DataField="ControlType" HeaderText="控件类型" 
                        SortExpression="ControlType" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="控件名称" DataField="Name" SortExpression="Name">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="控件ID" DataField="ControlID" 
                        SortExpression="ControlID">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="描述" DataField="Description" 
                        SortExpression="Description"></asp:BoundField>
                </Columns>
            </cc1:Num1GridView>
            <div class="vote">
            <asp:Button ID="ButtonAdd" runat="server" CausesValidation="False" Text="添加" 
                onclick="ButtonAdd_Click"  CssClass="bt2"/>
            <asp:Button ID="ButtonEdit" runat="server" CausesValidation="False" Text="编辑" 
                onclientclick="return EditButton()" onclick="ButtonEdit_Click"  CssClass="bt2"/>
            <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" 
                Text="删除" onclientclick="return DeleteButton()" 
                onclick="ButtonDelete_Click"  CssClass="bt2"/></div>
            <br />
            <br />
  <div style="border:solid 1px #CCDDEF;">
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            <tr>
                <td colspan="2" style="width:100%;background-color:#6699CC;">
                    <div style="color:White;margin:3px;">
                        <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="新增控件"></asp:Label>&nbsp;
                     </div>
                 </td>
            </tr>
            <tr>
                <td align="right" width="20%">
                        &nbsp;</td>
                <td align="left" >
                        &nbsp;</td>
            </tr>
            <tr >
                <td align="right">
                        <asp:Label ID="LabelControlType" runat="server" Text="控件类型："></asp:Label>
                    </td>
                <td align="left">
                        <asp:DropDownList ID="DropDownListControlType" runat="server" 
                            onselectedindexchanged="DropDownListControlType_SelectedIndexChanged" CssClass="select2">
                            <asp:ListItem Value="Button">普通按钮</asp:ListItem>
                            <asp:ListItem Value="LinkButton">链接按钮</asp:ListItem>
                            <asp:ListItem Value="ImageButton">图片按钮</asp:ListItem>
                        </asp:DropDownList>
                    </td>
            </tr>
            <tr >
                <td align="right" >
                        <asp:Label ID="LabelControlName" runat="server" Text="控件名称："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:TextBox ID="TextBoxControlName" runat="server" CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label4" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="TextBoxControlName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr >
                <td align="right" >
                        <asp:Label ID="LabelControlID" runat="server" Text="控件ID："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:TextBox ID="TextBoxControlID" runat="server" CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorControlID" 
                            runat="server" ControlToValidate="TextBoxControlID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td align="right" >
    
                        <asp:Label ID="LabelDescription" runat="server" Text="描述："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:TextBox ID="TextBoxDescription" runat="server" TextMode="MultiLine" 
                            Width="440px" Height="60px"></asp:TextBox>
                        </td>
            </tr>
            <tr>
                <td align="right" >
    
                        &nbsp;</td>
                <td align="left" >
                        &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right" >
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:60%;margin:4px;">
                        <asp:Button ID="ButtonConfirm" runat="server" Text="确定" 
                            onclick="ButtonConfirm_Click" ToolTip="Submit"  CssClass="bt2"/>
                         <input ID="inputReset" runat="server"  type="reset" value="重置" class="bt2" /><uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                     </div>
                </td>  
            </tr>
        </table>
        </div>
       
    </div>
    
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="hiddenGuid" runat="server" Value="0" />
    <asp:HiddenField ID="hiddenControlGuid" runat="server" Value="0" />
    &nbsp;<asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" TypeName="ShopNum1.BusinessLogic.ShopNum1_PageWebControl_Action" 
        >
        <SelectParameters>
            <asp:ControlParameter ControlID="hiddenGuid" Name="pageGuid" 
                PropertyName="Value" Type="String" DefaultValue="" />
            <asp:Parameter Name="guid" Type="String" />
            <asp:Parameter Name="IsDeleted" Type="Int32" DefaultValue="0" />
        </SelectParameters>
    </asp:ObjectDataSource>
        
    <br />
    </div>
    </form>
 
</body>
</html>
