-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.php
77 lines (63 loc) · 2.02 KB
/
intro.php
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
<?php
set_time_limit(36000);
ini_set("memory_limit","1220M");
error_reporting(E_ALL ^ E_NOTICE);
require_once('admin/config/config.php');
require_once('admin/config/class.database.php');
require_once('admin/function.php');
$id = (isset($_GET['id'])) ? $_GET['id'] : '';
$catid = (isset($_GET['catid'])) ? $_GET['catid'] : '';
$page = (isset($_GET['page'])) ? $_GET['page'] : 1;
$page = (!empty($page)) ? $page : 1;
$id = ($page =='gioithieu')? 6 : $id;
$catid = (!empty($catid)) ? $catid : getCategoryByPostId($id);
$id = (empty($catid) and empty($id)) ? 6 : $id;
$tempExport_part_header = "";
$tempExport_part_content = "";
$tempExport_part_footer = "";
$tempExport_part_header = export("part_header");
if(!empty($id))
{
$tempExport_part_content = export("part_intro_detail_page");
}
else
{
$tempExport_part_content = export("part_intro");
}
$tempExport_part_footer = export("part_footer");
$tempExport = $tempExport_part_header;
$tempExport .=$tempExport_part_content;
$tempExport .=$tempExport_part_footer;
if(!empty($id))
{
$NEWS_BLOCK = getIntroDetail($id);
$NEWS_BLOCK_OTHER = getIntroDetail_Other($id, 4);
}
else
{
$NEWS_BLOCK = getIntro($page,$catid);
$PAGE_NAVIGATOR = getIntroPaging($page,$catid);
}
/**
NEWS BLOCK SUB
**/
$NEWS_BLOCK_SUB = getNewsSub(4);
/**
EVENTS BLOCK SUB
**/
$EVENT_BLOCK_SUB = getEventSub(2);
/**
RENDER DATA
*/
$CURRENTMONTH = date("m", time());
$CURRENTYEAR = date("Y", time());
$BREAD_CRUMB = breadCrum($catid);
$tempExport = str_replace("{BREAD_CRUMB}", $BREAD_CRUMB, $tempExport);
$tempExport = str_replace("{NEWS_BLOCK}", $NEWS_BLOCK, $tempExport);
$tempExport = str_replace("{PAGE_NAVIGATOR}", $PAGE_NAVIGATOR, $tempExport);
$tempExport = str_replace("{NEWS_BLOCK_OTHER}", $NEWS_BLOCK_OTHER, $tempExport);
$tempExport = str_replace("{NEWS_BLOCK_SUB}", $NEWS_BLOCK_SUB, $tempExport);
$tempExport = str_replace("{EVENT_BLOCK_SUB}", $EVENT_BLOCK_SUB, $tempExport);
$tempExport = str_replace("{HOST_LINK}", HOST_LINK, $tempExport);
echo $tempExport;
?>