<%@ Page Language="c#" Inherits="Web.User.manageWebResearOptions" CodeBehind="manageWebResearOptions.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>问卷选项管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/userCssEdit.htm"-->
    <script type="text/javascript">
    
        jQuery(function($) {       
          
             $("#btnAdd").click().fancybox({
                'width'		: 700,
				'height'	: 550,
				'hideOnOverlayClick': false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'fade',
				'type'		: 'iframe',
				'padding':'0',
				'href'      : 'addWebResearOption.aspx?questionId=<%= questionId %>&menuId=<%= menuId %>&researId=<%= researId %>&bigClassPkId=<%= bigClassPkId %>&type=<%= type %>'
            });
            
            $(".FBox").click().fancybox({
                'width'		: 700,
				'height'	: 550,
				'hideOnOverlayClick': false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'fade',
				'type'		: 'iframe',
				'padding':'0'
            });
    
        });
        
    </script>
</head>
<body>
    <form id="newsMange" method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="hd">
            <div class="breadcrumb">
                <asp:PlaceHolder ID="placeHead" runat="server"></asp:PlaceHolder>
            </div>
            <!--/breadcrumb-->
            <div class="user-service">
                <a class="help" href="#">帮助</a></div>
            <!--/user-service-->
        </div>
        <div class="bd">
        <div class="function-hd">
                <div class="search-box fr">
                
                </div>
                <!--/search-box-->
                <div class="action-field">
                    <asp:Button ID="BackToQuestion" class="btn" runat="server" OnClick="BackToQuestion_Click" Text="返 回" CausesValidation="False" />&nbsp;&nbsp;
                    <input type="button" value="添 加" class="btn" id="btnAdd" runat="server" />
                </div>
                <!--/action-field-->
        </div>
            <div class="function-bd" style="height: 592px; overflow: auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
            <asp:DataGrid ID="linkGrid" runat="server" class="list-table" AutoGenerateColumns="False" AllowSorting="True">
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="选项ID号" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="txtName" HeaderText="选项名称" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="counter" HeaderText="投票数" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="IsTextBox" HeaderText="允许用户填写信息" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="isPic" HeaderText="是否为图片" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="optionsName" HeaderText="选项" Visible="false"></asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                        <ItemTemplate>
                            <asp:HyperLink ID="edit" runat="server" CssClass="FBox">编辑</asp:HyperLink>
                            <%--<asp:LinkButton ID="edit" runat="server" CommandName="edit" CausesValidation="False">编辑</asp:LinkButton>--%>&nbsp;&nbsp;
                            <asp:LinkButton ID="del" runat="server" CommandName="del" CausesValidation="False" OnClientClick="return confirm('确定要删除本选项吗？');">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
                <PagerStyle Mode="NumericPages" />
            </asp:DataGrid>
            </div>

            <div class="ft">
                <div class="action-field txt-c">
                    
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>