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

<%@ 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" /> 
    <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">【 商城在线调查 】</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="textBoxSurveyTitle" runat="server" CssClass="input"></asp:TextBox></td>
<td><asp:Button ID="ButtonSearch" runat="server" Text="查询" onclick="btnQuery_Click" 
        CssClass="bt2" /></td>
                    
                    </tr>
                    </table>
                
                </div>
                
            
            


       
        
            </td>
        </tr>
        <tr>
            <td style="width:100%" align="left">
                    <cc1:Num1GridView ID="num1GridiewShow" runat="server" 
            DataSourceID="ObjectDataSourceData" AllowPaging="True" 
            AutoGenerateColumns="False" Width="100%" 
            AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
            DescendingImageUrl="~/images/SortDesc.gif" 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" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input ID="checkboxItem" type="checkbox" Value='<%# Eval("Guid") %>' />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="Guid" HeaderText="GUID" Visible="False" />
                <asp:BoundField DataField="Title" HeaderText="投票主题" SortExpression="Title" />
                <asp:BoundField DataField="StartTime" HeaderText="开始时间" 
                    SortExpression="StartTime" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="EndTime" HeaderText="结束时间" 
                    SortExpression="EndTime" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </cc1:Num1GridView>
            </td>
        </tr>
        <tr>
            <td style="width:100%" align="left">
            <div class="vote">
             <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加" 
            onclientclick="GetCheckedBoxValues()"  CssClass="bt2" />
        <asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
            onclientclick="return EditButton()" Text="编辑" CssClass="bt2" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click" CssClass="bt2" />
        <asp:Button ID="ButtonAddOption" runat="server" onclick="ButtonAddOption_Click" 
            onclientclick="return EditButton()" Text="添加选项" CssClass="bt3" /> 
    
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
                </div>
            </td>
        </tr>
        </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="Search" 
        TypeName="ShopNum1.BusinessLogic.ShopNum1_SurveyTheme_Action">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxSurveyTitle" Name="name" 
                PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
