mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
4.5 KiB
81 lines
4.5 KiB
7 years ago
|
{% extends "default/layout.html" %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
7 years ago
|
<div class="main-content pb55">
|
||
|
<div class="container-fluid">
|
||
|
<div class="pos-box bgw mtb15">
|
||
|
<div class="position f14 c9 pull-left">
|
||
7 years ago
|
<a class="plr10 c4" href="/">首页</a>/<span class="plr10 c4">数据库管理</span>
|
||
7 years ago
|
</div>
|
||
|
<div class="search pull-right">
|
||
|
<form target="hid" onsubmit='getData(1,$$("#SearchValue").prop("value"))'>
|
||
7 years ago
|
<input type="text" id="SearchValue" class="ser-text pull-left" placeholder="搜索数据库" />
|
||
7 years ago
|
<button type="button" class="ser-sub pull-left" onclick='getData(1,$$("#SearchValue").prop("value"))'></button>
|
||
|
</form>
|
||
|
<iframe name='hid' id="hid" style="display:none"></iframe>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="safe bgw mtb15 pd15">
|
||
7 years ago
|
<button onclick="DataAdd(0)" title="添加数据库" class="btn btn-success btn-sm" type="button" style="margin-right: 5px;">添加数据库</button>
|
||
|
<button onclick="DataSetuppwd(0)" title="$tData['lan']['BTNT2']" class="btn btn-default btn-sm" type="button" style="margin-right: 5px;">root密码</button>
|
||
|
<button onclick="AdminDatabase('','root','$tData['mysql_root']')" title="$tData['lan']['BTNT3']" class="btn btn-default btn-sm" type="button" style="margin-right: 5px;">phpMyAdmin</button>
|
||
7 years ago
|
<span style="float:right">
|
||
|
<button id="allDelete" style="float: right;display: none;margin-left:10px;" onclick="allDeleteDatabase();" title="$tData['lan']['BTNT4']" class="btn btn-default btn-sm">$tData['lan']['BTN4']</button>
|
||
|
<button onclick="Recycle_bin('open');" id="dataRecycle" title="$tData['lan']['BTNT4']" class="btn btn-default btn-sm" style="margin-left: 5px;"><span class="glyphicon glyphicon-trash" style="margin-right: 5px;"></span>回收站</button>
|
||
|
</span>
|
||
|
<div class="divtable mtb10">
|
||
|
<div class="tablescroll">
|
||
|
<table class="table table-hover" style="min-width: 900px;border: 0 none;">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th width='30px'><input onclick="checkSelect();" type="checkbox" id="setBox"></th>
|
||
7 years ago
|
<th onclick="listOrder('name','database',this)" style="cursor: pointer;">数据库名<span class="glyphicon glyphicon-triangle-top" style="margin-left:5px;color:#bbb"></span></th>
|
||
|
<th onclick="listOrder('name','database',this)" style="cursor: pointer;">用户名<span class="glyphicon glyphicon-triangle-top" style="margin-left:5px;color:#bbb"></span></th>
|
||
|
<th>密码</th>
|
||
|
<th width="140">备份</th>
|
||
|
<th>备注</th>
|
||
|
<th width="260" class="text-right">操作</th>
|
||
7 years ago
|
</tr>
|
||
|
</thead>
|
||
|
<tbody id="DataBody"></tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="dataTables_paginate paging_bootstrap pagination">
|
||
7 years ago
|
<span class="sync btn btn-default btn-sm" style="margin-right:5px" onclick="SyncToDatabases(1)" title="$tData['lan']['TP1']">同步选中</span>
|
||
|
<span class="sync btn btn-default btn-sm" style="margin-right:5px" onclick="SyncToDatabases(0)" title="$tData['lan']['TP2']">同步所有</span>
|
||
|
<span class="sync btn btn-default btn-sm" onclick="SyncGetDatabases()" title="$tData['lan']['TP3']">从服务器获取</span>
|
||
7 years ago
|
<ul id="DataPage" class="page pull-right"></ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<form id="toPHPMyAdmin" action="$web.ctx.session.phpmyadminDir/index.php" method="post" style="display: none;" target="_blank">
|
||
|
<input type="text" name="pma_username" id="pma_username" value="" />
|
||
|
<input type="password" name="pma_password" id="pma_password" value="" />
|
||
|
<input type="text" name="server" value="1" />
|
||
|
<input type="text" name="target" value="index.php" />
|
||
|
<input type="text" name="db" id="db" value="" />
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
7 years ago
|
|
||
|
<script type="text/javascript" src="/static/app/data.js?v={{config.version}}"></script>
|
||
|
<script type="text/javascript" src="/static/app/files.js?v={{config.version}}></script>
|
||
7 years ago
|
<script type="text/javascript">
|
||
7 years ago
|
// $if not tData['isSetup']:
|
||
|
// layer.msg('$tData["lan"]["JS1"]<a href="/soft#i" style="color:#20a53a;float: right;">$tData["lan"]["JS2"]</a>',{icon:7,shade: [0.3, '#000'],time:0});
|
||
|
// $(".layui-layer-shade").css("margin-left","180px");
|
||
7 years ago
|
setTimeout(function(){
|
||
|
getData(1);
|
||
|
},300);
|
||
|
|
||
7 years ago
|
$("#dataRecycle").click(function(){
|
||
7 years ago
|
setTimeout(function(){
|
||
|
Recycle_bin(6);
|
||
|
},1000);
|
||
7 years ago
|
// });
|
||
7 years ago
|
</script>
|
||
7 years ago
|
<script src="/static/app/upload.js?v={{config.version}}"></script>
|
||
7 years ago
|
{% endblock %}
|