Files

131 lines
6.2 KiB
HTML
Raw Permalink Normal View History

2022-11-02 23:21:46 +08:00
<!--{template common/header_simple_start}-->
2024-04-25 18:24:23 +08:00
<link rel="stylesheet" type="text/css" href="static/lyear/js/bootstrap-lyear-select/bootstrap-lyear-select.css?{VERHASH}">
2022-11-02 23:21:46 +08:00
<!--{template common/header_simple_end}-->
<!--{template common/commer_header}-->
<div class="bs-container clearfix">
<div class="bs-left-container clearfix">
<!--{template left}-->
</div>
<div class="left-drager">
</div>
<div class="bs-main-container clearfix">
<div class="main-header clearfix">
<!--{template right_header}-->
</div>
<div class="main-content">
<div class="col-md-12">
<form id="cpform" action="{MOD_URL}&op=movetool" class="form-horizontal form-horizontal-left" method="post" name="cpform" onsubmit="return validate(this);">
<input type="hidden" value="{FORMHASH}" name="formhash">
<input type="hidden" value="movesubmit" name="true">
<div class="row mb-3">
<label class="col-sm-2">{lang target_location}</label>
<div class="col-sm-10">
<select name="remoteid" class="form-select">
<!--{loop $spaces $value}-->
<option value="$value[remoteid]" <!--{if $router[remoteid]==$value[remoteid]}-->selected="selected"
<!--{/if}-->>$value[name]($value[fusesize] / $value[ftotalsize])
</option>
<!--{/loop}-->
</select>
<ul class="help-block ">
<li>{lang cloud_movetool_designator_text}</li>
</ul>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2">{lang original_location}</label>
<div class="col-sm-10">
<select name="oremoteid" class="form-select">
<!--{loop $spaces $value}-->
<option value="$value[remoteid]" >$value[name]($value[fusesize] / $value[ftotalsize])</option>
<!--{/loop}-->
</select>
<ul class="help-block ">
<li>{lang cloud_movetool_designator_text}</li>
</ul>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2"> <a href="javascript:;" onclick="jQuery('#filter').toggle(); document.getElementById('filter_guide').className=(document.getElementById('filter_guide').className=='glyphicon glyphicon-chevron-down'?'glyphicon glyphicon-chevron-up':'glyphicon glyphicon-chevron-down');">{lang filtrate_condition}&nbsp;<i id="filter_guide" class="glyphicon glyphicon-chevron-down"></i></a> </dt>
</div>
<div id="filter" style="display:none;padding-left:50px;">
<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[exts]" row="6" cols="6"></textarea>
<a href="javascript:;" onclick="setExts('jpg,jpeg,png,gif')">{lang photograph_class}</a>
&nbsp;&nbsp; <a href="javascript:;" onclick="setExts('doc,docx,rtf,odt,htm,html,txt')">word{lang type_attach}</a>
&nbsp;&nbsp; <a href="javascript:;" onclick="setExts('xls,xlsx,ods,sxc,csv,tsv')">excel{lang type_attach}</a>
&nbsp;&nbsp; <a href="javascript:;" onclick="setExts('ppt,pptx,pps,ppsx,odp,sxi')">ppt{lang type_attach}</a>
&nbsp;&nbsp; <a href="javascript:;" onclick="setExts('mp4,avi,wmv,mkv,rmvb,rm,asf,mpg,mpeg,mov')">{lang video_typename_attach}</a>
&nbsp;&nbsp; <a href="javascript:;" onclick="setExts('txt,ini,conf,log,bat,sql,js,css,htm,html,xml,asp,aspx,php,jsp,json,py,h,c')">text_class</a>
<ul class="help-block ">
{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="row g-3">
<div class="col">
<input type="text" class="form-control" placeholder="{lang typename_attach_gt}" name="router[size][lt]" value="">
</div>M
<div class="col">
<input type="text" class="form-control" placeholder="{lang typename_attach_lt}" name="router[size][gt]" value="">
</div>M
</div>
<ul class="help-block ">
{lang cloud_movetool_file_size_text}
</ul>
</div>
</div>
</div>
<dl>
<input class="btn btn-primary" name="movesubmit" value="{lang starting_migration}" type="submit">
</dl>
</form>
2022-11-02 23:21:46 +08:00
</div>
</div>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>{lang board_message}</strong> {lang cloud_movetool_board_message_text}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
2022-11-02 23:21:46 +08:00
</div>
</div>
</div>
2022-11-02 23:21:46 +08:00
<script type="text/javascript">
jQuery(document).ready(function (e) {
jQuery('select').lyearSelect();
});
2022-11-02 23:21:46 +08:00
var spaces=$spaces_json;
function validate(form) {
//验证原和目标位置
if(form.remoteid.value == form.oremoteid.value) {
alert('目标存储位置不能和原存储位置相同');
form.remoteid.focus();
return false;
}
//判断原位置有无数据
if(spaces[form.oremoteid.value].usesize<1){
alert('{lang cloud_movetool_home_position}');
form.oremoteid.focus();
return false;
}
return true;
}
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>
2024-04-25 18:24:23 +08:00
<script type="text/javascript" src="static/lyear/js/bootstrap-lyear-select/bootstrap-lyear-select.js?{VERHASH}"></script>
2022-11-02 23:21:46 +08:00
<!--{template common/footer_simple}-->