<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>success</title>
</head>
<body>
<p>success</p>
<table>
<tr>
<td>
<form action="/server/server_list">
<input type="submit" value="return"/>
</form>
</td>
</tr>
</table>
</body>
</html>
[项目] server.templates.server_register.html(LOAMAW v1.0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>server_register</title>
</head>
<body>
<table>
<form action="/server/server_register/" method="POST">
{% csrf_token %}
<tr>
<label>server_name:</label><input type="text" name="tserver_name"/>
</tr>
</br>
<tr>
<label>server_main_ip:</label><input type="text" name="tserver_main_ip"/>
</tr>
</br>
<tr>
<td>
<input type="submit" value="regsiter"/>
</td>
</form>
<td>
<form action="/server/server_list">
<input type="submit" value="return"/>
</form>
</td>
</tr>
</table>
</body>
</html>
[项目] server.templates.server_list.html(LOAMAW v1.0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>server</title>
</head>
<body>
<table>
<tr>
<td>
<form action="/server/server_register">
<input type="submit" value="server_register"/>
</form>
</td>
<td>
<form action="/server/admin_register">
<input type="submit" value="admin_register"/>
</form>
</td>
<td>
<form action="/server/server_bind_admin">
<input type="submit" value="server_bind_admin"/>
</form>
</td>
<form action="/server/server_list/" method="POST">
{% csrf_token %}
<td>
<input type="submit" value="refresh"/>
</td>
<tr>
<table>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>Choice</th>
<th>Code</th>
<th>Server Name</th>
<th>Server Main_IP</th>
<th>Server Status</th>
<th>Server Detail</th>
</tr>
{% for servers in tserver_all %}
<tr>
<td><input type="checkbox" name="tserver_name_choice" value="{{ servers.server_name }}"/></td>
<td>{{ forloop.counter }}</td>
<td>{{ servers.server_name }}</td>
<td>{{ servers.server_main_ip }}</td>
<td>{{ servers.server_status }}</td>
<td>
<a href="/server/server_detail/?server_name={{ servers.server_name }}">detail</a>
</td>
<tr>
{% endfor %}
</form>
</table>
</body>
</html>
[项目] server.templates.server_detail.html(LOAMAW v1.0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>detail</title>
</head>
<body>
<table>
<tr>
<td>
{% for servers in tserver %}
<form action="/server/server_detail/?server_name={{ servers.server_name }}" method="POST">
{% csrf_token %}
<select name="trefresh">
<option value="single thread">refresh option: now(single thread)</option>
<option value="multi thread">refresh option: delay(multi thread)</option>
<input type='submit' value="refresh">
</select>
</form>
{% endfor %}
<td>
<form action="/server/server_list">
<input type="submit" value="return"/>
</form>
</td>
<td>
</tr>
</table>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>Code</th>
<th>Server Name</th>
<th>Server Main_IP</th>
<th>Server Status</th>
</tr>
{% for servers in tserver %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ servers.server_name }}</td>
<td>{{ servers.server_main_ip }}</td>
<td>{{ servers.server_status }}</td>
<tr>
{% endfor %}
</table>
<br/>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>OS Distributor</th>
<th>OS Release</th>
<th>OS Kernel</th>
<th>OS Uptime</th>
<th>OS Status</th>
</tr>
{% for oss in tos %}
<tr>
<td>{{ oss.os_distributor }}</td>
<td>{{ oss.os_release }}</td>
<td>{{ oss.os_kernel }}</td>
<td>{{ oss.os_uptime }}</td>
<td>{{ oss.os_status }}</td>
</tr>
{% endfor %}
</table>
<br/>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>CPU QTY</th>
<th>CPU Core</th>
<th>CPU Usage</th>
<th>CPU Idleness</th>
<th>CPU Status</th>
</tr>
{% for cpus in tcpu %}
<tr>
<td>{{ cpus.cpu_qty }}</td>
<td>{{ cpus.cpu_core }}</td>
<td>{{ cpus.cpu_usage }}%</td>
<td>{{ cpus.cpu_idleness }}%</td>
<td>{{ cpus.cpu_status }}</td>
</tr>
{% endfor %}
</table>
<br/>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>Mem Size</th>
<th>Mem Usage</th>
<th>Mem Idleness</th>
<th>Mem Status</th>
</tr>
{% for mems in tmem %}
<tr>
<td>{{ mems.mem_size }}K</td>
<td>{{ mems.mem_usage }}K</td>
<td>{{ mems.mem_idleness }}K</td>
<td>{{ mems.mem_status }}</td>
</tr>
{% endfor %}
</table>
<br/>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>Space Name</th>
<th>Space Size</th>
<th>Space Usage</th>
<th>Space Idleness</th>
<th>Space Mount</th>
<th>Space Status</th>
</tr>
{% for spaces in tspace %}
<tr>
<td>{{ spaces.space_name }}</td>
<td>{{ spaces.space_size }}K</td>
<td>{{ spaces.space_usage }}K</td>
<td>{{ spaces.space_idleness }}K</td>
<td>{{ spaces.space_mount }}</td>
<td>{{ spaces.space_status }}</td>
</tr>
{% endfor %}
</table>
<br/>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>NC Name</th>
<th>NC IP</th>
<th>NC Status</th>
</tr>
{% for ncs in tnc %}
<tr>
<td>{{ ncs.nc_name }}</td>
<td>{{ ncs.nc_ip }}</td>
<td>{{ ncs.nc_status }}</td>
</tr>
{% endfor %}
</table>
<br/>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>Admin Name</th>
<th>Admin GID</th>
<th>Admin Email</th>
<th>Admin Phone</th>
<th>Admin Status</th>
</tr>
{% for admins in tsdadmin %}
<tr>
<td>{{ admins.admin_name }}</td>
<td>{{ admins.admin_gid }}</td>
<td>{{ admins.admin_email }}</td>
<td>{{ admins.admin_phone }}</td>
<td>{{ admins.admin_status }}</td>
<tr>
{% endfor %}
</table>
</body>
</html>
[项目] server.templates.server_bind_admin.html(LOAMAW v1.0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>server_bind_admin</title>
</head>
<body>
<table>
<form action="/server/server_bind_admin/" method="POST">
{% csrf_token %}
<tr>
<label>server_name:</label><input type="text" name="server_bind_name"/>
</tr>
</br>
<tr>
<label>admin_name:</label><input type="text" name="admin_bind_name"/>
</tr>
</br>
<tr>
<td>
<input type="submit" value="bind"/>
</td>
</form>
<td>
<form action="/server/server_list">
<input type="submit" value="return"/>
</form>
</td>
</tr>
</table>
</body>
</html>