<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../taglib/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${ctx}" />
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
var ctx = '${ctx}';
</script>
<title>档案管理新增</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="js/common/jquery-ui-1.10.3/themes/base/jquery.ui.all.css" />
<link rel="stylesheet" type="text/css" href="js/common/jPaginate/css/style.css" />
<script src="js/common/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="js/common/jquery-ui-1.10.3/ui/jquery-ui.js"></script>
<script src="js/common/jquery.cookie.js" type="text/javascript"></script>
<script src="js/common/html5.js" type="text/javascript"></script>
<script src="js/common/Validform_v5.3.2_min.js" type="text/javascript"></script>
<script src="js/common/datepicker/WdatePicker.js" type="text/javascript"></script>
<script src="js/common/jPaginate/jquery.paginate.js" type="text/javascript"></script>
<style type="text/css">
.validnum{
border-color: red;
}
</style>
<script>
$(function() {
$("#tabs").tabs(); $(".infoForm").Validform({
tiptype: function(msg, o, cssctl) {
if (!o.obj.is("form")) {
var objtip = o.obj.siblings(".Validform_checktip");
cssctl(objtip, o.type);
objtip.text(msg);
} else {
var objtip = o.obj.find("#msgdemo");
cssctl(objtip, o.type);
objtip.text(msg);
}
},
showAllError : true,
ajaxPost : true,
callback : function(data) {
if(data.status=="y"){
alert(data.message);
location.href = "ShipInfo/shipInfoListAction.do";
}else{
alert(data.message);
}
}
}); });
</script>
</head>
<body>
<div class="mainright minheight">
<div class="content">
<p class="title">
首页 » <span>档案管理新增</span>
</p>
<span class="line"></span>
<div class="shipdetails">
<form class="infoForm" action="ShipInfo/add_j.do">
<button type="submit">发布</button>
<button type="button" onclick="history.go(-1)">返回</button>
<div id="tabs">
<ul>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-1">船舶资料</a></li>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-2">船体部分</a></li>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-3">吨位</a></li>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-4">主机</a></li>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-5">船舶所有人</a></li>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-6">船舶管理公司</a></li>
<li><a href="ShipInfo/ShipInfo_add.jsp#tabs-7">船舶经营人</a></li>
</ul>
<div id="tabs-1">
<dl>
<dt><label>船名:</label></dt>
<dd><s:textfield name="shipInfo.vesselName" datatype="*"/><font style="color:red;">*</font><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>原船名:</label></dt>
<dd><s:textfield name="shipInfo.origVesselName" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>MMSI:</label></dt>
<dd><s:textfield name="shipInfo.mmsi" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>IMO:</label></dt>
<dd><s:textfield name="shipInfo.imo" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>呼号:</label></dt>
<dd><s:textfield name="shipInfo.callSign"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>船舶类型:</label></dt>
<dd><s:textfield name="shipInfo.subType" datatype="*"/><font style="color:red;">*</font><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>船速:</label></dt>
<dd><s:textfield name="shipInfo.speed" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>船级社:</label></dt>
<dd><s:textfield name="shipInfo.classedBy" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>船籍港:</label></dt>
<dd><s:textfield name="shipInfo.portOfRegistry" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>船籍:</label></dt>
<dd><s:textfield name="shipInfo.origOwner" datatype="*"/><font style="color:red;">*</font><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>原船籍:</label></dt>
<dd><s:textfield name="shipInfo.origCDOwner" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>造船厂:</label></dt>
<dd><s:textfield name="shipInfo.builder" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>造船地点:</label></dt>
<dd><s:textfield name="shipInfo.shipyardCountry" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>造船日期:</label></dt>
<dd><s:textfield name="shipInfo.contractDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd 00:00:00'})" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>安放龙骨日期:</label></dt>
<dd><s:textfield name="shipInfo.keelLaid" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd 00:00:00'})" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>下水日期:</label></dt>
<dd><s:textfield name="shipInfo.launched" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd 00:00:00'})" /><em class="Validform_checktip"></em></dd>
</dl>
<div class="clear"></div>
</div>
<div id="tabs-2">
<ul>
<dl>
<dt><label>船舱数:</label></dt>
<dd><s:textfield name="shipInfo.cabins" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>甲板数:</label></dt>
<dd><s:textfield name="shipInfo.decks" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>总长:</label></dt>
<dd><s:textfield name="shipInfo.loa" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>型深:</label></dt>
<dd><s:textfield name="shipInfo.depth" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>型宽:</label></dt>
<dd><s:textfield name="shipInfo.beam" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>吃水:</label></dt>
<dd><s:textfield name="shipInfo.draft" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>排水量:</label></dt>
<dd><s:textfield name="shipInfo.displacementTonnage" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>冷藏总容量:</label></dt>
<dd><s:textfield name="shipInfo.reeferCapacity" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>冷藏集装箱:</label></dt>
<dd><s:textfield name="shipInfo.reeferTEU" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>翼液货舱:</label></dt>
<dd><s:textfield name="shipInfo.tanksWing" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>液货舱:</label></dt>
<dd><s:textfield name="shipInfo.permanentBallastCapacity" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>中心液货舱:</label></dt>
<dd><s:textfield name="shipInfo.tanksCentre" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>甲板液货舱:</label></dt>
<dd><s:textfield name="shipInfo." /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>污水舱:</label></dt>
<dd><s:textfield name="shipInfo.tanksSlop" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>是否配置原油洗舱:</label></dt>
<dd><s:textfield name="shipInfo.crudeOilWashing" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>是否装有惰性气体:</label></dt>
<dd><s:textfield name="shipInfo.inertGasSystem" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
</ul>
<div class="clear"></div>
</div>
<div id="tabs-3">
<ul>
<dl>
<dt><label>总吨位:</label></dt>
<dd><s:textfield name="shipInfo.grossTonnage" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>载重吨:</label></dt>
<dd><s:textfield name="shipInfo.dwt" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>净吨:</label></dt>
<dd><s:textfield name="shipInfo.cgt" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
</ul>
<div class="clear"></div>
</div>
<div id="tabs-4">
<ul>
<dl>
<dt><label>主机制造商:</label></dt>
<dd><s:textfield name="shipInfo.engineBuilder" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>主机种类:</label></dt>
<dd><s:textfield name="shipInfo.engineMake" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>主机型号:</label></dt>
<dd><s:textfield name="shipInfo.engineModel" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>主机速率:</label></dt>
<dd><s:textfield name="shipInfo.engineRPM" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>主机性能:</label></dt>
<dd><s:textfield name="shipInfo.engineSpeed" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>主机燃料:</label></dt>
<dd><s:textfield name="shipInfo.engineType" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>主机总功率:</label></dt>
<dd><s:textfield name="shipInfo.engineHPTotal" datatype="n" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
</ul>
<div class="clear"></div>
</div>
<div id="tabs-5">
<ul>
<dl>
<dt><label>公司:</label></dt>
<dd><s:textfield name="addressandrep.companyName" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>邮编:</label></dt>
<dd><s:textfield name="addressandrep.postalCode" datatype="p" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>电话:</label></dt>
<dd><s:textfield name="addressandrep.telephone" datatype="ph" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>传真:</label></dt>
<dd><s:textfield name="addressandrep.facsimile" datatype="f" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>邮箱:</label></dt>
<dd><s:textfield name="addressandrep.emailNetwork" datatype="e" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>网址:</label></dt>
<dd><s:textfield name="addressandrep.line1LabelAddress" datatype="url" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人:</label></dt>
<dd><s:textfield name="shipInfo.owner" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人船籍:</label></dt>
<dd><s:textfield name="addressandrep." /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人电话:</label></dt>
<dd><s:textfield name="addressandrep." datatype="m" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人邮箱:</label></dt>
<dd><s:textfield name="addressandrep." datatype="e" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人邮编:</label></dt>
<dd><s:textfield name="addressandrep." datatype="p" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
</ul>
<div class="clear"></div>
</div>
<div id="tabs-6">
<ul>
<dl>
<dt><label>公司:</label></dt>
<dd><s:textfield name="addressandrep1.companyName" datatype="*"/><font style="color:red;">*</font><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>邮编:</label></dt>
<dd><s:textfield name="addressandrep1.postalCode" datatype="p" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>电话:</label></dt>
<dd><s:textfield name="addressandrep1.telephone" datatype="ph" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>传真:</label></dt>
<dd><s:textfield name="addressandrep1.facsimile" datatype="f" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>邮箱:</label></dt>
<dd><s:textfield name="addressandrep1.emailNetwork" datatype="e" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>网址:</label></dt>
<dd><s:textfield name="addressandrep1.line1LabelAddress" datatype="url" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人:</label></dt>
<dd><s:textfield name="shipInfo.manager" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人电话:</label></dt>
<dd><s:textfield name="addressandrep1." datatype="m" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人邮箱:</label></dt>
<dd><s:textfield name="addressandrep1." datatype="e" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
</ul>
<div class="clear"></div>
</div>
<div id="tabs-7">
<ul>
<dl>
<dt><label>公司:</label></dt>
<dd><s:textfield name="addressandrep2.companyName" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>邮编:</label></dt>
<dd><s:textfield name="addressandrep2.postalCode" datatype="p" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>电话:</label></dt>
<dd><s:textfield name="addressandrep2.telephone" datatype="ph" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>传真:</label></dt>
<dd><s:textfield name="addressandrep2.facsimile" datatype="f" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>邮箱:</label></dt>
<dd><s:textfield name="addressandrep2.emailNetwork" datatype="e" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>网址:</label></dt>
<dd><s:textfield name="addressandrep2.line1LabelAddress" datatype="url" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人:</label></dt>
<dd><s:textfield name="shipInfo.operator" /><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人电话:</label></dt>
<dd><s:textfield name="addressandrep2." datatype="m" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
<dl>
<dt><label>联系人邮箱:</label></dt>
<dd><s:textfield name="addressandrep2." datatype="e" ignore="ignore"/><em class="Validform_checktip"></em></dd>
</dl>
</ul>
<div class="clear"></div>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>

