<%@ page language="java" contentType="text/html; charset=utf-8"javascript
pageEncoding="utf-8"%>css
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">html
<html>java
<head>jquery
<%ajax
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";bootstrap
%>工具
<script type="text/javascript" src="<%=basePath %>/js/bussiness/jquery-1.9.1.min.js"></script>post
<script type="text/javascript" src="<%=basePath %>/js/bootstrap/bootstrap-tab.js"></script>ui
<link href="<%=basePath%>css/bootstrap/2.3.1/css_cerulean/bootstrap.min.css" rel="stylesheet" type="text/css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>開藍票工具</title>
<script type="text/javascript">
$(function(){
$('#fRed').submit(function() {
var ajax_url = "<%=basePath %>/manual/makeRedAction"; //表單目標
var ajax_type = $(this).attr('method'); //提交方法
var ajax_data = $(this).serialize(); //表單數據
$.ajax({
type:ajax_type, //表單提交類型
url:ajax_url, //表單提交目標
data:ajax_data, //表單數據
success:function(msg){
alert(msg);
}
});
return false;
});
});
</script>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#">手工開票工具</a>
<ul class="nav nav-pills">
<li class="active"><a href="#1" data-toggle="tab">人工全單紅票</a></li>
<li><a href="#2" style="margin-left:20px" data-toggle="tab">人工開藍票BySn</a></li>
<li><a href="#3" style="margin-left:20px" data-toggle="tab">人工開藍票ByLog</a></li>
</ul>
</div>
<div class="tab-content">
<div class="tab-pane active" id="1">
<h4>全單衝紅工具</h4>
<form id='fRed' action="" method="post">
訂單號:<input name="sn" type="text" size="30">
<button id="s1" class='btn btn-primary' style="margin-bottom: 18px;" type="submit">提交</button>
</form>
</div>
<div class="tab-pane" id="2">
<h4>開藍票工具</h4>
<form action="<%=basePath %>/manual/makeBlueByLogAction" method="post">
訂單號:<input name="sn" type="text" size="30">
<input class='btn btn-primary' style="margin-bottom: 18px;" type="submit"/>
</form>
</div>
<div class="tab-pane" id="3">
<h4>開藍票工具</h4>
<form action="<%=basePath %>/manual/makeBlueByLogAction" method="post">
入站日誌號:<input name="sn" type="text" size="30">
<input class='btn btn-primary' style="margin-bottom: 18px;" type="submit"/>
</form>
</div>
</div>
</div>
</body>
</html>