/******************************************************
' 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_yokusou.php");
include("$inc/sim_db.php");
// 浴槽入浴有無プルダウン表示
function select_nyuuyoku($name, $default) {
$ary = array(
1 => 'あり',
0 => 'なし'
);
sim_select_ary($name, $ary, $default);
}
// 湯温(夏)プルダウン表示
function select_yuon_summer($name, $default) {
sim_select_yuon($name, 40, $default);
}
// 湯温(春秋)プルダウン表示
function select_yuon_sp_aut($name, $default) {
sim_select_yuon($name, 41, $default);
}
// 湯温(冬)プルダウン表示
function select_yuon_winter($name, $default) {
sim_select_yuon($name, 42, $default);
}
// 湯温(共通)プルダウン表示
function sim_select_yuon($name, $std, $default) {
for ($i = 37; $i <= 45; $i++)
$ary[$i] = ($i == $std ? '標準' : '') . $i;
sim_select_ary($name, $ary, $default);
}
// 湯はり量プルダウン表示
function select_yuhari_ryou($name, $default) {
$ary = array(
230 => '十分目(230L)',
210 => '八分目(210L)',
190 => '六分目(190L)'
);
sim_select_ary($name, $ary, $default);
}
// 給湯器タイププルダウン表示
function select_boiler_type($name, $default) {
$ary = array(
1 => 'ガスタイプ',
2 => '電気タイプ',
3 => '灯油タイプ'
);
sim_select_ary($name, $ary, $default);
}
// 湯はり量プルダウン表示
function select_yuhari_ryou_e($name, $default) {
$ary = array(
30 => 30,
20 => 20,
10 => 10,
0 => 0
);
sim_select_ary($name, $ary, $default);
}
// 湯はり上下プルダウン表示
function select_yuhari_flag_e($name, $default) {
$ary = array(
1 => '多く',
2 => '少なく'
);
sim_select_ary($name, $ary, $default);
}
// 湯はり上下プルダウン表示
function select_yuon_e($name, $default) {
sim_select_no($name, 0, 5, $default);
}
// エコ診断クラス生成
$sim = new sim_yokusou;
// DBから診断データを読み込み
$sim->read_eco_data();
?>
浴槽入浴診断
|
あなたの家の浴槽入浴の浴槽入浴方法を変える事でどれくらいのEco効果があるか計算します!!
|
|
 |
|
 |