<div id="marquee_prev_btn" class="btn btn-faq-tabs-prev faq-tabs-btn left">
				    		<i class="fa fa-caret-down"></i>
				    	</div>
				    	<div id="marquee_next_btn" class="btn btn-faq-tabs-next faq-tabs-btn left">
				    		<i class="fa fa-caret-up"></i>
				    	</div>
				    </div>
				</div>
			</div>
			<div class="cnt editorDF">
				<div id="chartdiv" style="width:90%; height:600px; margin:auto;"></div>
				<div class="net_asset_value-cnt cf">
					<div class="col-2">
						<?php 
$fp = new JTFundPrice();
$rsFundPrice = $fp->all(20, true);
$half = ceil(sizeof($rsFundPrice) / 2);
?>
						<table class="table1">
							<tr>
								<th>日期</th>
								<th>淨值</th>
							</tr>
							<?php 
for ($i = 0; $i < $half; $i++) {
    ?>
										<tr>
											<td><?php 
    echo $rsFundPrice[$i]->date;
    ?>
</td>
<?php

require_once '../jasonwang826/jasonwang826.inc';
$ret = array();
$fp = new JTFundPrice();
$rs = $fp->all();
foreach ($rs as $d) {
    $ret[] = (object) array('date' => $d->date, 'dateCol' => $d->date, 'val' => $d->price);
}
echo json_encode(array_reverse($ret));
Пример #3
0
</div>
			</div>
			<div class="col-4">
				<button type="button" id="netAssetValueBtn" class="btn btn-more">
					more
				</button>
				<a href="product_chart.php" id="" class="btn btn-moreChart">
					詳細資訊<i class="fa fa-line-chart"></i>
				</a>
			</div>
		</div>
		<div id="netAssetValuePanel" class="net_asset_value-history">
			<div class="wrapper">
<?php 
if ($deviceType == 'phone') {
    $rsFundPrice = $fp->all(5);
    ?>
<ul class="cf">
	<?php 
    foreach ($rsFundPrice as $d) {
        ?>
		<li><span class="date"><?php 
        echo JDate::date_format($d->date, 'Y/m/d');
        ?>
</span><span class="num"><?php 
        echo $d->price;
        ?>
</span></li>
	<?php 
    }
    ?>