Skip to content

Commit

Permalink
Merge pull request #207 from hahamg/master
Browse files Browse the repository at this point in the history
#3 提交实验代码
  • Loading branch information
zengsn authored Oct 18, 2016
2 parents bf70917 + b111d26 commit ea204b0
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions labs/1414080902222/index1.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<%@ page language="java" import="java.util.*" import="java.text.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="UTF-8">
<% SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日");
out.println(format.format(new Date()));%>
<title>比赛节目喜好调查</title>

<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>


</head>
<body>
<%
Date date = new Date();
date.getTime() ;
%>

<h3 align="center">比赛节目喜好调查</h3>
<form name="stu" action="">
<table>

<tr> <td>性别:</td>
<td><input type="radio" name="stuSex" checked="checked" >男
<input type="radio" name="stuSex" >女
</td>
</tr>
<tr> <td>出生日期</td>
<td><input type="text" name="stuBirthday" class="form-control"></td>
</tr>
<tr> <td>职业:</td><td><input type="text" name="jobs" class="form-control"></td></tr>
<tr><td>偏好:</td>
<td><select name ="stuSelect2">
<option selected>篮球</option>
<option >足球</option>
<option >拳击</option>
<option >游戏竞技</option>
<lect>
</td>
</tr>
<tr> <td>平时有看:</td>
<td colspan="2">
<input type="checkbox" name="stuCheck" >NBA
<input type="checkbox" name="stuCheck" >欧冠
<input type="checkbox" name="stuCheck" >WWE
<input type="checkbox" name="stuCheck" >LOL比赛
</td>
</tr>

<tr><td>您的建议:</td>
<td colspan="2"><textarea name="Letter" rows="4" cols="40" class="form-control"></textarea> </td>
</tr>
<tr>
<td><input id="btn" type="button" value="提交"><input type="reset" value="取消"></td>
</tr>
</table>
</form>
</body>
<script>
$("#btn").click(function(){
$.ajax({
url: "success.json"
}).done(function(data) {
if ( console && console.log ) {
console.dir(data);
alert(data.msg);
}
})
})
</script>
</html>

0 comments on commit ea204b0

Please sign in to comment.