Commit eee5407e by 冷斌

update

parent 7477780d
......@@ -79,16 +79,18 @@ class AdminlogController extends AdminbaseController {
$xlsData=$AdminLog->where($map)->order("addtime DESC")->select();
foreach ($xlsData as $k => $v)
{
$xlsData[$k]['msg_type']=$this->msg_type[$v['type']];
// $xlsData[$k]['msg_type']=$this->msg_type[$v['type']];
$xlsData[$k]['addtime']=date("Y-m-d H:i:s",$v['addtime']);
$xlsData[$k]['ip']=long2ip($v['ip']);
}
$cellName = array('A','B','C','D','E');
$xlsCell = array(
array('id','序号'),
array('msg_type','信息类型'),
array('account','接收账号'),
array('content','信息内容'),
array('addtime','提交时间'),
array('adminid','管理员ID'),
array('admin','管理员'),
array('action','操作'),
array('ip','IP'),
array('addtime','时间'),
);
exportExcel($xlsName,$xlsCell,$xlsData,$cellName);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment