Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
tjmdp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
other-project
tjmdp
Commits
4f6e3a13
Commit
4f6e3a13
authored
Apr 01, 2019
by
liuchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8aa7be75
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
1996 deletions
+0
-1996
download.jsp
src/main/webapp/WEB-INF/pages/download.jsp
+0
-0
index.jsp
src/main/webapp/WEB-INF/pages/index.jsp
+0
-183
match.jsp
src/main/webapp/WEB-INF/pages/match.jsp
+0
-165
product.jsp
src/main/webapp/WEB-INF/pages/product.jsp
+0
-437
profile.jsp
src/main/webapp/WEB-INF/pages/profile.jsp
+0
-608
reg.jsp
src/main/webapp/WEB-INF/pages/reg.jsp
+0
-321
userList.jsp
src/main/webapp/WEB-INF/pages/userList.jsp
+0
-282
No files found.
src/main/webapp/WEB-INF/pages/download.jsp
deleted
100644 → 0
View file @
8aa7be75
src/main/webapp/WEB-INF/pages/index.jsp
deleted
100644 → 0
View file @
8aa7be75
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>
<head>
<style type="text/css">
body{
background:url(<webpath:path/>/resources/images/timg1.jpg);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100% 100%;
background-size:100% 100%;
background-attachment: fixed;
}
.h22 {
FONT-SIZE: 30px; font-family:PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,"sans-serif" !important;font-weight: bold; COLOR: #f0f0f0; FONT-WEIGHT: 5px;
}
.divTityle{
border-bottom: 1px solid rgba(255,255,255,0.3);
}
label.error{
color:#ff0000;
}
.text-indent{
text-indent:7em;
}
.widget-main p{
font-size: 15px;
}
</style>
</head>
<div class="main-container col-sm-12" style="padding:0px; margin:0px;">
<div class="main-content col-sm-12" style="padding:0px; margin:0px;">
<div class="row" style="width:100%;margin:0;">
<div class="col-sm-12" style="padding:0px; margin:0px;">
<div class="login-container divTityle" style="width:100%; height:80px;">
<div class="left col-sm-12 " style="height:0; padding:20px;padding-left:60px;" >
<img alt="logo" src="<webpath:path/>/resources/images/logo.png" height="40" style=""/>
<img alt="wz" src="<webpath:path/>/resources/images/wz.png" height="40" style="margin-top:5px; "/>
</div>
<div class="col-sm-12">
<div class="col-sm-1"></div>
<div class="col-sm-5" style="top:40px" >
<div class="" style="color:#f0f0f0">
<div class="">
<div class="widget-main">
<h2 class="h22" style=" margin-bottom:0px;">“一汽丰田杯”第二届工业工程与精益管理创新大赛</h2>
<h5 style="line-height:30px;text-indent:2em;" class="fontColor" >
中国大学生机械工程创新创意大赛——工业工程与精益管理创新大赛由中国机械工程学会和教育部高等学校工业工程类专业教学指导委员会联合主办,力求深入推进工业工程与精益管理创新方法技术的普及与应用,拓宽大学生的科技创新视野,为高校师生和社会各界搭建工业工程与精益管理创新成果的展示和经验交流平台。<br/><a href="<webpath:path/>/match" target="_blank" style="float:right;color:#ff0000;font-size:18px;font-weight: bolder;">详细内容...</a><br/>
</h5>
<p>大赛主办单位:中国机械工程学会 </p>
<p class="text-indent">教育部高等学校工业工程类专业教学指导委员会 </p>
<p>大赛承办单位:中国机械工程学会工业工程分会 </p>
<p>大赛协办单位:管理科学与工程学会工业工程与管理研究会 </p>
<p class="text-indent">天津市精益管理创新学会 </p>
<p class="text-indent">天津市工业工程学会 </p>
<p>决赛承办单位:天津大学管理与经济学部 </p>
<p>大赛冠名单位:天津一汽丰田汽车有限公司</p>
<br/><br/>
<br/><br/>
<br/><br/>
</div>
</div>
</div>
</div>
<div class="col-sm-4 login-layout" style="margin-left:9%" >
<div id="login-box" class="login-box visible widget-box no-border " style="width:380px; top:70px; padding:0px; ">
<div class="widget-body" >
<div class="widget-main" style="padding-bottom: 50px;">
<h4 class="header blue lighter bigger">
用户登录
</h4>
<div class="space-6"></div>
<form action="#" id="login_form" name="login_form">
<fieldset>
<label class="block clearfix">
<span class="block ">
<input type="text" class="form-control" placeholder="手机号" id="mobile" name="mobile" style="height:50px;"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="password" class="form-control" placeholder="密码" id="pwd" name="pwd" style="height:50px;"/>
</span>
</label>
<div class="space"></div>
<div class="clearfix">
<button type="button" class="pull-right btn btn-sm btn-primary col-sm-5" onclick="window.location.href='<webpath:path/>/reg'" style="height:50px;">
注册
</button>
<button type="submit" class="pull-left btn btn-sm btn-primary col-sm-5" style="height:50px;">
登录
</button>
</div>
</fieldset>
</form>
</div><!-- /widget-main -->
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div>
</div><!-- /position-relative -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div><!-- /.amin-container -->
<script type="text/javascript">
if("ontouchend" in document)
document.write("<script src='resources/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script type="text/javascript" src="resources/js/tools/jquerysession.js"></script>
<script type="text/javascript">
$().ready(function() {
$("#login_form").validate({
rules:{
mobile:{
required: true
},
pwd:{
required:true
}
},
messages:{
mobile:{
required:"请填写用户名!"
},
pwd:{
required:"请填写密码!"
}
},
submitHandler:function(form){
var mobile=$('#mobile').val();
var pwd=$('#pwd').val();
$.ajax({
type: 'POST',
url: '/api/signin',
dataType:'json',
data: {
mobile:mobile,
pwd:pwd
},
success: function(data){
var status = data.status;
if(status == 1){//注册成功
window.location.href = webPath + "/profile";
}else if(status == 0){
bootbox.dialog({
message:"请核对用户名或密码是否正确!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
} else if (status == 2){
window.location.href = webPath + "/api/user/list";
}
}
});
}
});
});
</script>
src/main/webapp/WEB-INF/pages/match.jsp
deleted
100644 → 0
View file @
8aa7be75
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>
<head>
<style type="text/css">
body{
background:url(<webpath:path/>/resources/images/timg1.jpg);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100% 100%;
background-size:100% 100%;
background-attachment: fixed;
}
.h22 {
FONT-SIZE: 28px; font-family:PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,"sans-serif" !important;font-weight: bold; COLOR: #f0f0f0; FONT-WEIGHT: 5px;
}
.divTityle{
border-bottom: 1px solid rgba(255,255,255,0.3);
}
label.error{
color:#ff0000;
}
.text-indent{
text-indent:9em;
}
.widget-main p{
font-size: 15px;
}
.footer{
position: inherit;
}
</style>
</head>
<div class="main-container col-sm-12" style="padding:0px; margin:0px;margin-bottom:100px;">
<div class="main-content col-sm-12" style="padding:0px; margin:0px;">
<div class="row" style="width:100%;margin:0;">
<div class="col-sm-12" style="padding:0px; margin:0px;">
<div class="login-container divTityle" style="width:100%; height:80px;">
<div class="left col-sm-12 " style="height:0; padding:20px;padding-left:60px;" >
<img alt="logo" src="<webpath:path/>/resources/images/logo.png" height="40" style=""/>
<img alt="wz" src="<webpath:path/>/resources/images/wz.png" height="40" style="margin-top:5px; "/>
</div>
<div class="col-sm-12">
<div class="col-sm-3"></div>
<div class="col-sm-6" style="top:40px" >
<div class="" style="color:#f0f0f0">
<div class="">
<div class="widget-main">
<p>2019年中国大学生机械工程创新创意大赛——</p>
<h2 class="h22" style=" margin-bottom:0px;text-align: center">“一汽丰田杯”第二届工业工程与精益管理创新大赛</h2>
<h4>一、大赛简介</h4>
<h5 style="line-height:30px; text-indent:2em; " class="fontColor" >
中国大学生机械工程创新创意大赛——工业工程与精益管理创新大赛由中国机械工程学会和教育部高等学校工业工程类专业教学指导委员会联合主办,力求深入推进工业工程与精益管理创新方法技术的普及与应用,拓宽大学生的科技创新视野,为高校师生和社会各界搭建工业工程与精益管理创新成果的展示和经验交流平台。<br/>
</h5>
<p style="text-indent:2em; ">大赛主办单位:中国机械工程学会 </p>
<p class="text-indent">教育部高等学校工业工程类专业教学指导委员会 </p>
<p style="text-indent:2em; ">大赛承办单位:中国机械工程学会工业工程分会 </p>
<p style="text-indent:2em; ">大赛协办单位:管理科学与工程学会工业工程与管理研究会 </p>
<p class="text-indent">天津市精益管理创新学会 </p>
<p class="text-indent">天津市工业工程学会 </p>
<p style="text-indent:2em; ">决赛承办单位:天津大学管理与经济学部 </p>
<p style="text-indent:2em; ">大赛冠名单位:天津一汽丰田汽车有限公司</p>
<br/><br/>
<h4>二、大赛主题</h4>
<h5 style="text-indent:2em; ">精益求精,强国创新。</h5>
<br/><br/>
<h4>三、参赛对象和报名方式</h4>
<p style="text-indent:2em; ">比赛以队为单位,参赛队分为本科生组、研究生组和业界组,每队2-4人。全国高校在校相关专业本专科大学生、研究生,各企事业单位相关从业人员均可组队报名参赛。各参赛队围绕大赛主题,根据各自情况自拟参赛作品的题目并自选相关内容参加比赛。</p>
<h5 style="text-indent:2em; "> 1. 本科生组</h5>
<p style="text-indent:2em; ">参赛队成员全部由高校本专科在读大学生组成,每个参赛队设领队1人,本校指导教师1人。</p>
<h5 style="text-indent:2em; "> 2. 研究生组</h5>
<p style="text-indent:2em; ">参赛队成员由高校硕博士在读研究生,或由高校硕博士在读研究生和本专科在读大学生共同组成,每个参赛队设领队1人,本校指导教师1人。</p>
<h5 style="text-indent:2em; "> 3. 业界组</h5>
<p style="text-indent:2em; ">参赛队成员由具有本专科以上学历,并在业界从事相关专业工作的毕业大学生成,每个参赛队设领队1人,不设指导教师。</p>
<p style="text-indent:2em; ">各单位参赛队数量每组不超过5个(含),应指定专人负责大赛报名的组织和协调工作,完成本单位参赛队伍内初选,并在大赛官网(<a href="http://www.ielean.cn">www.ielean.cn</a>)填报本单位参赛队伍信息等。</p>
<p style="text-indent:2em; "><a href="http://www.ielean.cn">http://www.ielean.cn</a>,是工业工程与精益管理创新大赛专用网站,该网站将于2019年2月中旬开通。</p>
<br/><br/>
<h4>四、大赛日程安排</h4>
<h5 style="text-indent:2em; ">1. 大赛启动(2019年1月10日至2019年2月20日)</h5>
<p style="text-indent:2em; ">大赛组委会发布通知启动大赛,通过各种方式广泛宣传,扩大大赛参与面。</p>
<h5 style="text-indent:2em; ">2. 作品征集及单位初选(2019年2月21日至2019年3月31日)</h5>
<p style="text-indent:2em; ">各参赛单位根据参赛作品要求进行作品征集,对参赛选手资格、参赛作品内容及水平进行审核,完成本单位初选,确定参赛队伍,并在大赛官网(<a href="http://www.ielean.cn">www.ielean.cn</a>)填写提交参赛队伍汇总表及各自参赛作品。</p>
<h5 style="text-indent:2em; ">3. 资格审查(2019年3月26日至2019年4月10日)</h5>
<p style="text-indent:2em; ">大赛组委会对参赛队资格和参赛作品进行形式审核,并返回参赛确认函。</p>
<h5 style="text-indent:2em; ">4. 初赛(2019年4月11日至2019年4月30日)</h5>
<p style="text-indent:2em; ">大赛组委会组织专家对提交的参赛作品进行匿名评审,并于4月30日前公示结果并发送决赛邀请函。</p>
<h5 style="text-indent:2em; ">5. 决赛(2019年5月)</h5>
<p style="text-indent:2em; ">大赛组委会统一组织现场答辩,由决赛参赛队进行PPT讲解和作品演示,并现场回答评委专家的提问。决赛具体时间和地点另行公布。</p>
<p style="text-indent:2em; ">如遇特殊情况需对赛程安排进行调整时,以大赛组委会公告为准。</p>
<br/><br/>
<h4>五、参赛作品要求</h4>
<p style="text-indent:2em; ">1.自2017年度至今,有实际应用经历并取得良好经济或社会效益的工业工程或精益管理创新案例;</p>
<p style="text-indent:2em; ">2.参赛作品必须由参赛者原创,无知识产权等纠纷,并且未提交参与本大赛以往各年比赛;</p>
<p style="text-indent:2em; ">3.各参赛队应在规定的截止时间内,通过大赛官网(<a href="http://www.ielean.cn">www.ielean.cn</a>)提交参赛作品的相关材料,包括参赛作品的总结汇报、作品的设计说明书或研究报告等文字、图纸、PPT材料、动画演示、试验录像等,文字部分要求在5000-8000字之间。</p>
<br/><br/>
<h4>六、评审办法</h4>
<p style="text-indent:2em; ">大赛分为初赛和决赛两个阶段。具体评审工作由大赛组委会负责实施。大赛评审专家由高校和业界相关领域专家组成,评审标准按大赛组委会制定的相关评审办法执行。</p>
<p style="text-indent:2em; ">评审主要考察参赛选手工业工程和精益管理理论水平、创新思维与创新能力等:</p>
<p style="text-indent:2em; ">(1)作品选题:选题紧扣学术或应用前沿,构思立意新颖,有创新;问题定义准确、清楚。</p>
<p style="text-indent:2em; ">(2)研究方法:工业工程或精益管理研究方法选择合理;能够正确使用方法解决问题;具有创新性应用和深刻思考。</p>
<p style="text-indent:2em; ">(3)效益效果:结果阐述清楚,有显著效益或效果;结论归纳总结深刻,具有明显的创新性成果;具有良好的推广应用价值。</p>
<p style="text-indent:2em; ">(4)团队能力:团队分工合理、任务明确、协作良好;现场表现自信、思路清晰、语言准确。</p>
<br/><br/>
<h4>七、赛事奖项设置</h4>
<p style="text-indent:2em; ">进入决赛的各类参赛队,通过现场评审分别竞争本类一、二、三等奖,原则上一、二、三等奖获奖比例为全部决赛队的1/6、1/3、1/2。大赛将为获奖队颁发获奖证书和奖励金:一等奖奖励金每队10000元,二等奖奖励金每队5000元,三等奖奖励金每队3000元。</p>
<p style="text-indent:2em; ">大赛将从一等奖中选拔大赛特等奖1-2名,颁发特等奖获奖证书、奖杯和特等奖奖励金每队20000元,特等奖与一等奖不兼得。</p>
<p style="text-indent:2em; ">大赛设立最佳组织奖,授予对大赛有突出贡献的单位和个人。</p>
<br/><br/>
<h4>八、联系方式</h4>
<p style="text-indent:2em; ">联系人:李建国13820510886;刘亮13920895968;毛照昉022-27403771</p>
<p style="text-indent:2em; ">大赛官方邮箱:chinaielean@163.com</p>
<br/><br/>
<h4>九、其他</h4>
<p style="text-indent:2em; ">1.参赛选手无需缴纳参赛费用,但其活动经费自行解决;</p>
<p style="text-indent:2em; ">2.一旦发现参赛者存在侵权、抄袭行为,大赛组委会有权取消其参赛资格,由此产生的侵权法律后果及责任全部由参赛者承担。已确认获奖的作品存在侵权行为时,大赛组委会有权取消获奖资格并追回已发放的奖金、证书和奖杯等所有奖励;</p>
<p style="text-indent:2em; ">3.本次通知中相关的附件材料请从大赛官网及各协办单位网站下载;</p>
<p style="text-indent:2em; ">4.大赛组委会对大赛拥有最终解释权。</p>
<br/><br/><br/><br/>
<p style="text-align: right;">“一汽丰田杯”第二届工业工程与精益管理创新大赛组委会</p>
<p style="text-align: right;">(中国机械工程学会工业工程分会代章)</p>
<p style="text-align: right;">2019年1月10日</p>
<br/><br/>
<p style="text-indent:2em; "><a href="<webpath:path/>/download/2019年“一汽丰田杯”第二届工业工程与精益管理创新大赛(第一轮通知).pdf" target="_blank">附:2019年“一汽丰田杯”第二届工业工程与精益管理创新大赛(第一轮通知).pdf</a></p>
<p style="text-indent:2em; "><a href="<webpath:path/>/download/2019年“一汽丰田杯”第二届工业工程与精益管理创新大赛(第一轮通知).docx" target="_blank">附:2019年“一汽丰田杯”第二届工业工程与精益管理创新大赛(第一轮通知).docx</a></p>
</div>
</div>
</div>
</div>
</div><!-- /position-relative -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div><!-- /.amin-container -->
src/main/webapp/WEB-INF/pages/product.jsp
deleted
100644 → 0
View file @
8aa7be75
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>
<head>
<style type="text/css">
body{
background:url(<webpath:path/>/resources/images/timg1.jpg);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100% 100%;
background-size:100% 100%;
background-attachment: fixed;
}
.h22 {
FONT-SIZE: 30px; font-family:PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,"sans-serif" !important;font-weight: bold; COLOR: #f0f0f0; FONT-WEIGHT: 5px;
}
.divTityle{
border-bottom: 1px solid rgba(255,255,255,0.3);
}
.form-control{
height:26px;
}
label.error{
color:#ff0000;
}
label.block{
margin-bottom:10px;
}
.a-upload {
padding: 6px 10px;
height: 25px;
line-height: 10px;
position: relative;
cursor: pointer;
color: #888;
background: #fafafa;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
display: inline-block;
*display: inline;
*zoom: 1;
float: left;
}
.a-upload input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
filter: alpha(opacity=0);
cursor: pointer;
height: 20px;
width: 75px;
}
.a-upload:hover {
color: #444;
background: #eee;
border-color: #ccc;
text-decoration: none
}
.upload-div {
height:35px;
line-height: 23px;
font-size: 14px;
}
.download-a {
margin-left:15px;
float: left;
}
</style>
</head>
<div class="main-container col-sm-12" style="padding:0px; margin:0px;">
<div class="main-content col-sm-12" style="padding:0px; margin:0px;">
<div class="row" style="width:100%;margin:0;">
<div class="col-sm-12" style="padding:0px; margin:0px;">
<div class="login-container divTityle" style="width:100%; height:80px;">
<div class="left col-sm-12 " style="height:0; padding:20px;padding-left:60px;" >
<img alt="logo" src="<webpath:path/>/resources/images/logo.png" height="40" style=""/>
<img alt="wz" src="<webpath:path/>/resources/images/wz.png" height="40" style="margin-top:5px; "/>
</div>
<div class="space-6"></div>
<div class="position-relative" style="top:100px" >
<div id="login-box" class="login-box visible widget-box no-border " style="width: 800px; margin-left: auto;margin-right: auto; padding: 0px;" >
<div class="widget-body" style="margin-bottom:100px;">
<div class="widget-main" style="padding: 40px;">
<h3 class="blue lighter bigger" style="text-align: left;height:50px;">${user.userName}</h3>
<div class="space-6"></div>
<form action="#" id="product_form" name="product_form" method="post" enctype='multipart/form-data' onsubmit="return false">
<fieldset>
<label class="block clearfix">
<span class="block col-sm-2 ">
作品名称:
</span>
<span class="block col-sm-10 ">
<input type="text" class="form-control" id="name" name="name" value="${product.name}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
作品摘要:
</span>
<span class="block col-sm-10 ">
<textarea rows="5" class="form-control" id="content1" name="content1">${product.content1}</textarea>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
作品思路和应用的理论方法:
</span>
<span class="block col-sm-10 ">
<textarea rows="5" class="form-control" id="content2" name="content2">${product.content2}</textarea>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
作品的创新性:
</span>
<span class="block col-sm-10 ">
<textarea rows="5" class="form-control" id="content3" name="content3">${product.content3}</textarea>
</span>
</label>
<div class="block clearfix upload-div">
<span class="block col-sm-2 ">
上传报名表:
</span>
<span class="block col-sm-10 ">
<a href="javascript:;" class="a-upload" id="enrollUpload">
<c:if test="${product.enroll==null || product.enroll==''}">
本地上传
</c:if>
<c:if test="${product.enroll!=null && product.enroll!=''}">
重新上传
</c:if>
<input type="file" id="enroll" name="enroll" accept="*" >
</a>
<a href="<webpath:path/>/api/product/download?type=enroll&fileName=${product.enroll}" target="_blank" id="enrollName" class="download-a"><c:if test="${product.enroll!=null && product.enroll!=''}">${product.enroll}</c:if></a>
</span>
</div>
<div class="block clearfix upload-div">
<span class="block col-sm-2 ">
上传报告:
</span>
<span class="block col-sm-10 ">
<a href="javascript:;" class="a-upload" id="reportUpload">
<c:if test="${product.report==null || product.report==''}">
本地上传
</c:if>
<c:if test="${product.report!=null && product.report!=''}">
重新上传
</c:if>
<input type="file" id="report" name="report" accept="*" >
</a>
<a href="<webpath:path/>/api/product/download?type=report&fileName=${product.report}" target="_blank" id="reportName" class="download-a"><c:if test="${product.report!=null && product.report!=''}">${product.report}</c:if></a>
</span>
</div>
<div class="block clearfix upload-div">
<span class="block col-sm-2 ">
上传PPT:
</span>
<span class="block col-sm-10 ">
<a href="javascript:;" class="a-upload" id="pptUpload">
<c:if test="${product.ppt==null || product.ppt==''}">
本地上传
</c:if>
<c:if test="${product.ppt!=null && product.ppt!=''}">
重新上传
</c:if>
<input type="file" id="ppt" name="ppt" accept="*" >
</a>
<a href="<webpath:path/>/api/product/download?type=ppt&fileName=${product.ppt}" target="_blank" id="pptName" class="download-a"><c:if test="${product.ppt!=null && product.ppt!=''}">${product.ppt}</c:if></a>
</span>
</div>
<div class="block clearfix upload-div">
<span class="block col-sm-2 ">
上传附件:
</span>
<span class="block col-sm-10 ">
<a href="javascript:;" class="a-upload" id="attachmentUpload">
<c:if test="${product.attachment==null || product.attachment==''}">
本地上传
</c:if>
<c:if test="${product.attachment!=null && product.attachment!=''}">
重新上传
</c:if>
<input type="file" id="attachment" name="attachment" accept="*" >
</a>
<a href="<webpath:path/>/api/product/download?type=attachment&fileName=${product.attachment}" target="_blank" id="attachmentName" class="download-a"><c:if test="${product.attachment!=null && product.attachment!=''}">${product.attachment}</c:if></a>
</span>
</div>
<div class="block clearfix upload-div">
<span class="block col-sm-12 " style="color:#428bca">
说明:报名表和报告请上传word文件,附件请上传.zip或.rar的压缩文件
</span>
</div>
<div class="space"></div>
<div class="clearfix" style="text-align: center;">
<button type="submit" class=" btn btn-sm btn-primary" style="width:200px;height: 40px;margin-left: auto;margin-right:auto;">
保存作品
</button>
<a href="<webpath:path/>/profile">返回</a>
</div>
<div class="space-4"></div>
</fieldset>
</form>
</div><!-- /widget-main -->
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div>
<script type="text/javascript">
if("ontouchend" in document)
document.write("<script src='resources/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script type="text/javascript" src="resources/js/tools/jquerysession.js"></script>
<script type="text/javascript">
$().ready(function() {
$("#product_form").validate({
rules:{
name:{
required: true
},
content1:{
required: true
},
content2:{
required: true
},
content3:{
required: true
}
},
messages:{
name:{
required:"请填写作品名称!"
},
content1:{
required:"请填写作品摘要!"
},
content2:{
required:"请填写作品思路和应用的理论方法!"
},
content3:{
required:"请填写作品的创新性!"
}
},
submitHandler:function(form){
var name=$('#name').val();
var content1=$('#content1').val();
var content2=$('#content2').val();
var content3=$('#content3').val();
$.ajax({
type: 'POST',
url: '/api/product/save',
dataType:'json',
data: {
name:name,
content1:content1,
content2:content2,
content3:content3
},
success: function(data){
var message = data.message;
if (message == "success"){
bootbox.dialog({
message:"作品提交成功!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
}
}
});
}
});
});
var uploading = false;
$("#enroll").on("change", function(){
Loading.start("正在上传");
if(uploading){
alert("文件正在上传中,请稍候");
return false;
}
fileupload("enroll");
});
$("#report").on("change", function(){
Loading.start("正在上传");
if(uploading){
alert("文件正在上传中,请稍候");
return false;
}
fileupload("report");
});
$("#ppt").on("change", function(){
Loading.start("正在上传");
if(uploading){
alert("文件正在上传中,请稍候");
return false;
}
fileupload("ppt");
});
$("#attachment").on("change", function(){
Loading.start("正在上传");
if(uploading){
alert("文件正在上传中,请稍候");
return false;
}
fileupload("attachment");
});
function fileupload(type){
var str = ""
if (type=="enroll"){
str = "报名表";
}
if (type=="report"){
str = "报告";
}
if (type=="ppt"){
str = "PPT";
}
if (type=="attachment"){
str = "附件";
}
$.ajax({
url: webPath + "/api/product/"+type+"/upload",
type: 'POST',
cache: false,
data: new FormData($('#product_form')[0]),
processData: false,
contentType: false,
dataType:"json",
beforeSend: function(){
uploading = true;
},
success : function(data) {
var status = data.status;
if (status==0){
var size = data.size;
if (size!=0){
bootbox.dialog({
message:"上传失败!文件过大," + str + "不能超过" + size +"M",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
}
} else if (status == 1){
bootbox.dialog({
message:"上传成功!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
$("#" + type + "Name").text(data.fileName);
$("#" + type + "Name").attr("href","<webpath:path/>/api/product/download?type=" + type + "&fileName=" + data.fileName)
$("#" + type + "Upload").text("重新上传");
}
uploading = false;
Loading.stop();
}
});
}
</script>
src/main/webapp/WEB-INF/pages/profile.jsp
deleted
100644 → 0
View file @
8aa7be75
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>
<head>
<style type="text/css">
body{
background:url(<webpath:path/>/resources/images/timg1.jpg);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100% 100%;
background-size:100% 100%;
background-attachment: fixed;
}
.h22 {
FONT-SIZE: 30px; font-family:PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,"sans-serif" !important;font-weight: bold; COLOR: #f0f0f0; FONT-WEIGHT: 5px;
}
.divTityle{
border-bottom: 1px solid rgba(255,255,255,0.3);
}
.form-control{
height:26px;
}
label.error{
color:#ff0000;
}
</style>
</head>
<div class="main-container col-sm-12" style="padding:0px; margin:0px;">
<div class="main-content col-sm-12" style="padding:0px; margin:0px;">
<div class="row" style="width:100%;margin:0;">
<div class="col-sm-12" style="padding:0px; margin:0px;">
<div class="login-container divTityle" style="width:100%; height:80px;">
<div class="left col-sm-12 " style="height:0; padding:20px;padding-left:60px;" >
<img alt="logo" src="<webpath:path/>/resources/images/logo.png" height="40" style=""/>
<img alt="wz" src="<webpath:path/>/resources/images/wz.png" height="40" style="margin-top:5px; "/>
</div>
<div class="space-6"></div>
<div class="position-relative" style="top:140px" >
<div id="login-box" class="login-box visible widget-box no-border " style="width: 745px; margin-left: auto;margin-right: auto; padding: 0px;" >
<div class="widget-body" style="margin-bottom:100px;">
<div class="widget-main" style="padding: 40px;">
<h3 class="blue lighter bigger" style="text-align: left;height:50px;" id="teamNameTitle">${user.teamName}</h3>
<div class="space-6"></div>
<form action="#" id="profile_form" name="profile_form" method="post" onsubmit="return false">
<fieldset>
<label class="block clearfix">
<span class="block col-sm-2 ">
编号:
</span>
<span class="block col-sm-10 ">
${user.userId}
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
团队名称:
</span>
<span class="block col-sm-10 ">
<input type="text" class="form-control" id="teamName" name="teamName" value="${user.teamName}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
单位名称:
</span>
<span class="block col-sm-10 ">
<input type="text" class="form-control" id="userName" name="userName" value="${user.userName}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
组别:
</span>
<span class="block col-sm-10 ">
<c:if test="${user.groups==1}">
本科生组
</c:if>
<c:if test="${user.groups==2}">
研究生组
</c:if>
<c:if test="${user.groups==3}">
业界组
</c:if>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
手机号:
</span>
<span class="block col-sm-10 ">
${user.mobile}
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
邮箱:
</span>
<span class="block col-sm-10 ">
<input type="text" class="form-control" id="email" name="email" value="${user.email}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
联系人:
</span>
<span class="block col-sm-10 ">
<input type="text" class="form-control" id="contacts" name="contacts" value="${user.contacts}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
指导老师:
</span>
<span class="block col-sm-2 ">
<input type="text" class="form-control" id="teacher" name="teacher" value="${user.teacher}"/>
</span>
<span class="block col-sm-1" style="padding:0;">
电话:
</span>
<span class="block col-sm-3" style="padding-left:0;">
<input type="text" class="form-control" id="teacherTel" name="teacherTel" value="${user.teacherTel}"/>
</span>
<span class="block col-sm-1" style="padding:0;">
邮箱:
</span>
<span class="block col-sm-3" style="padding-left:0;">
<input type="text" class="form-control" id="teacherEmail" name="teacherEmail" value="${user.teacherEmail}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
团队成员:
</span>
<span class="block col-sm-2 ">
姓名
</span>
<span class="block col-sm-2 " style="padding:0;">
性别
</span>
<span class="block col-sm-2 ">
电话
</span>
<span class="block col-sm-2 ">
邮箱
</span>
<span class="block col-sm-2 ">
年级、专业
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
</span>
<span class="block col-sm-2 " >
<input type="text" class="form-control" id="memberName1" name="memberName1" value="${user.memberName1}"/>
</span>
<span class="block col-sm-2 " style="padding-left:0;">
<select class="form-control" placeholder="性别" id="memberGender1" name="memberGender1" style="height: 26px;padding: 0px;">
<option value="">请选择</option>
<option value="male" <c:if test="${user.memberGender1=='male'}">selected="selected"</c:if>>男</option>
<option value="female" <c:if test="${user.memberGender1=='female'}">selected="selected"</c:if>>女</option>
</select>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberTel1" name="memberTel1" value="${user.memberTel1}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberEmail1" name="memberEmail1" value="${user.memberEmail1}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberGrade1" name="memberGrade1" value="${user.memberGrade1}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
</span>
<span class="block col-sm-2 " >
<input type="text" class="form-control" id="memberName2" name="memberName2" value="${user.memberName2}"/>
</span>
<span class="block col-sm-2 " style="padding-left:0;">
<select class="form-control" placeholder="性别" id="memberGender2" name="memberGender2" style="height: 26px;padding: 0px;">
<option value="">请选择</option>
<option value="male" <c:if test="${user.memberGender2=='male'}">selected="selected"</c:if>>男</option>
<option value="female" <c:if test="${user.memberGender2=='female'}">selected="selected"</c:if>>女</option>
</select>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberTel2" name="memberTel2" value="${user.memberTel2}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberEmail2" name="memberEmail2" value="${user.memberEmail2}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberGrade2" name="memberGrade2" value="${user.memberGrade2}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
</span>
<span class="block col-sm-2 " >
<input type="text" class="form-control" id="memberName3" name="memberName3" value="${user.memberName3}"/>
</span>
<span class="block col-sm-2 " style="padding-left:0;">
<select class="form-control" placeholder="性别" id="memberGender3" name="memberGender3" style="height: 26px;padding: 0px;">
<option value="">请选择</option>
<option value="male" <c:if test="${user.memberGender3=='male'}">selected="selected"</c:if>>男</option>
<option value="female" <c:if test="${user.memberGender3=='female'}">selected="selected"</c:if>>女</option>
</select>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberTel3" name="memberTel3" value="${user.memberTel3}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberEmail3" name="memberEmail3" value="${user.memberEmail3}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberGrade3" name="memberGrade3" value="${user.memberGrade3}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
</span>
<span class="block col-sm-2 " >
<input type="text" class="form-control" id="memberName4" name="memberName4" value="${user.memberName4}"/>
</span>
<span class="block col-sm-2 " style="padding-left:0;">
<select class="form-control" placeholder="性别" id="memberGender4" name="memberGender4" style="height: 26px;padding: 0px;">
<option value="">请选择</option>
<option value="male" <c:if test="${user.memberGender4=='male'}">selected="selected"</c:if>>男</option>
<option value="female" <c:if test="${user.memberGender4=='female'}">selected="selected"</c:if>>女</option>
</select>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberTel4" name="memberTel4" value="${user.memberTel4}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberEmail4" name="memberEmail4" value="${user.memberEmail4}"/>
</span>
<span class="block col-sm-2" style="padding-left:0;">
<input type="text" class="form-control" id="memberGrade4" name="memberGrade4" value="${user.memberGrade4}"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
修改密码:
</span>
<span class="block col-sm-10 ">
<input type='checkbox' name="changePassword" id="changePassword" value="" onchange="profile.changePassword();"/>
</span>
</label>
<div class="pw-div" style="display:none">
<label class="block clearfix">
<span class="block col-sm-2 ">
原密码:
</span>
<span class="block col-sm-10 ">
<input type="password" class="form-control col-sm-12" id="oldpwd" name="oldpwd"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
密码:
</span>
<span class="block col-sm-10 ">
<input type="password" class="form-control col-sm-12" id="pwd" name="pwd"/>
</span>
</label>
<label class="block clearfix">
<span class="block col-sm-2 ">
确认密码:
</span>
<span class="block col-sm-10 ">
<input type="password" class="form-control col-sm-12" id="confirmpassword" name="confirmpassword"/>
</span>
</label>
</div>
<label class="block clearfix">
<span class="block col-sm-2 ">
</span>
<span class="block col-sm-10 ">
说明:成员至少填写两人
</span>
</label>
<div class="space"></div>
<div class="clearfix" style="text-align: center;">
<a class="inline" >
</a>
<button type="submit" class="pull-left btn btn-sm btn-primary col-sm-5" style="height: 40px;">
保存信息
</button>
<button type="button" class="pull-right btn btn-sm btn-primary col-sm-5" onclick="window.location.href='<webpath:path/>/product'" style="height: 40px;">
提交作品
</button>
</div>
<div class="space-4"></div>
</fieldset>
</form>
</div><!-- /widget-main -->
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div>
<script type="text/javascript">
if("ontouchend" in document)
document.write("<script src='resources/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script type="text/javascript" src="resources/js/tools/jquerysession.js"></script>
<script type="text/javascript">
$().ready(function() {
jQuery.validator.addMethod("isMobile", function(value, element) {
var length = value.length;
var mobile = /^1[0-9]{10}$/;
return this.optional(element) || (length == 11 && mobile.test(value));
}, "手机格式不正确");
$("#profile_form").validate({
rules:{
teamName:{
required: true
},
teacher:{
required: function(){
var groups = ${user.groups};
if ( groups == 3){
return false;
}else {
return true;
}
}
},
email:{
required: true
},
contacts:{
required: true
},
memberName1:{
required: true
},
memberGender1:{
required: true
},
memberTel1:{
required: true
},
memberEmail1:{
required: true
},
memberGrade1:{
required: true
},
memberName2:{
required: true
},
memberGender2:{
required: true
},
memberTel2:{
required: true
},
memberEmail2:{
required: true
},
memberGrade2:{
required: true
},
oldpwd:{
required : "#changePassword:checked"
},
pwd:{
required : "#changePassword:checked"
},
confirmpassword:{
required : "#changePassword:checked",
equalTo:"#pwd"
}
},
messages:{
teamName:{
required: "请填写团队名称"
},
teacher:{
required:"请填写老师"
},
email:{
required:"请填写邮箱"
},
contacts:{
required:"请填写联系人"
},
memberName1:{
required: "请填写姓名"
},
memberGender1:{
required: "请选择性别"
},
memberTel1:{
required: "请填写电话"
},
memberEmail1:{
required: "请填写邮箱"
},
memberGrade1:{
required: "请填写年级专业"
},
memberName2:{
required: "请填写姓名"
},
memberGender2:{
required: "请选择性别"
},
memberTel2:{
required: "请填写电话"
},
memberEmail2:{
required: "请填写邮箱"
},
memberGrade2:{
required: "请填写年级专业"
},
oldpwd:{
required:"请填写原密码!"
},
pwd:{
required:"请填写密码!"
},
confirmpassword:{
required: "请再次填写密码!",
equalTo:"两次输入密码不一致!"
}
},
submitHandler:function(form){
var userName = $('#userName').val();
var teamName = $('#teamName').val();
var email =$('#email').val();
var oldpwd=$('#oldpwd').val();
var pwd=$('#pwd').val();
var confirmpassword=$('#confirmpassword').val();
var teacher=$('#teacher').val();
var teacherTel=$('#teacherTel').val();
var teacherEmail=$('#teacherEmail').val();
var contacts=$('#contacts').val();
var changePassword=$('#changePassword').val();
var memberName1=$('#memberName1').val();
var memberGender1=$('#memberGender1').val();
var memberTel1=$('#memberTel1').val();
var memberEmail1=$('#memberEmail1').val();
var memberGrade1=$('#memberGrade1').val();
var memberName2=$('#memberName2').val();
var memberGender2=$('#memberGender2').val();
var memberTel2=$('#memberTel2').val();
var memberEmail2=$('#memberEmail2').val();
var memberGrade2=$('#memberGrade2').val();
var memberName3=$('#memberName3').val();
var memberGender3=$('#memberGender3').val();
var memberTel3=$('#memberTel3').val();
var memberEmail3=$('#memberEmail3').val();
var memberGrade3=$('#memberGrade3').val();
var memberName4=$('#memberName4').val();
var memberGender4=$('#memberGender4').val();
var memberTel4=$('#memberTel4').val();
var memberEmail4=$('#memberEmail4').val();
var memberGrade4=$('#memberGrade4').val();
$.ajax({
type: 'POST',
url: '/api/user/save',
dataType:'json',
data: {
id:"${user.id}",
userName:userName,
teamName:teamName,
email:email,
pwd:pwd,
oldpwd:oldpwd,
teacher:teacher,
teacherTel:teacherTel,
teacherEmail:teacherEmail,
memberName1:memberName1,
memberGender1:memberGender1,
memberTel1:memberTel1,
memberEmail1:memberEmail1,
memberGrade1:memberGrade1,
memberName2:memberName2,
memberGender2:memberGender2,
memberTel2:memberTel2,
memberEmail2:memberEmail2,
memberGrade2:memberGrade2,
memberName3:memberName3,
memberGender3:memberGender3,
memberTel3:memberTel3,
memberEmail3:memberEmail3,
memberGrade3:memberGrade3,
memberName4:memberName4,
memberGender4:memberGender4,
memberTel4:memberTel4,
memberEmail4:memberEmail4,
memberGrade4:memberGrade4,
contacts:contacts,
changePassword:changePassword,
},
success: function(data){
console.info(data);
var message = data.message;
if (message == "oldPwdError"){
bootbox.dialog({
message:"原密码不正确,信息保存失败!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
}else{
bootbox.dialog({
message:"信息保存成功!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
$(".pw-div").fadeOut("fast");
$("#changePassword").prop("checked",false);
$("input[type='password']").val('');
$("#teamNameTitle").html(teamName);
}
}
});
}
});
});
var profile = {
changePassword: function(){
if ($("#changePassword").attr("checked") == "checked"){
$("#changePassword").val(true);
$(".pw-div").slideDown("fast");
}else{
$("#changePassword").val(false);
$(".pw-div").fadeOut("fast");
}
}
}
</script>
src/main/webapp/WEB-INF/pages/reg.jsp
deleted
100644 → 0
View file @
8aa7be75
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>
<head>
<style type="text/css">
body{
background:url(<webpath:path/>/resources/images/timg1.jpg);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100% 100%;
background-size:100% 100%;
background-attachment: fixed;
}
.h22 {
FONT-SIZE: 30px; font-family:PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,"sans-serif" !important;font-weight: bold; COLOR: #f0f0f0; FONT-WEIGHT: 5px;
}
.divTityle{
border-bottom: 1px solid rgba(255,255,255,0.3);
}
.form-control{
height:40px;
}
label.error{
color:#ff0000;
}
</style>
</head>
<div class="main-container col-sm-12" style="padding:0px; margin:0px;">
<div class="main-content col-sm-12" style="padding:0px; margin:0px;">
<div class="row" style="width:100%;margin:0;">
<div class="col-sm-12" style="padding:0px; margin:0px;">
<div class="login-container divTityle" style="width:100%; height:80px;">
<div class="left col-sm-12 " style="height:0; padding:20px;padding-left:60px;" >
<img alt="logo" src="<webpath:path/>/resources/images/logo.png" height="40" style=""/>
<img alt="wz" src="<webpath:path/>/resources/images/wz.png" height="40" style="margin-top:5px; "/>
</div>
<div class="space-6"></div>
<div class="position-relative" style="top:120px" >
<div id="login-box" class="login-box visible widget-box no-border " style="width: 500px; margin-left: auto;margin-right: auto; padding: 0px;" >
<div class="widget-body" style="margin-bottom:180px;">
<div class="widget-main" style="padding: 40px;">
<h3 class="blue lighter bigger" style="text-align: center;margin:0;height:50px;">大赛报名</h3>
<div class="space-6"></div>
<form action="#" id="reg_form" name="reg_form" method="post" onsubmit="return false">
<fieldset>
<label class="block clearfix">
<span class="block ">
<select type="text" class="form-control" placeholder="分组" id="groups" name="groups" style="height: 40px;">
<option value="">大赛分组</option>
</select>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="text" class="form-control" placeholder="手机号" id="mobile" name="mobile"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="password" class="form-control" placeholder="密码" id="pwd" name="pwd"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="password" class="form-control" placeholder="确认密码" id="confirmpassword" name="confirmpassword"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="text" class="form-control" placeholder="邮箱" id="email" name="email"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="text" class="form-control" placeholder="团队名称" id="teamName" name="teamName"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="text" class="form-control" placeholder="单位名称" id="userName" name="userName"/>
</span>
</label>
<label class="block clearfix">
<span class="block ">
<input type="text" class="form-control" placeholder="联系人" id="contacts" name="contacts"/>
</span>
</label>
<div class="space"></div>
<div class="clearfix" style="text-align: center;">
<a class="inline" >
</a>
<button type="submit" class="pull-left btn btn-sm btn-primary col-sm-5" style="height: 40px;">
注册
</button>
<button type="button" class="pull-right btn btn-sm btn-primary col-sm-5" onclick="window.location.href='<webpath:path/>/'" style="height: 40px;">
返回
</button>
</div>
<div class="space-4"></div>
</fieldset>
</form>
</div><!-- /widget-main -->
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div><!-- /.amin-container -->
<script type="text/javascript">
if("ontouchend" in document)
document.write("<script src='resources/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script type="text/javascript" src="resources/js/tools/jquerysession.js"></script>
<script type="text/javascript">
var isSubmit = true;
$().ready(function() {
var groupInfo=$('#groups');
groupInfo.append("<option value='1'>本科生组</option>");
groupInfo.append("<option value='2'>研究生组</option>");
groupInfo.append("<option value='3'>业界组</option>");
/**
$.ajax({
type: "post",
url: "/api/getGroup",
dataType:'json',
success: function(data) {
var status=data.status;
if(status==1){
}else{
var info=data.data;
var groupInfo=$('#group');
$.each(info, function(i,val){
groupInfo.append("<option value='"+val.id+"'>"+val.name+"</option>");
});
}
},
error: function(){
alert("");
}
});
**/
jQuery.validator.addMethod("isMobile", function(value, element) {
var length = value.length;
var mobile = /^1[0-9]{10}$/;
return this.optional(element) || (length == 11 && mobile.test(value));
}, "请填写正确的手机号码");
$("#reg_form").validate({
rules:{
userName:{
required: true
},
teamName:{
required: true
},
groups:{
required: true
},
contacts:{
required: true
},
mobile:{
required: true,
isMobile: true,
maxlength:11,
minlength:11
},
email:{
required: true,
email:true
},
pwd:{
required:true
},
confirmpassword:{
required: true,
equalTo:"#pwd"
}
},
messages:{
userName:{
required:"请填写单位名称!"
},
teamName:{
required:"请填写团队名称!"
},
groups:{
required: "请选择分组!"
},
contacts:{
required: "请填写联系人!"
},
mobile:{
required: "请填写手机!"
},
email:{
required: "请填写邮箱!",
email:"邮箱格式不正确!"
},
pwd:{
required:"请填写密码!"
},
confirmpassword:{
required: "请再次填写密码!",
equalTo:"两次输入密码不一致!"
}
},
submitHandler:function(form){
if (isSubmit){
isSubmit = false;
var pwd=$('#pwd').val();
var confirmpassword=$('#confirmpassword').val();
var userName=$('#userName').val();
var teamName=$('#teamName').val();
var groups=$('#groups').val();
var contacts=$('#contacts').val();
var mobile=$('#mobile').val();
var email=$('#email').val();
$.ajax({
type: 'POST',
url: '/api/user/save',
dataType:'json',
data: {
pwd:pwd,
userName:userName,
teamName:teamName,
groups:groups,
contacts:contacts,
mobile:mobile,
email:email
},
success: function(data){
var status=data.status;
if(status==1){//注册成功
bootbox.dialog({
message:"注册成功,请返回首页登录",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary",
"callback": function () {
$('#pwd').val("");
$('#confirmpassword').val("");
$('#userName').val("");
$('#groups').val("");
$('#contacts').val("");
$('#mobile').val("");
$('#email').val("");
window.location.href='<webpath:path/>/';
}
}
}
});
}else{
isSubmit = true;
var message=data.message;
if(message=="userIsExist_mobile"){
bootbox.dialog({
message:"手机号已被使用,注册失败!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
}else if(message=="userIsExist_teamName"){
bootbox.dialog({
message:"团队名称已存在,注册失败!",
buttons:{
"success":{
"label":"OK",
"className":"btn-sm btn-primary"
}
}
});
}
}
}
});
}
}
});
});
</script>
src/main/webapp/WEB-INF/pages/userList.jsp
deleted
100644 → 0
View file @
8aa7be75
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>
<head>
<style type="text/css">
body{
background:url(<webpath:path/>/resources/images/timg1.jpg);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100% 100%;
background-size:100% 100%;
background-attachment: fixed;
}
.h22 {
FONT-SIZE: 30px; font-family:PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,"sans-serif" !important;font-weight: bold; COLOR: #f0f0f0; FONT-WEIGHT: 5px;
}
.divTityle{
border-bottom: 1px solid rgba(255,255,255,0.3);
}
.form-control{
height:26px;
}
label.error{
color:#ff0000;
}
label.block{
margin-bottom:10px;
}
.a-upload {
padding: 6px 10px;
height: 25px;
line-height: 10px;
position: relative;
cursor: pointer;
color: #888;
background: #fafafa;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
display: inline-block;
*display: inline;
*zoom: 1;
float: left;
}
.a-upload input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
filter: alpha(opacity=0);
cursor: pointer;
height: 20px;
width: 75px;
}
.a-upload:hover {
color: #444;
background: #eee;
border-color: #ccc;
text-decoration: none
}
.upload-div {
height:35px;
line-height: 23px;
font-size: 14px;
}
.download-a {
margin-left:15px;
float: left;
}
#thead th,#thead td, #table-2 tr, #table-2 td{
padding-top:10px;
padding-bottom: 10px;
}
#table-2 tr {
border-bottom: 1px solid #bbc3d2bf;
}
.td-first10{
padding-left:10px;
}
#table-2 tr:not(:first-child):focust-whithin{
background: rgba(173, 216, 230, 0.4);
}
#table-2 tr:not(:first-child):hover{
background: rgba(173, 216, 230, 1);
}
</style>
</head>
<div class="main-container col-sm-12" style="padding:0px; margin:0px;">
<div class="main-content col-sm-12" style="padding:0px; margin:0px;">
<div class="row" style="width:100%;margin:0;">
<div class="col-sm-12" style="padding:0px; margin:0px;">
<div class="login-container divTityle" style="width:100%; height:80px;">
<div class="left col-sm-12 " style="height:0; padding:20px;padding-left:60px;" >
<img alt="logo" src="<webpath:path/>/resources/images/logo.png" height="40" style=""/>
<img alt="wz" src="<webpath:path/>/resources/images/wz.png" height="40" style="margin-top:5px; "/>
</div>
<div class="space-6"></div>
<div class="position-relative" style="top:100px" >
<div id="login-box" class="login-box visible widget-box no-border " style="width: 96%; margin-left: auto;margin-right: auto; padding: 0px;" >
<div class="widget-body">
<div class="widget-main" style="padding: 20px;padding-bottom: 100px;">
<div class="pull-left">共${userPage.recordTotal}条</div>
<select id="groups" class="pull-right" name="groups" onchange="search(this)">
<option value="">全部分组</option>
<option value='1' <c:if test="${userVo.groups==1}">selected="selected"</c:if>>本科生组</option>
<option value='2' <c:if test="${userVo.groups==2}">selected="selected"</c:if>>研究生组</option>
<option value='3' <c:if test="${userVo.groups==3}">selected="selected"</c:if>>业界组</option>
</select>
<table class="" id="table-2" style="width:100%">
<tr id="thead" style=" background-color:rgb(67, 142, 185);" >
<th width="6%" style=" color:#FFFFFF" class="td-first10">编号</th>
<th width="6%" style=" color:#FFFFFF" class="td-first10">分组</th>
<th width="19%" style=" color:#FFFFFF" >单位名称</th>
<th width="10%" style=" color:#FFFFFF" >团队名称</th>
<th width="7%" style=" color:#FFFFFF">指导老师</th>
<th width="7%" style=" color:#FFFFFF">联系人</th>
<th width="7%" style=" color:#FFFFFF">联系电话</th>
<th width="10%" style=" color:#FFFFFF">邮箱</th>
<th width="7%" style=" color:#FFFFFF">注册时间</th>
<th width="4%" style=" color:#FFFFFF">报名表</th>
<th width="4%" style=" color:#FFFFFF">报告</th>
<th width="4%" style=" color:#FFFFFF">PPT</th>
<th width="4%" style=" color:#FFFFFF">附件</th>
<th width="4%" style=" color:#FFFFFF">操作</th>
</tr>
<c:forEach var="user" items="${userPage.records}">
<tr class="highlight">
<td class="td-first10" title="${user.userId}">${user.userId} </td>
<td class="td-first10" title="
<c:if test="${user.groups==1}">
本科生组
</c:if>
<c:if test="${user.groups==2}">
研究生组
</c:if>
<c:if test="${user.groups==3}">
业界组
</c:if>
">
<c:if test="${user.groups==1}">
本科生组
</c:if>
<c:if test="${user.groups==2}">
研究生组
</c:if>
<c:if test="${user.groups==3}">
业界组
</c:if>
</td>
<td title="${user.userName}">${user.userName} </td>
<td title="${user.teamName}">${user.teamName} </td>
<td title="${user.teacher}">${user.teacher}</td>
<td title="${user.contacts}">${user.contacts}</td>
<td title="${user.mobile}">${user.mobile}</td>
<td title="${user.email}">${user.email}</td>
<td title="<fmt:formatDate value='${user.createTime}' pattern='yyyy-MM-dd HH:mm' />"><fmt:formatDate value='${user.createTime}' pattern='yyyy-MM-dd HH:mm' /></td>
<td title="">
<c:if test="${user.product.iterator().next().getEnroll()!=null && user.product.iterator().next().getEnroll()!=''}">
<a href="<webpath:path/>/api/product/download?userId=${user.userId}&type=enroll&fileName=${user.product.iterator().next().getEnroll()}" target="_blank" id="enrollName" class="download-a">下载</a>
</c:if>
<c:if test="${user.product.iterator().next().getEnroll()==null || user.product.iterator().next().getEnroll()==''}">
未上传
</c:if>
</td>
<td title="">
<c:if test="${user.product.iterator().next().getReport()!=null && user.product.iterator().next().getReport()!=''}">
<a href="<webpath:path/>/api/product/download?userId=${user.userId}&type=report&fileName=${user.product.iterator().next().getReport()}" target="_blank" id="reportName" class="download-a">下载</a>
</c:if>
<c:if test="${user.product.iterator().next().getReport()==null || user.product.iterator().next().getReport()==''}">
未上传
</c:if>
</td>
<td title="">
<c:if test="${user.product.iterator().next().getPpt()!=null && user.product.iterator().next().getPpt()!=''}">
<a href="<webpath:path/>/api/product/download?userId=${user.userId}&type=ppt&fileName=${user.product.iterator().next().getPpt()}" target="_blank" id="pptName" class="download-a">下载</a>
</c:if>
<c:if test="${user.product.iterator().next().getPpt()==null || user.product.iterator().next().getPpt()==''}">
未上传
</c:if>
</td>
<td title="">
<c:if test="${user.product.iterator().next().getAttachment()!=null && user.product.iterator().next().getAttachment()!=''}">
<a href="<webpath:path/>/api/product/download?userId=${user.userId}&type=attachment&fileName=${user.product.iterator().next().getAttachment()}" target="_blank" id="attachmentName" class="download-a">下载</a>
</c:if>
<c:if test="${user.product.iterator().next().getAttachment()==null || user.product.iterator().next().getAttachment()==''}">
未上传
</c:if>
</td>
<td title="删除"><a href="javascript:;" onclick="del('${user.id}')">删除</a></td>
</tr>
</c:forEach>
</table>
<webpage:page totalCount="${userPage.recordTotal}"
pageCount="${pageCount}" currentPage="${pageNumber}"
action="/api/user/list"
className="pageable-div pagination"
innerStyle=" float: left; width: 100%" />
</div><!-- /widget-main -->
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div>
<script type="text/javascript">
if("ontouchend" in document)
document.write("<script src='resources/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script type="text/javascript">
function del(id){
var url = window.location.href;
bootbox.confirm({
buttons: {
cancel: {
label: '取消',
className: 'btn-default'
},
confirm: {
label: '确认',
className: 'btn-myStyle'
}
},
message: '请确认是否删除?',
callback: function(result) {
if(result) {
$.ajax({
type: 'GET',
url: '/api/user/del?id='+id,
dataType:'json',
success: function(data){
window.location.href = url;
}
})
} else {
}
},
//title: "bootbox confirm也可以添加标题哦",
});
}
function search(obj){
var group = $(obj).val();
if (group == ""){
window.location.href = "<webpath:path/>/api/user/list";
} else {
window.location.href = "<webpath:path/>/api/user/list?groups=" + group;
}
}
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment