<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<title>执行SQL</title>
{% if total > 0 %}<meta http-equiv="Refresh" content="{{ frequency }};url=run_sql?total={{ total }}&current={{ current }}" />{% endif %}
<style>
*{font-size:16px; font-family:"微软雅黑; NSimSun"; white-space:nowrap; color:#A9B7C6; background:#2B2B2B; line-height:20px;}
div{color:#CC7832; text-align:center; height:35px; line-height:35px; padding:14% 0 0 0;}
.submit{display:block; margin:10px auto; padding:0; width:80px; height:30px; text-align:center; line-height:30px; background:#444; text-decoration:none; border:0;}
.submit:hover{ background:#666; }
.total{ border:1px #666 solid; padding:2px 10px; width:100px; margin:0; height:25px; line-height:25px; border-radius:3px; }
</style>
</head>
<body>
<div>
{% if total == 0 %}
请将要执行的SQL文件上传至：temp/run.sql<br /><br />
<form action="#" method="get">
	执行次数：<input type="text" name="total" class="total" value="100000" /><br /><br />
	<input type="submit" class="submit" value="开始执行">
</form>
{% else %}
正在执行SQL文件：temp/run.sql <br />
已执行 {{ current }}  次
<a class="submit" href="run_sql">终止执行</a>
{% endif %}
</div>
</body>
</html>