Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
王琮
platform
Commits
264bf830
Commit
264bf830
authored
Oct 29, 2021
by
Asjoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷管理-添加侧边栏
parent
ec7196e2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
843 additions
and
1 deletion
+843
-1
index.jsp
src/main/webapp/WEB-INF/page/education/index.jsp
+11
-0
questionnaire_information.jsp
...bapp/WEB-INF/page/education/questionnaire_information.jsp
+149
-0
index.jsp
src/main/webapp/WEB-INF/page/space/index.jsp
+13
-1
questionnaire_information.jsp
...n/webapp/WEB-INF/page/space/questionnaire_information.jsp
+289
-0
questionnaire_Information.js
...main/webapp/res/js/education/questionnaire_Information.js
+245
-0
questionnaire_Information.js
src/main/webapp/res/js/space/questionnaire_Information.js
+136
-0
No files found.
src/main/webapp/WEB-INF/page/education/index.jsp
View file @
264bf830
...
...
@@ -160,6 +160,17 @@
href=
"
<%=
request
.
getContextPath
()
%>
/goto/education/action_log"
>
行为查询
</a></li>
</ul></li>
<li><a
class=
"J_menuItem"
href=
"
<%=
request
.
getContextPath
()
%>
/goto/education/notice"
data-index=
"0"
data-toggle=
"tooltip"
data-placement=
"right"
title=
"公示公告"
>
<i
class=
"fa fa-commenting"
></i>
<span
class=
"nav-label"
>
公示公告
</span></a></li>
<li>
<a
class=
"J_menuItem"
href=
"
<%=
request
.
getContextPath
()
%>
goto/education/questionnaire_information"
data-index=
"0"
data-toggle=
"tooltip"
data-placement=
"right"
title=
"问卷管理"
>
<i
class=
"fa fa-commenting"
></i>
<span
class=
"nav-label"
>
问卷管理
</span>
</a>
</li>
<%-- <li><a class="J_menuItem" href="<%=request.getContextPath()%>/goto/education/space_change_password" data-index="0"> <i class="fa fa-rotate-left"></i> <span class="nav-label">修改密码</span></a></li>
<li><a class="J_menuItem" href="<%=request.getContextPath()%>/user/Logout" data-index="0"> <i class="fa fa-power-off"></i> <span class="nav-label">安全退出</span></a></li> --%>
</ul>
...
...
src/main/webapp/WEB-INF/page/education/questionnaire_information.jsp
0 → 100644
View file @
264bf830
<%@ page
language=
"java"
contentType=
"text/html"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
+
"/"
;
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=Edge,chrome=1"
>
<title>
众创空间
</title>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/bootstrap.min.css?v=3.3.6"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/font-awesome.css?v=4.4.0"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/iCheck/custom.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/datapicker/datepicker3.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/chosen/chosen.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/animate.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/style.css?v=4.1.0"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/sweetalert/sweetalert.css"
rel=
"stylesheet"
>
<style
type=
"text/css"
>
.getAllProject_table
:hover
{
color
:
#000000
;
cursor
:
pointer
;}
</style>
</head>
<body
class=
"gray-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<span
style=
"font-size: 20px;"
id=
"project_information_title"
>
新建素材
</span>
</div>
<div
class=
"ibox-content"
>
<form
method=
"get"
class=
"form-horizontal"
>
<input
type=
"hidden"
value=
"0"
id=
"id_projectID"
>
<label
class=
"col-sm-2 control-label"
>
1.基本信息
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
标题
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"material_DIV_title"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
描述
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-10"
>
<textarea
id=
"material_DIV_describe1"
class=
"form-control"
style=
"resize: none;"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
封页
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-10"
id=
"demo1"
>
<input
type=
"hidden"
id=
"material_img"
value=
"
<%=
request
.
getContextPath
()
%>
/res/image/a8e5f2d84a324822886b39c74b460288.jpg"
>
<img
src=
"
<%=
request
.
getContextPath
()
%>
/res/image/a8e5f2d84a324822886b39c74b460288.jpg"
width=
"537px"
height=
"350px"
id=
"img"
>
<span
class=
"help-block m-b-none"
>
图片建议分辨率为:宽度:537px,高度:350px
</span>
<a
class=
"btn btn-primary"
onclick=
"upImg()"
>
上传图片
</a>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
创建时间
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-10"
id=
"exercise_DIV_time_div"
>
<div
class=
"input-group date"
>
<span
class=
"input-group-addon"
><i
class=
"fa fa-calendar"
></i></span>
<input
type=
"text"
class=
"form-control"
readonly
style=
"background-color: #ffffff"
id=
"material_DIV_startTime"
>
</div>
</div>
</div>
<div
class=
"form-group"
style=
"display: none;"
>
<label
class=
"col-sm-2 control-label"
>
排序
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"material_DIV_order1"
onkeyup=
"value=value.replace(/[^\-?\d]/g,'')"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
将素材发送至
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-10"
>
<div
class=
"form-group"
>
<div
class=
"checkbox i-checks"
id=
"material_DIV_class_div"
>
</div>
</div>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<a
class=
"btn btn-primary"
onclick=
"material_saveShow()"
>
保存并预览
</a>
<a
class=
"btn btn-primary"
onclick=
"material_save()"
>
保存并发表
</a>
<a
class=
"btn btn-primary"
onclick=
"material_close()"
>
取消
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- 上传项目计划书 -->
<div
class=
"modal fade"
id=
"projectPlanbookFile_DIV"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
封页
</h4>
</div>
<div
class=
"modal-body"
>
<form
method=
"get"
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
选择封页:
</label>
<div
class=
"col-sm-9"
id=
"projectPlanbookFile_file_div"
>
<input
type=
"file"
id=
"projectPlanbookFile_file"
name=
"mainfile"
class=
"form-control"
>
</div>
</div>
<span
class=
"help-block m-b-none"
style=
"text-align: center;color: #ff0000"
>
请上传后缀名为jpeg、jpg、gif、png的文件,最大1M
</span>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"projectPlanbookFile_update()"
id=
"projectPlanbookFile_DIV_SC"
>
上传
</button>
<button
type=
"button"
class=
"btn btn-default"
id=
"projectPlanbookFile_DIV_ZZSC"
style=
"display: none;"
>
正在上传
</button>
</div>
</div>
</div>
</div>
<!-- 全局js -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/jquery.min.js?v=2.1.4"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/bootstrap.min.js?v=3.3.6"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/jeditable/jquery.jeditable.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/ckeditor/ckeditor.js"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/sweetalert/sweetalert.min.js"
></script>
<!-- Chosen -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/chosen/chosen.jquery.js"
></script>
<!-- iCheck -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/iCheck/icheck.min.js"
></script>
<!-- Prettyfile -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/prettyfile/bootstrap-prettyfile.js"
></script>
<!-- 上传文件 -->
<script
type=
"text/javascript"
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/ajaxfileupload/ajaxfileupload.js"
></script>
<!-- Data picker -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/datapicker/bootstrap-datepicker.js"
></script>
<!-- 自定义js -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/education/questionnaire_Information.js"
></script>
<!-- Input Mask-->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/jasny/jasny-bootstrap.min.js"
></script>
</body>
</html>
src/main/webapp/WEB-INF/page/space/index.jsp
View file @
264bf830
...
...
@@ -158,7 +158,19 @@
href=
"
<%=
request
.
getContextPath
()
%>
/goto/space/space_teamManage"
>
团队账户管理
</a></li>
</ul></li>
<li><a
class=
"J_menuItem"
href=
"
<%=
request
.
getContextPath
()
%>
/goto/space/notice"
data-index=
"0"
data-toggle=
"tooltip"
data-placement=
"right"
title=
"公示公告"
>
<i
class=
"fa fa-commenting"
></i>
<span
class=
"nav-label"
>
公示公告
</span></a></li>
<%-- <li><a class="J_menuItem" href="<%=request.getContextPath()%>/goto/space/space_change_password" data-index="0"> <i class="fa fa-rotate-left"></i> <span class="nav-label">修改密码</span></a></li>
<li>
<a
class=
"J_menuItem"
href=
"
<%=
request
.
getContextPath
()
%>
/goto/space/questionnaire_information"
data-index=
"0"
data-toggle=
"tooltip"
data-placement=
"right"
title=
"问卷管理"
>
<i
class=
"fa fa-commenting"
></i>
<span
class=
"nav-label"
>
问卷管理
</span>
</a>
</li>
<%-- <li><a class="J_menuItem" href="<%=request.getContextPath()%>/goto/space/space_change_password" data-index="0"> <i class="fa fa-rotate-left"></i> <span class="nav-label">修改密码</span></a></li>
<li><a class="J_menuItem" href="<%=request.getContextPath()%>/user/Logout" data-index="0"> <i class="fa fa-power-off"></i> <span class="nav-label">安全退出</span></a></li> --%>
</ul>
</div>
...
...
src/main/webapp/WEB-INF/page/space/questionnaire_information.jsp
0 → 100644
View file @
264bf830
<%@ page
language=
"java"
contentType=
"text/html"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
+
"/"
;
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=Edge,chrome=1"
>
<title>
众创空间
</title>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/bootstrap.min.css?v=3.3.6"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/font-awesome.css?v=4.4.0"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/dataTables/dataTables.bootstrap.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/datapicker/datepicker3.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/animate.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/style.css?v=4.1.0"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/iCheck/custom.css"
rel=
"stylesheet"
>
<link
href=
"
<%=
request
.
getContextPath
()
%>
/res/css/plugins/sweetalert/sweetalert.css"
rel=
"stylesheet"
>
<style
type=
"text/css"
>
.td-class
{
width
:
170px
;
}
.bigLabel
{
color
:
#333
;
font-size
:
16px
;
padding-left
:
80px
;
margin
:
30px
0
}
.th-class
{
width
:
170px
;
text-align
:
center
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.table-class
{
width
:
1000px
;
}
</style>
</head>
<body
class=
"gray-bg"
>
<script
type=
"text/javascript"
>
var
webroot
=
'
<%=
request
.
getContextPath
()
%>
/'
;
</script>
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5
style=
"margin-left: 20px; font-size: 20px"
>
2021年度天津市高效众创空间绩效评估
</h5>
</div>
<div
class=
"ibox-content"
>
<form
method=
"get"
class=
"form-horizontal"
>
<label
class=
"col-sm-2"
style=
"font-size: 18px;padding-left: 20px"
>
1.基本信息
</label>
<div
class=
"form-group"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-2 control-label"
>
众创空间名称
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
class=
"form-control"
id=
"id_spaceName"
>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
>
所属高效
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
class=
"form-control"
id=
"id_spaceSchool"
>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
>
填报人姓名
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
class=
"form-control"
id=
"id_spaceSchool"
>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
>
联系电话
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
class=
"form-control"
id=
"id_spaceSchool"
>
</div>
</div>
</div>
</div>
<label
class=
"col-sm-2"
style=
"font-size: 18px;padding-left: 20px"
>
2.众创空间场地情况
</label>
<div
class=
"form-group"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-2 control-label"
>
众创空间面积
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
class=
"form-control"
id=
"id_spaceName"
>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
>
众创空间提供工位数
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
class=
"form-control"
id=
"id_spaceSchool"
>
</div>
</div>
</div>
</div>
<label
class=
"bigLabel"
>
基础指标1:(1)高校众创空间应在200平方米以上(含200平方米),属租赁场地的,租期应不少于5年;(2)提供创业工位40个(含40个)以上
</label>
<div
class=
"form-group"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-2"
style=
"font-size: 18px;padding-left: 40px"
>
3.是否租赁场地
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
>
<select
class=
"form-control"
id=
"id_spaceType"
>
<option
value=
"自有场地"
>
自有场地
</option>
<option
value=
"租赁场地,租期为五年以上"
>
租赁场地,租期为五年以上
</option>
<option
value=
"租赁场地,租期为五年以内"
>
租赁场地,租期为五年以内
</option>
</select>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
>
每块场地实景照片1张
<span
class=
"text-danger"
>
*
</span>
:
</label>
<%-- <div class="col-sm-10" id="demo1">--%>
<%-- <input type="hidden" id="material_img" value="<%=request.getContextPath()%>/res/image/a8e5f2d84a324822886b39c74b460288.jpg">--%>
<%-- <img src="<%=request.getContextPath()%>/res/image/a8e5f2d84a324822886b39c74b460288.jpg" width="150px" height="100px" id="img" >--%>
<%-- <a class="btn btn-primary" onclick="upImg()">上传图片</a>--%>
<%-- </div>--%>
<div
class=
"col-sm-10"
>
<a
class=
"btn btn-primary"
onclick=
"file_DIV_Show('0')"
id=
"applyLoan_DIV_onclick_id"
><strong>
添加
</strong></a>
</div>
</div>
</div>
</div>
<label
class=
"bigLabel"
>
基础指标2: 有至少1名专职人员
</label>
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-2"
style=
"font-size: 18px;padding-left: 40px"
>
4.众创空间配备专职工作人员情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"professionalEmploy"
border=
"1"
width=
"1000px"
>
<thead>
<tr>
<th
nowrap
>
序号
</th>
<th
nowrap
style=
"text-align: center"
>
姓名
</th>
<th
nowrap
>
<div
class=
"th-class"
title=
"所在处室"
>
所在处室
</div>
</th>
<th
nowrap
style=
"text-align: center"
>
所在科室
</th>
<th
nowrap
style=
"text-align: center"
>
职务
</th>
<th
nowrap
style=
"text-align: center"
>
联系方式
</th>
<th
nowrap
style=
"text-align: center"
>
是否专职
</th>
</tr>
</thead>
<tbody>
<tr
id=
"professionalFirst"
>
<td
class=
"td"
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td>
<select
class=
"form-control"
style=
"width: 170px"
>
<option
value=
"是"
>
是
</option>
<option
value=
"否"
>
否
</option>
</select>
</td>
<td><input
type=
"button"
value=
"Delete"
onclick=
"del(this)"
></td>
</tr>
<tr>
<td
class=
"td"
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td><input
class=
"td-class"
type=
""
name=
""
></td>
<td>
<select
class=
"form-control"
style=
"width: 170px"
>
<option
value=
"是"
>
是
</option>
<option
value=
"否"
>
否
</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
<div
style=
"margin-left: 225px"
>
<a
class=
"btn btn-primary"
onclick=
"fun()"
>
增加一行
</a>
</div>
</div>
</div>
</div>
<div
class=
"form-group draggable"
id=
"certification_div"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-2 control-label"
>
认证时间
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
id=
"id_registerTime_div"
>
<div
class=
"input-group date"
>
<span
class=
"input-group-addon"
><i
class=
"fa fa-calendar"
></i></span>
<input
type=
"text"
class=
"form-control"
readonly
style=
"background-color: #ffffff"
id=
"id_registerTime"
>
</div>
</div>
<label
class=
"col-sm-2 control-label"
>
认定面积
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"id_registerArea"
onkeyup=
"value=value.replace(/[^\-?\d.]/g,'')"
>
<span
class=
"input-group-addon"
>
平方米
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<a
class=
"btn btn-primary"
onclick=
"saveOneSpaceInfromationTemp()"
>
暂存内容
</a>
<a
class=
"btn btn-primary"
onclick=
"saveOneSpaceInfromation()"
>
保存内容
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- 上传弹出层 -->
<div
class=
"modal fade"
id=
"projectPlanbookFile_DIV"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
附件
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"form-group"
>
<form
method=
"get"
class=
"form-horizontal"
>
<label
class=
"col-sm-3 control-label"
>
选择附件:
</label>
<div
class=
"col-sm-9"
id=
"projectPlanbookFile_file_div"
>
<input
type=
"file"
id=
"projectPlanbookFile_file"
name=
"mainfile"
class=
"form-control"
>
</div>
<span
class=
"help-block m-b-none"
style=
"text-align: center;color: #ff0000"
>
上传的文件最大10M
</span>
</form>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"projectPlanbookFile_update()"
id=
"projectPlanbookFile_DIV_SC"
>
上传
</button>
<button
type=
"button"
class=
"btn btn-default"
id=
"projectPlanbookFile_DIV_ZZSC"
style=
"display: none;"
>
正在上传
</button>
</div>
</div>
</div>
</div>
<!-- 弹出层 -->
<!-- 全局js -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/jquery.min.js?v=2.1.4"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/bootstrap.min.js?v=3.3.6"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/sweetalert/sweetalert.min.js"
></script>
<!-- 自定义js -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/content.js?v=1.0.0"
></script>
<!-- 上传文件 -->
<script
type=
"text/javascript"
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/ajaxfileupload/ajaxfileupload.js"
></script>
<!-- iCheck -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/iCheck/icheck.min.js"
></script>
<!-- Data picker -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/datapicker/bootstrap-datepicker.js"
></script>
<!-- Input Mask-->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/plugins/jasny/jasny-bootstrap.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"th"
).
css
(
"white-space"
,
"nowrap"
);
});
</script>
<script
type=
"text/javascript"
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/space/questionnaire_Information.js"
></script>
</body>
</html>
src/main/webapp/res/js/education/questionnaire_Information.js
0 → 100644
View file @
264bf830
$
(
function
()
{
$
(
'#exercise_DIV_time_div .input-group.date'
).
datepicker
({
todayBtn
:
"linked"
,
keyboardNavigation
:
false
,
forceParse
:
false
,
calendarWeeks
:
true
,
autoclose
:
true
});
getClassShow
();
$
(
'.i-checks'
).
iCheck
({
checkboxClass
:
'icheckbox_square-green'
,
radioClass
:
'iradio_square-green'
,
});
if
(
material_id
!=
"null"
){
$
(
"#project_information_title"
).
html
(
"编辑素材"
);
getMaterialInformation
();
}
})
function
getClassShow
(){
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/getAllMaterialClassNo"
,
data
:
""
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
var
list
=
result
.
list
;
var
html
=
""
;
if
(
list
!=
null
){
for
(
var
list_i
in
list
){
html
+=
"<div class=
\"
col-sm-3
\"
><input type=
\"
radio
\"
name=
\"
material_DIV_class
\"
value=
\"
"
+
list
[
list_i
].
classID
+
"
\"
>"
+
list
[
list_i
].
className
+
"</div>"
;
}
}
$
(
"#material_DIV_class_div"
).
html
(
html
);
}
});
}
function
getMaterialInformation
(){
var
data
=
{};
data
[
'informationID'
]
=
material_id
;
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/getOneMaterialSpace"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
false
){
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
return
;
}
var
materialInformation
=
result
.
materialInformation
;
var
materialClassBinding_list
=
result
.
materialClassBinding_list
;
$
(
"#id_projectID"
).
val
(
materialInformation
.
informationID
);
//id
$
(
"#material_DIV_title"
).
val
(
materialInformation
.
title
);
//标题
/* CKEDITOR.instances.material_DIV_content.setData(materialInformation.content); //内容
*/
$
(
"#material_DIV_content"
).
html
(
materialInformation
.
content
)
$
(
"#material_DIV_describe1"
).
val
(
materialInformation
.
describe1
);
//描述
$
(
"#material_DIV_order1"
).
val
(
materialInformation
.
order1
);
//权重
$
(
"#material_img"
).
val
(
materialInformation
.
img
);
//封页
$
(
"#img"
).
attr
(
'src'
,
materialInformation
.
img
);
$
(
"#material_DIV_startTime"
).
val
(
materialInformation
.
startTime
);
//创建时间
if
(
materialInformation
.
spaceInformationID
!=
"0"
){
$
(
"#material_DIV_title"
).
attr
(
"disabled"
,
true
);
$
(
"#material_DIV_content"
).
attr
(
"disabled"
,
true
);
$
(
"#material_DIV_describe1"
).
attr
(
"disabled"
,
true
);
$
(
"#material_DIV_order1"
).
attr
(
"disabled"
,
true
);
$
(
"#img"
).
attr
(
"onclick"
,
""
);
$
(
"#material_DIV_startTime"
).
attr
(
"disabled"
,
true
);
}
if
(
materialClassBinding_list
!=
null
){
for
(
var
materialClassBinding_list_i
in
materialClassBinding_list
){
$
(
"input[name=material_DIV_class]:radio[value='"
+
materialClassBinding_list
[
materialClassBinding_list_i
].
classID
+
"']"
).
iCheck
(
'check'
);
}
}
}
});
}
function
upImg
(){
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
$
(
'#projectPlanbookFile_file'
).
prettyFile
();
$
(
"#projectPlanbookFile_DIV"
).
modal
(
'show'
);
}
function
projectPlanbookFile_update
(){
if
(
fileChangeNo
(
"projectPlanbookFile_file"
)
==
true
){
if
(
imgFileChange
(
"projectPlanbookFile_file"
)
==
false
){
return
;
}
$
(
"#projectPlanbookFile_DIV_ZZSC"
).
show
();
$
(
"#projectPlanbookFile_DIV_SC"
).
hide
();
$
.
ajaxFileUpload
({
url
:
webroot
+
'File/uploadImg'
,
secureuri
:
false
,
dataType
:
'json'
,
fileElementId
:
[
"projectPlanbookFile_file"
],
success
:
function
(
data
){
//上传成功
$
(
"#projectPlanbookFile_DIV_ZZSC"
).
hide
();
$
(
"#projectPlanbookFile_DIV_SC"
).
show
();
if
(
data
.
return
==
false
){
//alert("只支持jpg、png、gif格式");
swal
(
"失败!"
,
"只支持jpg、png、gif格式"
,
"error"
);
return
;
}
$
(
"#img"
).
attr
(
'src'
,
data
.
date
);
$
(
"#material_img"
).
val
(
data
.
date
);
$
(
'#projectPlanbookFile_DIV'
).
modal
(
'hide'
);
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
$
(
'#projectPlanbookFile_file'
).
prettyFile
();
}
});
}
else
{
//alert("请先选择上传文件");
swal
(
"失败!"
,
"请先选择上传文件"
,
"error"
);
}
}
function
material_save
(){
var
spCodesTemp
=
""
;
$
(
'input:radio[name=material_DIV_class]:checked'
).
each
(
function
(
i
){
if
(
0
==
i
){
spCodesTemp
=
$
(
this
).
val
();
}
else
{
spCodesTemp
+=
(
","
+
$
(
this
).
val
());
}
});
if
(
spCodesTemp
==
""
){
swal
(
"失败!"
,
"请选择发送目录"
,
"error"
);
return
;
}
var
informationID
=
$
(
"#id_projectID"
).
val
();
//id
var
title
=
$
(
"#material_DIV_title"
).
val
();
//标题
var
content
=
CKEDITOR
.
instances
.
material_DIV_content
.
getData
();
//内容
var
describe1
=
$
(
"#material_DIV_describe1"
).
val
();
//描述
var
order1
=
$
(
"#material_DIV_order1"
).
val
();
//权重
if
(
content
==
""
){
swal
(
"失败!"
,
"内容不能为空"
,
"error"
);
return
;
}
if
(
order1
==
""
){
order1
=
"99"
;
}
var
startTime
=
$
(
"#material_DIV_startTime"
).
val
();
//创建时间
var
img
=
$
(
"#material_img"
).
val
();
//封页
var
data
=
{};
data
[
'exerciseID'
]
=
""
;
data
[
'exerciseType'
]
=
""
;
data
[
'informationID'
]
=
informationID
;
data
[
'title'
]
=
title
;
data
[
'content'
]
=
content
;
data
[
'describe1'
]
=
describe1
;
data
[
'order1'
]
=
order1
;
data
[
'startTime'
]
=
startTime
;
data
[
'img'
]
=
img
;
data
[
'class'
]
=
spCodesTemp
;
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/saveMaterial"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
//alert(result.msg);
if
(
result
.
result
==
true
){
swal
(
"成功!"
,
result
.
msg
,
"success"
);
//window.location.href=webroot+"goto/education/material_Information_list";
history
.
go
(
-
1
);
}
else
{
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
function
material_saveShow
(){
var
spCodesTemp
=
""
;
$
(
'input:radio[name=material_DIV_class]:checked'
).
each
(
function
(
i
){
if
(
0
==
i
){
spCodesTemp
=
$
(
this
).
val
();
}
else
{
spCodesTemp
+=
(
","
+
$
(
this
).
val
());
}
});
if
(
spCodesTemp
==
""
){
swal
(
"失败!"
,
"请选择发送目录"
,
"error"
);
return
;
}
var
informationID
=
$
(
"#id_projectID"
).
val
();
//id
var
title
=
$
(
"#material_DIV_title"
).
val
();
//标题
var
content
=
CKEDITOR
.
instances
.
material_DIV_content
.
getData
();
//内容
var
describe1
=
$
(
"#material_DIV_describe1"
).
val
();
//描述
var
order1
=
$
(
"#material_DIV_order1"
).
val
();
//权重
if
(
content
==
""
){
swal
(
"失败!"
,
"内容不能为空"
,
"error"
);
return
;
}
if
(
order1
==
""
){
order1
=
"99"
;
}
var
startTime
=
$
(
"#material_DIV_startTime"
).
val
();
//创建时间
var
img
=
$
(
"#material_img"
).
val
();
//封页
var
data
=
{};
data
[
'exerciseID'
]
=
""
;
data
[
'exerciseType'
]
=
""
;
data
[
'informationID'
]
=
informationID
;
data
[
'title'
]
=
title
;
data
[
'content'
]
=
content
;
data
[
'describe1'
]
=
describe1
;
data
[
'order1'
]
=
order1
;
data
[
'startTime'
]
=
startTime
;
data
[
'img'
]
=
img
;
data
[
'class'
]
=
spCodesTemp
;
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/saveShowMaterial"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
true
){
$
(
"#id_projectID"
).
val
(
result
.
id
);
window
.
open
(
webroot
+
"TopIndex/informationNewDetail2?id="
+
result
.
id
+
"&spaceMessageID=null"
);
}
else
{
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
function
material_close
(){
//window.location.href=webroot+"goto/education/material_Information_list";
history
.
go
(
-
1
);
}
\ No newline at end of file
src/main/webapp/res/js/space/questionnaire_Information.js
0 → 100644
View file @
264bf830
$
(
function
()
{
$
(
'#exercise_DIV_time_div .input-group.date'
).
datepicker
({
todayBtn
:
"linked"
,
keyboardNavigation
:
false
,
forceParse
:
false
,
calendarWeeks
:
true
,
autoclose
:
true
});
// getClassShow();
// if(material_id!="null"){
// $("#project_information_title").html("编辑素材");
// getMaterialInformation();
// }
// if(exerciseID!="null"){
// $("#exerciseType").val(exerciseType); //活动方式
// $("#exerciseID").val(exerciseID); //活动id
// getMaterialInformationExercise();
// }
// $('.i-checks').iCheck({
// checkboxClass : 'icheckbox_square-green',
// radioClass : 'iradio_square-green',
// });
})
var
i
=
1
;
$
(
".td"
).
each
(
function
(){
$
(
this
).
html
(
i
++
);
})
function
deleteRow
(
r
){
var
i
=
r
.
parentNode
.
parentNode
.
rowIndex
;
document
.
getElementById
(
'professionalEmploy'
).
deleteRow
(
i
);
}
function
fun
(){
var
$td
=
$
(
"#professionalFirst"
).
clone
();
//增加一行,克隆第一个对象
$
(
".professionalEmploy"
).
append
(
$td
);
var
i
=
1
;
$
(
".td"
).
each
(
function
(){
//增加一行后重新更新序号1,2,3......
$
(
this
).
html
(
i
++
);
})
$
(
"table tr:last"
).
find
(
":input"
).
val
(
''
);
//将尾行元素克隆来的保存的值清空
}
function
del
(){
$
(
"table tr:not(:first):not(:first):last"
).
remove
();
//移除最后一行,并且保留前两行
}
// 上传多个附件
function
file_DIV_Show
(
fileID
){
if
(
fileID
==
"0"
){
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
$
(
'#projectPlanbookFile_file'
).
prettyFile
();
}
else
{
for
(
var
file_list_i
in
file_list
){
if
(
file_list
[
file_list_i
].
id
==
parseInt
(
fileID
)){
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
$
(
'#projectPlanbookFile_file'
).
prettyFile
();
$
(
"#projectPlanbookFile_file_div input[class='input-large form-control']"
).
val
(
file_list
[
file_list_i
].
fileName
);
}
}
}
$
(
'#projectPlanbookFile_DIV'
).
modal
(
'show'
);
}
function
projectPlanbookFile_update
(){
if
(
fileChangeNo
(
"projectPlanbookFile_file"
)
==
true
){
if
(
pdfFileChange
(
"projectPlanbookFile_file"
)
==
false
){
return
;
}
$
(
"#projectPlanbookFile_DIV_ZZSC"
).
show
();
$
(
"#projectPlanbookFile_DIV_SC"
).
hide
();
$
.
ajaxFileUpload
({
url
:
webroot
+
'File/upload'
,
secureuri
:
false
,
dataType
:
'json'
,
fileElementId
:
[
"projectPlanbookFile_file"
],
success
:
function
(
data
){
//上传成功
$
(
"#projectPlanbookFile_DIV_ZZSC"
).
hide
();
$
(
"#projectPlanbookFile_DIV_SC"
).
show
();
var
fileName
=
data
.
fileName
;
var
fileId
=
data
.
fileID
;
var
id
=
file_list_update_id
;
file_list_update_id
++
;
var
file_class_i
=
file_class
(
id
,
fileId
,
fileName
);
file_list
.
push
(
file_class_i
);
file_DIV_List_Show
();
$
(
'#projectPlanbookFile_DIV'
).
modal
(
'hide'
);
}
});
}
else
{
//alert("请选择文件!");
swal
(
"失败!"
,
"请选择文件!"
,
"error"
);
}
}
// 上传单张图片
function
getMaterialInformationExercise
(){
var
data
=
{};
data
[
'exerciseID'
]
=
$
(
"#exerciseID"
).
val
();
data
[
'exerciseType'
]
=
$
(
"#exerciseType"
).
val
();
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/getOneMaterialSpaceExercise"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
false
){
return
;
}
var
materialInformation
=
result
.
materialInformation
;
var
materialClassBinding_list
=
result
.
materialClassBinding_list
;
$
(
"#id_projectID"
).
val
(
materialInformation
.
informationID
);
//id
$
(
"#exerciseType"
).
val
(
materialInformation
.
exerciseType
);
//活动方式
$
(
"#exerciseID"
).
val
(
materialInformation
.
exerciseID
);
//活动id
$
(
"#material_DIV_title"
).
val
(
materialInformation
.
title
);
//标题
/* CKEDITOR.instances.material_DIV_content.setData(materialInformation.content); //内容
*/
$
(
"#material_DIV_content"
).
html
(
materialInformation
.
content
)
$
(
"#material_DIV_describe1"
).
val
(
materialInformation
.
describe1
);
//描述
$
(
"#material_DIV_order1"
).
val
(
materialInformation
.
order1
);
//权重
$
(
"#material_img"
).
val
(
materialInformation
.
img
);
//封页
$
(
"#img"
).
attr
(
'src'
,
materialInformation
.
img
);
$
(
"#material_DIV_startTime"
).
val
(
materialInformation
.
startTime
);
//创建时间
if
(
materialClassBinding_list
!=
null
){
for
(
var
materialClassBinding_list_i
in
materialClassBinding_list
){
$
(
"input[name=material_DIV_class]:radio[value='"
+
materialClassBinding_list
[
materialClassBinding_list_i
].
classID
+
"']"
).
iCheck
(
'check'
);
}
}
}
});
}
\ No newline at end of file
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