www.gusucode.com > SDCMS三合一企业网站管理系统PHP源码程序 > SDCMS三合一企业网站管理系统/sdcms_swhy_v1.7/sdcms_swhy_v1.7/上传本目录中文件/app/admin/view/module/other/loginlog.php
<?php if(!defined('IN_SDCMS')) exit;?><!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="renderer" content="webkit"> <title>登录日志</title> <link rel="stylesheet" href="{WEB_ROOT}public/css/amazeui.min.css"> <link rel="stylesheet" href="{WEB_ROOT}public/admin/css/layout.css"> <link rel="stylesheet" href="{WEB_ROOT}public/admin/css/toastr.css"> <script src="{WEB_ROOT}public/js/jquery.min.js"></script> <script src="{WEB_ROOT}public/js/amazeui.min.js"></script> <script src="{WEB_ROOT}public/layer/layer.js"></script> <script src="{WEB_ROOT}public/admin/js/base.js"></script> <script src="{WEB_ROOT}public/admin/js/toastr.min.js"></script> <script src="{WEB_ROOT}public/validator/jquery.validator.min.js?local=zh-CN"></script> <!--[if lt IE 9]> <script src="{WEB_ROOT}public/js/html5shiv.js"></script> <script src="{WEB_ROOT}public/js/respond.min.js"></script> <![endif]--> </head> <body> <div class="position">当前位置:<a href="{THIS_LOCAL}">登录日志</a></div> <div class="border"> <!----> <div class="am-btn-group"> <a class="am-btn am-btn-secondary am-radius am-text-sm btach" href="javascript:;" type="5"><span class="am-icon-trash am-margin-right-sm"></span>批量删除</a> </div> <div class="am-btn-group am-btn-group-sm am-btn-toolbar am-margin-left-xs"> <a class="am-btn am-btn-{if $type==0}warning{else}default{/if} am-radius" href="{U('index','type=0')}">全部</a> <a class="am-btn am-btn-{if $type==1}warning{else}default{/if} am-radius" href="{U('index','type=1')}">成功</a> <a class="am-btn am-btn-{if $type==2}warning{else}default{/if} am-radius" href="{U('index','type=2')}">失败</a> </div> <form method="post" id="form_name"> <table class="am-table am-table-hover am-margin-top"> <thead> <tr> <th width="30" height="30"><input type="checkbox" name="chkall" onClick="checkall(this.form)" title="全选/取消" style="width:auto;" /></th> <th width="80">ID</th> <th width="150">用户名</th> <th width="130">IP</th> <th>消息</th> <th width="180">日期</th> <th width="100">状态</th> <th width="100">操作</th> </tr> </thead> <tbody> {sdcms:rs pagesize="20" table="sd_admin_login_log" where="$where" order="id desc"} {rs:eof} <tr> <td colspan="8">暂无资料</td> </tr> {/rs:eof} <tr> <td><input type="checkbox" name="id" value="{$rs[id]}" style="width:auto;margin-top:8px;"></td> <td>{$rs[id]}</td> <td>{$rs[loginname]}</td> <td>{$rs[loginip]}</td> <td>{$rs[loginmsg]}</td> <td>{date('Y-m-d H:i:s',$rs[logindate])}</td> <td>{iif($rs[loginstate]==1,'成功','<em>失败</em>')}</td> <td><a href="javascript:;" class="del" rel="{U('del','id='.$rs[id].'')}"><span class="am-icon-trash"></span> 删除</a></td> </tr> {/sdcms:rs} </tbody> </table> {if $total_rs!=0} <div class="am-padding-sm border-top"> <div class="pagelist"><ul>{$showpage}</ul></div> <div class="am-cf"></div> </div> {/if} </form> <!----> </div> <script> $(function(){ toastr.options={"positionClass":"toast-bottom-center","timeOut":"3000","onclick":null,showMethod:"slideDown",hideMethod:"slideUp"}; $(".btach").click(function(){ var type=$(this).attr("type"); var list=""; $($("input[name='id']:checked")).each(function(){ if(list==""){list+=this.value}else{list+=","+this.value} }); if(list=="") { toastr.error('至少选择一条内容'); } else { $.AMUI.progress.inc(); $.ajax({ type:'get', cache:false, dataType:'json', url:'{U("btach")}{iif(sdcms[url_mode]==1,"&","?")}id='+list+'&type='+type, data:"", error:function(e){alert(e.responseText);}, success:function(d){ $.AMUI.progress.set(1.0); if(d.state=='success') { toastr.success(d.msg); setTimeout(function(){location.href='{THIS_LOCAL}';},1500); } else { toastr.error(d.msg); } } }) } }); $(".del").click(function(){ var url=$(this).attr("rel"); layer.confirm( '确定要删除此日志?<div style="color:#f30;">系统保留一个月内的日志</div>', { btn: ['确定','取消'] }, function() { $.ajax({ url:url,type:'post',dataType:'json', error:function(e){alert(e.responseText);}, success:function(d) { layer.closeAll(); if(d.state=='success') { toastr.success(d.msg); setTimeout(function(){location.href='{THIS_LOCAL}';},1000); } else { toastr.error(d.msg); } } }) }, function() { }); }) }) </script> </body> </html>