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

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

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

91 lines
4.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--{template lyear:header_simple_start}-->
<!--{template lyear:header_simple_end}-->
<main class="bs-main-container">
<div class="container-fluid">
<!--{template lyear:right_header}-->
<div class="card">
<div class="card-body">
<form id="cpform" action="{MOD_URL}&op=routeredit" class="form-horizontal" method="post" name="cpform">
<input type="hidden" value="{FORMHASH}" name="formhash">
<input type="hidden" name="routerid" value="$routerid">
<input type="hidden" value="addroutersubmit" name="true">
<div class="row mb-3">
<label class="col-sm-2">{lang routing_name}</label>
<div class="col-sm-10">
<input type="text" name="router[name]" class="form-control" value="$router[name]">
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang priority}</label>
<div class="col-sm-10">
<input type="text" name="router[priority]" class="form-control" value="$router[priority]">
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang storage_location}</label>
<div class="col-sm-10">
<select name="router[remoteid]" class="form-select">
<!--{loop $spaces $value}-->
<option value="$value[remoteid]" <!--{if $router[remoteid]==$value[remoteid]}-->selected="selected"<!--{/if}-->> $value[name]
<!--{if $value[available]<1}-->{lang router_routing_failure}<!--{/if}-->
</option>
<!--{/loop}-->
</select>
<ul class="form-text">
<li>{lang cloud_movetool_designator_text}</li>
</ul>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang file_type}</label>
<div class="col-sm-10">
<textarea type="textarea" id="exts" class="form-control" name="router[router][exts]" row="6" cols="6">{eval echo implode(',',$router['router']['exts'])}</textarea>
<div class="m-2 p-1">
<a href="javascript:;" class="btn btn-primary" onclick="setExts('jpg,jpeg,png,gif')">{lang photograph_class}</a>
<a href="javascript:;" class="btn btn-primary" onclick="setExts('doc,docx,rtf,odt,htm,html,txt')">word{lang type_attach}</a>
<a href="javascript:;" class="btn btn-primary" onclick="setExts('xls,xlsx,ods,sxc,csv,tsv')">excel{lang type_attach}</a>
<a href="javascript:;" class="btn btn-primary" onclick="setExts('ppt,pptx,pps,ppsx,odp,sxi')">ppt{lang type_attach}</a>
<a href="javascript:;" class="btn btn-primary" onclick="setExts('mp4,avi,wmv,mkv,rmvb,rm,asf,mpg,mpeg,mov')">{lang video_typename_attach}</a>
<a href="javascript:;" class="btn btn-primary" onclick="setExts('txt,ini,conf,log,bat,sql,js,css,htm,html,xml,asp,aspx,php,jsp,json,py,h,c')">{lang text_class}</a>
</div>
<ul class="form-text">
{lang cloud_movetool_file_type_text}
</ul>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang file_size}</label>
<div class="col-sm-10">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="{lang typename_attach_gt}" name="router[router][size][lt]" value="">
<div class="input-group-text">M</div>
<input type="text" class="form-control" placeholder="{lang typename_attach_lt}" name="router[router][size][gt]" value="">
<div class="input-group-text">M</div>
</div>
<ul class="form-text">
{lang cloud_movetool_file_size_text}
</ul>
</div>
</div>
<dl class="mb-3 d-grid">
<input class="btn btn-primary btn-round bodyloading" name="addroutersubmit" value="<!--{if $routerid}-->{lang edit}<!--{else}-->{lang add}<!--{/if}-->" type="submit">
</dl>
</form>
</div>
</div>
</div>
</main>
<script type="text/javascript">
function setExts(str) {
var old = trim(document.getElementById('exts').value).replace(/{1,}/g, ',').replace(/,{1,}/g, ',').replace(/^\,/g, '');
var arr = old ? old.split(',') : [];
var newarr = str.split(',');
for(var i = 0; i < newarr.length; i++) {
if(jQuery.inArray(newarr[i], arr) < 0) {
arr.push(newarr[i]);
}
}
document.getElementById('exts').value = arr.join(',');
}
</script>
<!--{template lyear:footer_simple}-->