Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
land_army
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
land_army
Commits
420c335e
Commit
420c335e
authored
May 26, 2022
by
sugar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://rungit.jxdsy.cn:10000/sugar/land_army
into dev
parents
26e725e2
3f469f57
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
187 additions
and
22 deletions
+187
-22
application/common.php
application/common.php
+49
-0
application/config.php
application/config.php
+1
-0
application/index/view/index/index.html
application/index/view/index/index.html
+5
-4
application/index/view/index/jxyxindex.html
application/index/view/index/jxyxindex.html
+2
-1
application/index/view/index/newdetaile.html
application/index/view/index/newdetaile.html
+2
-2
application/index/view/index/newscatelist.html
application/index/view/index/newscatelist.html
+2
-2
application/index/view/index/newscatelist_backups.html
application/index/view/index/newscatelist_backups.html
+1
-1
application/index/view/index/notices.html
application/index/view/index/notices.html
+3
-3
application/index/view/index/onlineclass.html
application/index/view/index/onlineclass.html
+3
-3
application/index/view/index/videoviewing.html
application/index/view/index/videoviewing.html
+3
-3
application/index/view/index/zydtindex.html
application/index/view/index/zydtindex.html
+2
-2
public/static/css/global.css
public/static/css/global.css
+6
-0
public/static/css/global.scss
public/static/css/global.scss
+5
-0
public/static/images/home/search_logo1.png
public/static/images/home/search_logo1.png
+0
-0
public/static/images/home/websitename.png
public/static/images/home/websitename.png
+0
-0
public/static/images/home/websitename1.png
public/static/images/home/websitename1.png
+0
-0
public/static/images/home/websitename2.png
public/static/images/home/websitename2.png
+0
-0
public/static/js/global.js
public/static/js/global.js
+103
-1
No files found.
application/common.php
View file @
420c335e
...
...
@@ -563,3 +563,52 @@ if (!function_exists('get_banner')) {
return
$banner
;
}
}
function
sendCurl
(
$url
,
$curlPost
=
''
,
$header
=
0
)
{
$ch
=
curl_init
();
//初始化curl
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
// 跳过证书检查
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
false
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
//设置URL
curl_setopt
(
$ch
,
CURLOPT_TIMEOUT
,
30
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
//设置为返回模式
if
(
$header
)
{
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
1
);
//获取头文件信息
}
else
{
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
0
);
//不获取头文件信息
}
if
(
!
empty
(
$curlPost
))
{
curl_setopt
(
$ch
,
CURLOPT_POST
,
1
);
//设置POST
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$curlPost
);
//POST参数
}
$output
=
curl_exec
(
$ch
);
$error
=
curl_error
(
$ch
);
curl_close
(
$ch
);
return
$output
;
}
function
postCurl
(
$url
,
$curlPost
=
''
,
$header
=
0
)
{
$ch
=
curl_init
();
//初始化curl
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
// 跳过证书检查
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
false
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
//设置URL
curl_setopt
(
$ch
,
CURLOPT_TIMEOUT
,
30
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
//设置为返回模式
if
(
$header
)
{
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
1
);
//获取头文件信息
}
else
{
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
0
);
//不获取头文件信息
}
if
(
!
empty
(
$curlPost
))
{
curl_setopt
(
$ch
,
CURLOPT_POST
,
1
);
//设置POST
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$curlPost
);
//POST参数
}
$output
=
curl_exec
(
$ch
);
$error
=
curl_error
(
$ch
);
curl_close
(
$ch
);
return
$output
;
}
application/config.php
View file @
420c335e
...
...
@@ -298,4 +298,5 @@ return [
//API接口地址
'api_url'
=>
'https://api.fastadmin.net'
,
],
'LJApi_ip'
=>
"http://testluma.com"
,
];
application/index/view/index/index.html
View file @
420c335e
...
...
@@ -31,11 +31,12 @@
<div
class=
"homebanners"
style=
"background-image: url('{$indexbanner.photo ?? "
"}');"
>
<div
class=
"container banner_search"
>
<div
class=
"search_tags"
>
<img
class=
"search_logo"
src=
"/static/images/home/search_logo.png"
alt=
""
>
<h1>
军队基层政治工作课程网站
</h1>
<p
class=
"describes"
>
Military grass-roots political work course website
</p>
<img
class=
"search_logo"
src=
"/static/images/home/search_logo1.png"
alt=
""
>
<!-- <h1>军队基层政治工作课程网站</h1> -->
<img
class=
"websitenameimg"
src=
"/static/images/home/websitename2.png"
alt=
""
>
<!-- <p class="describes">Military grass-roots political work course website</p> -->
<div
class=
"searchinput"
>
<input
class=
"seinputss"
id=
"seinputss"
type=
"text"
name=
"keywords"
placeholder=
"请输入关键字"
>
<input
autocomplete=
"off"
class=
"seinputss"
id=
"seinputss"
type=
"text"
name=
"keywords"
placeholder=
"请输入关键字"
>
<button
class=
"submit_search"
id=
"submit_search"
>
搜索
</button>
</div>
</div>
...
...
application/index/view/index/jxyxindex.html
View file @
420c335e
...
...
@@ -249,7 +249,8 @@
</div>
<div
class=
"jxyx_plate_seven"
>
<!-- 在线课堂 -->
<div
class=
"jxyx_plate_seven"
id=
"jxyx_plate_seven"
>
<div
class=
"container"
>
<div
class=
"jxyx_tit"
>
<img
class=
"jxyx_titing"
src=
"/static/images/jxyxindex/UshSbnDU1O765d5B.png"
alt=
""
>
...
...
application/index/view/index/newdetaile.html
View file @
420c335e
...
...
@@ -25,10 +25,10 @@
{include file="common/headnavs" /}
<div
class=
"container"
>
<ol
class=
"breadcrumb"
>
<ol
class=
"breadcrumb"
id=
"breadcrumb"
>
<li><a
href=
"{:url('index/index')}"
>
首页
</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li
classid=
"{$vo.id}"
>
{$vo.title}
</li>
<li
classid=
"{$vo.id}"
>
<a
href=
"javascript:;"
>
{$vo.title}
</a>
</li>
{/foreach}
<li
class=
"active"
>
正文
</li>
</ol>
...
...
application/index/view/index/newscatelist.html
View file @
420c335e
...
...
@@ -60,10 +60,10 @@
</div>
</div>
<ol
class=
"breadcrumb"
>
<ol
class=
"breadcrumb"
id=
"breadcrumb"
>
<li><a
href=
"{:url('index/index')}"
>
首页
</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li
>
{$vo.title}
</li>
<li
classid=
"{$vo.id}"
><a
href=
"javascript:;"
>
{$vo.title}
</a>
</li>
{/foreach}
</ol>
<ul
class=
"newscateslist"
id=
"newscateslist"
>
...
...
application/index/view/index/newscatelist_backups.html
View file @
420c335e
...
...
@@ -51,7 +51,7 @@
<div
class=
"news_head_names"
>
全部动态
</div>
</div>
<ol
class=
"breadcrumb"
>
<ol
class=
"breadcrumb"
id=
"breadcrumb"
>
<li><a
href=
"#"
>
首页
</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li><a
href=
"#"
>
{$vo}
</a></li>
...
...
application/index/view/index/notices.html
View file @
420c335e
...
...
@@ -30,12 +30,12 @@
<div
class=
"newscatemain clearfix"
>
<div
class=
"container"
>
<div
class=
"newstitleones"
style=
"margin-bottom:10px;"
>
<
!-- <
div class="newstitleones" style="margin-bottom:10px;">
<h3>教学公告</h3>
<p>TEACHING ANNOUNCEMENT</p>
</div>
</div>
-->
<div
class=
"newscate_views"
>
<div
class=
"newscate_views"
style=
"margin-top:32px;"
>
{foreach name="teachclass" item="vo"}
<div
class=
"newscate_views_item"
>
<div
class=
"newscate_views_tit"
>
...
...
application/index/view/index/onlineclass.html
View file @
420c335e
...
...
@@ -49,10 +49,10 @@
</div>
</div>
<div
class=
"container"
>
<ol
class=
"breadcrumb linesbreadcrumb"
>
<li><a
href=
"
#
"
>
首页
</a></li>
<ol
class=
"breadcrumb linesbreadcrumb"
id=
"breadcrumb"
>
<li><a
href=
"
/
"
>
首页
</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li
classid=
"{$vo.id}"
><a
href=
"
#
"
>
{$vo.title}
</a></li>
<li
classid=
"{$vo.id}"
><a
href=
"
javascript:;
"
>
{$vo.title}
</a></li>
{/foreach}
</ol>
</div>
...
...
application/index/view/index/videoviewing.html
View file @
420c335e
...
...
@@ -32,10 +32,10 @@
<div
class=
"videoviewing_main"
>
<div
class=
"container "
>
<div>
<ol
class=
"breadcrumb"
>
<li><a
href=
"
#
"
>
首页
</a></li>
<ol
class=
"breadcrumb"
id=
"breadcrumb"
>
<li><a
href=
"
/
"
>
首页
</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li
classid=
"{$vo.id}"
><a
href=
"
#
"
>
{$vo.title}
</a></li>
<li
classid=
"{$vo.id}"
><a
href=
"
javascript:;
"
>
{$vo.title}
</a></li>
{/foreach}
</ol>
<div
class=
"clearfix"
>
...
...
application/index/view/index/zydtindex.html
View file @
420c335e
...
...
@@ -31,10 +31,10 @@
<!-- 专业动态 -->
<div
class=
"newscatesbanner"
>
<div
class=
"container newscatesbannercon"
>
<div
class=
"newsbanner_title clearfix"
>
<
!-- <
div class="newsbanner_title clearfix">
<h2>专业动态</h2>
<p>PROFESSIONAL NEWS</p>
</div>
</div>
-->
<div
id=
"cateindexs"
class=
"carousel slide catebannerswiper clearfix"
>
<ol
class=
"carousel-indicators"
>
{foreach name="CourseArticles" item="vo" key="k"}
...
...
public/static/css/global.css
View file @
420c335e
...
...
@@ -233,6 +233,12 @@ a:focus, a:hover {
line-height
:
1
;
}
.homebanners
.banner_search
.search_tags
.websitenameimg
{
display
:
block
;
margin
:
0
auto
;
margin-top
:
28px
;
}
.homebanners
.banner_search
.search_tags
.describes
{
line-height
:
1
;
margin-top
:
9px
;
...
...
public/static/css/global.scss
View file @
420c335e
...
...
@@ -218,6 +218,11 @@ $navwidth:120px;
font-size
:
54px
;
line-height
:
1
;
}
.websitenameimg
{
display
:
block
;
margin
:
0
auto
;
margin-top
:
28px
;
}
.describes
{
line-height
:
1
;
margin-top
:
9px
;
...
...
public/static/images/home/search_logo1.png
0 → 100644
View file @
420c335e
52.2 KB
public/static/images/home/websitename.png
0 → 100644
View file @
420c335e
50.4 KB
public/static/images/home/websitename1.png
0 → 100644
View file @
420c335e
51.9 KB
public/static/images/home/websitename2.png
0 → 100644
View file @
420c335e
88.4 KB
public/static/js/global.js
View file @
420c335e
/***
* v w_code
*
*/
$
(
function
(){
//返回顶部
if
(
$
(
"
meta[name=toTop]
"
).
attr
(
"
content
"
)
==
"
true
"
)
{
...
...
@@ -135,7 +140,7 @@ $(function(){
for
(
var
i
=
0
;
i
<
navitemslist
.
length
;
i
++
){
var
navitem
=
$
(
"
.head_navs
"
).
find
(
"
.navitems
"
).
eq
(
i
);
var
itemhref
=
navitem
.
find
(
"
.alink
"
).
attr
(
"
href
"
);
console
.
info
(
itemhref
);
//
console.info(itemhref);
if
(
itemhref
.
indexOf
(
pathname
)
!=-
1
){
// console.info('选中',i)
$
(
"
.ulnavlist .navitems
"
).
find
(
'
.alink
'
).
removeClass
(
'
active
'
);
...
...
@@ -187,6 +192,103 @@ $(function(){
$
(
"
#left_jtx1
"
).
hide
();
}
}
//链接规则处理 都是小写 处理面包屑点击事件
// 转换成大写:toUpperCase()
// 转换成小写:toLowerCase()
var
webSiteurlRule
=
[
{
titlename
:
"
首页
"
,
urlmate
:
"
index/index/index
"
},
{
titlename
:
"
专业动态
"
,
urlmate
:
"
index/dynamic/seconddynamic
"
},
{
titlename
:
"
教学公告
"
,
urlmate
:
"
index/teachnotice/secondnotice
"
},
{
titlename
:
"
教学运行
"
,
urlmate
:
"
index/teachrun/secondteachrun
"
},
{
titlename
:
"
课程资源
"
,
urlmate
:
"
index/courseresource/index
"
},
{
titlename
:
"
教研成果
"
,
urlmate
:
"
index/scientific/index
"
},
{
titlename
:
"
互动平台
"
,
urlmate
:
"
index/interactive/index
"
},
{
titlename
:
"
战时政治工作
"
,
urlmate
:
"
index/Wartimepolitical/index
"
},
{
titlename
:
"
文体俱乐部
"
,
urlmate
:
"
index/Sportsclub/index
"
},
//教学运行
{
titlename
:
"
教学文件
"
,
urlmate
:
"
index/teachrun/secondteachrun.html#jxyx_plate_one
"
},
{
titlename
:
"
基本教案
"
,
urlmate
:
"
index/teachrun/secondteachrun.html#jxyx_plate_two
"
},
{
titlename
:
"
自编教材
"
,
urlmate
:
"
index/teachrun/secondteachrun.html#jxyx_plate_three
"
},
{
titlename
:
"
教学案例
"
,
urlmate
:
"
index/teachrun/secondteachrun.html#jxyx_plate_four
"
},
{
titlename
:
"
政工想定
"
,
urlmate
:
"
index/teachrun/secondteachrun.html#jxyx_plate_five
"
},
{
titlename
:
"
在线课堂
"
,
urlmate
:
"
index/teachrun/secondteachrun.html#jxyx_plate_seven
"
},
//课程资源
{
titlename
:
"
重要论述
"
,
urlmate
:
"
index/courseresource/index.html#jxyx_plate_zylss50
"
},
{
titlename
:
"
经典文献
"
,
urlmate
:
"
index/courseresource/index.html#jxyx_plate_zylss51
"
},
{
titlename
:
"
政工法规
"
,
urlmate
:
"
index/courseresource/index.html#jxyx_plate_zylss52
"
},
{
titlename
:
"
调研报告
"
,
urlmate
:
"
index/courseresource/index.html#jxyx_plate_zylss53
"
},
{
titlename
:
"
研究文章
"
,
urlmate
:
"
index/courseresource/index.html#jxyx_plate_zylss54
"
},
{
titlename
:
"
影音资料
"
,
urlmate
:
"
index/courseresource/index.html#jxyx_plate_zylss55
"
},
//教研成果
{
titlename
:
"
获奖成果
"
,
urlmate
:
"
index/scientific/index.html#jycg_plate_one60
"
},
{
titlename
:
"
学术著作
"
,
urlmate
:
"
index/scientific/index.html#jycg_plate_one61
"
},
{
titlename
:
"
学术文章
"
,
urlmate
:
"
index/scientific/index.html#jycg_plate_one62
"
},
{
titlename
:
"
科研题目
"
,
urlmate
:
"
index/scientific/index.html#jycg_plate_one63
"
},
//互动平台
{
titlename
:
"
课后作业
"
,
urlmate
:
"
index/interactive/index.html#hdpt_plate_100
"
},
{
titlename
:
"
作业展评
"
,
urlmate
:
"
index/interactive/index.html#hdpt_plate_101
"
},
//战时政治工作
{
titlename
:
"
历史经验
"
,
urlmate
:
"
index/Wartimepolitical/index#tszt_plate_120
"
},
{
titlename
:
"
成果交流
"
,
urlmate
:
"
index/Wartimepolitical/index#tszt_plate_121
"
},
{
titlename
:
"
热点追踪
"
,
urlmate
:
"
index/Wartimepolitical/index#tszt_plate_122
"
},
{
titlename
:
"
实践探究
"
,
urlmate
:
"
index/Wartimepolitical/index#tszt_plate_123
"
},
//文体俱乐部
{
titlename
:
"
板报展板
"
,
urlmate
:
"
index/Sportsclub/index#wtjlb_plate_130
"
},
{
titlename
:
"
演讲主持
"
,
urlmate
:
"
index/Sportsclub/index#wtjlb_plate_131
"
},
{
titlename
:
"
曲艺小品
"
,
urlmate
:
"
index/Sportsclub/index#wtjlb_plate_132
"
},
{
titlename
:
"
美术设计
"
,
urlmate
:
"
index/Sportsclub/index#wtjlb_plate_133
"
},
]
var
CrumbsList
=
$
(
"
#breadcrumb
"
).
find
(
"
li
"
);
for
(
var
ks
=
0
;
ks
<
CrumbsList
.
length
;
ks
++
){
var
CrumbsNavItem
=
CrumbsList
[
ks
];
var
ItemPageNavName
=
$
(
CrumbsNavItem
).
text
();
// console.info(ItemPageNavName,"菜单栏的名字");
for
(
var
aa
=
0
;
aa
<
webSiteurlRule
.
length
;
aa
++
){
var
RuleItem
=
webSiteurlRule
[
aa
];
if
(
ItemPageNavName
==
RuleItem
.
titlename
){
$
(
CrumbsNavItem
).
find
(
'
a
'
).
attr
(
"
href
"
,
"
/index.php/
"
+
RuleItem
.
urlmate
);
}
}
var
hrefUrl
=
$
(
CrumbsNavItem
).
find
(
'
a
'
).
attr
(
"
href
"
);
hrefUrl
=
hrefUrl
?
hrefUrl
:
""
;
if
(
hrefUrl
.
indexOf
(
"
javascript:;
"
)
!=-
1
){
//没能匹配成功
var
classid
=
$
(
CrumbsNavItem
).
attr
(
"
classid
"
);
classid
=
parseInt
(
classid
);
if
(
classid
>=
20
){
//分类list
$
(
CrumbsNavItem
).
find
(
'
a
'
).
attr
(
"
href
"
,
"
/index.php/index/article/articleList?class_id=
"
+
classid
);
}
}
}
//设置内页的顶部导航栏选中
if
(
CrumbsList
.
length
!=
0
){
var
navitemslist
=
$
(
"
.head_navs
"
).
find
(
"
.navitems
"
);
for
(
var
ks1
=
0
;
ks1
<
CrumbsList
.
length
;
ks1
++
){
//循环面包屑
var
CrumbsNavItem
=
CrumbsList
[
ks1
];
var
ItemPageNavName
=
$
(
CrumbsNavItem
).
text
();
for
(
var
jc
=
0
;
jc
<
navitemslist
.
length
;
jc
++
){
//循环菜单栏
var
navitemss
=
navitemslist
[
jc
];
var
navitemssTit
=
$
(
navitemss
).
text
();
if
(
jc
!=
0
&&
navitemssTit
==
ItemPageNavName
){
$
(
"
.ulnavlist .navitems
"
).
find
(
'
.alink
'
).
removeClass
(
'
active
'
);
$
(
"
.head_navs
"
).
find
(
"
.navitems
"
).
eq
(
jc
).
find
(
'
.alink
'
).
addClass
(
'
active
'
);
break
;
}
}
}
}
})
// 浏览器下载
...
...
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