📄 question.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Masterpage/Page.Master" AutoEventWireup="true"
CodeBehind="Question.aspx.cs" Inherits="YXShop.Web.Admin.Questionnaire.Question" %>
<asp:Content runat="server" ID="Content" ContentPlaceHolderID="head">
<script src="../JS/Calendar.js" type="text/javascript"></script>
<script src="../../configuration/js/Prototype.js" type="text/jscript"></script>
<script src="../../configuration/js/public.js" type="text/jscript"></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="Content1" runat="server" ContentPlaceHolderID="ContentPlaceTitle">
<asp:Label ID="lbtilte" runat="server" Text="添加问卷 "></asp:Label>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolderMain">
<table border="0" width="100%" cellpadding="1" cellspacing="1" class="hy">
<tr>
<td>
<span style="font-weight: bold;">问题内容:</span>
</td>
<td>
<asp:TextBox ID="tbContent" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbContent"
runat="server" ErrorMessage=" * 该项必填!" Text="*"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<span style="font-weight: bold;">调查地区:</span>
</td>
<td>
<asp:TextBox ID="tbAddress" runat="server" ReadOnly></asp:TextBox><asp:HiddenField
runat="server" ID="ClassID" />
<label id="showClassTF" runat="server">
<img src="../images/ss.gif" alt="选择栏目" border="0" style="cursor: pointer;" onclick="selectFile('Area',new Array(<%=ClassID.ClientID %>,<% =tbAddress.ClientID%>),250,500);<% =tbAddress.ClientID%>.focus();" /></label>
</td>
</tr>
<tr>
<td bgcolor="#f6f6f6" style="width: 20%">
<span style="font-weight: bold;">是否必填:</span>
</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 bgcolor="#f6f6f6" style="width: 20%">
<span style="font-weight: bold;">问题类型:</span>
</td>
<td bgcolor="#f6f6f6">
<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')" />
<asp:RadioButton GroupName="rbQuestionType" ID="rbPutoutOption" runat="server" Text="是/否(单选框)"
Value="6" onclick="javascript:rbQuestion('rbtb')" />
</td>
</tr>
<tr id="line" style="display: <%=LineOption%>">
<td>
<span style="font-weight: bold;">问题选项:</span>
</td>
<td>
<asp:TextBox ID="tbOption" TextMode="MultiLine" runat="server" Height="132px" Width="281px"></asp:TextBox>*
分行选项不能为空 注:每一个选项为一行
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="submitButton" runat="server" Text="提 交" OnClick="submitButton_Click" />
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -