"; } // ゼロ→null function zero_to_null($num) { if ($num == 0) return ''; else return $num; } // セッション処理 if (!$_SESSION['ss_result_input']) $_SESSION['ss_result_input'] = new result_input; $reg = &$_SESSION['ss_result_input']; $reg->get_ym(); $reg->get_member_info(); $reg->read_db(); $reg->get_last_day($reg->bd_y, $reg->bd_m); $ol_use = explode(',', $reg->ol_use); $ol_sum = explode(',', $reg->ol_sum); // やっぱり入力する if ($inp == 'on' && $reg->commit_flag == 0) { $sql = "UPDATE t_base_data SET bd_ol_inp_cd=null WHERE bd_seq_no=" . $reg->bd_seq_no; db_exec($sql); } // 設定ページ表示確認 $reg->disp_page('ol'); // カレンダー処理 define('DAY_SEC', 24*60*60); $today = getdate(); $year = $reg->bd_y; $month = $reg->bd_m; $d = strtotime("$year/$month/1"); $st = $d - date('w', $d) * DAY_SEC; $d = strtotime("$year/" . ($month + 1) . "/1"); $ed = $d + (6 - date('w', $d)) * DAY_SEC; ?> ☆★☆xxxゾウさんClub☆★☆
bd_m)?>.gif" border="0" width="56" height="28">
\n"; if (date('m', $d) == $month) { switch ($week) { case 0: $color = 'red'; $bgcolor = 'pink'; break; case 6: $color = 'blue'; $bgcolor = '#CCFFFF'; break; default: $color = 'black'; $bgcolor = '#CCFFCC'; break; } $input1 = commit_check($ol_use[$i], 'ol_use', $reg->commit_flag, 8, 4) . "\n"; if ($week == 6) echo ""; $d += DAY_SEC; } ?>
L"; $input2 = commit_check($ol_sum[$i], 'ol_sum', $reg->commit_flag, 8, 5) . "円"; $i++; } else { $color = 'gray'; $bgcolor = '#FFFFFF'; $input1 = "
"; $input2 = "
"; } echo "
\n"; echo "\n"; if (date('Ymd') == date('Ymd', $d)) echo ""; else echo ""; echo "\n"; echo "\n"; echo "\n"; echo "
" . (int)date('d', $d) . "
$input1
$input2
\n"; echo "
commit_flag == 0) { ?>
今月は入力しない

メインへ 入力画面に戻る commit_flag == 0) { ?>