update studentmanagement
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>请在下列信息栏中填入学生的基本信息</h1>
|
||||
<form method="post" action="{% url 'student:add' %}">
|
||||
{% csrf_token %}
|
||||
学生学号:<input type="text" name="stu_id"/><br>
|
||||
学生姓名:<input type="text" name="stu_name"/><br>
|
||||
{% if msg %}
|
||||
<h5>{{ msg }}</h5><br>
|
||||
{% endif %}
|
||||
学生电话:<input type="text" name="stu_phone"/><br>
|
||||
学生地址:<input type="text" name="str_addr"/><br>
|
||||
学生院系:<input type="text" name="stu_faculty"/><br>
|
||||
学生专业:<input type="text" name="stu_major"/><br>
|
||||
<input class="bc" type="submit" value="保存"/>
|
||||
{% if error %}
|
||||
<h5>{{ error }}</h5><br>
|
||||
{% endif %}
|
||||
{% if sucess %}
|
||||
<h5>{{ sucess }}</h5><br>
|
||||
{% endif %}
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>请输入你要想要删除的学生学号</h1>
|
||||
<form method="post" action="/student/delete/">
|
||||
{% csrf_token %}
|
||||
学生学号:<input type="text" name="stu_id" placeholder={{ id }}><br>
|
||||
<input class="bc" type="submit" value="删除">
|
||||
</form>
|
||||
{% if msg %}
|
||||
{{ msg }}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<br>
|
||||
{% if lenght %}
|
||||
<a href="/student/logout/">退出</a><br>
|
||||
<h1 style="color: blue">欢迎{{ status}},来到学生信息管理系统</h1><br>
|
||||
<h3 style="color: green">请选择你要执行的功能</h3>
|
||||
<a href="{% url 'student:add' %}">增加学生信息</a><br>
|
||||
<a href="{% url 'student:select' %}">查询学生信息</a><br>
|
||||
<a href="{% url 'student:delete' %}">删除学生信息</a><br>
|
||||
<a href="{% url 'student:update' %}">修改学生信息</a><br>
|
||||
{% else %}
|
||||
<a href="student/login/">登录</a><br>
|
||||
<a href="student/regist/">注册</a><br>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
你好: {{ status }}
|
||||
<form method="post" action="/student/login/">
|
||||
{% csrf_token %}
|
||||
<input type="text" name="username" placeholder="用户名:"/><br>
|
||||
<input type="password" name="password" placeholder="密 码:"/><br>
|
||||
<input class="tj" type="submit" value="登录"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>根据学号来查询学习基本信息及选课情况Izhe</h1>
|
||||
{% if not msg %}
|
||||
{# 判断是否由msg这个参数,或者判断其值,没有的话则执行这段代码#}
|
||||
<form method="post" action="/student/select/">
|
||||
{% csrf_token %}
|
||||
学生学号:<input type="text" name="stu_id" placeholder={{ id }}><br>
|
||||
<input class="bc" type="submit" value="查询">
|
||||
</form>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>学号: {{ stu_id }}</li>
|
||||
<li>姓名: {{ stu_name }}</li>
|
||||
<li>电话: {{ stu_phone }}</li>
|
||||
<li>地址: {{ str_addr }}</li>
|
||||
<li>院系: {{ stu_faculty }}</li>
|
||||
<li>专业: {{ stu_major }}</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<ul>
|
||||
{% for k, v in course_data.items %}
|
||||
<li>{{ k }}: {{ v }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>根据学号来修改学生基本信息</h1>
|
||||
<form method="post" action="/student/update/">
|
||||
{% csrf_token %}
|
||||
学生学号:<input type="text" name="stu_id" placeholder={{ stu_id }}><br>
|
||||
学生姓名:<input type="text" name="stu_name" placeholder={{ stu_name }}><br>
|
||||
学生电话:<input type="text" name="stu_phone" placeholder={{ stu_phone }}><br>
|
||||
学生地址:<input type="text" name="stu_addr" placeholder={{ stu_addr }}><br>
|
||||
学生院系:<input type="text" name="stu_faculty" placeholder={{ stu_faculty }}><br>
|
||||
学生专业:<input type="text" name="stu_major" placeholder={{ stu_major }}><br>
|
||||
<input class="bc" type="submit" value="保存">
|
||||
</form>
|
||||
{% if msg %}
|
||||
{{ msg }}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user