本文简单介绍了PHP简单的签到功能
读取数据:前台ajax到后台,获取到当前年月已签到过的日期并返回显示。
写入数据:ajax发送签到数据到后台进行签到。
效果图如:
前台页面:
<!Doctype html><html xmlns=http://www.w3.org/1999/xhtml>
<head>
<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<style>
.main{width:600px; height:350px; background:gray; margin-left: auto; margin-right: auto; overflow:hidden;
-webkit-border-radius: 10px;
-moz-border-radius: 10px; }
.title{text-align:center; }
.date{float:left; padding-left:31px; }
.date1{float:left; width:20px; height:20px; padding-top:10px; padding-left:30px; padding-right:30px; }
.content{margin-left:25p