入口分類從config.php中改

This commit is contained in:
Wayne Hsu 2023-01-18 20:35:45 +08:00
parent 681bdc4a2d
commit 56e214d9bf
4 changed files with 17 additions and 2 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/images/
/temp/*
data/config.php

View File

@ -24,6 +24,11 @@ $session = "1440";
$hb_test = '0';
$category = [
'c1' => '',
'c2' => ''
];
define('EC_CHARSET','utf-8');
if(!defined('ADMIN_PATH'))

View File

@ -48,6 +48,7 @@ if($site_type=='web'){
$smarty->assign('ad3_list', get_rand5_ad3($site_id));
$smarty->assign('ad4_list', get_all_ad4($site_id));
$smarty->assign('footer_text', $_CFG['footer_text']);
$smarty->assign('category', $category);
if($site_id>0){
$sql = 'SELECT * FROM ' . $GLOBALS['ecs']->table('portal') .

View File

@ -70,7 +70,9 @@
<div class="hotelslink">
<strong class="hotelslinkbut">依地區分類</strong>
<strong class="hotelslinkbut">
{$category.c1}
</strong>
<ul>
@ -84,7 +86,10 @@
</div>
<div class="bookingArea"><strong class="bookingBtn" href="javascript:;">依景點分類</strong>
<div class="bookingArea">
<strong class="bookingBtn" href="javascript:;">
{$category.c2}
</strong>
<ul>