Ejemplo n.º 1
0
    $range["{$i}"] = $price_data[$i - 1] . "~" . ($price_data[$i] - 1);
}
$range["{$price_data_sz}"] = $price_data[$price_data_sz - 1];
for ($i = 0; $i < sizeof($ary); $i++) {
    foreach ($range as $key) {
        $store[$key] = $ary[$i][$key];
    }
    $data[$ary[$i][0]] = $store;
}
$result["CCCSortedString"] = $CCCSortedStringV1;
$result["title"] = $title;
$result["range"] = $range;
$result["data"] = $data;
$result["total"] = sizeof($ary);
//echo json_encode($result);
draw_3layer_UI($conn, 'store_price.php');
?>

	
	
    <div class="container">
		<br/>
		<div style="font-size:20px">
			<a href="./store_price.php">價格帶分析(商店)</a>
		</div>
		<br/>
		<h2>依照商店之商品總數排序</h2>
		<h2>目前所選商品類別為<?php 
echo $category_list[$p_category];
?>
</h2>
Ejemplo n.º 2
0
$price_data_sz = sizeof($price_data);
for ($i = 1; $i < $price_data_sz; $i++) {
    $range["{$i}"] = $price_data[$i - 1] . "~" . ($price_data[$i] - 1);
}
$range["{$price_data_sz}"] = $price_data[$price_data_sz - 1];
for ($i = 0; $i < sizeof($ary); $i++) {
    foreach ($range as $key) {
        $store[$key] = $ary[$i][$key];
    }
    $data[$ary[$i][1]] = $store;
}
$result["title"] = $title;
$result["range"] = $range;
$result["data"] = $data;
$result["total"] = sizeof($ary);
draw_3layer_UI($conn, 'brand_price.php');
?>

    <div class="container">
		<h2>目前所選商品類別為<?php 
echo $category_list[$p_category];
?>
</h2>
		<br/>