/****************************************************** ' System :Eco-footprint 管理ページ ' Content:Welcomeメッセージ更新 '******************************************************/ $top = '../../..'; $inc = "$top/inc"; include("$inc/login_check.php"); include("$inc/header.php"); $inc = "$top/../inc"; include("$inc/common.php"); include("$inc/define.php"); include("$inc/database.php"); set_global('member', '会員トップページ設定', 'Welcomeメッセージ', BACK_TOP); switch ($next_action) { case 'new': $sql = "INSERT INTO t_welcome_msg (wm_text,wm_start_date,wm_end_date) VALUES (" . sql_char($msg) . "," . sql_date("$start_y/$start_m/$start_d") . "," . sql_date("$end_y/$end_m/$end_d") . ")"; db_exec($sql); $msg = 'Welcomeメッセージを登録しました。'; $ret = 'location.href=\'list.php\''; break; case 'update': $sql = "UPDATE t_welcome_msg SET" . " wm_text=" . sql_char($msg) . ",wm_start_date=" . sql_date("$start_y/$start_m/$start_d") . ",wm_end_date=" . sql_date("$end_y/$end_m/$end_d") . " WHERE wm_seq_no=$wm_no"; db_exec($sql); $msg = 'Welcomeメッセージ情報を更新しました。'; $ret = 'location.href=\'list.php\''; break; case 'delete': $sql = "DELETE FROM t_welcome_msg WHERE wm_seq_no=$wm_no"; db_exec($sql); $msg = 'Welcomeメッセージを削除しました。'; $ret = 'location.href=\'list.php\''; break; default: redirect('list.php'); } ?>
=$msg?>