public function _enable() { $ret=new stdClass(); $ret->success=true; $r= new JTNews($_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'; $news = new JTNews(); $news->select($_GET['id']); ?> <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'; ?> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>