login.html文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link type="text/css" href="/static/css/Login.css" rel="stylesheet" />
<script src="/static/js/Login.js"></script>
<script src="/static/js/jquery.js"></script>
</head>
<body>
<div id="login-box">
<h1>用户登录</h1>
<div class="form">
<div class="item">
<input id="login_name" type="text" placeholder="用户名">
</div>
<div class="item">
<input id="login_password" type="password" placeholder="密码">
</div>
</div>
<button onclick="login()">登录</button>
<br>
<button onclick="location.href='/cloud1/signin/'">注册</button>
</div>
</body>
</html>
signin.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link type="text/css" href="/static/css/Login.css" rel="stylesheet" />
<script src="/static/js/Signin.js"></script>
<script src="/static/js/jquery.js"></script>
</head>
<body>
<div id="login-box">
<h1>用户注册</h1>
<div class="form">
<div class="item">
<input id="sign_name" type="text" placeholder="用户名">
</div>
<div class="item">
<input id="sign_password1" type="password" placeholder="输入密码">
</div>
<div class="item">
<input id="sign_password2" type="password" placeholder="确认密码">
</div>
</div>
<button onclick="Sign()">注册</button>
<br>
<button onclick="location.href='/cloud1/login/'">登录</button>
</div>
</body>
</html>
control.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>控制中心</title>
<link type="text/css" href="/static/css/Control.css" rel="stylesheet" />
<script src="/static/js/Control.js"></script>
<script src="/static/js/jquery.js"></script>
</head>
<body>
<div id="ctr">
<div class="fun" onclick="add_1()">查询主机状态</div>
<div class="fun" onclick="add_2()">创建虚拟机</div>
<div class="fun" onclick="add_3()">删除虚拟机</div>
<div class="fun" onclick="add_4()">虚拟机查看</div>
<div class="fun" onclick="add_5()">启动虚拟机</div>
<div class="fun" onclick="add_6()">关闭虚拟机</div>
<div class="fun" onclick="add_7()">运行并行程序</div>
</div>
<div id="show_table">
<table id="table1">
<caption>查询主机状态</caption>
<thead>
<tr>
<th>物理机</th>
<th>CPU架构</th>
<th>内存/G</th>
<th>CPU个数</th>
<th>虚拟类型</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div id="table2">
<h2>创建虚拟机</h2>
<h3>主机
<input type="text" id="hostname_2">
域名称
<input type="text" id="name_2">
内存
<input type="text" id="run_memory">
磁盘空间
<input type="text" id="disk_memory">
<button onclick="add_2_add()" style="position: center">提交</button>
</h3>
</div>
<div id="table3">
<h2>删除虚拟机</h2>
<h3>主机
<input type="text" id="hostname_3">
域名称
<input type="text" id="name_3">
<button onclick="add_3_add()" style="position: center">删除</button>
</h3>
</div>
<table id="table4">
<caption>虚拟机查看</caption>
<thead>
<tr>
<th>主机名</th>
<th>域名称</th>
<th>状态</th>
<th>内存/G</th>
<th>CPUs</th>
<th>IP</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div id="table5">
<h2>启动虚拟机</h2>
<h3>主机
<input type="text" id="hostname_5">
域名称
<input type="text" id="name_5">
<button onclick="add_5_add()" style="position: center">启动</button>
</h3>
</div>
<div id="table6">
<h2>关闭虚拟机</h2>
<h3>主机
<input type="text" id="hostname_6">
域名称
<input type="text" id="name_6">
<button onclick="add_6_add()" style="position: center">关闭</button>
</h3>
</div>
<div id="table7">
<h2>运行并行程序</h2>
<button onclick="add_7_add()" style="position: center">运行</button>
</h3>
</div>
</div>
</body>
</html>