<%@ Page Language="C#" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true" CodeBehind="question_edit.aspx.cs" Inherits="YXShop.Web.admin.accessories.question_edit" %>

<asp:Content ID="ContHead" runat="server" ContentPlaceHolderID="head">
 <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script src="../../scripts/prototype.js" type="text/javascript"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script type="text/javascript" src="../../scripts/calendar.js"></script>
   
  <script language="javascript" type="text/javascript">
   function RbQuestion(str)
   {
      switch (str)
      {
         case "Single":
         document.getElementById("line").style.display="none";
         break;
         case "mange":
         document.getElementById("line").style.display="none";
         break;
         case "raoption":
         document.getElementById("line").style.display="";
         break; 
         case "cboption":
         document.getElementById("line").style.display="";
         break; 
         case "Select":
         document.getElementById("line").style.display="";
         break; 
         case "rbtb":
         document.getElementById("line").style.display="none";
         break; 
          
      }
   }
  </script>
</asp:Content>
<asp:Content ID="ContTitel" runat="server" ContentPlaceHolderID="pagetitle">
调查问卷
<asp:Button ID="Button2" runat="server" CssClass="inputbutton" onclick="btnSave_Click" Text="保存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="HyperLink1" NavigateUrl="question_list.aspx?QuestID=1000" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>
<asp:Content ID="ContInfo" runat="server" ContentPlaceHolderID="pageinfo">
<%--添加或编辑 <asp:LinkButton ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click"></asp:LinkButton>&nbsp;<asp:HyperLink runat="server" ID="hlback" NavigateUrl="question_list.aspx?QuestID=1000">返回列表</asp:HyperLink>--%>

</asp:Content>
<asp:Content ID="ContMain" runat="server" ContentPlaceHolderID="workspace">
<asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
<table class="form_table_input" border="0" width="100%" cellpadding="1" cellspacing="1">
        <tr>
            <td class="form_table_input_info" >问题内容：</td>
            <td>
                <asp:TextBox ID="txtContent" CssClass="long_input" runat="server"></asp:TextBox>            
            </td>
            <td>
                <asp:Panel ID="txtContentTip" runat="server"></asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">调查地区：</td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" ReadOnly="true" ></asp:TextBox>
                <asp:HiddenField runat="server" ID="hfAddressId" />
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info" style="width: 20%">是否必填：</td>
            <td>
                <asp:RadioButtonList ID="rbPutout" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Text="是" Value="0"></asp:ListItem>
                    <asp:ListItem Text="否" Value="1" Selected="True"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">问题类型：</td>
            <td>
                <asp:RadioButton GroupName="rbQuestionType" ID="rbSingleText" runat="server" Checked="true"
                    Text="单行文本" Value="1" onclick="javascript:RbQuestion('Single')" />
                <asp:RadioButton GroupName="rbQuestionType" ID="rbMunitText" runat="server" Text="多行文本"
                    Value="2" onclick="javascript:RbQuestion('mange')" />
                <asp:RadioButton GroupName="rbQuestionType" ID="rbSingleOption" runat="server" Text="单选"
                    Value="3" onclick="javascript:RbQuestion('raoption')" />
                <asp:RadioButton GroupName="rbQuestionType" ID="rbMumintOption" runat="server" Text="多选"
                    Value="4" onclick="javascript:RbQuestion('cboption')" />
                <asp:RadioButton GroupName="rbQuestionType" ID="rbSelect" runat="server" Text="下拉"
                    Value="5" onclick="javascript:RbQuestion('Select')" Enabled="False" />
                <asp:RadioButton GroupName="rbQuestionType" ID="rbPutoutOption" runat="server" Text="是/否(单选框)"
                    Value="6" onclick="javascript:RbQuestion('rbtb')" />
                   
            </td>
        </tr>
        <tr id="line" style="display:<%=LineOption%>">
            <td class="form_table_input_info">问题选项：</td>
            <td>
                <asp:TextBox ID="txtOption" TextMode="MultiLine" runat="server" Height="132px" Width="281px"></asp:TextBox>
                * 分行选项不能为空 注：每一个选项用“|”分开
            </td>
        </tr>
   </table>
</asp:Content>
<asp:Content ID="ContBottom" runat="server" ContentPlaceHolderID="pagebottom">
<asp:Button ID="Button1" runat="server" CssClass="inputbutton" onclick="btnSave_Click" Text="保存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="HyperLink2" NavigateUrl="question_list.aspx?QuestID=1000" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>