<%@ page language="C#" autoeventwireup="true" inherits="Survey_SurveyAdd, App_Web_qeytevsw" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!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 id="Head1" runat="server">
    <title></title>
        <script type="text/javascript" src="../Js/jquery.js"></script>
              <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
    <style type="text/css">
        #divNum
        {
            position: absolute;
            width: 70%;
            height: 30%;
            z-index: 2;
            left: 20%;
            top: 10%;
        }
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #CCCCCC;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
        #right
        {
            position: absolute;
            width: 80%;
            height: 30%;
            z-index: 2;
            left: 10%;
            top: 16%;
        }
        .t1
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t2
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t1 .m
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            line-height: 18px;
            font-size: 12px;
            font-weight: normal;
        }
        .t2
        {
            padding-bottom: 0px;
            line-height: 18px;
            border-right-width: 0px;
            padding-left: 0px;
            padding-right: 0px;
            margin-bottom: 2px;
            border-top-width: 0px;
            border-bottom-width: 0px;
            color: #5b9400;
            border-left-width: 0px;
            padding-top: 0px;
        }
        .t3
        {
            z-index: 6553;
            position: relative;
            line-height: 30px;
            padding-left: 55px;
            background: url(http://img.baidu.com/hi/img/index/iconhi.gif) no-repeat;
            height: 35px;
            font-size: 14px;
            font-weight: bold;
        }
        .rcb
        {
            height: 5px;
            clear: both;
        }
        .rct .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .l
        {
            float: left;
            left: -1px;
        }
        .rcb .l
        {
            float: left;
            left: -1px;
        }
        .rct .r
        {
            float: right;
            right: -1px;
        }
        .rcb .r
        {
            float: right;
            right: -1px;
        }
        .rct .l
        {
            top: -1px;
        }
        .rct .r
        {
            top: -1px;
        }
        .rcb .l
        {
            top: 1px;
        }
        .rcb .r
        {
            top: 1px;
        }
        .b2
        {
            border-bottom: #ccc 1px solid;
            border-left: #ccc 1px solid;
            margin-bottom: 10px;
            background: #fff;
            border-top: #ccc 1px solid;
            border-right: #ccc 1px solid;
        }
        .b2 .cnt
        {
            padding-bottom: 10px;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 10px;
        }
        .tl1
        {
            background-position: left top;
        }
        .tr1
        {
            background-position: right top;
        }
        .bl1
        {
            background-position: left bottom;
        }
        .br1
        {
            background-position: right bottom;
        }
        .lginfo
        {
            line-height: 22px;
            clear: both;
        }
        .fan
        {
            margin-top: 10px;
        }
        .fan TD
        {
            padding-bottom: 2px;
            padding-left: 8px;
            padding-right: 8px;
            color: #666;
            padding-top: 2px;
        }
        .f14
        {
            line-height: 24px;
            font-size: 14px;
        }
    </style>

 <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>

</head>
<body>
  <div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
    <div id="divNum" algin="center" style="display: none" runat="server">
        <div id="Div2" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666" align="center">
                    <table width="100%" cellspacing="0" cellpadding="6" border="0" bgcolor="#deeffa">
                        <%--#e7ddf9--%>
                        <tr>
                            <td colspan="2" align="right">
                                <asp:Button ID="btnq" runat="server" Text=" 确  定 " OnClick="btnq_Click" />
                                <asp:Button ID="btnd" runat="server" Text=" 取  消 " OnClick="btnd_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                问题类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddltype" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddltype_SelectedIndexChanged">
                                    <asp:ListItem Value="-1">--请选择--</asp:ListItem>
                                    <asp:ListItem Value="0">问答题</asp:ListItem>
                                    <asp:ListItem Value="1">单选题</asp:ListItem>
                                    <asp:ListItem Value="2">多选题</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                问题名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTName" runat="server" MaxLength="50" Width="200px"></asp:TextBox><span style="color: Red">*</span>
                            </td>
                        </tr>
                        
                        <tr id="numberId" runat="server" style="display: none">
                            <td align="right">
                                选择数量：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlNumber" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlNumber_SelectedIndexChanged">
                                    <asp:ListItem Value="-1">--请选择--</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>6</asp:ListItem>
                                    <asp:ListItem>7</asp:ListItem>
                                    <asp:ListItem>8</asp:ListItem>
                                    <asp:ListItem>9</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr id="numberOne" runat="server" style="display: none">
                            <td colspan="2">
                                <asp:DataList ID="dlistOne" runat="server" Width="550">
                                    <ItemTemplate>
                                        <table width="100%">
                                            <tr>
                                                <td align="left">
                                                    <asp:Label ID="lblNum" runat="server" Text='<%# Eval("Letters") %>'></asp:Label>:
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtoN" runat="server" Text='<%# Eval("txtinfo") %>' Width="300"
                                                        MaxLength="20"></asp:TextBox><span style="color: Red">*</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
        <!--CMSLOADOK--->
    </div>
    <div id="LayerAll" runat="server">
    </div>
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：调查管理</span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="right" style="padding: 10px 0px; width:400px;">
                            <div style="height: 25px; width: 170px; cursor: hand" id="divd" runat="server">
                                <asp:ImageButton ID="ibtzhu" runat="server" OnClick="ibtzhu_Click" ImageUrl="~/Images/dc_01.gif" />
                            </div>
                        </td>
                        <td align="center">
                            <img id="ig" src="../Images/arrow01.gif" alt=""  CssClass="img_style"/>
                        </td>
                        <td align="center" style="width:100px;">
                            <div style="height: 25px; width: 130px; cursor: hand" id="divs" runat="server">
                                <asp:ImageButton ID="ibtti" runat="server" OnClick="ibtti_Click" ImageUrl="~/Images/dc_02.gif" />
                            </div>
                        </td>
                         <td align="center">
                            <img id="ImgOne" src="../Images/arrow01.gif" alt=""  CssClass="img_style" visible="false" runat="server"/>
                        </td>
                        <td>
                             <asp:ImageButton ID="btnOk" runat="server" OnClick="btnOk_Click" ImageUrl="~/Images/btn04.gif" Visible="false" />
                        </td>
                        <td align="right">
                    
                            
                            <asp:Button ID="btnDel" runat="server" Text="返 回" OnClick="btnDel_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
                <table cellpadding="5" cellspacing="0" bgcolor="white" width="100%" style="border: solid 1px #cccccc;">
                    <tr>
                        <td style="width: 40%" align="center">
                            <div id="divone" runat="server">
                                <div id="divzhu" runat="server" style="background-color: White">
                                    <table cellpadding="5" cellspacing="0" bgcolor="white" style="border: none;" class="page_bg_left"
                                        width="100%" align="center">
                                        <tr>
                                            <td align="center">
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td align="right">
                                                调查主题：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtName" runat="server" MaxLength="25" Width="200px"></asp:TextBox><span style="color: Red">*</span>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td align="right">
                                                到期时间：
                                            </td>
                                            <td align="left">
                                            <input id="txtMatureTime" name="txtMatureTime" style="width:120px;" class="Wdate"  runat="server" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
                                             <span
                                                        style="color: Red">*</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnSeve" runat="server" Text="保 存" OnClick="btnSeve_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div id="divtwo" runat="server" style="display: none;">
                                    <table cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td align="right"><asp:Button ID="btnTian" runat="server" Text="添加问题" OnClick="btnTian_Click" /></td>
                                        </tr>
                                        <tr>
                                            <td><asp:GridView ID="gvSyrveySubject" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                        DataKeyNames="ID" OnRowCommand="gvSyrveySubject_RowCommand" OnRowDataBound="gvSyrveySubject_RowDataBound">
                                        <PagerSettings Visible="False" />
                                        <Columns>
                                            <asp:BoundField DataField="ID" HeaderText="ID" Visible="false" />
                                            <asp:BoundField DataField="Questions" HeaderText="问题" HeaderStyle-Width="50%" />
                                            <asp:BoundField DataField="InvestigationTypes" HeaderText="问题类型" HeaderStyle-Width="20%" />
                                            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="30%">
                                                <ItemTemplate>
                                                    <%--<asp:ImageButton ID="ibtnEdit" runat="server" CommandName="edit" ImageUrl="~/App_Themes/Themes/images/edit.gif" ToolTip="编辑" />
                --%>
                                                    <%--<asp:LinkButton ID="ibtnSelect" runat="server" CommandName="enable">查看</asp:LinkButton>--%>
                                                    <asp:LinkButton ID="ibtnEdit" runat="server" CommandName="edits">编辑</asp:LinkButton>
                                                    <asp:LinkButton ID="ibtnRevocation" runat="server" CommandName="revocation">删除</asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView></td>
                                        </tr>
                                        <tr>
                                            <td class="page_bg_left">
                                                <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="10"
                                FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;" 
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页"  ShowCustomInfoSection="Left" CustomInfoTextAlign="Left"
                                ShowInputBox="Always">
                            </cc1:AspNetPager></td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <%--<div class="box">
        <table width="100%">
            <tr>
                <td align="center">
                    <table width="60%">
                        <tr>
                           
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>--%>
    </form>
         <script type="text/javascript">
         $(document).ready(function() {

             $("#loading").fadeOut();

         });
     
</script>
</body>
</html>
