<!--#include file="Data_Fun.asp" -->
<!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="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 onClick="location.reload()" class="btn btn-primary1" type="button"><i class="fa fa-refresh"></i> 刷新</button>　
           <!--<button onClick="closetab()" class="btn btn-primary1" type="button"><i class="fa fa-reply">　</i>关闭</button>-->　
            <%if execSql=1 then%><button class="btn btn-danger warning" type="button" ><i class="fa fa-warning">　</i>执行</button>　<%end if%>
            <%if dbType=1 and execSql=1 then%><button class="btn btn-danger dbimport" type="button" ><i class="fa fa-warning">　</i>导入测试数据</button><%end if%>
          </div>
          <table id="table"
           data-toggle="table"
           data-pagination="true" 
           data-show-toggle="true"
           data-show-columns="true"
           data-url="data_fun.asp?act=sql_list"
           data-side-pagination="server"
           data-id-field="id"       
           data-id-table="advancedTable"           
           data-page-size="10"
           data-page-list="[20,50,100]" >
            <thead>
              <tr>
                <th class="tableid" data-field="logID" data-sortable="true">ID</th>
                <th class="tabletype" data-field="username" data-sortable="true">管理员</th>
                <th class="tabletype" data-field="ip" data-sortable="true">ip</th>
                <th class="tabletype" data-field="addtime" data-sortable="true">时间</th>
                <th class="tableurl" data-field="content">操作记录</th>
              </tr>
            </thead>
          </table>
        </div>
            </div>
</div>
</div>

							</div>
						</div>
</div>
<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> 
<script>
$(".warning").click(function() {
    layer.prompt({
        title: '输入要执行的sql',
        formType: 2
    }, function(val, index) {
        $.post("data_fun.asp?act=connsql&sqlstr=" + val, function(data) {
			var act=data.substring(0,1);
			var info=data.substring(1);       
		 if(act==0){layer.msg(info, {icon: 0,time: 2000});}
		 else if(act==1){layer.open({ type: 1,area: ['1000px', '600px'],  title:"查询结果", content:info})}
		 else {layer.msg(info, {icon: 1,time: 2000});}
        });
        layer.close(index);
    });
})
</script>
</body>
</html>
