public function _enable() { $ret=new stdClass(); $ret->success=true; $r= new JTTrust($_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/products_data.php'; $get_pdt = isset($_GET['products']) ? $_GET['products'] : 1; switch ($_GET['type']) { case 'trust': $obj = new JTTrust(); $obj->select($get_pdt); break; case 'fund': $obj = new JTFund(); $obj->select($get_pdt); break; default: } $pdt_index = $obj->data['id']; $pdt_title = $obj->data['title']; $pdt_subtitle = $obj->data['stitle']; $pdt_editorDF = $obj->data['content']; $rs = $obj->all(); ?> <title>康和期經產品介紹 | <?php echo $webTitle; ?> </title> <?php // -------------------------------