Browse Source

更新

tags/6.3.2
叙述、别离 10 months ago
parent
commit
6145ea9639
2 changed files with 62 additions and 60 deletions
  1. +61
    -59
      src/install/install.html
  2. +1
    -1
      src/static/web/css/admin.css

+ 61
- 59
src/install/install.html View File

@@ -28,66 +28,68 @@
</div>
</div>
<div class="install-box my-3">
<?php if (count($arrMsg) > 0) {foreach($arrMsg as $msg){?>
<div class="alert alert-warning"><?php echo $msg ?></div>
<?php }}?>
<div class="alert alert-success">安装前请先阅读<a href="https://www.dedebiz.com/license?from=install" target="_blank">《站点授权协议》</a></div>
<div id="dbinfo"></div>
<div class="card shadow-sm">
<div class="card-header text-center">
<h1>安装Dedev<?php echo $cfg_version_detail;?></h1>
</div>
<div class="card-body">
<form name="form1" action="/install/index.php" method="post">
<input type="hidden" name="step" value="2">
<input type="hidden" name="cookieencode" value="<?php echo $rnd_cookieEncode;?>">
<input type="hidden" name="adminmail" value="admin@dedebiz.com">
<div class="form-group">
<label for="dbtype" class="form-label">数据库类型</label>
<select id="dbtype" name="dbtype" class="form-control form-select">
<option value="mysql" selected>MySQL</option>
<?php if (extension_loaded("sqlite3")) {;?><option value="sqlite">SQLite</option><?php }?>
</select>
</div>
<div class="form-group server">
<label for="dbhost" class="form-label">数据库地址</label>
<input type="text" name="dbhost" id="dbhost" class="form-control" placeholder="localhost">
</div>
<div class="form-group server">
<label for="dbuser" class="form-label">数据库账号</label>
<input type="text" name="dbuser" id="dbuser" class="form-control" placeholder="root">
</div>
<div class="form-group server">
<label for="dbpwd" class="form-label">数据库密码</label>
<input type="text" name="dbpwd" id="dbpwd" class="form-control" placeholder="请输入数据库密码" required>
</div>
<div class="form-group">
<label for="dbprefix" class="form-label">数据表前缀</label>
<input type="text" name="dbprefix" id="dbprefix" class="form-control" placeholder="biz_">
</div>
<div class="form-group">
<label for="dbname" class="form-label">数据库名称</label>
<div class="input-group">
<input type="text" name="dbname" id="dbname" class="form-control" placeholder="DedeBIZ">
<div class="input-group-append"><button type="button" id="dbtip" class="btn btn-success">检查</button></div>
<div class="container">
<?php if (count($arrMsg) > 0) {foreach($arrMsg as $msg){?>
<div class="alert alert-warning"><?php echo $msg ?></div>
<?php }}?>
<div class="alert alert-success">安装前请先阅读<a href="https://www.dedebiz.com/license?from=install" target="_blank">《站点授权协议》</a></div>
<div id="dbinfo"></div>
<div class="card shadow-sm">
<div class="card-header text-center">
<h1>安装Dedev<?php echo $cfg_version_detail;?></h1>
</div>
<div class="card-body">
<form name="form1" action="/install/index.php" method="post">
<input type="hidden" name="step" value="2">
<input type="hidden" name="cookieencode" value="<?php echo $rnd_cookieEncode;?>">
<input type="hidden" name="adminmail" value="admin@dedebiz.com">
<div class="form-group">
<label for="dbtype" class="form-label">数据库类型</label>
<select id="dbtype" name="dbtype" class="form-control form-select">
<option value="mysql" selected>MySQL</option>
<?php if (extension_loaded("sqlite3")) {;?><option value="sqlite">SQLite</option><?php }?>
</select>
</div>
</div>
<div class="form-group">
<label for="webname" class="form-label">网站名称</label>
<input type="text" name="webname" id="webname" class="form-control" placeholder="我的网站">
</div>
<div class="form-group">
<label for="adminuser" class="form-label">管理员账号</label>
<input type="text" name="adminuser" id="adminuser" class="form-control" placeholder="admin" onkeyup="this.value=this.value.replace(/[^0-9a-zA-Z_@!\.-]/g,'');">
<small class="form-text text-black-50">请使用数字0-9小写a-z大写A-Z符号_@!.-</small>
</div>
<div class="form-group">
<label for="adminpwd" class="form-label">管理员密码</label>
<input type="text" name="adminpwd" id="adminpwd" class="form-control" placeholder="admin" onkeyup="this.value=this.value.replace(/[^0-9a-zA-Z_@!\.-]/g,'');">
<small class="form-text text-black-50">请使用数字0-9小写a-z大写A-Z符号_@!.-</small>
</div>
<div class="text-center"><button type="submit" class="btn btn-success">安装</button></div>
</form>
<div class="form-group server">
<label for="dbhost" class="form-label">数据库地址</label>
<input type="text" name="dbhost" id="dbhost" class="form-control" placeholder="localhost">
</div>
<div class="form-group server">
<label for="dbuser" class="form-label">数据库账号</label>
<input type="text" name="dbuser" id="dbuser" class="form-control" placeholder="root">
</div>
<div class="form-group server">
<label for="dbpwd" class="form-label">数据库密码</label>
<input type="text" name="dbpwd" id="dbpwd" class="form-control" placeholder="请输入数据库密码" required>
</div>
<div class="form-group">
<label for="dbprefix" class="form-label">数据表前缀</label>
<input type="text" name="dbprefix" id="dbprefix" class="form-control" placeholder="biz_">
</div>
<div class="form-group">
<label for="dbname" class="form-label">数据库名称</label>
<div class="input-group">
<input type="text" name="dbname" id="dbname" class="form-control" placeholder="DedeBIZ">
<div class="input-group-append"><button type="button" id="dbtip" class="btn btn-success">检查</button></div>
</div>
</div>
<div class="form-group">
<label for="webname" class="form-label">网站名称</label>
<input type="text" name="webname" id="webname" class="form-control" placeholder="我的网站">
</div>
<div class="form-group">
<label for="adminuser" class="form-label">管理员账号</label>
<input type="text" name="adminuser" id="adminuser" class="form-control" placeholder="admin" onkeyup="this.value=this.value.replace(/[^0-9a-zA-Z_@!\.-]/g,'');">
<small class="form-text text-black-50">请使用数字0-9小写a-z大写A-Z符号_@!.-</small>
</div>
<div class="form-group">
<label for="adminpwd" class="form-label">管理员密码</label>
<input type="text" name="adminpwd" id="adminpwd" class="form-control" placeholder="admin" onkeyup="this.value=this.value.replace(/[^0-9a-zA-Z_@!\.-]/g,'');">
<small class="form-text text-black-50">请使用数字0-9小写a-z大写A-Z符号_@!.-</small>
</div>
<div class="text-center"><button type="submit" class="btn btn-success">安装</button></div>
</form>
</div>
</div>
</div>
</div>


+ 1
- 1
src/static/web/css/admin.css View File

@@ -27,7 +27,7 @@ input:focus,select:focus,textarea:focus{color:var(--gray);background:var(--white
.install-head{padding:1rem 0;background:var(--white)}
.install-head .logo{font-size:18px;font-weight:600;color:var(--gray-dark)}
.install-head .logo img,.login-box .logo img{margin-right:0.5rem;height:36px}
.install-box{margin:0 auto;padding:0 1rem;width:750px}
.install-box{margin:0 auto;width:750px}
.install-box .card-header,.install-box .card-body{padding:1.25rem}
.install-box h1{margin:0;line-height:1.2;font-size:18px;font-weight:600;color:var(--gray-dark)}
.install-box label{margin-bottom:0.25rem}


Loading…
Cancel
Save