parent
4aaecb4fd8
commit
f8a7e2b4c6
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>管理员登录</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>客户注册</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>新增项目</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f0f0f0;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
form {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
padding: 10px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
input[type="submit"]:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #007BFF;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/add/", method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="number" name="id" placeholder="项目编号">
|
||||
<input type="text" name="project_leader" placeholder="项目名称">
|
||||
<input type="text" name="project_description" placeholder="项目描述">
|
||||
<input type="number" name="customer_id" placeholder="客户编号">
|
||||
<input type="number" name="department_id" placeholder="负责部门编号">
|
||||
<input type="submit" value="提交">
|
||||
<a href="/employeecenter/">返回</a>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>删除</title>
|
||||
<style> body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
h3 {
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
table {
|
||||
width: 50%;
|
||||
margin: 0 auto;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid #dee2e6;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
}
|
||||
tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
form {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
input[type="number"], input[type="submit"] {
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
input[type="submit"] {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3>项目信息</h3>
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>项目编号</th>
|
||||
<th>项目名称</th>
|
||||
<th>项目描述</th>
|
||||
<th>客户编号</th>
|
||||
<th>负责部门编号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for project1 in project1 %}
|
||||
<tr>
|
||||
<td>{{ project1.id }}</td>
|
||||
<td>{{ project1.project_leader }}</td>
|
||||
<td>{{ project1.project_description }}</td>
|
||||
<td>{{ project1.customer_id }}</td>
|
||||
<td>{{ project1.department_id }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
<form action="/delete/" method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="number" name="id" placeholder="项目编号">
|
||||
<input type="submit" value="确认">
|
||||
</form>
|
||||
<a href="/employeecenter/">返回</a>
|
||||
</body>
|
||||
</html>
|
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>index</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>查看</title>
|
||||
<!-- 添加内联CSS样式 -->
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 20px;
|
||||
}
|
||||
h3 {
|
||||
color: #4CAF50;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th, td {
|
||||
padding: 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
th {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
text-decoration: none;
|
||||
padding: 10px 20px;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
}
|
||||
a:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3>项目信息</h3>
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>项目编号</th>
|
||||
<th>项目名称</th>
|
||||
<th>项目描述</th>
|
||||
<th>客户编号</th>
|
||||
<th>负责部门编号</th>
|
||||
</tr>
|
||||
|
||||
|
||||
</thead>
|
||||
{% for project1 in project1 %}
|
||||
<tr>
|
||||
<td>{{ project1.id }}</td>
|
||||
<td>{{ project1.project_leader }}</td>
|
||||
<td>{{ project1.project_description }}</td>
|
||||
<td>{{ project1.customer_id }}</td>
|
||||
<td>{{ project1.department_id }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
<a href="/customercenter/">返回</a>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>查看</title>
|
||||
<!-- 添加内联CSS样式 -->
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 20px;
|
||||
}
|
||||
h3 {
|
||||
color: #4CAF50;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th, td {
|
||||
padding: 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
th {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
text-decoration: none;
|
||||
padding: 10px 20px;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
}
|
||||
a:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3>项目信息</h3>
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>项目编号</th>
|
||||
<th>项目名称</th>
|
||||
<th>项目描述</th>
|
||||
<th>客户编号</th>
|
||||
<th>负责部门编号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for project1 in project1 %}
|
||||
<tr>
|
||||
<td>{{ project1.id }}</td>
|
||||
<td>{{ project1.project_leader }}</td>
|
||||
<td>{{ project1.project_description }}</td>
|
||||
<td>{{ project1.customer_id }}</td>
|
||||
<td>{{ project1.department_id }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<a href="/employeecenter/">返回</a>
|
||||
</body>
|
||||
</html>
|
@ -1,37 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>登录信息</title>
|
||||
<style>
|
||||
.my_error{
|
||||
color: red;
|
||||
font-size: 20px;
|
||||
margin-left: 50px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3>登录信息</h3>
|
||||
<form method="post" action=“{% url 'login' %}”>
|
||||
{% csrf_token %}
|
||||
<div>
|
||||
<label for="InputText1">用户名:</label>
|
||||
<input type="text" id="InputText1" name="user" placeholder="用户名">
|
||||
</div>
|
||||
<div>
|
||||
<label for="InputPassword1">密码:</label>
|
||||
<input type="password" id="InputPassword1" name="password" placeholder="密码">
|
||||
</div>
|
||||
<div>
|
||||
<input type="submit" value="登录">
|
||||
</div>
|
||||
<div>
|
||||
{% if error %}
|
||||
<p class="my_error">{{ error }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>更新项目</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
padding-top: 20px;
|
||||
}
|
||||
form {
|
||||
width: 300px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
input[type="number"],
|
||||
input[type="text"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
padding: 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 3px;
|
||||
}
|
||||
input[type="submit"] {
|
||||
background-color: #007BFF;
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
}
|
||||
input[type="submit"]:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
color: #007BFF;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/update/" method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="number" name="id" placeholder="项目编号" required>
|
||||
<input type="text" name="project_leader" placeholder="项目名称" required>
|
||||
<input type="text" name="project_description" placeholder="项目描述">
|
||||
<input type="number" name="customer_id" placeholder="客户编号" required>
|
||||
<input type="number" name="department_id" placeholder="负责部门编号" required>
|
||||
<input type="submit" value="确认">
|
||||
<a href="/employeecenter/">返回</a>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue