mdserver-web/web/templates/default/site.html

108 lines
4.4 KiB
HTML
Executable File
Raw Permalink 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.

{% extends "layout.html" %}
{% block content %}
<div class="main-content pb55">
<div class="container-fluid">
<div class="pos-box bgw mtb15">
<div class="position f14 c9 pull-left">
<a class="plr10 c4" href="/">首页</a>/<span class="plr10 c4">网站</span>
</div>
<div class="search pull-right">
<form onsubmit="return false;">
<input type="text" id="site_search_input" class="ser-text pull-left" autocomplete="off" placeholder="网站搜索"/>
<button type="button" class="ser-sub pull-left" id="site_search"></button>
</form>
</div>
</div>
<div class="safe bgw mtb15 pd15">
<div class="info-title-tips">
<p><span class="glyphicon glyphicon-alert" style="color:#f39c12; margin-right:10px;"></span>创建站点时会自动创建权限配置统一使用www用户。</p>
</div>
<button onclick="webAdd(0)" class="btn btn-success btn-sm btn-title" type="button">添加站点</button>&nbsp;
<button onclick="siteDefaultPage();" class="btn btn-default btn-sm btn-title" type="button">修改默认页</button>
<button onclick="getDefaultSite();" class="btn btn-default btn-sm btn-title" type="button">默认站点</button>
<button onclick="setClassType();" class="btn btn-default btn-sm btn-title" type="button">分类管理</button>
<button onclick="setPHPVer();" class="btn btn-default btn-sm btn-title" type="button">PHP命令行版本</button>
<span>
<button batch="true" style="float: right; margin-left: 10px;display: none;" onclick="allDeleteSite();" class="btn btn-default btn-sm">删除选中</button>
</span>
<div class="move_class">
<button batch="false" style="float: right; margin-left: 10px;display: none;" class="btn btn-default btn-sm" onclick="moveClassTYpe()">移动至</button>
</div>
<div class="divtable mtb10">
<div class="tablescroll">
<table class="table table-hover" style="min-width: 900px;border: 0 none;">
<thead id="webBodyHeader">
<tr>
<th width="30"><input type="checkbox" onclick="checkSelect();" id="setBox"></th>
<th width="150" onclick="listOrder('name','site',this)" style="cursor: pointer;">域名<span class="glyphicon glyphicon-stop" style="margin-left:5px;color:#bbb"></span></th>
<th style="cursor: pointer;" width="98">网站状态</th>
<th width="58">备份</th>
<th width="26%">网站目录</th>
<th onclick="listOrder('edate','site',this)" style="cursor: pointer;" width="86">
到期日期<span class="glyphicon glyphicon-stop" style="margin-left:5px;color:#bbb"></span>
</th>
<th>备注</th>
<th width='130' class='text-right'>操作</th>
</tr>
</thead>
<tbody id="webBody"></tbody>
</table>
</div>
<div class="dataTables_paginate paging_bootstrap pagination">
<ul id="webPage" class="page"></ul>
</div>
<div class="site_type">
<span>站点分类:</span>
<select class="bt-input-text mr5" style="width:100px">
<!--
<option value="-1">全部分类</option>
<option value="0">默认分类</option>
-->
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="/static/laydate/laydate.js?v={{config.version}}"></script>
<script type="text/javascript" src="/static/app/site.js?v={{config.version}}"></script>
<script type="text/javascript">
setTimeout(function(){
getWeb(1);
},500);
function initPage(){
var order = getCookie('order');
if (order){
var sort = order.split(' ');
if (sort[0] == 'name'){
if (sort[1] == 'desc'){
$($('#webBodyHeader .glyphicon-stop')[0]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-top');
} else if (sort[1] == 'asc'){
$($('#webBodyHeader .glyphicon-stop')[0]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-bottom');
}
}
if (sort[0] == 'edate'){
if (sort[1] == 'desc'){
$($('#webBodyHeader .glyphicon-stop')[1]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-top');
} else if (sort[1] == 'asc'){
$($('#webBodyHeader .glyphicon-stop')[1]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-bottom');
}
}
}
}
initPage();
</script>
{% endblock %}