if ($option == 'index') { $smarty->assign('config', array('title' => "{$cache_config['subject']}", 'keywords' => $config['keywords'] . "_{$cache_config['subject']}", 'description' => $config['description'] . "_{$cache_config['subject']}")); $nCount = $cache_config['numser'] ? $cache_config['numser'] : "20"; $cParameter = "action={$action}&option={$option}&id={$id}&Industry={$Industry}&Keyword={$Keyword}"; include_once Getincludefun("page"); if ($Keyword) { fgetposttoupdatd($Keyword, $ODBC['charset']); $where = "`hot_subject` LIKE '%{$Keyword}%' AND `hot_pass`='1'"; } else { $where = "`hot_pass`='1'"; } $nNums = $GETSQL->fNumrows("SELECT hot_id FROM `{$ODBC['tablepre']}hotel` WHERE {$where}"); if ($nNums > 0) { $sql_hotel = $GETSQL->fSql("hot_id,hot_subject,hot_logo,hot_info", "`{$ODBC['tablepre']}hotel`", "{$where}", "ORDER BY `hot_sp` DESC,`hot_date` DESC,`hot_id` DESC", $nPage * $nCount, $nCount); foreach ($sql_hotel as $key => $value) { $sql_hotel[$key]['hot_info'] = fconurt($value['hot_info']); } if ($nNums > $nCount) { $fpageup = fPages($nNums, $nPage, $nCount, $cParameter, 1); $smarty->assign('fpageup', $fpageup); } } $smarty->assign('sql_hotel', $sql_hotel); $smarty->assign('rentime', fmicrotime()); $smarty->display("hotels.htm"); } if ($option == 'single') { $sql_hotel = $GETSQL->fSql("hot_id,hot_uid,hot_subject,hot_start,hot_pass", "`{$ODBC['tablepre']}hotel`", "`hot_id`='{$id}'", "", "", "", "U_B"); if ($sql_hotel['hot_pass'] != '1') { Showmsg('酒店还没通过管理员审核'); }
if ($id != '') { $sql_class = $GETSQL->fSql("*", "`{$ODBC['tablepre']}class`", "`type_id`='{$id}'", "", "", "", "U_B"); $where = "`new_type`='{$id}'"; } else { $sql_class = $GETSQL->fSql("*", "`{$ODBC['tablepre']}class`", "`type_live`='1'", "ORDER BY `type_sp` DESC,`type_id` DESC"); foreach ($sql_class as $value) { $sqlclass[] = $value['type_id']; } $whereclass = implode("','", $sqlclass); $where = "`new_type` IN ('{$whereclass}')"; } $nNums = $GETSQL->fNumrows("SELECT new_id FROM `{$ODBC['tablepre']}info` WHERE {$where}"); if ($nNums > 0) { $sql_info = $GETSQL->fSql("*", "`{$ODBC['tablepre']}info`", "{$where}", "ORDER BY `new_date` DESC,`new_id` DESC", $nPage * $nCount, $nCount); foreach ($sql_info as $key => $value) { $sql_info[$key]['new_content'] = fconurt($value['new_content']); } if ($nNums > $nCount) { $fpageup = fPages($nNums, $nPage, $nCount, $cParameter, 1); $smarty->assign('fpageup', $fpageup); } } $smarty->assign('sql_info', $sql_info); $smarty->assign('sql_class', $sql_class); $smarty->assign('rentime', fmicrotime()); $smarty->display("info.htm"); } if ($option == 'merchants') { $smarty->assign('config', array('title' => "{$cache_config['subject']}_招商", 'keywords' => $config['keywords'] . "_招商_{$cache_config['subject']}", 'description' => $config['description'] . "_招商_{$cache_config['subject']}")); $nCount = $cache_config['numser'] ? $cache_config['numser'] : "20"; $cParameter = "action={$action}&option={$option}&id={$id}";
if ($option == 'index') { $smarty->assign('config', array('title' => "{$cache_config['subject']}", 'keywords' => $config['keywords'] . "_{$cache_config['subject']}", 'description' => $config['description'] . "_{$cache_config['subject']}")); $nCount = $cache_config['numser'] ? $cache_config['numser'] : "20"; $cParameter = "action={$action}&option={$option}&id={$id}&Industry={$Industry}&Keyword={$Keyword}"; include_once Getincludefun("page"); if ($Keyword) { fgetposttoupdatd($Keyword, $ODBC['charset']); $where = "`sc_subject` LIKE '%{$Keyword}%' AND `sc_pass`='1'"; } else { $where = "`sc_pass`='1'"; } $nNums = $GETSQL->fNumrows("SELECT sc_id FROM `{$ODBC['tablepre']}travel` WHERE {$where}"); if ($nNums > 0) { $sql_travel = $GETSQL->fSql("sc_id,sc_subject,sc_logo,sc_info", "`{$ODBC['tablepre']}travel`", "{$where}", "ORDER BY `sc_sp` DESC,`sc_date` DESC,`sc_id` DESC", $nPage * $nCount, $nCount); foreach ($sql_travel as $key => $value) { $sql_travel[$key]['sc_info'] = fconurt($value['sc_info']); } if ($nNums > $nCount) { $fpageup = fPages($nNums, $nPage, $nCount, $cParameter, 1); $smarty->assign('fpageup', $fpageup); } } $smarty->assign('sql_travel', $sql_travel); $smarty->assign('rentime', fmicrotime()); $smarty->display("travels.htm"); } if ($option == 'single') { $sql_travel = $GETSQL->fSql("sc_id,sc_uid,sc_subject,sc_start,sc_pass", "`{$ODBC['tablepre']}travel`", "`sc_id`='{$id}'", "", "", "", "U_B"); if ($sql_travel['sc_pass'] != '1') { Showmsg('旅行社还没通过管理员审核'); }
$smarty->assign('sql_news', $sql_news); $smarty->display("showtravel.htm"); } if ($option == 'showmessage') { $sql_showmessage = $GETSQL->fSql("*", "`{$ODBC['tablepre']}info`", "`new_type` IN (49,50,51,52,53,54,55)", "ORDER BY `new_date` DESC,`new_id` DESC", 0, 20); $smarty->assign('sql_showmessage', $sql_showmessage); $smarty->display("showmessage.htm"); } if ($option == 'showguide') { $sql_news = $GETSQL->fSql("*", "`{$ODBC['tablepre']}news`", "`new_type`='3'", "ORDER BY `new_date` DESC,`new_id` DESC", 0, 5); $smarty->assign('sql_news', $sql_news); $smarty->display("showguide.htm"); } if ($option == 'showline') { $sql_news = $GETSQL->fSql("*", "`{$ODBC['tablepre']}news`", "`new_type`='2'", "ORDER BY `new_date` DESC,`new_id` DESC", 0, 5); foreach ($sql_news as $key => $value) { $sql_news[$key]['new_content'] = fconurt($value['new_content']); } $smarty->assign('sql_news', $sql_news); $smarty->display("showline.htm"); } if ($option == 'showabout') { $smarty->display("about.htm"); } if ($option == 'showfooder') { $sql_about = $GETSQL->fSql("*", "`{$ODBC['tablepre']}about`", "", "ORDER BY `about_id`"); foreach ($sql_about as $value) { echo " <a href='index.php?action=link&option=about&id={$value['about_id']}'>{$value['about_subject']}</a> |"; } echo " <a href='index.php?action=link'>ÓÑÇéÁ¬½Ó</a>"; }
if ($option == 'index') { $smarty->assign('config', array('title' => "{$cache_config['subject']}", 'keywords' => $config['keywords'] . "_{$cache_config['subject']}", 'description' => $config['description'] . "_{$cache_config['subject']}")); $nCount = $cache_config['numser'] ? $cache_config['numser'] : "20"; $cParameter = "action={$action}&option={$option}&id={$id}&Industry={$Industry}&Keyword={$Keyword}"; include_once Getincludefun("page"); if ($Keyword) { fgetposttoupdatd($Keyword, $ODBC['charset']); $where = "`sc_subject` LIKE '%{$Keyword}%' AND `sc_pass`='1'"; } else { $where = "`sc_pass`='1'"; } $nNums = $GETSQL->fNumrows("SELECT sc_id FROM `{$ODBC['tablepre']}scenic` WHERE {$where}"); if ($nNums > 0) { $sql_scenic = $GETSQL->fSql("sc_id,sc_subject,sc_logo,sc_info", "`{$ODBC['tablepre']}scenic`", "{$where}", "ORDER BY `sc_sp` DESC,`sc_date` DESC,`sc_id` DESC", $nPage * $nCount, $nCount); foreach ($sql_scenic as $key => $value) { $sql_scenic[$key]['sc_info'] = fconurt($value['sc_info']); } if ($nNums > $nCount) { $fpageup = fPages($nNums, $nPage, $nCount, $cParameter, 1); $smarty->assign('fpageup', $fpageup); } } $smarty->assign('sql_scenic', $sql_scenic); $smarty->assign('rentime', fmicrotime()); $smarty->display("scenics.htm"); } if ($option == 'single') { $sql_scenic = $GETSQL->fSql("sc_id,sc_uid,sc_subject,sc_start,sc_pass", "`{$ODBC['tablepre']}scenic`", "`sc_id`='{$id}'", "", "", "", "U_B"); if ($sql_scenic['sc_pass'] != '1') { Showmsg('景区还没通过管理员审核'); }