发布日期: 2023-07-10 | 来源: 智软设计工作室
改动:/apps/admin/controller/member/Membercontroller.php增加一个函数
}
改动:/apps/admin/model/member/Membermodel.php增加一个函数
exmember.html代码,
<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>会员记录导出</title>
<style>
table,table tr th, table tr td{
border:1px solid #333;
}
table tr th, table tr td{
padding:2px 5px;
}
.text{
mso-number-format:@;
}
table{
margin:10px 0;
border-collapse:collapse;
}
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:Print>
<x:ValidPrinterInfo />
</x:Print>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
<![endif]-->
</head>
<body>
<table class="layui-table">
<thead>
<tr>
<th>ID</th>
<th>用户名</th>
<th>手机号</th>
<th>名称</th>
<th>注册时间</th>
</tr>
</thead>
<tbody>
{foreach $Member(key,value,num)}
<tr>
<td>[value->id]</td>
<td>[value->username]</td>
<td>[value->usermobile]</td>
<td>[value->nickname]</td>
<td>[value->register_time]</td>
</tr>
{/foreach}
</tbody>
</table>
</body>
</html>member.html模板
加入一个导出按钮
指向:<a href="/002t-admin.php?p=/Member/export" class="layui-btn layui-btn-sm">导出记录</a>
2024-08-19
Swiper轮播图视频加图片混合,完美解决方法,还加入了图片浮动文字动画。下面是代码。测试是比较完美。视频播放玩了。在自动切换到下一个幻灯,<!DOCTYPEhtml><htmllang="zh"><head><metacharset="UTF-8">
阅读更多2022-12-06
测试微信可用<meta property="og:type"content="image"/> <meta property="og:image"content="https://www.002t.cn/logo.jpg"/>og是一种新的HTTP头部标记,即Open Graph Protocol:作用是让网页成为一个“富媒体对象”。用了Meta Property=og标签,
阅读更多2024-05-09
主要是 这个标签{pboot:list scode={sort:scode} num=8 order=sorting page=1}{pboot:list scode={sort:scode} num=8 order=sorting page=1} <div class="col-12 col-sm-6 col-lg-3 featureCol mb-7 item"> <div class="border">&nb
阅读更多2022-12-22
阿里云虚拟主机和阿里云云服务器phpmailer无法发邮件,提示无法链接,解决办法如下:如果是虚拟主机。进入控制面板:启用PHP函数fsockopen。如果是云服务器也要启用这个函数。和网络策略里ssl端口465
阅读更多2023-05-04
<divid="dituchor"></div><script>window.addEventListener("load",function(){variDiv=document.createElement('iframe');iDiv.id='iframe1&
阅读更多2024-08-19
修改文件/apps/home/controller/ExtLabelController.php1,找到代码$this->test();在下方添加代码$this->ismobile();2,新增ismobile()函数//判断是否移动端设备privatefunctionismobile(){&nbs
阅读更多2023-02-22
需要添加一段css代码:* { -webkit-touch-callout:none;/*系统默认菜单被禁用*/ -webkit-user-select:none;/*webkit浏览器*/ -khtml-user-select:none;/*早起浏览器*/ -moz-user-select:none;/*火狐浏览器*/ -
阅读更多2024-02-01
默认的ueditor编辑器会转换div为P,和过滤了一些style样式 以及一些自定义的标签,如aos="fade-up",下面告诉大家怎么设置。打开ueditor.config.js,如果已经有了一下代码,把他们的参数ture改成false,如果没有直接加入进去,// 允许进入编辑器的 div 标签自动变成 p 标签,allowDivTransToP:false,xxsFilt
阅读更多