/****************************************************** ' 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/select.php"); include("$inc/format.php"); include("$inc/list.php"); include("$inc/decode.php"); // アンケート状態 function decode_enq_status($code) { switch ($code) { case 0: return '作成中'; case 4: return '実施待ち'; case 5: return '実施中'; case 6: return '一時停止'; case 7: return '終了'; case 9: return '削除済み'; } return '不明'; } //メイン処理 set_global('etc', 'その他管理', 'プレゼント管理', BACK_TOP); // ソート条件 $order_by = order_by(1, 1, 'mb_id', 'mb_name1_kana || mb_name2_kana', 'mb_mail_addr', 'mb_zip', 'mb_area_cd', 'li_status'); // 表示行数条件 $limit = disp_limit(); $sql = "select mb_seq_no,mb_id,mb_name1,mb_name2,mb_name1_kana,mb_name2_kana,mb_mail_addr,mb_zip,mb_area_cd,mb_address,li_status" . " from t_member left join t_present_list on mb_seq_no=li_mb_seq_no where (li_status=1 or li_status=2) and li_ps_no=$ps_no $order_by"; $result = db_exec($sql); $nrow = pg_numrows($result); ?>