您好 退出  
管理信息

红色选框为必填选框

姓  名:
年  龄:
母亲姓名:
母亲年龄:
胎      次:
体  重: kg
身份证号:
家庭住址:
联系电话:
                        
$("#distpicker5").distpicker({ autoSelect: false }); var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name="teshujishu.xiangxi"]', { allowFileManager : true, filterMode: false, width : "800px", height : "400px", uploadJson : 'tw/jsp/upload_json.jsp', fileManagerJson : 'tw/jsp/file_manager_json.jsp' }); K('#selectImg').click(function() { editor.loadPlugin('image', function() { editor.plugin.imageDialog({ imageUrl : K('#image').val(), clickFn : function(url, title, width, height, border, align) { K('#image').val(url); $("#img_image").attr("src",url); $("#cctp").attr("href",url); $("#cctp").css("display","inline"); editor.hideDialog(); } }); }); }); }); function baocun(){ var flag = false; var xqxm = $('#muqinxingming').val(); var mqnl = $('#muqinnianling').val(); //var yunzhou = $('#yunzhou').val(); //var yuntian = $('#yuntian').val(); var dianhua = $('#dianhua').val(); var tizhong = $('#tizhong').val(); var shenfenzheng = $('#shenfenzheng').val(); var dizhi = $('#dizhi').val(); var dijitai = $('#dijitai').val(); var nianling = $('#nianling').val(); var nianling2 = $('#nianling2').val(); var xingming = $('#xingming').val(); /* var sheng = $('#province10').val(); var shi = $('#city10').val(); var qu = $('#district10').val(); */ if(xingming==null||xingming==''){ alert("请输入姓名"); $('#xingming').focus(); return false; } if(nianling==null||nianling==''){ alert("请输入年龄"); $('#nianling').focus(); return false; } if(nianling2==null||nianling2==''){ alert("请输入年龄"); $('#nianling2').focus(); return false; } if(xqxm==null||xqxm==''){ alert("请输入母亲姓名"); $('#muqinxingming').focus(); return false; } if(mqnl==null||mqnl==''){ alert("请输入母亲年龄"); $('#muqinnianling').focus(); return false; } /*if(sheng==null||sheng==''){ alert("请选择省份"); $('#province10').focus(); return false; } if(shi==null||shi==''){ alert("请选择城市"); $('#city10').focus(); return false; } if(qu==null||qu==''){ alert("请选择区县"); $('#district10').focus(); return false; }*/ if(dianhua==null||dianhua==''){ alert("请输入联系电话"); $('#dianhua').focus(); return false; } if(!(/(^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$)|(^((\(\d{3}\))|(\d{3}\-))?(1[358]\d{9})$)/.test(dianhua))){ alert("电话格式错误"); $('#dianhua').focus(); return false; } if(shenfenzheng!=null&&shenfenzheng!=''){ if(!(/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(shenfenzheng))){ alert("身份证号不合法"); $('#shenfenzheng').focus(); return false; } } if(dizhi==null||dizhi==''){ alert("请输入家庭住址"); $('#dizhi').focus(); return false; } if($('#iscaichao').prop("checked")){ if($('.lr24kchunshuai').val()==null||$('.lr24kchunshuai').val()==''){ alert('请填写彩超说明'); $('.lr24kchunshuai').focus(); return false; } } $("#lrfff").submit(); } function tijiao(){ var i = $("#lrlr").val(); location.href = "admin_xinshenger_tijiao.action?xinshengerxinxi.id="+i; } function discriCard(){ //获取输入身份证号码 var UUserCard = ""; //获取出生日期 UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(12, 14); //获取性别 if (parseInt(UUserCard.substr(16, 1)) % 2 == 1) { alert("男"); //是男则执行代码 ... } else { alert("女"); //是女则执行代码 ... } //获取年龄 var myDate = new Date(); var month = myDate.getMonth() + 1; var day = myDate.getDate(); var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1; if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) { age++; } alert(age); //年龄 age } function check2(){ var i=document.getElementById("muqinnianling").value; if ( isNaN(i) ) { alert("请输入整数"); document.getElementById("muqinnianling").value=""; } } function check(){ var i=document.getElementById("tizhong").value; if ( isNaN(i) ) { alert("请输入整数 或 小数 (保留两位小数)"); document.getElementById("tizhong").value=""; } } function check3(){ var i=document.getElementById("nianling").value; if ( isNaN(i) ) { alert("请输入整数"); document.getElementById("nianling").value=""; } } function check4(){ var i=document.getElementById("nianling2").value; if ( isNaN(i) ) { alert("请输入整数"); document.getElementById("nianling2").value=""; } } function check5(){ var i=document.getElementById("dijitai").value; if ( isNaN(i) ) { alert("请输入整数"); document.getElementById("dijitai").value=""; } }