mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-01-23 17:35:19 +08:00
95 lines
4.1 KiB
HTML
95 lines
4.1 KiB
HTML
<!--{template common/header_simple_start}-->
|
|
<script src="admin/scripts/admin.js?{VERHASH}"></script>
|
|
<!--{template common/header_simple_end}-->
|
|
<!--{template common/commer_header}-->
|
|
<style type="text/css">
|
|
|
|
/*结束*/
|
|
</style>
|
|
<div class="bs-container clearfix">
|
|
<div class="bs-left-container clearfix">
|
|
<!--{template left}-->
|
|
</div>
|
|
<div class="left-drager">
|
|
<div class="left-drager-op">
|
|
<div class="left-drager-sub"></div>
|
|
</div>
|
|
</div>
|
|
<div class="bs-main-container clearfix">
|
|
<div class="main-header clearfix">
|
|
<!--{template right_header}-->
|
|
</div>
|
|
<div class="main-content clearfix">
|
|
<form id="appform" name="appform" class="form-horizontal form-horizontal-left" action="{MOD_URL}&op=router" method="post">
|
|
<input type="hidden" name="routersubmit" value="true" />
|
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<th width="20"> </th>
|
|
<th width="80">{lang priority}</th>
|
|
<th width="150">{lang name}</th>
|
|
<th width="100">{lang use_storage}</th>
|
|
<th>{lang routing_rule}</th>
|
|
<th width="60">{lang enable}</th>
|
|
<th width="60">{lang edit}</th>
|
|
</thead>
|
|
<!--{loop $list $value}-->
|
|
<tr>
|
|
<td width="20"><input type="checkbox" class="form-check-input" name="delete[]" value="$value[routerid]" style="width:20px;" /></td>
|
|
<td width="80"><input type="text" class="form-control" name="priority[{$value[routerid]}]" value="$value[priority]" style="width:45px;" /></td>
|
|
<td width="150"><input type="text" class="form-control" name="name[{$value[routerid]}]" value="$value[name]" /></td>
|
|
<td width="100">$value[position]
|
|
<!--{if $value[bz_available]<1}-->
|
|
<span class="text-danger">{lang router_routing_failure}</span>
|
|
<!--{/if}--></td>
|
|
<td style="word-break:break-all">$value[drouter]</td>
|
|
<td width="60"><input type="checkbox" class="form-check-input" name="available[{$value[routerid]}]" value="1" <!--{if $value[available]>0}-->checked<!--{/if}-->></td>
|
|
<td width="60"><a href="{MOD_URL}&op=routeredit&routerid=$value[routerid]" class="glyphicon glyphicon-edit " title="{lang edit}"> </a></td>
|
|
</tr>
|
|
<!--{/loop}-->
|
|
<thead>
|
|
<td valign="middle" colspan="7"><input type="checkbox" class="form-check-input" name="chkall" id="chkall" onclick="checkAll('prefix', this.form, 'delete')">
|
|
{lang del}
|
|
<input type="submit" class="btn btn-primary" value="{lang save_set}" />
|
|
<a href="{MOD_URL}&op=routeredit" title="{lang add_routing}" class="btn btn-outline-primary">{lang add_routing}</a>
|
|
|
|
</td>
|
|
</thead>
|
|
</table>
|
|
</form>
|
|
<div class="tip">
|
|
<div class="alert alert-warning">
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
|
<h5>{lang board_message}</h5>
|
|
<ul>
|
|
{lang router_board_message_text}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
function checkspace(obj, routerid) {
|
|
jQuery(obj).html('<img src="admin/images/loadding.gif">');
|
|
jQuery.getJSON('{MOD_URL}&op=space&do=checkspace&routerid=' + routerid, function(json) {
|
|
if(json.error) {
|
|
jQuery(this).html('<i class="icon-refresh"></i><span class="text-danger">' + json.error + '</span>');
|
|
} else {
|
|
jQuery('#spaceinfo_' + routerid + ' .spacecheck a').html('<span class="text-success" >{lang already_update}</span>');
|
|
jQuery('#spaceinfo_' + routerid + ' .spacesize').html(json.fusesize + ' / ' + json.ftotalsize).hide().fadeIn('slow');
|
|
if(json.usesize < 1) {
|
|
jQuery('delete_' + routerid).show();
|
|
} else {
|
|
jQuery('delete_' + routerid).hide();
|
|
}
|
|
window.setTimeout(function() {
|
|
jQuery('#spaceinfo_' + routerid + ' .spacecheck a').html('<i class="icon-refresh"></i>');
|
|
}, 5000);
|
|
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
<!--{template common/footer_simple}--> |