ExamWeb/Views/Home/LoginStudent.cshtml

(开头部分) 2KB

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


@{
    ViewBag.Title = "LoginStudent";
    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" />

<h3>学生登录</h3>
<hr />


<form action="LoginStudent" method="post">
    <div class="form-group">
        <label for="exampleInputEmail1">账号</label>
        <input type="text" class="form-control" name="Login_Nmae" id="Login_Nmae">
        <span id="NameMsg" style="color:red"></span>
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">密码</label>
        <input type="password" class="form-control" name="Login_Pwd" id="Login_Pwd">
        <span id="PwdMsg" style="color:red"></span>
    </div>

    @*验证码*@
    <div class="form-group">
        <label for="exampleInputEmail1">验证码</label>
        <div class="row">
            <div class="col-lg-6">
                <input type="text" class="form-control" name="Login_Code" id="Login_Nmae">
            </div>
            <div>
                <img src="~/Handlers/YanzhengmaHandler1.ashx?id=1" onclick="this.src=this.src+1" style="width:100px;height:40px;" />
            </div>
        </div>
    </div>

    <div class="form-group form-check">
        <input type="checkbox" class="form-check-input" id="exampleCheck1">
        <label class="form-check-label" for="exampleCheck1">记住密码</label>
    </div>
    <button type="submit" class="btn btn-primary">提交</button>
</form>

@section scripts{
    <script type="text/javascript">
        $(function () {
            $("#Login_Nmae").bind("blur", CheckLoginNmae)
            $("#Login_Pwd").bind("blur", CheckLoginPwd)
            $("form").bind("submit", CheckForm)//必须为form
        })
        function CheckForm() {
            if (CheckLoginNmae() && CheckLoginPwd()) {
                return true;
            }
            CheckLoginPwd();
            return false;
        }
后面还有 33 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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