小胡 77979b6ed5
更新至V2.3.2版本,离线升级的用户需要执行升级程序 (#278)
* 优化百度编辑器,修复编辑器插入的图片不能预览问题

* 处理系统异常时登录无反应问题

* 更新至V2.3.1版本,离线升级的用户需要执行升级程序
2025-01-16 21:17:09 +08:00

69 lines
2.6 KiB
HTML

<!--{template lyear:header_simple_start}-->
<!--{template lyear:header_simple_end}-->
<main class="bs-main-container">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<ul class="nav nav-pills">
<li class="nav-item"> <a class="nav-link" href="{MOD_URL}&op=edit&bz=dzz"> {lang set}</a> </li>
<li class="nav-item" > <a class="nav-link" href="{MOD_URL}&op=space">{lang space_management}</a> </li>
<li class="nav-item"> <a class="nav-link active" href="{MOD_URL}&op=oauth&bz=disk">{lang add}{lang cloud_type_disk}</a> </li>
</ul>
</div>
</div>
<div class="card">
<div class="card-body">
<form name="aliform" class="form-horizontal" action="{MOD_URL}&op=oauth" method="post" onsubmit="return validate(this)">
<input type="hidden" name="disksubmit" value="true" />
<input type="hidden" name="bz" value="disk" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="row mb-3">
<label class="col-sm-2">{lang disk_name}</label>
<div class="col-sm-10">
<input type="text" class="form-control required" name="config[cloudname]" value="" required>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang disk_dir}</label>
<div class="col-sm-10">
<input type="text" class="form-control required" name="config[attachdir]" value="" required>
<span class="form-text">{lang disk_dir_tip}</span>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang disk_encode}</label>
<div class="col-sm-10">
<select class="form-select" name="config[charset]">
<option value="GBK">GBK</option>
<option value="UTF-8" selected="selected">UTF-8</option>
<option value="BIG5">BIG5</option>
</select>
<span class="form-text">{lang disk_encode_tip}</span>
</div>
</div>
<dl class="mb-3 d-grid">
<input type="submit" class="btn btn-primary btn-round bodyloading" value="{lang add}">
</dl>
</form>
</div>
</div>
</div>
</main>
<script type="text/javascript">
function validate(form) {
var i = 0;
jQuery("input.required").each(function() {
if(jQuery(this).val() == '') {
jQuery(this).focus();
return false;
}
i++;
});
if(i < jQuery("input.required").length) {
return false;
} else {
return true;
}
}
</script>
<!--{template lyear:footer_simple}-->