Validform 基于表单验证的更多相关文章

  1. SharePoint2010基于表单验证方法总结(转载)

    系统环境: win2008r2+ sql2008r2 +Visual Studio2010+sharepoint 2010 A.如果已经建立了web application  例如名字为: http: ...

  2. 基于jQuery的Validate表单验证

    表单验证可以说在前端开发工作中是无处不在的~ 有数据,有登录,有表单, 都需要前端验证~~  而我工作中用到最多的就是基于基于jQuery的Validate表单验证~  就向下面这样~ 因为今天有个朋 ...

  3. Validform表单验证总结

    近期项目里用到了表单的验证,选择了Validform_v5.3.2. 先来了解一下一些基本的参数: 通用表单验证方法:Demo: $(".demoform").Validform( ...

  4. Validform —— 再也不用担心“表单验证”!

    <!doctype html> <html> <head> <meta content="text/html" charset=" ...

  5. 【jquery】Validform,一款不错的 jquery 表单验证插件

    关于 Validform 这是一款很不错的 jquery 表单验证插件,它几乎能够满足任何验证需求,仅仅一行代码就能搞定整站的表单验证. $('form').Validform(); 为什么能如此方便 ...

  6. 表单验证之validform.js使用方法

    一.validform有什么用? 网页上有大量的input需要你进行验证的时候,如果是弹窗的话,需要不停地判断,如果为空,弹窗.如果不是数字,弹窗. 所以要将这么多验证交给一个js去验证. 二.我现在 ...

  7. Validform:一行代码搞定整站的表单验证!

    表单验证不再发愁,http://validform.rjboy.cn/

  8. 基于Jquery Validate 的表单验证

    基于Jquery Validate 的表单验证 jquery.validate.js是jquery下的一个验证插件,运用此插件我们可以很便捷的对表单元素进行格式验证. 在讲述基于Jquery Vali ...

  9. 一个PHP常用表单验证类(基于正则)

    一个基于正则表达式的PHP常用表单验证类,作者:欣然随风.这个表单判断类的功能有:验证是否为指定长度的字母/数字组合.验证是否为指定长度汉字.身 份证号码验证.是否是指定长度的数字.验证邮件地址.电话 ...

随机推荐

  1. elasticsearch 2.4.0执行update的时候发现的一个问题

    请关注inline参数的变化 正确: POST /test/type1/1/_update{ "script" : { "inline": "ctx. ...

  2. HDU 5318——The Goddess Of The Moon——————【矩阵快速幂】

    The Goddess Of The Moon Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/ ...

  3. [SDOI2013]刺客信条

    Description 故事发生在1486 年的意大利,Ezio 原本只是一个文艺复兴时期的贵族,后来因为家族成员受到圣殿骑士的杀害,决心成为一名刺客.最终,凭借着他的努力和出众的天赋,成为了杰出的刺 ...

  4. javascript移动端滑屏事件

    来看看在pc上面的几个事件:onmousedown,onmousemove,onmouseup 我相信大家对这几个事件一定不陌生,第一个onmousedown表示鼠标按下,第二个onmousemove ...

  5. sql 行列转换

    create table #test1(id int,name varchar(20), Q1 int, Q2 int, Q3 int, Q4 int) insert into #test1 valu ...

  6. 05.if结构

    分支结构:if  if-else 选择结构:if else-if switch-case 循环结构:while do-while for foreach if语句 语法: if(判断条件) { //要 ...

  7. Spring课程 Spring入门篇 5-1 aop基本概念及特点

    概念: 1 什么是aop及实现方式 2 aop的基本概念 3 spring中的aop 1 什么是aop及实现方式 1.1 aop,面向切面编程,比如:唐僧取经需要经过81难,多一难少一难都不行.孙悟空 ...

  8. Git回退到指定节点的版本

    1.获取某个历史版本的id(即change-id,每个版本唯一) 方法1:使用git log命令查看所有的历史版本,输入q便可退出. git log 方法2:使用gitk图形化界面查看节点信息.(在安 ...

  9. adnroid 自定义ProgressDialog加载中

    用来记录自己所用到的知识 前两天在做项目的时候发现有时候在访问网络数据的时候由于后台要做的工作较多,给我们返回数据的时间较长,所以老大叫我加了一个加载中的logo图用来提高用户体验. 于是就在网上找了 ...

  10. android,Exoplayer实现视频播放器

    bundle配置: implementation 'com.google.android.exoplayer:exoplayer-core:2.8.1'implementation 'com.goog ...