<!--#include file="../../../inc/cms_admin.asp" -->
<%
dim act : act=getForm("act","both")
if act="delall" then
dbsql "delete from [dbpre]log_dbbackup"
script("alert('清除成功');location.href='dbback_List.asp'")
end if

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
  <div class="ibox float-e-margins">
      <div class="row row-lg">
<div class="col-md-6">
							<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">备份记录</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content">
<div class="col-sm-12">
          <div class="col-sm-7">
           <button id="add" class="btn  btn-danger" type="button" onClick="layer.confirm('确定删除吗？',function(){location.href='?act=delall'})"><i class="fa fa-plus">　</i>清空记录</button>
           </div>     
            <table id="table"
           data-toggle="table"
           data-pagination="true"
           data-search="true"          
           data-show-toggle="true"
           data-show-columns="true"
           data-id-field="id"       
           data-id-table="advancedTable"
           data-page-size="10"
           data-page-list="[20,50,100]" >              
            <thead>
              <tr>
                <th class="tabletype" data-field="id" data-sortable="true">ID</th>
                <th class="tablename" data-field="username" data-sortable="true">管理员</th>
				<th class="tablename" data-field="ip" data-sortable="true">ip</th>
                <th class="tablename" data-field="addtime" data-sortable="true">时间</th>
                <th class="tablename" data-field="content">数据库名称</th>
              </tr>
               </thead>
              <%
		Dim rs,sql			
	sql="select * from [dbpre]log_dbbackup  order by id desc"
 	set rs=dbsqlr1(sql)
	do while not rs.eof 
	echo "<tr>"&vbcrlf& _
		"<td>"&rs("id")&"</td>"&vbcrlf& _	
		"<td>"&rs("username")&"</td>"&vbcrlf& _	
		"<td>"&rs("ip")&"</td>"&vbcrlf& _	
		"<td>"&rs("addtime")&"</td>"&vbcrlf& _	
		"<td><input type='text'class='form-control title' value='"&rs("dbname")&"'></td>"&vbcrlf& _			
		"</tr>"&vbcrlf  
	rs.movenext	
	Loop
closers rs		
		%>           
            </table>
         
        </div>
</div>
</div>
</div>
</div>
</div>
      </div>
  </div>
</div>
<!-- End Panel Other -->
<script src="<%=sitepath%>js/klorofil-common.js"></script>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script src="<%=sitepath%>plugins/bootstrap-table/bootstrap-table.min.js"></script> 
<script src="<%=sitepath%>plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> 
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script>
</body>
</html>
