<%@ page language="C#" autoeventwireup="true" inherits="SurveyOption_Manage, GroupTGWeb_deploy" %>

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

<!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" /> 
      <link href="../css/Num1GridView.css" rel="stylesheet" type="text/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;font-size:12px">
    <form id="form1" runat="server">
        <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" Text="【 新增调查项 】"></asp:Label></div>
        <table style="width:100%">
        <tr>
            <td style="width:100%" align="left">  
            <div class="query">
                <table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                    <td width="20%" align="right">调查选项：</td>
<td><asp:TextBox ID="textBoxNAME" runat="server" CssClass="input1"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="textBoxNAME" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator></td>
<td><asp:Button ID="ButtonConfirm" runat="server" Text="确定" onclick="ButtonOK_Click"  CssClass="bt2"/></td>
                    
                    
                    
                    </tr>
                
                </table>
            
            
            
            </div> 
 
        
                            
        
            </td>
        </tr>
        <tr>
            <td style="width:100%" align="left">
                <cc1:Num1GridView ID="num1GridiewShow" runat="server" Width="100%" 
        AutoGenerateColumns="False" DataSourceID="ObjectDataSourceData" 
        AllowPaging="True" AllowSorting="True" AddSequenceColumn="False" 
                    AllowMultiColumnSorting="False" BorderColor="#CCDDEF" BorderStyle="Solid" 
                    BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？" 
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" 
                    PagingStyle="None" style="margin-left: 2px;" TableName="">
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input ID="checkboxAll" type="checkbox" onclick="javascript:SelectAllCheckboxes(this);"  />
                </HeaderTemplate>
                <ItemTemplate>
                    <input ID="checkboxItem" type="checkbox" Value='<%# Eval("Guid") %>' />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" Width="30px" />
                <ItemStyle HorizontalAlign="Center" Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="Guid" HeaderText="GUID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="选项内容" SortExpression="Name" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Count" HeaderText="统计次数" SortExpression="Count" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
        </Columns>
    </cc1:Num1GridView>

            </td>
        </tr>
        <tr>
            <td style="width:100%" align="left">
            <div class="vote">
               <asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click"  CssClass="bt2"/>
               <a href="SurveyTheme_Manage.aspx"><img src="images/back.png" border="0" align="top" /></a>
    
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
    
            </td>
        </tr>
        </table>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" 
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_SurveyOption_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="HiddenFieldSurveyGuid" Name="guid" 
                PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="HiddenFieldSurveyGuid" runat="server" />
    </form>
</body>
</html>
