——今天实现的功能是前台表单上的保存按钮,将数据存到数据库中。
贴几段关键的代码:
.jsp
<span style="font-size:14px;"><form action="${ctx}/db5q/saveAddChild.do" method="post" id="AddChildForm">
<div id="button">
<input type="button" value="修改"/>
<input type="button" value="打印" />
<input type="button" value="关闭" />
<input type="submit" value="保存" />
<input type="button" value="提交" />
</div>
<!--表头-->
<br />
<h2 align="center">
<strong>农村留守儿童基本情况登记表</strong>
</h2>
<div style="float:left;margin-left:5%;">填报单位:(盖章)<input name="addChild.createName" id="createName" type="text" style="border:0"/> </div></span>
注:input name应与实体类名字对应。form是表单提交的方法。$是ajax特有方法,ctx是写好的路径,直接拿来引用即可。
Action
@Override
public String save(){
try {
addChildService.save(addChild);
}catch(Exception e){
e.printStackTrace();
jsonString = "{'success':false,'message':'"+e.getMessage()+",添加失败'}";
}
return SUCCESS;
}
注:保存方法save
DaoImpl
@SuppressWarnings("deprecation")
public String save(){
Session session = this.getHibernateTemplate().getSessionFactory().getCurrentSession();
session.connection();
try {
AddChild.save();
} catch (Exception e) {
e.printStackTrace();
<span style="white-space:pre"> </span>}
return SUCCESS;
}
这次新建.hbm.xml文件时又忘记了,贴一下流程。
有件好玩的事情,今天有个报错could not find a getter for……in class……
我就是那1%==
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="mytags.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" pageEncoding="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8" >
<script language="javascript" type="text/javascript" src="<%=basePath%>/js/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="<%=basePath%>/js//jquery.form.js"></script>
<script language="javascript" type="text/javascript" src="<%=basePath%>/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="<%=basePath%>/js/dics/StaticJsonUtil.js.jsp"></script>
<script language="javascript" type="text/javascript" src="AddChild.js"></script>
<script type="text/javascript" src="<%=basePath%>/ext3/adapter/ext/ext-base.gzjs"></script>
<script type="text/javascript" src="<%=basePath%>/ext3/ext-all.gzjs"></script>
<script type="text/javascript" src="<%=basePath%>/ext3/ext-lang-zh_CN.gzjs"></script>
<script type="text/javascript" src="<%=basePath%>/ext3/ux/Ext.ux.LovCombo.js"></script>
<script type="text/javascript" src="<%=basePath%>/ext3/ux/Toast.gzjs"></script>
<title>农村留守儿童基本情况登记表</title>
<style>
.table1{
align:center;
BORDER-RIGHT:#000000 1px solid; /* 显示右边框为1px,如果不想显示就为0px */
border-top:#000000 1px solid;/* 显示上边框为1px,如果不想显示就为0px */
BORDER-LEFT: #000000 1px solid;/* 显示左边框为1px,如果不想显示就为0px */
BORDER-BOTTOM:0px;/* 显下右边框为1px,如果不想显示就为0px */
}
.table2{
BORDER-RIGHT:#000000 1px solid; /* 显示右边框为1px,如果不想显示就为0px */
border-top:#000000 1px solid;/* 显示上边框为1px,如果不想显示就为0px */
BORDER-LEFT: 0px;/* 显示左边框为1px,如果不想显示就为0px */
BORDER-BOTTOM:0px;/* 显下右边框为1px,如果不想显示就为0px */
}
.table3{
BORDER-RIGHT:#000000 1px solid; /* 显示右边框为1px,如果不想显示就为0px */
border-top:#000000 1px solid;/* 显示上边框为1px,如果不想显示就为0px */
BORDER-LEFT: 0px;/* 显示左边框为1px,如果不想显示就为0px */
BORDER-BOTTOM:#000000 1px solid;/* 显下右边框为1px,如果不想显示就为0px */
}
.td2{
BORDER-RIGHT:0px; /* 显示右边框为1px,如果不想显示就为0px */
border-top:#000000 1px solid; /* 显示上边框为1px,如果不想显示就为0px */
BORDER-LEFT: #000000 1px solid;/* 显示左边框为1px,如果不想显示就为0px */
BORDER-BOTTOM:0px;/* 显下右边框为1px,如果不想显示就为0px */
}
.td1{
BORDER-RIGHT:#000000 1px solid; /* 显示右边框为1px,如果不想显示就为0px */
BORDER-LEFT: #000000 1px solid;
border-top:0px;/* 显示左边框为1px,如果不想显示就为0px */
BORDER-BOTTOM:0px;
table-layout: fixed;
}
.td3{
BORDER-RIGHT:0px; /* 显示右边框为1px,如果不想显示就为0px */
BORDER-LEFT: #000000 1px solid;
border-top:0px;/* 显示左边框为1px,如果不想显示就为0px */
BORDER-BOTTOM:0px;
table-layout: fixed;
}
.t1{
text-align:center;
line-height:45px;
height:45px;
}
table tr td{
border:1px solid "#000000";
text-align:center;
height:27px;
table-layout: fixed;
}
table{
border-collapse:collapse;
border:1px solid "#000000";
border-top-width:Opx;
}
/* #globle{
width:1200px;
margin:0 auto;
} */
input [type="textfield"],[type="date"]{
outline:0;
border:0;
}
#button{
float:right;
margin-right:5%;
}
/*
.DivSelect
{
float:left;
position: relative;
background-color: transparent;
overflow: hidden;
border-width:0px;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
}
/
.SelectList
{
position: relative;
background-color: transparent;
border-width: 0px;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
display:table-row;
overflow:hidden;
}*/
</style>
<script type="text/javascript">
//身份证号码的验证
function isCardNo(card){
// 身份证号码验证
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if(reg.test(card)){
return true;
}
else{
return false;
}
};
//初始化页面下拉框选项
function initData(){
initPage();
};
$(function(){
$("#addChildForm").ajaxForm({
beforeSubmit:function(){
var createName = document.getElementById("createName").value;
var name = document.getElementById("name").value;
var birthday = document.getElementById("birthday").value;
var idNumber = document.getElementById("idNumber").value;
var accountAddress = document.getElementById("accountAddress").value;
var address = document.getElementById("address").value;
var schoolName = document.getElementById("schoolName").value;
var schoolAddress = document.getElementById("schoolAddress").value;
var sickenStyle = document.getElementById("sickenStyle").value;
var fatherName = document.getElementById("fatherName").value;
var motherName = document.getElementById("motherName").value;
var fatherIdNumber = document.getElementById("fatherIdNumber").value;
var motherIdNumber = document.getElementById("motherIdNumber").value;
var fatherWorkAddress = document.getElementById("fatherWorkAddress").value;
var motherWorkAddress = document.getElementById("motherWorkAddress").value;
var grandFatherName = document.getElementById("grandFatherName").value;
var grandMotherName = document.getElementById("grandMotherName").value;
var outGrandFatherName = document.getElementById("outGrandFatherName").value;
var outGrandMotherName = document.getElementById("outGrandMotherName").value;
var grandFatherBirthday = document.getElementById("grandFatherBirthday").value;
var grandMotherBirthday = document.getElementById("grandMotherBirthday").value;
var outGrandFatherBirthday = document.getElementById("outGrandFatherBirthday").value;
var outGrandMotherBirthday = document.getElementById("outGrandMotherBirthday").value;
var custodyRalation = document.getElementById("custodyRalation").value;
var custodyName = document.getElementById("custodyName").value;
var custodyTelNumber = document.getElementById("custodyTelNumber").value;
var custodyIdNumber = document.getElementById("custodyIdNumber").value;
var custodyAddress = document.getElementById("custodyAddress").value;
var villageManName = document.getElementById("villageManName").value;
var villageManTelNumber = document.getElementById("villageManTelNumber").value;
var villageManIdNumber = document.getElementById("villageManIdNumber").value;
if(createName==""){
alert("填报单位不能为空!");
return false;
}
else if(name ==""){
alert("姓名不能为空!");
return false;
}
else if(sex ==""){
alert("性别不能为空!");
return false;
}
else if(nation ==""){
alert("民族不能为空!");
return false;
}
else if(birthday ==""){
alert("出生日期不能为空!");
return false;
}
else if(idNumber ==""){
alert("身份证号码不能为空!");
return false;
}
else if(!isCardNo(idNumber)){
alert("儿童身份证号码格式输入不正确");
return false;
}
else if(accountAddress ==""){
alert("户籍地址不能为空!");
return false;
}
else if(address ==""){
alert("现居住地不能为空!");
return false;
}
else if(schoolName ==""){
alert("就读学校不能为空!");
return false;
}
else if(schoolAddress ==""){
alert("学校地址不能为空!");
return false;
}
else if(healthGrade ==""){
alert("身体情况不能为空!");
return false;
}
else if(disabilityStyle ==""){
alert("残疾类型不能为空!");
return false;
}
else if(disabilityGrade ==""){
alert("残疾等级不能为空!");
return false;
}
else if(sickenStyle ==""){
alert("患病类型不能为空!");
return false;
}
else if(education ==""){
alert("就学情况不能为空!");
return false;
}
else if(ifSleepInSchool ==""){
alert("是否学校寄宿不能为空!");
return false;
}
else if(fatherName ==""){
alert("父亲的姓名不能为空!");
return false;
}
else if(motherName ==""){
alert("母亲的姓名不能为空!");
return false;
}
else if(fatherIdNumber ==""){
alert("父亲的身份证号码不能为空!");
return false;
}
else if(!isCardNo(fatherIdNumber)){
alert("父亲身份证号码格式输入不正确");
return false;
}
else if(motherIdNumber ==""){
alert("母亲的身份证号码不能为空!");
return false;
}
else if(!isCardNo(motherIdNumber)){
return false;
}
else if(fatherWorkAddress ==""){
alert("父亲的务工地点不能为空!");
return false;
}
else if(motherWorkAddress ==""){
alert("母亲的务工地点不能为空!");
return false;
}
else if(grandFatherName ==""){
alert("祖父的姓名不能为空!");
return false;
}
else if(grandMotherName ==""){
alert("祖母的不能为空!");
return false;
}
else if(outGrandFatherName ==""){
alert("外祖父的姓名不能为空!");
return false;
}
else if(outGrandMotherName ==""){
alert("外祖母的姓名不能为空!");
return false;
}
else if(grandFatherBirthday ==""){
alert("祖父的出生日期不能为空!");
return false;
}
else if(grandMotherBirthday ==""){
alert("祖母的出生日期不能为空!");
return false;
}
else if(outGrandFatherBirthday ==""){
alert("外祖父的出生日期不能为空!");
return false;
}
else if(outGrandMotherBirthday ==""){
alert("外祖母的出生日期不能为空!");
return false;
}
else if(custodyStyle ==""){
alert("监护类型不能为空!");
return false;
}
else if(custodyCondition ==""){
alert("监护情况不能为空!");
return false;
}
else if(fatherAndMotherOut ==""){
alert("父母双方同时外出选项不能为空!");
return false;
}
else if(fatherOrMotherOut ==""){
alert("父母一方外出而另一方无监护能力选项不能为空!");
return false;
}
else if(noCustodyPower ==""){
alert("无监护能力选项不能为空!");
return false;
}
else if(custodyRalation ==""){
alert("与亲朋好友监护人关系不能为空!");
return false;
}
else if(custodyName ==""){
alert("亲朋监护人姓名不能为空!");
return false;
}
else if(custodyTelNumber ==""){
alert("亲朋监护人电话不能为空!");
return false;
}
else if(custodyIdNumber ==""){
alert("亲朋监护人身份证号码不能为空!");
return false;
}
else if(!isCardNo(custodyIdNumber)){
return false;
}
else if(custodyAddress ==""){
alert("受委托监护人居住地地址不能为空!");
return false;
}
else if(villageManName ==""){
alert("村(居)委会联系人姓名不能为空!");
return false;
}
else if(villageManTelNumber ==""){
alert("村(居)委会联系人电话不能为空!");
return false;
}
else if(villageManIdNumber ==""){
alert("村(居)委会联系人身份证号码不能为空!");
return false;
}
else if(!isCardNo(custodyIdNumber)){
return false;
}
var createTime = document.getElementById("year").value;
var month = document.getElementById("month").value;
var day = document.getElementById("day").value;
var createTime = createTime+month+day;
alert(createTime);
},
success:function(data){
if(data=="{success}"){
alert("保存成功...!");
}else{
alert("保存失败,请检查数据是否合法...!");
}
}
});
});
</script>
</head>
<body onLoad="initData();">
<form action="${ctx}/db5q/saveAddChild.do" method="post" id="AddChildForm">
<div id="button">
<input type="button" value="修改"/>
<input type="button" value="打印" />
<input type="button" value="关闭" />
<input type="submit" value="保存" />
<input type="button" value="提交" />
</div>
<!--表头-->
<br />
<h2 align="center">
<strong>农村留守儿童基本情况登记表</strong>
</h2>
<div style="float:left;margin-left:5%;">填报单位:(盖章)<input name="addChild.createName" id="createName" type="text" style="border:0"/> </div>
<div style="float:right; margin-right:10%;">填报日期:
<input class="t1" name="addChild.createtime" id="year" style="width:40%; height:80%;border:0;" type="input" name="permitDate" inputtype="date" id="permitDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly/>
</div>
<!--第一个table-->
<table align="center" class= "table1" width="90%" cellspacing="0" cellpadding="0">
<!--家庭基本情况-->
<td width="8%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left">家庭基本情况</td>
</tr>
</table>
</td>
<!-- 第一行-->
<td width="92%">
<table width="100%" cellspacing="0" cellpadding="0">
<tr >
<td class="td1" width="15%">姓名</td>
<td class="td1" width="20%"><input class="t1" name="addChild.name" id="name" type="text" style="width:97%; height:100%;border:0;"/></td>
<td class="td1" width="10%">性别</td>
<td class="td1" width="15%">
<input name="addChild.sex" id="sex" type="checkbox" value="man"/>男
<input name="addChild.sex" id="sex" type="checkbox" value="woman"/>女</td>
<td class="td1" width="10%">民族</td>
<td class="td3" width="22%">
<input type="text" name="addChild.nation" id="nation" class="t1" style="width:99%; height:100%;border:0;"> </td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- 第二行-->
<tr>
<td class="td2" width="15%">出生日期</td>
<td class="td2" width="20%"><input class="t1" name="addChild.birthday" id="birthday" style="width:99%; height:100%;border:0;" type="input" name="permitDate" inputtype="date" id="permitDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly/></td>
<!--数据库新增加-->
<td class="td2" width="10%">是否登记户口</td>
<td class="td2" width="15%">
<input name="addChild.check" id="check" type="checkbox" value="yes"/>是
<input name="addChild.check" id="check" type="checkbox" value="no"/>否</td>
<td class="td2" width="10%">公民身份号码</td>
<td class="td2" width="22%"><input type="text" name="addChild.idNumber" id="idNumber" class="t1" style="width:99%; height:100%;border:0;"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- 第三行 待修改地址改成下拉列表-->
<tr>
<td class="td2" width="15%">户籍所在地</td>
<td class="td2" width="77%">
广西壮族自治区<select name="addChild.city" id="city" style="width:10%;border:1px solid #000000">
<option>ffgfg</option>
</select>市
<select name="addChild.county" id="country" style="width:10%;border:0;border:1px solid #000000">
<option>rgdfgfg</option>
</select>县(市、区)
<select name="addChild.village" id="village" style="width:10%;border:0;border:1px solid #000000">
<option>2</option> </select>乡镇(街道)
<select name="addChild.community" id="community" style="width:10%; border:0;border:1px solid #000000;">
<option>5</option></select>村(社区)
</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- 第四行 待修改-->
<tr>
<td class="td2" width="15%">现居住地址</td>
<td class="td2"width="77%">
广西壮族自治区<select name="addChild.city" id="city" style="width:10%;border:1px solid #000000">
<option>ffgfg</option>
</select>市
<select name="addChild.county" id="country" style="width:10%;border:0;border:1px solid #000000">
<option>rgdfgfg</option>
</select>县(市、区)
<select name="addChild.village" id="village" style="width:10%;border:0;border:1px solid #000000">
<option>2</option> </select>乡镇(街道)
<select name="addChild.community" id="community" style="width:10%; border:0;border:1px solid #000000;">
<option>5</option></select>村(社区)
</td>
</tr>
</table>
<!-- 第五行改动-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="15%">身体情况</td>
<td class="td2" width="30%">
<input name="addChild.healthGrade" id="healthGrade" type="checkbox" value="healty"/>健康
<input name="addChild.healthGrade" id="healthGrade" type="checkbox" value="disabled"/>残疾
<input name="addChild.healthGrade" id="healthGrade" type="checkbox" value="sick"/>患病
</td>
<td class="td2" width="7%">残疾类别及等级</td>
<td class="td2" width="8%">
<input class="t1" type="text" name="addChild.disabilityStyle" id="disabilityStyle" style="width:97%; height:100%;border:0;"></td>
<td class="td2" width="10%">患病类型</td>
<td class="td2" width="7%"><input class="t1" type="text" name="addChild.sickenStyle" id="sickenStyle" style="width:95%; height:100%;border:0;"></td>
<td class="td2" width="7%">是否学习寄宿</td>
<td class="td2" width="8%">
<input name="addChild.lodgingschool" id="lodgingschool" type="checkbox" value="yes"/>是
<input name="addChild.lodgingschool" id="lodgingschool" type="checkbox" value="no"/>否
</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="15%">就学情况</td>
<td class="td2" width="77%">
<input name="addChild.education" id="education" type="checkbox" value="null"/>未入学
<input name="addChild.education" id="education" type="checkbox" value="kindergarten"/>幼儿园
<input name="addChild.education" id="education" type="checkbox" value="primaryschool"/>小学
<input name="addChild.education" id="education" type="checkbox" value="juniorschool"/>初中
<input name="addChild.education" id="education" type="checkbox" value="highschool"/>高中
<input name="addChild.education" id="education" type="checkbox" value="secondaryschool"/>中职
<input name="addChild.education" id="education" type="checkbox" value="leaveschool"/>辍学
<input name="addChild.education" id="education" type="checkbox" value="noshool"/>不在学
</td>
</tr>
</table>
</td>
</table>
<!--第二个table-->
<table align="center" width="90%" class="table1" cellspacing="0" cellpadding="0">
<!--家庭情况-->
<td class="td2" width="8%" rowspan=7 >家庭情况</td>
<!-- 第一行-->
<td width="92%">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td1" width="15%">父亲姓名</td>
<td class="td1" width="10%"><input class="t1" name="addChild.fatherName" id="fatherName" type="text" style="width:98%; height:100%;border:0;"/></td>
<td class="td1" width="10%">公民身份号码</td>
<td class="td1" width="17%"><input class="t1" name="addChild.fatherIdNumber" id="fatherIdNumber" type="text" style="width:98%; height:100%;border:0;"/>
<td class="td1"width="8%">当前务工地点</td>
<td class="td1" width="17%"><input class="t1" name="addChild.fatherWorkAddress" id="fatherWorkAddress" type="text" style="width:20%; height:100%;border:0;border-bottom:1px solid #000000"/>省<input class="t1" name="addChild.fatherWorkAddress" id="fatherWorkAddress" type="text" style="width:20%; height:100%;border:0;border-bottom:1px solid #000000"/>市</td>
<td class="td1" width="7%">联系电话</td>
<td class="td3" width="8%"><input class="t1" name="addChild.fatherPhoneNumber" id="fatherPhoneNumber" type="text" style="width:95%; height:80%;border:0;"/></td>
</tr>
</table>
<!-- 第二行-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="15%">母亲姓名</td>
<td class="td2" width="10%"><input class="t1" name="addChild.motherName" id="motherName" type="text" style="width:98%; height:100%;border:0;"/></td>
<td class="td2" width="10%">公民身份号码</td>
<td class="td2" width="17%"><input class="t1" name="addChild.motherIdNumber" id="motherIdNumber" type="text" style="width:98%; height:100%;border:0;"/>
<td class="td2"width="8%">当前务工地点</td>
<td class="td2" width="17%"><input class="t1" name="addChild.motherWorkAddress" id="motherWorkAddress" type="text" style="width:20%; height:100%;border:0;border-bottom:1px solid #000000"/>省<input class="t1" name="addChild.motherWorkAddress" id="motherWorkAddress" type="text" style="width:20%;height:90%;border:0;border-bottom:1px solid #000000"/>市</td>
<td class="td2" width="7%">联系电话</td>
<td class="td2" width="8%"><input class="t1" name="addChild.motherPhoneNumber" id="motherPhoneNumber" type="text" style="width:95%; height:80%;border:0;"/></td>
</tr>
</table>
<!-- 第三行-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="15%">祖父姓名</td>
<td class="td2" width="20%"><input class="t1" name="addChild.grandFatherName" id="grandFatherName" type="text" style="width:98%; height:90%;border:0;"/></td>
<td class="td2" width="10%">出生日期</td>
<td class="td2" width="7%"><input class="t1" style="width:80%; height:70%;border:0" type="input" name="addChild.grandFatherBirthday" inputtype="date" id="grandFatherBirthday" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly /></td>
<td class="td2"width="8%">祖母姓名</td>
<td class="td2" width="17%"><input class="t1" name="addChild.grandMotherName" id="grandMotherName" type="text" style="width:90%; height:100%;border:0;"/></td>
<td class="td2" width="7%">出生日期</td>
<td class="td2" width="8%"><input class="t1" style="width:80%; height:70%;border:0" type="input" name="addChild.grandFatherBirthday" inputtype="date" id="grandFatherBirthday" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly /></td>
</tr>
</table>
<!-- 第四行-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="15%">外祖父姓名</td>
<td class="td2" width="20%"><input class="t1" name="addChild.outGrandFatherName" id="outGrandFatherName" type="text" style="width:98%; height:90%;border:0;"/></td>
<td class="td2" width="10%">出生日期</td>
<td class="td2" width="7%"><input class="t1" style="width:80%; height:70%;border:0" type="input" name="addChild.outGrandFatherBirthday" inputtype="date" id="outGrandFatherBirthday" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly /></td>
<td class="td2"width="8%">外祖母姓名</td>
<td class="td2" width="17%"><input class="t1" name="addChild.grandMotherName" id="grandMotherName" type="text" style="width:90%; height:100%;border:0;"/></td>
<td class="td2" width="7%">出生日期</td>
<td class="td2" width="8%"><input class="t1" style="width:80%; height:70%;border:0" type="input" name="addChild.outGrandMotherBirthday" inputtype="date" id="outGrandMotherBirthday" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'});" readonly /></td>
</tr>
</table>
</td>
</table>
<!--第三个表-->
<table align="center" width="90%" class="table1" cellspacing="0" cellpadding="0">
<td class="td2" width="8%" rowspan=4>实际监护情况</td>
<td width="92%">
<table width="100%" cellspacing="0" cellpadding="0">
<!-- 第一行-->
<tr>
<td class="td1" width="15%">监护类型</td>
<td class="td3" width="77%">
<input name="addChild.custodyStyle" id="custodyStyle" type="checkbox" value="noman"/>无人监护
<input name="addChild.custodyStyle" id="custodyStyle" type="checkbox" value="relative"/>(外)祖父母监护
<input name="addChild.custodyStyle" id="custodyStyle" type="checkbox" value="friends"/>亲朋监护</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- 第二行-->
<tr>
<td class="td2" width="15%">父母双方同时外出</td>
<td class="td2" width="30%">
<input name="addChild.fatherAndMotherOut" id="fatherAndMotherOut" type="checkbox" value="yes"/>是
<input name="addChild.fatherAndMotherOut" id="fatherAndMotherOut" type="checkbox" value="no"/>否
</td>
<td class="td2" width="15%">父母一方外出而另一方无监护能力</td>
<td class="td2" width="17%">
<input name="addChild.fatherOrMotherOut" id="fatherOrMotherOut" type="checkbox" value="yes"/>是
<input name="addChild.fatherOrMotherOut" id="fatherOrMotherOut" type="checkbox" value="no"/>否</td>
<td class="td2" width="7%">无监护能力</td>
<td class="td2" width="8%">
<input name="addChild.noCustodyPower" id="noCustodyPower" type="checkbox" value="father"/>父亲
<input name="addChild.noCustodyPower" id="noCustodyPower" type="checkbox" value="mother"/>母亲</td>
</tr>
</table>
<!-- 第三行-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="15%">与亲朋好友监护人关系</td>
<td class="td2" width="10%"><input class="t1" name="addChild.custodyRalation" id="custodyRalation" type="text" style="width:80%; height:90%;border:0;"></td>
<td class="td2" width="10%">亲朋监护人姓名</td>
<td class="td2" width="10%"><input class="t1" name="addChild.custodyName" id="custodyName" type="text" style="width:80%; height:90%;border:0;"></td>
<td class="td2" width="7%">亲朋监护人电话</td>
<td class="td2" width="8%"><input class="t1" name="addChild.custodyTelNumber" id="custodyTelNumber" type="text" style="width:94%; height:100%;border:0;"></td>
<td class="td2" width="10%">亲朋监护人公民身份号码</td>
<td class="td2" width="22%"><input class="t1" name="addChild.custodyIdNumber" id="custodyIdNumber" type="text" style="width:94%; height:100%;border:0;"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- 第四行-->
<tr>
<td class="td2" width="25%">受委托监护人居住地地址</td>
<td class="td2" width="67%"><input class="t1" name="addChild.custodyAddress" id="custodyAddress" type="text" style="width:99%; height:100%;border:0;"></td>
</tr>
</table>
</td>
</table>
<!--第四个表-->
<table align="center" class="table1" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td class="td2" width="8%">家庭经济来源</td>
<td class="td1" width="92%">
<input type="checkbox" id="chenck1" name="addChild.familyMoneySource" value="1" > 打工收入
<input type="checkbox" name="addChild.familyMoneySource" value="2"> 种养殖业
<input type="checkbox" name="addChild.familyMoneySource" value="3"> 政府救助
<input type="checkbox" name="addChild.familyMoneySource" value="4"> 亲朋接济
<input type="checkbox" name="addChild.familyMoneySource" value="5"> 其他</br>
<span style="color:red;float:right">*注:以上选项可多选</span></td>
</tr>
</table>
<table align="center" class="table1" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td class="td1" width="8%">救助帮扶情况</td>
<td class="td3" width="92%">
<input type="checkbox" name="addChild.helpCondition" value="1" checked="true"> 享受低保
<input type="checkbox" name="addChild.helpCondition" value="2"> 临时救助
<input type="checkbox" name="addChild.helpCondition" value="3"> 医疗救助
<input type="checkbox" name="addChild.helpCondition" value="4"> 住房救助
<input type="checkbox" name="addChild.helpCondition" value="5"> 其他救助</br>
<span style="color:red;float:right">*注:以上选项可多选</span></td>
</tr>
</table>
<!--第五个表-->
<table align="center" class="table3" width="90%" cellspacing="0" cellpadding="0">
<tr >
<td class="td2" width="23%">村(居)委会联系人姓名</td>
<td class="td2" width="30%"><input class="t1" type="text" name="addChild.villageManName" id="villageManName" style="width:80%; height:90%;border:0;"></td>
<td class="td2" width="15%">村(居)委会联系人电话</td>
<td class="td2" width="32%"><input class="t1" type="text" name="addChild.villageManTelNumber" id="villageManTelNumber" style="width:80%; height:80%;border:0;"></td>
</tr>
</table>
<div style="float:left; margin-bottom:10px;margin-left:5%;">单位负责人(签名):<input class="t1" type="text" style="width:20%; height:90%;border:0;"/> </div>
<div style="float:left; margin-bottom:10px;margin-left:12%;">复核人(签名):<input class="t1" type="text" style="width:20%; height:90%;border:0;"/></div>
<div style="float:right; margin-bottom:10px;margin-right:5%;">填表人(签名):<input class="t1" type="text" style="width:20%; height:90%;border:0;"/></div>
<div style="float:left; margin-bottom:10px;margin-left:5%;">
<p>注:1.农村留守儿童:因父母双方连续外出务工3个月以上或一方连续外出务工3个月以上另一方无监护能力,无法与父母正常共同生活的不满十六周岁农村户籍未成年人。
</br>
2.各年龄段农村留守儿童按照0-5周岁、6(含)-13周岁、14(含)-16周岁三个年龄阶段划分。不满十六周岁农村刘硕儿童年龄计算时间截至2016年7月31日。
</br>
3.选择项目在“□”中划“√”。祖父母、外祖父母去世或父母一方死亡的,在相应填报内容中划“——”。
</br>
4.患病:是指患有重特大疾病或严重精神障碍。
</br>
3.辍学:义务教育阶段辍学的农村留守儿童;不在学:14岁至16岁未在学的农村留守儿童。
</br>
6.监护情况评估:①较好:委托监护人较好履行监护职责,留守儿童在生活、教育、身心健康等方面得到较好保障;②一般:委托监护人能基本履行监护职责,留守儿童生活、教育、身心健康等方面得到基本保障,但未成年人有产生行为偏差、心理失当等情况的潜在危险。③差:无人监护、父母一方外出务工另一方无监护能力或委托监护人监护教育能力不足,留守儿童生活、教育、身心发展得不到有效保障,极易或已经出现行为偏差、心理失当、辍学、外出流浪乞讨等非正常情况。
</br>
7.父母外出务工地点填写到XXX省(区、市)XXX市。
</p>
</div>
</form>
</body>
</html>
我就是那1%==