/****************************************************** ' System :Eco-footprint 管理ページ ' Content:全配信メール設定 '******************************************************/ $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"); include("$inc/decode.php"); include("$inc/select.php"); include("$inc/format.php"); include("$inc/list.php"); // 送信状態 function decode_news_status($code) { switch ($code) { case 0: return '未送信'; case 1: return '送信済'; } return '不明'; } // decode配信対象 function decode_target($code) { switch ($code) { case 4: return '全員'; case 1: return '仮登録1'; case 2: return '仮登録2'; case 3: return '本登録'; } return '不明'; } // 登録状況select function select_step($default,$selected) { if ($default) echo "", "\n"; echo '', "\n"; echo '', "\n"; echo '', "\n"; echo '', "\n"; } //メイン処理 set_global('member', '会員情報管理', '全配信メール設定', BACK_TOP); // セッション登録 get_session_vars($pset, 'monitor_news', 'displine', 'target', 'sort_col', 'sort_dir', 'page'); // where条件 if ($target != '') and_join($where, "am_target=$target"); if ($where != '') $where = "WHERE $where"; // ソート条件 $order_by = order_by(1, 1, 'am_seq_no', 'am_target', 'am_subject', 'am_send_date', 'am_status', 'am_send_num'); // 表示行数条件 $limit = disp_limit(); $sql = "SELECT am_seq_no,am_target,am_send_date,am_subject,am_status,am_send_num" . " FROM t_all_mail $where $order_by $limit"; $result = db_exec($sql); $nrow = pg_numrows($result); ?>
=$fetch->am_seq_no?> | =decode_target($fetch->am_target)?> | =htmlspecialchars($fetch->am_subject)?> | =format_datetime($fetch->am_send_date)?> | =decode_news_status($fetch->am_status)?> | =number_format($fetch->am_send_num)?> |