82 lines
4.1 KiB
HTML
82 lines
4.1 KiB
HTML
|
{extend name="index/base" /}
|
|||
|
|
|||
|
{block name="body"}
|
|||
|
<div class="inside2">
|
|||
|
<div class="inwp cl">
|
|||
|
<form class="layui-form layui-form-pane" action="/install/index/complete" method="post">
|
|||
|
<h2>创建数据库:</h2>
|
|||
|
|
|||
|
<input type="hidden" name="DB_TYPE" value="mysql">
|
|||
|
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">数据库服务器</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" name="DB_HOST" value="127.0.0.1" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">数据库账号</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" name="DB_USER" value="root" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">数据库密码</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" name="DB_PWD" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">数据库端口</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" name="DB_PORT" value="3306" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">数据库名</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" type="text" name="DB_NAME" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">设置表前缀</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" name="DB_PREFIX" value="tao_" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<h2>管理员账号:</h2>
|
|||
|
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">后台管理用户名</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="text" name="admin_user" placeholder="至少包含4个字符,需以字母开头" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">登录密码</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="password" name="admin_pass" placeholder="至少包含6个字符。可使用字母,数字和符号" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="layui-form-item">
|
|||
|
<label class="layui-form-label">登录密码确认</label>
|
|||
|
<div class="layui-input-block">
|
|||
|
<input type="password" name="admin_pass2" required lay-verify="required" autocomplete="off" class="layui-input">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="inout1">
|
|||
|
<a href="/install/index/test">上一步</a>
|
|||
|
</div>
|
|||
|
<div class="inout2">
|
|||
|
<input type="submit" lay-submit lay-filter="formDemo" value="确认安装">
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
<script>
|
|||
|
layui.use('form', function() {
|
|||
|
var form = layui.form;
|
|||
|
});
|
|||
|
</script>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
{/block}
|