ExamWeb/Views/Papers/Create.cshtml
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "添加试卷";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/Content/Site.css" rel="stylesheet" />
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/global.css" rel="stylesheet" />
<h2>@ViewBag.Title</h2>
<h4>试卷信息</h4>
<hr />
@using (Html.BeginForm())
{
<table width="50%" height="150px">
<tr>
<td>试卷名</td>
<td>
@Html.TextBox("PaperName", null, new { @class = "form-control text-box single-line", placeholder = "请输入试卷名", id = "PaperName" })
<span style="color:red" id="PaperNameMsg"></span>
</td>
</tr>
<tr>
<td>试卷说明</td>
<td>
@Html.TextBox("PaperExplain", null, new { @class = "form-control text-box single-line", placeholder = "请输入试卷说明", id = "PaperExplain" })
<span style="color:red" id="PaperExplainMsg"></span>
</td>
</tr>
<tr>
<td>试卷时长</td>
<td>
@Html.TextBox("PaperTime", null, new { @class = "form-control text-box single-line", placeholder = "请输入试卷时长", id = "PaperTime" })
<span style="color:red" id="PaperTimeMsg"></span>
</td>
</tr>
</table>
<input style="margin:10px" type="submit" value=" 保存 " class="btn btn-primary" />
<br />
@Html.ActionLink("返回试卷列表", "index", null, null);
}
@section scripts{
<script type="text/javascript">
$(function () {
$("#PaperName").bind("blur", CheckPaperName)
$("#PaperExplain").bind("blur", CheckPaperExplain)
$("#PaperTime").bind("blur", CheckPaperTime)
$("form").bind("submit", CheckForm)//必须为form
})
function CheckForm() {
if (CheckPaperName()
&& CheckPaperExplain()
&& CheckPaperTime()
) {
return true;
}
后面还有 51 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。