answerMy.jsp
3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.weaver.formmodel.mobile.manager.MobileUserInit"%>
<%@ page import="weaver.hrm.User"%>
<%@page import="weaver.systeminfo.SystemEnv"%>
<%
User user_login = MobileUserInit.getUser(request, response);
if(user_login == null){
return;
}
%>
<%@page import="weaver.general.Util"%>
<%
String id = Util.null2String(request.getParameter("id"));
String resourceid = Util.null2String(request.getParameter("resourceid"));
//其它
String other_qita = SystemEnv.getHtmlLabelName(811, user_login.getLanguage());
//单选
String single_danxuan = SystemEnv.getHtmlLabelName(28626, user_login.getLanguage());
//多选
String multi_duoxuan = SystemEnv.getHtmlLabelName(28627, user_login.getLanguage());
//必填
String required_bitian = SystemEnv.getHtmlLabelName(30036, user_login.getLanguage());
String least_zhishao = SystemEnv.getHtmlLabelName(83956, user_login.getLanguage());
String most_zhiduo = SystemEnv.getHtmlLabelName(83958, user_login.getLanguage());
String item_xiang = SystemEnv.getHtmlLabelName(83957, user_login.getLanguage());
String blank_tiankong = SystemEnv.getHtmlLabelName(83741, user_login.getLanguage());
%>
<html>
<head>
<title>我的答案</title>
</head>
<body>
<div id="vote_answer_my" class="page out">
<style type="text/css">
#vote_answer_my .content{top:0px;}
#vote_answer_my .vote-btn{
line-height: 35px;
border-radius: 5px;
color: #fff;
background: #017afd;
text-align: center;
}
#vote_answer_my .footer {
padding: 10px;
height: 55px;
box-sizing: border-box;
border-top: 1px solid #e7e7e7;
display: none;
}
#vote_answer_my .content.permission{
bottom:15px;
}
#vote_answer_my .footer.permission{
display: block;
}
</style>
<div class="content">
<div class="survey_preview_content">
<form id="surveyform">
<input type="hidden" name="votingid" value="<%=id %>" />
<div class="survey_body">
<div class="survey_title"></div>
<div class="survey_content">
<div class="survey_question clone" style="display: none;">
<div class="survey_quesname">
<span class="survey_quesnamedes"></span>
<span class="require" style="display: inline; color: red;">*</span>
<label class="rules"></label>
</div>
<div class="survey_options"></div>
</div>
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
var other_qita = "<%=other_qita%>";
var single_danxuan = "<%=single_danxuan%>";
var multi_duoxuan = "<%=multi_duoxuan%>";
var required_bitian = "<%=required_bitian%>";
var least_zhishao = "<%=least_zhishao%>";
var most_zhiduo = "<%=most_zhiduo%>";
var item_xiang = "<%=item_xiang%>";
var blank_tiankong = "<%=blank_tiankong%>";
$.extend(Vote, {
buildMyAnswerPage : function(id,resourceid){
var that = this;
var $page = $("#vote_answer_my");
var url = "/voting/mobile/voteAction.jsp";
that.ajax(url, {"operate": "getVotingById", "votingid": id}, function(data){
survey.initSurvey(data.voteinfo.votepages, data.voteinfo.viewset, data.voteinfo.subject, "vote_answer_my");
that.ajax(url, {"operate": "getMyVotingData", "votingid": id, "resourceid": resourceid}, function(data){
survey.fillUserInput(data.myVotingData);
that.ajax(url, {"operate": "checkViewResultPermission", "votingid": id}, function(data){
if(data.flag) {
$(".content, .footer", $page).addClass("permission");
}
});
});
});
}
});
Vote.buildMyAnswerPage("<%=id%>","<%=resourceid%>");
</script>
</div>
</body>
</html>