会員リスト( echo $usercount; ?>人)
-
echo $accountlist; ?>
require_once("../../common/_db.php"); require_once("../../common/_function.php"); session_start(); //ログインしていない場合 if (!isset($_SESSION['ADMIN_SESSION_ID'])) { header('Location: /control'); exit; } $stmt = $DBh->prepare("SELECT * FROM L_USER WHERE U_UUID = ?"); $stmt->execute([$_SESSION['ADMIN_SESSION_ID']]); $user_data = $stmt->fetch(PDO::FETCH_ASSOC); // 今日の日付を取得 $today_min = date('Y-m-d 00:00:00'); $today_max = date('Y-m-d 23:59:00'); $week = array( "日", "月", "火", "水", "木", "金", "土" ); // 曜日設定 // 会員リスト取得 $stmt = $DBh->prepare('SELECT * FROM L_USER WHERE U_STATUS = :U_STATUS0 OR U_STATUS = :U_STATUS1'); $stmt->bindValue(':U_STATUS0', 0); $stmt->bindValue(':U_STATUS1', 1); $stmt->execute(); $userlist = $stmt->fetchAll(); $usercount = count($userlist); $accountlist = ''; foreach($userlist as $user_row) { if ($user_row['U_PAYSTATUS'] == 0) { // 初期登録 $paystatus = '
支払い未登録
'; } elseif ($user_row['U_PAYSTATUS'] == 1) { // 初期登録 $paystatus = '支払いOK
'; } elseif ($user_row['U_PAYSTATUS'] == 2) { // 初期登録 $paystatus = '支払いエラー
'; } $accountlist .= ''.$user_row['U_GENDER'].' '.$user_row['U_NAME'].'
'.$paystatus.'アカウントがありません