/******************************************************
' System :Eco-footprint 会員ページ
' Content:湯沸しエコ診断
'******************************************************/
$top = '.';
$inc = "$top/../inc";
include("$inc/common.php");
include("$inc/database.php");
$inc = "$top/inc";
include("$inc/mypage.php");
include("$inc/sim_define.php");
include("$inc/sim_sub.php");
include("$inc/sim_yuwakashi.php");
include("$inc/sim_db.php");
// 湯沸し方法ラジオボタン表示
function radio_yuwakashi_houhou($name, $default, $eco = '') {
$ary = yuwakashi_houhou_name();
sim_radio_ary($name, $ary, $default, $eco);
}
// 湯沸し回数プルダウン表示
function select_yuwakashi_kaisuu($name, $default) {
sim_select_no($name, 1, 5, $default);
}
// 湯沸し量プルダウン表示
function select_yuwakashi_ryou($name, $default) {
$ary = array(
33 => '三分の一',
50 => '半分',
80 => '八分目',
100 => 'ちょうど'
);
sim_select_ary($name, $ary, $default);
}
// 保温方法ラジオボタン表示
function radio_hoon_houhou($name, $default, $eco = '') {
$ary = hoon_houhou_name();
sim_radio_ary($name, $ary, $default, $eco);
}
// 保温時間プルダウン表示
function select_hoon_jikan($name, $default, $eco = '') {
$ary = hoon_jikan_name();
sim_select_ary($name, $ary, $default, $eco);
}
// 湯沸し方法プルダウン表示
function select_yuwakashi_houhou($name, $default) {
$ary = yuwakashi_houhou_name();
sim_select_ary($name, $ary, $default);
}
// 保温方法プルダウン表示
function select_hoon_houhou($name, $default) {
$ary = hoon_houhou_name();
sim_select_ary($name, $ary, $default);
}
// 保温時間プルダウン表示(「保温しない」を除く)
function select_hoon_jikan2($name, $default) {
$ary = hoon_jikan_name();
unset($ary[0]);
sim_select_ary($name, $ary, $default);
}
// エコ診断クラス生成
$sim = new sim_yuwakashi;
// DBから診断データを読み込み
$sim->read_eco_data();
?>
湯沸し診断
|
あなたの家の湯沸し方法を変えることでどれくらいの「Eco効果」があるか計算します!!
|
|
 |
|
 |