public function _enable() { $ret=new stdClass(); $ret->success=true; $r= new JTAdvisory($_SESSION['login_user_id']); $r->select( $_GET['id'] ); $r->data['enable'] = $_GET['enable']; $r->update(); die( json_encode($ret) ); }
<?php include_once 'config.php'; include_once INC_PATH . 'headleader.php'; require_once INC_PATH . 'aunav.php'; // include_once 'dist/chatroom_data.php'; $get_id = isset($_GET['id']) ? $_GET['id'] : 1; $advisory = new JTAdvisory(); $advisory->select($get_id); $chatroom_index = $advisory->data['id']; $chatroom_title = $advisory->data['title']; $chatroom_cnt = $advisory->data['content']; ?> <title>康和期經產品介紹 | <?php echo $webTitle; ?> </title> <?php // ------------------------------- // SEO // CSS // Script in the HEAD // ------------------------------- include_once INC_PATH . 'head.php'; ?> <?php //app include_once INC_PATH . 'social.php';
<? require_once('./local.inc'); $smarty = new JSmartyTemplate($templateName); $news = new JTNews(); $smarty->assign('news_count', $news->count()); $team = new JTTeam(); $smarty->assign('team_count', $team->count()); $advisory = new JTAdvisory(); $smarty->assign('advisory_count', $advisory->count()); $report = new JTReport(); $smarty->assign('report_count', $report->count()); $document = new JTDocument(); $smarty->assign('document_count', $document->count()); $saleschannel = new JTSaleschannel(); $smarty->assign('saleschannel_count', $saleschannel->count()); $faq = new JTFAQ(); $smarty->assign('faq_count', $faq->count()); $user = new JTUser(); $smarty->assign('user_count', $user->count()); $smarty->display(dirname(__FILE__).'/index.tpl.htm'); ?>