Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MCMS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
MCMS
Commits
98b2772c
Commit
98b2772c
authored
Jun 28, 2016
by
ms-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认模板更新,主要修复了会员功能
parent
5c2a67c8
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
404 additions
and
224 deletions
+404
-224
src/main/webapp/templets/1/mooc/about.htm
src/main/webapp/templets/1/mooc/about.htm
+1
-1
src/main/webapp/templets/1/mooc/case-list.htm
src/main/webapp/templets/1/mooc/case-list.htm
+4
-5
src/main/webapp/templets/1/mooc/case-show.htm
src/main/webapp/templets/1/mooc/case-show.htm
+2
-17
src/main/webapp/templets/1/mooc/foot.htm
src/main/webapp/templets/1/mooc/foot.htm
+3
-3
src/main/webapp/templets/1/mooc/footer.htm
src/main/webapp/templets/1/mooc/footer.htm
+53
-3
src/main/webapp/templets/1/mooc/head.htm
src/main/webapp/templets/1/mooc/head.htm
+16
-2
src/main/webapp/templets/1/mooc/header.htm
src/main/webapp/templets/1/mooc/header.htm
+11
-41
src/main/webapp/templets/1/mooc/index.htm
src/main/webapp/templets/1/mooc/index.htm
+12
-25
src/main/webapp/templets/1/mooc/login.htm
src/main/webapp/templets/1/mooc/login.htm
+12
-17
src/main/webapp/templets/1/mooc/news-list.htm
src/main/webapp/templets/1/mooc/news-list.htm
+3
-3
src/main/webapp/templets/1/mooc/news-show.htm
src/main/webapp/templets/1/mooc/news-show.htm
+59
-0
src/main/webapp/templets/1/mooc/people/changePassWord.htm
src/main/webapp/templets/1/mooc/people/changePassWord.htm
+27
-31
src/main/webapp/templets/1/mooc/people/userCenter.htm
src/main/webapp/templets/1/mooc/people/userCenter.htm
+11
-30
src/main/webapp/templets/1/mooc/product-list.htm
src/main/webapp/templets/1/mooc/product-list.htm
+81
-0
src/main/webapp/templets/1/mooc/product-show.htm
src/main/webapp/templets/1/mooc/product-show.htm
+59
-0
src/main/webapp/templets/1/mooc/register.htm
src/main/webapp/templets/1/mooc/register.htm
+50
-46
No files found.
src/main/webapp/templets/1/mooc/about.htm
View file @
98b2772c
...
...
@@ -51,7 +51,7 @@
<div
class=
"discuss_hot discuss_box"
>
<h2
class=
"title-b"
>
最新推荐
</h2>
<ul
class=
"discuss_list"
>
{ms:arclist size=
15 typeid=50
}
{ms:arclist size=
59
}
<li
style=
"height:auto"
>
<a
href=
"[field.link/]"
data-gaevent=
"course-post-title:v3.0.0.0:academy"
>
[field.title/]
</a>
<p>
...
...
src/main/webapp/templets/1/mooc/
lists.html
→
src/main/webapp/templets/1/mooc/
case-list.htm
View file @
98b2772c
<!DOCTYPE html>
<!DOCTYPE html>
<html
class=
"no-js screen-scroll"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
...
...
@@ -181,7 +181,7 @@
</li>
</ul>
<ul
class=
"course_list card_list"
id=
"courseList"
>
{ms:arclist size=
5
ispaging=true}
{ms:arclist size=
8
ispaging=true}
<li>
<a
class=
"course-img"
href=
"[field.link/]"
target=
"_blank"
>
<div
class=
"shade"
>
...
...
@@ -214,11 +214,10 @@
<li
data-type=
"next"
><a
href=
"{ms:page.next/}"
>
下一页
</a>
</li>
<li
data-type=
"last"
><a
href=
"{ms:page.last/}"
>
最末页
</a></li>
</ul>
</div>
</div>
{ms:include filename=footer.htm/}
<!-- 后台生成的自定义搜索代码 -->
<form
id=
"searchForm"
action=
"{ms:global.url/}/
9
/search.do"
method=
"post"
>
<form
id=
"searchForm"
action=
"{ms:global.url/}/
1
/search.do"
method=
"post"
>
<!--表单的name值不能改变-->
<input
type=
"hidden"
name=
"categoryId"
value=
"{ms:field.typeid/}"
/>
<!-- 当前栏目的栏目id值 -->
<input
type=
"hidden"
name=
"school"
value=
""
/>
...
...
src/main/webapp/templets/1/mooc/
detail
.htm
→
src/main/webapp/templets/1/mooc/
case-show
.htm
View file @
98b2772c
...
...
@@ -17,22 +17,7 @@
<div
class=
"content-th"
>
<h1
id=
"contentTitle"
>
{ms:field.title/}
</h1>
</div>
<!--
<div class="post-pic">
<a href="" title="" target="_blank" >
<img src="" alt="" width="48" height="48">
</a>
</div>
-->
<div
class=
"post-info"
>
<!--
<p class="post-author">
<a href="" title="" target="_blank" ></a>
<span class="post-info-nuts">
<span class="icon-sai"></span>
</span>
</p>
-->
<div
class=
"post-info"
>
<p
class=
"post-time"
>
{ms:field.date fmt=yyyy-MM-dd hh:mm/}
</p>
</div>
<div
class=
"content-txt gbbcode-content"
id=
"contentTxt"
>
...
...
@@ -55,7 +40,7 @@
<div
class=
"discuss_hot discuss_box"
>
<h2
class=
"title-b"
>
最新推荐
</h2>
<ul
class=
"discuss_list"
>
{ms:arclist size=
15 typeid=48
}
{ms:arclist size=
6 typeid=59
}
<li
style=
"height:auto"
>
<a
href=
"[field.link/]"
data-gaevent=
"course-post-title:v3.0.0.0:academy"
>
[field.title/]
</a>
<p>
...
...
src/main/webapp/templets/1/mooc/foot.htm
View file @
98b2772c
<div
class=
"gbottom"
>
<div
class=
"gbottom-i"
>
Copyright @ 2012-2015
景德镇铭飞科技有限公司 版权所有
</div>
</div>
<div
class=
"gbottom"
>
<div
class=
"gbottom-i"
>
Copyright @ 2012-2016
景德镇铭飞科技有限公司 版权所有
</div>
</div>
...
...
src/main/webapp/templets/1/mooc/footer.htm
View file @
98b2772c
<div
class=
"bottom"
>
<div
class=
"container"
>
<ul
class=
"nav bottom-about"
>
<li><a
href=
"{ms:global.url/}/
18
/index.html"
target=
"_blank"
>
合作代理
</a></li>
<li><a
href=
"{ms:global.url/}/
19
/index.html"
target=
"_blank"
>
关于我们
</a></li>
<li><a
href=
"{ms:global.url/}/
16
/index.html"
target=
"_blank"
>
产品服务
</a></li>
<li><a
href=
"{ms:global.url/}/
53/133
/index.html"
target=
"_blank"
>
合作代理
</a></li>
<li><a
href=
"{ms:global.url/}/
53/134
/index.html"
target=
"_blank"
>
关于我们
</a></li>
<li><a
href=
"{ms:global.url/}/
53/135
/index.html"
target=
"_blank"
>
产品服务
</a></li>
<li><a
href=
""
target=
"_blank"
>
去官网看
</a></li>
<li><a
href=
""
target=
"_blank"
>
联系我们
</a></li>
</ul>
...
...
@@ -16,7 +16,57 @@
</div>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookies.2.2.0.js"
type=
"text/javascript"
></script>
<script
src=
"http://cdn.mingsoft.net/plugins/seajs/3.0.0/sea.js"
></script>
<script
src=
"http://mooc.mb.mstore.mingsoft.net/cdn/model/1.0.0/main.min.js"
></script>
<script>
ms
.
config
({
base
:
"
{ms:global.host/}
"
,
filter
:
{
people
:{
loginUrl
:
'
http://www.wellegal.com/login.do
'
}
}
});
</script>
<script>
//登录后显示用户名
$
(
function
(){
//退出登录
ms
.
load
([
"
ms
"
,
"
ms.people
"
],
function
(
ms
,
people
)
{
//获取用户是否登陆
people
.
checkLoginStatus
(
function
(
json
){
if
(
json
.
result
){
var
noticeHTML
=
$
(
"
#navbarNotice
"
);
var
settingHTML
=
$
(
"
#navbarSettings
"
);
$
(
"
.navbar-sign
"
).
html
(
noticeHTML
);
$
(
"
.navbar-login
"
).
html
(
settingHTML
);
$
(
"
.quitLogin
"
).
click
(
function
(){
$
.
cookies
.
del
(
'
PEOPLE_COOKIE
'
);
people
.
people
.
quit
();
location
.
href
=
"
{ms:global.host/}
"
;
});
}
})
})
});
//导航栏跳转样式保留
$
(
document
).
ready
(
function
(){
$
(
"
.nav ul li a
"
).
each
(
function
(){
$this
=
$
(
this
);
if
(
$this
[
0
].
href
==
String
(
window
.
location
)){
$this
.
parent
(
"
li
"
).
addClass
(
"
showColor
"
);
}
});
});
//点击显示用户下拉菜单
$
(
"
.dropdown-toggle
"
).
click
(
function
(){
$
(
"
#settingsBlock
"
).
css
(
"
width
"
,
"
88px
"
);
$
(
"
#settingsBlock
"
).
toggle
();
});
</script>
src/main/webapp/templets/1/mooc/head.htm
View file @
98b2772c
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookies.2.2.0.js"
type=
"text/javascript"
></script>
<script
src=
"http://cdn.mingsoft.net/plugins/seajs/3.0.0/sea.js"
></script>
<script
src=
"http://mooc.mb.mstore.mingsoft.net/cdn/model/1.0.0/main.min.js"
></script>
<script>
ms
.
config
({
base
:
"
{ms:global.host/}
"
,
filter
:
{
people
:{
loginUrl
:
'
http://www.wellegal.com/login.do
'
}
}
});
</script>
<div
class=
"navbar navbar-default"
id=
"navbar"
style=
"height:83px;border-bottom: 2px solid #f2f2f2;"
>
<div
style=
"width:100%;height:100%;border-bottom: 1px solid #e0e0e0;"
>
<div
class=
"container"
>
<div
class=
"navbar-header"
>
<a
class=
"navbar-brand icon-logo"
style=
"margin-left: 19px;"
href=
"{ms:global.
url/}
"
title=
"铭飞科技"
>
铭飞科技
</a>
<a
class=
"navbar-brand icon-logo"
style=
"margin-left: 19px;"
href=
"{ms:global.
host/}/cms/1/search.do
"
title=
"铭飞科技"
>
铭飞科技
</a>
<!--搜索-->
</div>
<div
class=
"collapse navbar-collapse"
id=
"navbarCollapse"
>
...
...
@@ -18,5 +32,5 @@
</div>
</div>
</div>
</div>
</div>
src/main/webapp/templets/1/mooc/header.htm
View file @
98b2772c
<script
src=
"{ms:globalskin.url/}/js/jquery.cookie.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookies.2.2.0.js"
type=
"text/javascript"
></script>
<script
src=
"http://static.ming-soft.net/base/ms.base.min.js"
></script>
<script
src=
"http://static.ming-soft.net/util/ms.util.min.js"
></script>
<script
src=
"http://static.ming-soft.net/people/ms.people.min.js"
type=
"text/javascript"
></script>
<div
class=
"navbar navbar-default"
style=
"background-color: #fff;"
id=
"navbar"
>
<div
class=
"container"
>
<div
class=
"navbar-header"
>
<a
class=
"navbar-brand icon-logo"
href=
"{ms:global.url/}"
title=
"铭飞科技"
>
铭飞科技
</a>
<div
id=
"bdadm-1019183"
class=
"navbar-slogan"
></div>
<!--搜索-->
<form
id=
"searchDataForm"
class=
"navbar-form navbar-right"
action=
"{ms:global.
url/}
/1/search.do"
method=
"post"
>
<form
id=
"searchDataForm"
class=
"navbar-form navbar-right"
action=
"{ms:global.
host/}/cms
/1/search.do"
method=
"post"
>
<div
class=
"form-group"
>
<!--表单的name值不能改变-->
<input
class=
"form-control"
type=
"text"
name=
"basic_title"
maxlength=
"50"
placeholder=
"搜索课程、笔记、帖子、文章"
/>
...
...
@@ -32,20 +29,20 @@
<div
class=
"nav nav-main"
id=
"navMain"
>
<ul
class=
"container"
>
<li
class=
"active"
><a
href=
"{ms:global.url/}"
>
首页
</a></li>
<li><a
href=
"{ms:global.url/}/
48
/index.html"
>
课程
</a></li>
<li><a
href=
"{ms:global.url/}/
37
/index.html"
>
专题
</a></li>
<li><a
href=
"{ms:global.url/}/
49
/index.html"
>
演讲
</a></li>
<li><a
href=
"{ms:global.url/}/
61
/index.html"
>
课程
</a></li>
<li><a
href=
"{ms:global.url/}/
59
/index.html"
>
专题
</a></li>
<li><a
href=
"{ms:global.url/}/
106
/index.html"
>
演讲
</a></li>
<!-- <li><a href="javascript:void(0);">社区</a></li>
-->
</ul>
</div>
<!--登录后右上角-->
<!--登录后右上角-->
<ul
class=
"login-corner"
style=
"display:none"
>
<li
class=
"navbar-notice"
id=
"navbarNotice"
>
<
!--
li class="navbar-notice" id="navbarNotice">
<a href="javascript:void 0;" >
<span class="mooc-notice"></span><span class="navbar-notice-txt">通知</span>
</a>
</li>
</li
--
>
<li
class=
"navbar-settings dropdown"
id=
"navbarSettings"
>
<a
class=
"dropdown-toggle"
href=
"javascript:void 0;"
>
<img
width=
"30"
height=
"30"
src=
"{ms:globalskin.url/}/images/face.png"
alt=
""
>
...
...
@@ -55,35 +52,8 @@
<li
style=
" background-color: #fff;"
>
<a
href=
"{ms:global.host/}/people/userCenter.do"
>
个人主页
</a>
</li>
<li><a
href=
"javascript:exitLogin()
"
>
退出
</a></li>
<li><a
class=
"quitLogin"
style=
"cursor: pointer;
"
>
退出
</a></li>
</ul>
</li>
</ul>
<script>
//登录后显示用户名
$
(
function
(){
var
people
=
$
.
cookies
.
get
(
'
PEOPLE_COOKIE
'
);
var
obj
=
jQuery
.
parseJSON
(
people
);
if
(
obj
!=
null
&&
obj
!=
0
){
var
noticeHTML
=
$
(
"
#navbarNotice
"
);
var
settingHTML
=
$
(
"
#navbarSettings
"
);
$
(
"
.navbar-sign
"
).
html
(
noticeHTML
);
$
(
"
.navbar-login
"
).
html
(
settingHTML
);
}
});
//导航栏跳转样式保留
$
(
document
).
ready
(
function
(){
$
(
"
.nav ul li a
"
).
each
(
function
(){
$this
=
$
(
this
);
if
(
$this
[
0
].
href
==
String
(
window
.
location
)){
$this
.
parent
(
"
li
"
).
addClass
(
"
showColor
"
);
}
});
});
//点击显示用户下拉菜单
$
(
"
.dropdown-toggle
"
).
click
(
function
(){
$
(
"
#settingsBlock
"
).
css
(
"
width
"
,
"
88px
"
);
$
(
"
#settingsBlock
"
).
toggle
();
});
</script>
src/main/webapp/templets/1/mooc/index.htm
View file @
98b2772c
<
!
DOCTYPE
>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
{ms:global.name/}
</title>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}css/list.css"
>
...
...
@@ -7,7 +8,7 @@
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/gui.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/base.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/user
.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/index
.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=header.htm/}
...
...
@@ -15,25 +16,12 @@
<div
class=
"carousel-container"
>
<div
class=
"carousel"
id=
"carousel"
>
<ul>
{ms:arclist typeid=15 size=1 flag=f}
<a
data-carousel=
"3"
href=
"javascript:void(0);"
target=
"_blank"
>
<li
style=
"background:url({ms:global.host/}[field.litpic/]) no-repeat center;"
></li>
</a>
{/ms:arclist}
{ms:arclist typeid=50 size=1 flag=f}
<a
data-carousel=
"2"
href=
"javascript:void(0);"
target=
"_blank"
>
<li
style=
"background:url({ms:global.host/}[field.litpic/]) no-repeat center;"
></li>
</a>
{/ms:arclist}
{ms:arclist typeid=51 size=1 flag=f}
<a
data-carousel=
"1"
href=
"javascript:void(0);"
target=
"_blank"
>
<li
style=
"background:url({ms:global.host/}[field.litpic/]) no-repeat center;"
></li>
</a>
{ms:arclist typeid=147 size=3}
<a
data-carousel=
"[field.index/]"
href=
"javascript:void(0);"
target=
"_blank"
>
<li
style=
"background:url({ms:global.host/}[field.litpic/]) no-repeat center;"
></li>
</a>
{/ms:arclist}
</ul>
</ul>
</div>
<div
class=
"control"
>
<ul>
...
...
@@ -45,11 +33,11 @@
</div>
<h3
class=
"title-b"
>
推荐课程
<a
class=
"all"
href=
"{ms:global.url/}/
48
/index.html"
target=
"_blank"
>
全部课程
</a>
<a
class=
"all"
href=
"{ms:global.url/}/
61
/index.html"
target=
"_blank"
>
全部课程
</a>
</h3>
<div
class=
"list_wrap recommend"
>
<ul
class=
"course_list card_list slider"
>
{ms:arclist titlelen=14 size=4 typeid=
48
}
{ms:arclist titlelen=14 size=4 typeid=
61
}
<li>
<a
class=
"course-img"
href=
"[field.link/]"
target=
"_blank"
>
<div
class=
"shade"
>
...
...
@@ -81,11 +69,11 @@
</ul>
</div>
<h3
class=
"title-b"
>
热门演讲
<a
class=
"all"
href=
"{ms:global.url/}/
4
9/index.html"
target=
"_blank"
>
全部演讲
</a>
<a
class=
"all"
href=
"{ms:global.url/}/
5
9/index.html"
target=
"_blank"
>
全部演讲
</a>
</h3>
<div
class=
"list_wrap talk"
>
<ul
class=
"special_list slider"
>
{ms:arclist size=4 titlelen=14 typeid=
4
9 }
{ms:arclist size=4 titlelen=14 typeid=
5
9 }
<li>
<a
class=
"special-img"
href=
"[field.link/]"
>
<div
class=
"shade"
>
...
...
@@ -103,7 +91,7 @@
<h3
class=
"title-b"
>
新闻动态
</h3>
<div
class=
"list_wrap zone"
>
<ul
class=
"zone_list slider"
>
{ms:arclist size=4 titlelen=14 typeid=
22
}
{ms:arclist size=4 titlelen=14 typeid=
106 order=asc
}
<li>
<div></div>
<div></div>
...
...
@@ -155,7 +143,6 @@
</body>
</html>
<script
src=
"{ms:globalskin.url/}/js/index.js"
type=
"text/javascript"
></script>
<script>
$
(
function
(){
...
...
src/main/webapp/templets/1/mooc/login.htm
View file @
98b2772c
...
...
@@ -7,10 +7,6 @@
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/login-reg.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/index.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"http://static.ming-soft.net/base/ms.base.min.js"
></script>
<script
src=
"http://static.ming-soft.net/util/ms.util.min.js"
></script>
<script
src=
"http://static.ming-soft.net/people/ms.people.min.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=head.htm/}
...
...
@@ -28,10 +24,10 @@
<h1>
欢迎登录
</h1>
<form
class=
"gform"
id=
"loginForm"
method=
"POST"
>
<p
class=
"gform-box"
>
<input
class=
"gbtxt"
id=
"username"
maxlength=
"15"
name=
"
userName"
placeholder=
请输入用户名
type=
"text"
value=
"
"
>
<input
class=
"gbtxt"
id=
"username"
maxlength=
"15"
name=
"
peopleName"
placeholder=
请输入用户名
type=
"text
"
>
</p>
<p
class=
"gform-box"
style=
"margin-bottom:15px;"
>
<input
class=
"gbtxt"
id=
"password"
name=
"p
assWord"
placeholder=
"密码"
type=
"password"
value=
"
"
>
<input
class=
"gbtxt"
id=
"password"
name=
"p
eoplePassword"
placeholder=
"密码"
type=
"password
"
>
</p>
<p
class=
"gform-box"
style=
"margin-bottom:0px"
>
<input
type=
"hidden"
name=
"isImgCode"
value=
"true"
/>
...
...
@@ -66,17 +62,16 @@
}
});
$
(
"
#login-button
"
).
click
(
function
()
{
ms
.
load
([
"
ms
"
,
"
ms.people
"
],
function
(
ms
,
mpeople
)
{
$
(
"
span
"
).
remove
();
ms
.
people
.
web
.
checkLogin
(
$
(
"
#loginForm
"
).
serialize
(),{
"
func
"
:
function
(
json
){
//调用方法
if
(
json
.
result
==
false
){
if
(
json
.
resultMsg
==
"
验证码错误!
"
){
$
(
"
.infor-tips
"
).
html
(
"
<span style='margin-left:3px' class='tip'>
"
+
json
.
resultMsg
+
"
</span>
"
);
}
else
{
userName
.
after
(
"
<span class='tip'>
"
+
json
.
resultMsg
+
"
</span>
"
);
}
}
else
{
location
.
href
=
"
{ms:global.url/}/index.html
"
;
}
}});
mpeople
.
checkLogin
(
$
(
"
#loginForm
"
).
serialize
(),
function
(
json
){
//调用方法
if
(
json
.
result
){
ms
.
alert
(
"
登录成功
"
)
location
.
href
=
"
{ms:global.host/}
"
;
}
else
{
ms
.
alert
(
json
.
resultMsg
)
}
})
});
})
</script>
src/main/webapp/templets/1/mooc/list.htm
→
src/main/webapp/templets/1/mooc/
news-
list.htm
View file @
98b2772c
<!DOCTYPE html>
<!DOCTYPE html>
<html
class=
"no-js screen-scroll"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
...
...
@@ -15,9 +15,9 @@
<div>
课程专题
</div>
</div>
<ul
class=
"zone-list list_wrap"
>
{ms:arclist size=
9
ispaging=true titlelen=16}
{ms:arclist size=
6
ispaging=true titlelen=16}
<li>
<div></div>
<div></div>
<div></div>
<a
class=
"zone-img"
href=
"[field.link/]"
>
<img
width=
"230"
height=
"140"
src=
"{ms:global.host/}[field.litpic/]"
>
...
...
src/main/webapp/templets/1/mooc/news-show.htm
0 → 100644
View file @
98b2772c
<!DOCTYPE HTML>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
{ms:global.name/}
</title>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/detail.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/user.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=header.htm/}
<div
class=
"wrap"
>
<div
class=
"main"
>
<div
class=
"block"
>
<div
class=
"content"
>
<div
class=
"content-th"
>
<h1
id=
"contentTitle"
>
{ms:field.title/}
</h1>
</div>
<div
class=
"post-info"
>
<p
class=
"post-time"
>
{ms:field.date fmt=yyyy-MM-dd hh:mm/}
</p>
</div>
<div
class=
"content-txt gbbcode-content"
id=
"contentTxt"
>
{ms:field.content/}
</div>
</div>
<div
id=
"comments"
class=
"cmts"
></div>
</div>
<div
class=
"metPage"
>
<p>
上一篇:
<a
href=
"{ms:field.prelink/}"
>
{ms:field.pretitle/}
</a></p>
<p>
下一篇:
<a
href=
"{ms:field.nextlink/}"
>
{ms:field.nexttitle/}
</a></p>
</div>
</div>
<div
class=
"side"
>
<!--
<a href="{ms:global.url/}/26/index.html" class="side-back" data-gaevent="post-back:v3.0.0.0:academy">
<span class="side-back-arrow"></span>社区首页
</a>
-->
<div
class=
"discuss_hot discuss_box"
>
<h2
class=
"title-b"
>
最新推荐
</h2>
<ul
class=
"discuss_list"
>
{ms:arclist size=6 typeid=59}
<li
style=
"height:auto"
>
<a
href=
"[field.link/]"
data-gaevent=
"course-post-title:v3.0.0.0:academy"
>
[field.title/]
</a>
<p>
<span
class=
"discuss-time"
>
[field.date fmt=yyyy-MM/]
</span>
<a
class=
"discuss-author"
style=
"color:#1caaea"
href=
"[field.link/]"
>
[field.author/]
</a>
</p>
</li>
{/ms:arclist}
</ul>
</div>
<div
id=
"bdadm-1030252"
class=
"side-adv"
></div>
</div>
</div>
{ms:include filename=footer.htm/}
</body>
</html>
src/main/webapp/templets/1/mooc/changePassWord.htm
→
src/main/webapp/templets/1/mooc/
people/
changePassWord.htm
View file @
98b2772c
...
...
@@ -7,12 +7,6 @@
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/login-reg.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/index.css"
>
<script
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookie.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookies.2.2.0.js"
type=
"text/javascript"
></script>
<script
src=
"http://static.ming-soft.net/base/ms.base.min.js"
></script>
<script
src=
"http://static.ming-soft.net/util/ms.util.min.js"
></script>
<script
src=
"http://static.ming-soft.net/people/ms.people.min.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=head.htm/}
...
...
@@ -22,15 +16,15 @@
</div>
<div
class=
"gspan-15 gprefix-4 main"
style=
"width:545px"
>
<h1>
修改密码
</h1>
<form
class=
"gform"
id=
"regForm"
method=
"POST"
>
<form
class=
"gform"
id=
"regForm"
>
<p
class=
"gform-box"
>
<input
class=
"gbtxt"
id=
"pass"
maxlength=
"20"
name=
"p
assWord"
placeholder=
"当前密码"
required
type=
"text"
value=
"
"
>
<input
class=
"gbtxt"
id=
"pass"
maxlength=
"20"
name=
"p
eopleOldPassword"
placeholder=
"当前密码"
required
type=
"password
"
>
</p>
<p
class=
"gform-box"
>
<input
class=
"gbtxt"
id=
"pass1"
maxlength=
"20"
name=
"
newPassWord"
placeholder=
"请新输入密码"
required
type=
"password"
value=
"
"
>
<input
class=
"gbtxt"
id=
"pass1"
maxlength=
"20"
name=
"
peoplePassword"
placeholder=
"请新输入密码"
required
type=
"password
"
>
</p>
<p
class=
"gform-box"
>
<input
class=
"gbtxt"
id=
"pass2"
maxlength=
"20"
name=
"confirmPassWord"
placeholder=
"确认新密码"
required
type=
"password"
value=
""
>
<input
class=
"gbtxt"
id=
"pass2"
maxlength=
"20"
name=
"confirmPassWord"
placeholder=
"确认新密码"
required
type=
"password"
>
</p>
<p
class=
"gform-box"
>
<button
type=
"button"
class=
"gform-submit greg-btn"
>
立即修改
</button>
...
...
@@ -51,31 +45,33 @@
$
(
"
.greg-btn
"
).
click
(
function
(){
$
(
"
span
"
).
remove
();
if
(
pass
.
val
().
length
==
0
){
pass
.
after
(
"
<span class='tip'>当前密码不能为空</span>
"
);
return
false
;
pass
.
after
(
"
<span class='tip'>当前密码不能为空</span>
"
);
return
false
;
}
else
if
(
pass1
.
val
().
length
<
6
||
pass1
.
val
().
length
>
20
){
pass1
.
after
(
"
<span class='tip'>新密码长度不正确</span>
"
);
return
false
;
pass1
.
after
(
"
<span class='tip'>新密码长度不正确</span>
"
);
return
false
;
}
else
if
(
pass1
.
val
()
!=
pass2
.
val
()
){
pass2
.
after
(
"
<span class='tip'>两次密码不一致</span>
"
);
return
false
;
pass2
.
after
(
"
<span class='tip'>两次密码不一致</span>
"
);
return
false
;
}
else
{
ms
.
people
.
changePassWord
(
$
(
"
#regForm
"
).
serialize
(),{
"
func
"
:
function
(
json
){
//调用方法
if
(
json
.
result
==
false
){
pass
.
after
(
"
<span class='tip'>
"
+
json
.
resultMsg
+
"
</span>
"
);
}
else
{
alert
(
"
修改密码成功
"
);
exit
();
alert
(
"
请重新登录
"
);
}
}})
}})
ms
.
load
([
"
ms
"
,
"
ms.people
"
],
function
(
ms
,
mpeople
)
{
mpeople
.
people
.
changePassword
(
$
(
"
#regForm
"
).
serialize
(),
function
(
json
){
//调用方法
if
(
!
json
.
result
){
pass
.
after
(
"
<span class='tip'>
"
+
json
.
resultMsg
+
"
</span>
"
);
}
else
{
ms
.
alert
(
"
修改密码成功
"
);
exit
(
mpeople
);
ms
.
alert
(
"
请重新登录
"
);
}
})
})
}
})
</script>
<script>
function
exit
()
{
ms
.
people
.
quit
({
"
func
"
:
function
(
json
){
$
.
cookies
.
del
(
'
PEOPLE_COOKIE
'
);
location
.
href
=
"
{ms:global.url/}/index.html
"
;
}});
function
exit
(
mpeople
)
{
$
.
cookies
.
del
(
'
PEOPLE_COOKIE
'
);
mpeople
.
people
.
quit
();
location
.
href
=
"
{ms:global.host/}
"
;
}
</script>
\ No newline at end of file
src/main/webapp/templets/1/mooc/userCenter.htm
→
src/main/webapp/templets/1/mooc/
people/
userCenter.htm
View file @
98b2772c
...
...
@@ -7,10 +7,6 @@
<title>
{ms:global.name/}
</title>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/peopleCenter.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/user.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookie.js"
type=
"text/javascript"
></script>
<script
src=
"{ms:globalskin.url/}/js/jquery.cookies.2.2.0.js"
type=
"text/javascript"
></script>
</head>
<style>
a
{
...
...
@@ -76,7 +72,7 @@ a{
</a>
<p
class=
"me-sai"
></p>
<div
class=
"education"
>
<a
href=
"{ms:global.host/}/changePassWord.do"
>
修改密码
</a>
<a
href=
"{ms:global.host/}/
people/
changePassWord.do"
>
修改密码
</a>
<h3>
个人资料
</h3>
</div>
<ul
class=
"me-nav"
>
...
...
@@ -88,30 +84,15 @@ a{
</body>
</html>
<script>
$
(
function
(){
//获取用户信息
ms
.
people
.
getEntity
({
"
func
"
:
function
(
json
){
//如果已经登录,获取用户信息
if
(
json
.
result
==
true
){
var
peopleIcon
=
jQuery
.
parseJSON
(
json
.
resultData
).
peopleUserIcon
;
if
(
peopleIcon
!=
""
){
$
(
"
.me-avatar
"
).
attr
(
"
src
"
,
"
{ms:global.host/}/
"
+
peopleIcon
.
replace
(
"
|
"
,
""
));
}
}
else
{
location
.
href
=
"
{ms:global.url/}/index.html
"
}
}});
//用户cookies存在
var
people
=
$
.
cookies
.
get
(
'
PEOPLE_COOKIE
'
);
//转形式
var
obj
=
jQuery
.
parseJSON
(
people
);
//显示用户名
if
(
obj
==
null
){
location
.
href
=
"
{ms:global.url/}/index.html
"
}
if
(
obj
!=
null
&&
obj
!=
0
){
$
(
"
.title-b a
"
).
text
(
obj
.
userName
);
}
$
(
function
(){
//获取用户信息
ms
.
load
([
"
ms
"
,
"
ms.people
"
],
function
(
ms
,
mpeople
)
{
mpeople
.
checkLoginStatus
(
function
(
json
){
//如果已经登录,获取用户信息
if
(
!
json
.
result
){
location
.
href
=
"
{ms:global.host/}
"
}
})
});
});
</script>
\ No newline at end of file
src/main/webapp/templets/1/mooc/product-list.htm
0 → 100644
View file @
98b2772c
<!DOCTYPE html>
<!-- saved from url=(0031)http://mooc.guokr.com/talk/new/ -->
<html
class=
"no-js screen-scroll"
>
<!--<![endif]-->
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
{ms:global.name/}
</title>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/discuss.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/lectureList.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/speechBase.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/lectureList.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/user.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=header.htm/}
<div
class=
"wrap"
>
<div
class=
"lecture-wrap clearfix"
>
<div
class=
"nav"
>
<ul
class=
"tabs"
>
<li><a
class=
"active"
href=
"#"
>
最新
</a></li>
<li><a
href=
"#"
>
最热
</a></li>
</ul>
<a
id=
"addVideo"
class=
"add-video"
href=
"javascript:void(0)"
>
贴演讲
</a>
</div>
<div
class=
"lecture-list"
>
<ul
class=
"list-hot"
>
{ms:arclist size=106 size=4 ispaging=true}
<li
data-id=
"1128"
>
<div
class=
"speech clearfix"
>
<div
class=
"estimate"
>
<a
class=
"sup"
href=
"javascript:void(0)"
>
<span></span>
</a>
<span>
[field.index/]
</span>
<a
class=
"opp"
href=
"javascript:void(0)"
>
<span></span>
</a>
</div>
<a
class=
"video"
target=
"_blank"
href=
"[field.link/]"
>
<div
class=
"shade"
>
<img
src=
"{ms:global.host/}[field.litpic/]"
>
</div>
</a>
<div
class=
"video-right"
>
<div
class=
"video-detail"
>
<div
class=
"up-info"
style=
"margin-top: 20px;"
>
<a
class=
"video-title"
target=
"_blank"
href=
"[field.link/]"
data-gaevent=
"lecture-list-video:v4.0.0.0:academy"
>
[field.title/]
</a>
<a
class=
"video-source"
href=
"#"
>
[field.source/]
</a>
</div>
<div
class=
"info-wrap"
>
</div>
<div
class=
"view-info viewpoint-wrap"
style=
"display: block;"
>
<span
class=
"viewpoint"
>
[field.date fmt=yyyy-MM-dd /]
</span>
</div>
<div
class=
"hidden-info"
style=
"display: none;"
>
<p>
这篇演讲还没评出最精彩的观点哦,说说看你的?
</p>
<a
class=
"seen"
href=
"javascript: void 0;"
>
看过
</a>
<a
class=
"skip"
href=
"javascript: void 0;"
>
不感兴趣
</a>
</div>
</div>
</div>
</div>
</li>
{/ms:arclist}
</ul>
<div
class=
"seen_overlay"
id=
"seenOverlay"
>
已添加到「我看过的演讲」
</div>
</div>
</div>
<ul
class=
"pagination"
>
<li><a
href=
"{ms:page.index/}"
>
首页
</a></li>
<li><a
href=
"{ms:page.pre/}"
>
上一页
</a></li>
<li><a
href=
"{ms:page.next/}"
>
下一页
</a></li>
<li><a
href=
"{ms:page.last/}"
>
末页
</a></li>
</ul>
</div>
{ms:include filename=footer.htm/}
</body>
</html>
\ No newline at end of file
src/main/webapp/templets/1/mooc/product-show.htm
0 → 100644
View file @
98b2772c
<!DOCTYPE HTML>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
{ms:global.name/}
</title>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/detail.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"{ms:globalskin.url/}/js/user.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=header.htm/}
<div
class=
"wrap"
>
<div
class=
"main"
>
<div
class=
"block"
>
<div
class=
"content"
>
<div
class=
"content-th"
>
<h1
id=
"contentTitle"
>
{ms:field.title/}
</h1>
</div>
<div
class=
"post-info"
>
<p
class=
"post-time"
>
{ms:field.date fmt=yyyy-MM-dd hh:mm/}
</p>
</div>
<div
class=
"content-txt gbbcode-content"
id=
"contentTxt"
>
{ms:field.content/}
</div>
</div>
<div
id=
"comments"
class=
"cmts"
></div>
</div>
<div
class=
"metPage"
>
<p>
上一篇:
<a
href=
"{ms:field.prelink/}"
>
{ms:field.pretitle/}
</a></p>
<p>
下一篇:
<a
href=
"{ms:field.nextlink/}"
>
{ms:field.nexttitle/}
</a></p>
</div>
</div>
<div
class=
"side"
>
<!--
<a href="{ms:global.url/}/26/index.html" class="side-back" data-gaevent="post-back:v3.0.0.0:academy">
<span class="side-back-arrow"></span>社区首页
</a>
-->
<div
class=
"discuss_hot discuss_box"
>
<h2
class=
"title-b"
>
最新推荐
</h2>
<ul
class=
"discuss_list"
>
{ms:arclist size=6 typeid=59}
<li
style=
"height:auto"
>
<a
href=
"[field.link/]"
data-gaevent=
"course-post-title:v3.0.0.0:academy"
>
[field.title/]
</a>
<p>
<span
class=
"discuss-time"
>
[field.date fmt=yyyy-MM/]
</span>
<a
class=
"discuss-author"
style=
"color:#1caaea"
href=
"[field.link/]"
>
[field.author/]
</a>
</p>
</li>
{/ms:arclist}
</ul>
</div>
<div
id=
"bdadm-1030252"
class=
"side-adv"
></div>
</div>
</div>
{ms:include filename=footer.htm/}
</body>
</html>
src/main/webapp/templets/1/mooc/register.htm
View file @
98b2772c
...
...
@@ -7,10 +7,6 @@
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/list.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/index.css"
>
<link
rel=
"stylesheet"
href=
"{ms:globalskin.url/}/css/gui.css"
>
<script
type=
"text/javascript"
src=
"{ms:globalskin.url/}/js/jquery-1.9.1.min.js"
></script>
<script
src=
"http://static.ming-soft.net/base/ms.base.min.js"
></script>
<script
src=
"http://static.ming-soft.net/util/ms.util.min.js"
></script>
<script
src=
"http://static.ming-soft.net/people/ms.people.min.js"
type=
"text/javascript"
></script>
</head>
<body>
{ms:include filename=head.htm/}
...
...
@@ -41,7 +37,7 @@
<p
class=
"gform-box"
style=
"margin-bottom:0px;"
>
<input
type=
"hidden"
name=
"isImgCode"
value=
"true"
/>
<input
class=
"gbtxt"
id=
"user_code"
maxlength=
"4"
style=
"width: 259px;"
name=
"rand_code"
placeholder=
"验证码"
required
type=
"text"
value=
""
>
<img
id=
"yzmimg"
class=
"ms-w32 ms-h16"
style=
"position: relative;top: 9px;height:26px;width:86px;"
src=
"
/code"
onclick=
"this.src='
/code?t='+new Date().getTime()"
>
<img
id=
"yzmimg"
class=
"ms-w32 ms-h16"
style=
"position: relative;top: 9px;height:26px;width:86px;"
src=
"
{ms:global.host/}/code"
onclick=
"this.src='{ms:global.host/}
/code?t='+new Date().getTime()"
>
</p>
<div
class=
"infor-tips"
></div>
<p
class=
"gform-box"
>
...
...
@@ -55,47 +51,55 @@
</body>
</html>
<script>
//后去用户名输入框
var
user_name
=
$
(
"
#user_name
"
);
//获取密码输入框
var
user_pass
=
$
(
"
#user_pass
"
);
//获取确认密码输入框
var
user_pass2
=
$
(
"
#user_pass2
"
);
//验证码输入框
var
user_code
=
$
(
"
#user_code
"
);
//注册验证开始
$
(
"
#greg-btn
"
).
click
(
function
()
{
$
(
"
span
"
).
remove
();
//判断用户名是否为空
if
(
user_name
.
val
().
length
<
3
)
{
user_name
.
after
(
"
<span class='tip'>用户名长度太短</span>
"
);
return
false
;
}
else
if
(
user_name
.
val
().
length
>
12
){
user_name
.
after
(
"
<span class='tip'>用户名长度太长</span>
"
);
return
false
;
}
//判断密码长达
else
if
(
user_pass
.
val
().
length
<
6
||
user_pass
.
val
().
length
>
20
){
user_pass
.
after
(
"
<span class='tip'>密码长度不正确</span>
"
);
return
false
;
//两次密码是否一致
}
else
if
(
user_pass
.
val
()
!=
user_pass2
.
val
()){
user_pass2
.
after
(
"
<span class='tip'>两次密码不一致</span>
"
);
return
false
;
}
else
{
//调用方法
ms
.
people
.
web
.
register
(
1
,{
"
people
"
:
$
(
"
#regForm
"
).
serialize
(),
"
func
"
:
function
(
json
){
if
(
json
.
result
==
false
){
if
(
json
.
resultMsg
==
"
验证码错误!
"
){
$
(
"
.infor-tips
"
).
html
(
"
<span style='margin-left:3px' class='tip'>
"
+
json
.
resultMsg
+
"
</span>
"
);
}
else
{
user_name
.
after
(
"
<span class='tip'>
"
+
json
.
resultMsg
+
"
</span>
"
);
}
}
else
{
alert
(
"
注册成功!请登录
"
);
location
.
href
=
"
{ms:global.host/}/login.do
"
}
}});
$
(
function
(){
//后去用户名输入框
var
user_name
=
$
(
"
#user_name
"
);
//获取密码输入框
var
user_pass
=
$
(
"
#user_pass
"
);
//获取确认密码输入框
var
user_pass2
=
$
(
"
#user_pass2
"
);
//验证码输入框
var
user_code
=
$
(
"
#user_code
"
);
//注册验证开始
$
(
"
#greg-btn
"
).
click
(
function
()
{
$
(
"
span
"
).
remove
();
//判断用户名是否为空
if
(
user_name
.
val
().
length
<
3
)
{
user_name
.
after
(
"
<span class='tip'>用户名长度太短</span>
"
);
return
false
;
}
else
if
(
user_name
.
val
().
length
>
12
){
user_name
.
after
(
"
<span class='tip'>用户名长度太长</span>
"
);
return
false
;
}
//判断密码长达
else
if
(
user_pass
.
val
().
length
<
6
||
user_pass
.
val
().
length
>
20
){
user_pass
.
after
(
"
<span class='tip'>密码长度不正确</span>
"
);
return
false
;
//两次密码是否一致
}
else
if
(
user_pass
.
val
()
!=
user_pass2
.
val
()){
user_pass2
.
after
(
"
<span class='tip'>两次密码不一致</span>
"
);
return
false
;
}
else
{
//调用方法
ms
.
load
([
"
ms
"
,
"
ms.people
"
],
function
(
ms
,
mpeople
)
{
mpeople
.
check
(
"
peopleName=
"
+
user_name
.
val
(),
function
(
json
){
if
(
json
.
result
){
ms
.
alert
(
"
当前用户名已被注册,请换一个吧
"
)
}
else
{
mpeople
.
register
(
$
(
"
#regForm
"
).
serialize
(),
function
(
json
){
if
(
json
.
result
){
ms
.
alert
(
"
注册成功!请登录
"
);
location
.
href
=
"
{ms:global.host/}/login.do
"
}
else
{
ms
.
alert
(
json
.
resultMsg
)
}
});
}
})
})
}
})
})
</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