parent
cbc1961f0f
commit
7477b1f93b
File diff suppressed because it is too large
Load Diff
@ -1,46 +1,118 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>指挥者界面</title>
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>指挥者</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background: linear-gradient(#141e30,#243b55);
|
||||||
|
}
|
||||||
|
h1, h2 {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
form {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
label, input, button {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
input[type="text"] {
|
||||||
|
padding: 10px;
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
padding: 10px 20px;
|
||||||
|
background-color: #add8e6;
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
}
|
||||||
|
button:hover {
|
||||||
|
background-color: #0056b3;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px 0;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
}
|
||||||
|
li strong {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
li span {
|
||||||
|
font-style: italic;
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
li img {
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>指挥者界面</h1>
|
<div class="container">
|
||||||
|
<h1>指挥者</h1>
|
||||||
|
<h2>发送攻击坐标</h2>
|
||||||
|
<form action="{{ url_for('send_attack') }}" method="post">
|
||||||
|
<label for="coordinate">攻击坐标:</label>
|
||||||
|
<input type="text" id="coordinate" name="coordinate" required>
|
||||||
|
<button type="submit">发送消息</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
<h2>发送攻击坐标</h2>
|
<h2>攻击坐标状态</h2>
|
||||||
<form action="{{ url_for('send_attack') }}" method="post">
|
<ul class="white-text">
|
||||||
<label for="coordinate">攻击坐标:</label>
|
{% if attacks %}
|
||||||
<input type="text" id="coordinate" name="coordinate" required>
|
{% for attack in attacks %}
|
||||||
<button type="submit">发送消息</button>
|
<li>
|
||||||
</form>
|
<strong>坐标:</strong> {{ attack.coordinate }}
|
||||||
|
- <em>{{ attack.created_at }}</em>
|
||||||
|
- <span>{% if attack.attacked %}已完成打击{% else %}等待打击{% endif %}</span>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
<li>No attack coordinates available.</li>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
<h2>攻击坐标状态</h2>
|
<h2>查看照片</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% if attacks %}
|
{% if media_items %}
|
||||||
{% for attack in attacks %}
|
{% for filename in media_items %}
|
||||||
<li>
|
<li>
|
||||||
<strong>坐标:</strong> {{ attack.coordinate }}
|
<a href="{{ url_for('uploaded_file', filename=filename) }}" target="_blank">
|
||||||
- <em>{{ attack.created_at }}</em>
|
<img src="{{ url_for('uploaded_file', filename=filename) }}" width="100">
|
||||||
- <span>{% if attack.attacked %}已完成打击{% else %}等待打击{% endif %}</span>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>No attack coordinates available.</li>
|
<li>No images found in the directory.</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
<h2>查看照片</h2>
|
|
||||||
<ul>
|
|
||||||
{% if media_items %}
|
|
||||||
{% for filename in media_items %}
|
|
||||||
<li>
|
|
||||||
<a href="{{ url_for('uploaded_file', filename=filename) }}" target="_blank">
|
|
||||||
<img src="{{ url_for('uploaded_file', filename=filename) }}" width="100">
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
{% else %}
|
|
||||||
<li>No images found in the directory.</li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,18 +1,21 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Send Message</title>
|
<title>发送消息</title>
|
||||||
|
<link rel="stylesheet" href="/static/login.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Send Message</h1>
|
<div class="login">
|
||||||
|
<h2>发送消息</h2>
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
<label for="message">Message:</label>
|
<h3>消息内容</h3>
|
||||||
<textarea id="message" name="message" rows="4" cols="50" required></textarea><br><br>
|
<textarea id="message" name="message" rows="4" cols="50" required></textarea><br><br>
|
||||||
<label for="photo">Upload Photo:</label>
|
<h3>选择图片</h3>
|
||||||
<input type="file" id="photo" name="photo"><br><br>
|
<input type="file" id="photo" name="photo"><br><br>
|
||||||
<button type="submit">Send Message</button>
|
<button type="submit" class="register-button">发送</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 49 KiB |
Loading…
Reference in new issue