Edit D:\xinhaisoft\crisis_new\member\changebirthday.htm
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="renderer" content="webkit"> <title>?????????</title> <link rel="stylesheet" href="/Scripts/amazeui-beta/css/amazeui.min.css"> <style> .am-container { max-width: 800px; } </style> </head> <body> <br> <div class="am-container"> <h1>??????????????</h1> <hr> <form class="am-form"> <div class="am-form-group"> <input type="text" id="birthday" class="am-form-control" placeholder="????????YYY-MM-DD" autocomplete="off" required> </div> <button type="submit" class="am-btn am-btn-primary">???</button> </form> </div> <script src="/Scripts/jquery.min.js"></script> <script src="/Scripts/layer/layer.js"></script> <script src="/Scripts/store2.min.js"></script> <script src="/Scripts/dayjs/dayjs.min.js"></script> <script src="/Scripts/amazeui-beta/js/amazeui.min.js"></script> <script src="/Scripts/getquerystring.js"></script> <script src="/Scripts/global.js"></script> <script> $(function () { // ?????D var id = GetQueryString('id') var redirect = GetQueryString('redirect') // ?????? $('form').on('submit', function () { var birthday = $('#birthday').val() if (/^(19|20)\d{2}-((0?[1-9])|(1[0-2]))-((0?[1-9])|([1-2]\d)|30|31)$/.test(birthday)) { var age = dayjs().diff(birthday, 'year') if (age > 0) { layer.load() $.ajax(Global.Host + '/member/' + id + '/birthday', { method: 'post', data: { b: birthday }, success: function (json) { if (json.code === 0) { setTimeout(function () { layer.closeAll() layer.alert('??????????????', function () { store.add('user', { age: age, birthday: birthday }) window.location.replace(redirect) }) }, 5000) } else { layer.closeAll() layer.alert(json.message) } } }) } else { layer.alert('???????????????') } } else { layer.alert('??????????????????') } return false }) }) </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de