Пример #1
0
		public function _enable() {
			$ret=new stdClass();
			$ret->success=true;
			$r= new JTFund($_SESSION['login_user_id']);
			$r->select( $_GET['id'] );
			$r->data['enable'] = $_GET['enable'];
			$r->update();
			die( json_encode($ret) );
		}
Пример #2
0
<?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 
// -------------------------------
<?php

include_once 'config.php';
include_once INC_PATH . 'headleader.php';
require_once INC_PATH . 'aunav.php';
$obj = new JTFund();
$rs = $obj->all();
?>
<title>康和期經產品介紹 | <?php 
echo $webTitle;
?>
</title>

<?php 
// -------------------------------
// SEO
// CSS
// Script in the HEAD
// -------------------------------
include_once INC_PATH . 'head.php';
?>

<link rel="stylesheet" href="amstockchart/amcharts/style.css" type="text/css">
<style>
.amChartsButton, .amChartsButtonSelected {
	padding: 0.3em 0.8em;
	margin-left: 0.6em;
}
.amChartsButton:hover, .amChartsButtonSelected:hover {
	-webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
	box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
?>

 <div id="bannerTrigger"></div>
<section id="pageBanner" class="banner" style="background-image: url('<?php 
path_au('img');
?>
banner-chatroom.jpg')">
	
</section>

<main class="">
	<section class="row1 fullbg">
		<div class="bg"></div>
		<div class="wrapper">
			<?php 
$o = new JTFund();
$rs = $o->all();
?>
			<div class="cnt">
				<?php 
foreach ($rs as $r) {
    ?>
						<!-- 多空成長期貨信託基金 -->
						<div class="metro-row cf">
							<div class="metro-block-style1 pdt">
								<div class="news-pic pic left">
									<img src="<?php 
    echo $r->icon;
    ?>
" />
								</div>