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
526736be
Commit
526736be
authored
May 26, 2022
by
sugar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reward
parent
cc7a1b5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
70 deletions
+28
-70
application/index/controller/Index.php
application/index/controller/Index.php
+4
-4
application/index/view/index/index.html
application/index/view/index/index.html
+24
-66
No files found.
application/index/controller/Index.php
View file @
526736be
...
...
@@ -46,8 +46,7 @@ class Index extends Frontend
$CourseArticleList
=
CourseArticleModel
::
where
([
'class_id'
=>
[
'in'
,
$dynamic_class_ids
],
'index_type'
=>
1
])
->
order
(
'orderby asc'
)
->
limit
(
6
)
->
select
();
foreach
(
$CourseArticleList
as
$ke
=>
$va
){
$CourseArticleList
[
$ke
][
'title'
]
=
mb_substr_content
(
$va
[
'title'
],
25
);
$CourseArticleList
[
$ke
][
'day'
]
=
date
(
'd'
,
$va
[
'createtime'
]);
$CourseArticleList
[
$ke
][
'month'
]
=
date
(
'Y-m'
,
$va
[
'createtime'
]);
$CourseArticleList
[
$ke
][
'date'
]
=
date
(
'Y-m-d'
,
$va
[
'createtime'
]);
}
}
...
...
@@ -76,8 +75,9 @@ class Index extends Frontend
}
foreach
(
$TeachRunArticles
as
$k
=>
$v
){
$TeachRunArticles
[
$k
][
'title'
]
=
mb_substr_content
(
$v
[
'title'
],
25
);
$TeachRunArticles
[
$k
][
'day'
]
=
date
(
'd'
,
$v
[
'createtime'
]);
$TeachRunArticles
[
$k
][
'month'
]
=
date
(
'Y-m'
,
$v
[
'createtime'
]);
$CourseArticleList
[
$ke
][
'date'
]
=
date
(
'Y-m-d'
,
$va
[
'createtime'
]);
// $TeachRunArticles[$k]['day'] = date('d',$v['createtime']);
// $TeachRunArticles[$k]['month'] = date('Y-m',$v['createtime']);
}
$teachrunclass
[
$key
][
'TeachArticles'
]
=
$TeachRunArticles
;
}
...
...
application/index/view/index/index.html
View file @
526736be
...
...
@@ -89,42 +89,14 @@
</div>
<ul
class=
"zydtuldatalist"
>
{foreach name="CourseArticleList" item="vo" key="k"}
<li
class=
"zydtuldata_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”
</div>
<span
class=
"zydtuldata_item_time"
>
2022-04-29
</span>
</a>
</li>
<li
class=
"zydtuldata_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”
</div>
<span
class=
"zydtuldata_item_time"
>
2022-04-29
</span>
</a>
</li>
<li
class=
"zydtuldata_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”
</div>
<span
class=
"zydtuldata_item_time"
>
2022-04-29
</span>
</a>
</li>
<li
class=
"zydtuldata_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”
</div>
<span
class=
"zydtuldata_item_time"
>
2022-04-29
</span>
</a>
</li>
<li
class=
"zydtuldata_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”
</div>
<span
class=
"zydtuldata_item_time"
>
2022-04-29
</span>
</a>
</li>
<li
class=
"zydtuldata_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”微党课成就“大讲堂”
</div>
<span
class=
"zydtuldata_item_time"
>
2022-04-29
</span>
<a
href=
"/index.php/index/article/articleDetail?article_id={$vo.id}"
target=
"_blank"
>
<div
class=
"zydtuldata_item_titles oneline"
>
{$vo.title}
</div>
<span
class=
"zydtuldata_item_time"
>
{$vo.date}
</span>
</a>
</li>
{/foreach}
</ul>
</div>
...
...
@@ -232,47 +204,33 @@
</div>
</a>
<ul
class=
"jiaoxueyunxnewul"
>
{foreach name="
[1,2,3,4,5,6]" item="vo" key="k"
}
{foreach name="
teachrunclass" item="vo" key="k" offset="0" length="5"
}
<li
class=
"jxyxnrws_cate_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"cates_item_title"
>
<img
class=
"listitemtitle"
src=
"/static/images/index/listitemtitle.png"
alt=
""
>
<div
class=
"cates_namest"
>
教学文件
</div>
<div
class=
"cates_namest"
>
{$vo.title}
</div>
</div>
</a>
<div
class=
"item_cate_new_con_list"
>
<div
class=
"item_cate_new_con_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
微党课成就“大讲堂”
</div>
<span
class=
"item_cate_newsdatetime"
>
2022-04-29
</span>
</a>
</div>
<div
class=
"item_cate_new_con_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
微党课成就“大讲堂”
</div>
<span
class=
"item_cate_newsdatetime"
>
2022-04-29
</span>
</a>
</div>
<div
class=
"item_cate_new_con_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
微党课成就“大讲堂”
</div>
<span
class=
"item_cate_newsdatetime"
>
2022-04-29
</span>
</a>
</div>
<div
class=
"item_cate_new_con_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
微党课成就“大讲堂”
</div>
<span
class=
"item_cate_newsdatetime"
>
2022-04-29
</span>
</a>
</div>
<div
class=
"item_cate_new_con_item"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
微党课成就“大讲堂”
</div>
<span
class=
"item_cate_newsdatetime"
>
2022-04-29
</span>
</a>
</div>
{foreach name="vo['TeachArticles']" item="sub"}
{if $k ==5}
<div
class=
"item_cate_new_con_item"
>
<a
href=
"/index.php/index/Video/videoDetails?video_id={$sub.id}"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
{$sub.title}
</div>
<span
class=
"item_cate_newsdatetime"
>
{$sub.date}
</span>
</a>
</div>
{else /}
<div
class=
"item_cate_new_con_item"
>
<a
href=
"/index.php/index/article/articleList?class_id={$sub.id}"
target=
"_blank"
>
<div
class=
"item_cate_news_titles oneline"
>
{$sub.title}
</div>
<span
class=
"item_cate_newsdatetime"
>
{$sub.date}
</span>
</a>
</div>
{/if}
{/foreach}
</div>
</li>
{/foreach}
</ul>
...
...
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