foreach ($itemList as $key => $val) { if ($val["sales_end_datetime"] != "0000-00-00 00:00:00") { $salesEndDatetimeAry[] = $val["sales_end_datetime"]; } } if (count($salesEndDatetimeAry)) { $countDownDate = min($salesEndDatetimeAry); $smartyOBJ->assign("countDownYear", substr($countDownDate, 0, 4)); $smartyOBJ->assign("countDownMonth", substr($countDownDate, 5, 2)); $smartyOBJ->assign("countDownDay", substr($countDownDate, 8, 2)); $smartyOBJ->assign("countDownHour", substr($countDownDate, 11, 2)); $smartyOBJ->assign("countDownMinute", substr($countDownDate, 14, 2)); $smartyOBJ->assign("showCountDown", $itemList[0]["id"]); } } // エラーメッセージの取得 if ($errMsgSessOBJ->errMsg) { $errMsg = implode("<br>", $errMsgSessOBJ->errMsg); $smartyOBJ->assign("errMsg", $errMsg); // セッション変数の破棄 $errMsgSessOBJ->unsetAll(); } // 表示配列を逆順にしてアサイン $smartyOBJ->assign("itemList", array_reverse($itemList)); $smartyOBJ->assign("itemTotalMoney", $itemTotalMoney); //リダイレクト決済選択処理 $settlementOBJ = Settlement::getInstance(); $settleControlData = $settlementOBJ->getSettleSelectData(); if ($settleControlData["direct_settle_name"] != "not_select") { header("Location:./?action_" . $settleControlData["direct_settle_name"] . "=1" . ($comURLparam ? "&" . $comURLparam : "")); }