ExamWeb/Views/Student/Create.cshtml

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
    string email = @"/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/";
}

<link href="~/Content/Site.css" rel="stylesheet" />
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/global.css" rel="stylesheet" />
<h2>添加学生</h2>
<hr />
@using (Html.BeginForm())
{
    <div class="form-group">
        <label class="control-label col-md-2" for="StuName">姓名</label>
        <div class="col-md-10">
            @Html.TextBox("StuName", null, new { @class = "form-control text-box  single-line", placeholder = "请输入姓名", id = "StuName" })
            <span id="NameMsg" style="color:red"></span>
        </div>

    </div>

    <div class="form-group">
        <label class="control-label col-md-2" for="StuLoginName">登录名</label>
        <div class="col-md-10">
            @Html.TextBox("StuLoginName", null, new { @class = "form-control text-box  single-line", placeholder = "请输入登录名", id = "StuLoginName" })
            <span id="StuLoginNameMsg" style="color:red"></span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-2" for="StuLoginPwd">密码</label>
        <div class="col-md-10">
            @Html.Password("StuLoginPwd", null, new { @class = "form-control text-box  single-line", placeholder = "请输入密码", id = "StuLoginPwd" })
            <span id="StuLoginPwdMsg" style="color:red"></span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-2" for="StuSex">性别</label>
        <div class="col-md-10">
            @Html.RadioButton("StuSex", true, true) 男
            @Html.RadioButton("StuSex", false, false) 女
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-2" for="StuPhone">电话</label>
        <div class="col-md-10">
            @Html.TextBox("StuPhone", null, new { @class = "form-control text-box  single-line", placeholder = "请输入电话", id = "StuPhone" })
            <span id="StuPhoneMsg" style="color:red"></span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-2" for="StuEmail">Email</label>
        <div class="col-md-10">
            @Html.TextBox("StuEmail", null, new { @class = "form-control text-box  single-line", placeholder = "请输入Email", id = "StuEmail" })
            <span id="StuEmailMsg" style="color:red"></span>
后面还有 140 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。