[], 'total' => 0, 'page' => 1, 'per_page' => 15]; $status_labels = ['pending' => '待支付', 'paid' => '已支付', 'opened' => '已开通', 'failed' => '失败', 'cancelled' => '已取消']; $status_cls = ['pending' => 'warning', 'paid' => 'info', 'opened' => 'success', 'failed' => 'danger', 'cancelled' => 'default']; $period_labels = hosting_periods(); $tp = max(1, (int)ceil($orders['total'] / max(1, (int)$orders['per_page']))); $cp = (int)$orders['page']; ob_start(); ?>
主机购买订单记录
| 订单号 | 套餐 | 周期 | 金额 | 状态 | 下单时间 | 备注 |
|---|---|---|---|---|---|---|
| = htmlspecialchars($o['order_no']) ?> | = htmlspecialchars($o['plan_name']) ?> | = htmlspecialchars($period_labels[$o['period']]['label'] ?? $o['period']) ?> | ¥= hosting_format_cents($o['amount_cents']) ?> | = $status_labels[$o['status']] ?? $o['status'] ?> | = htmlspecialchars($o['created_at']) ?> | = htmlspecialchars($o['remark'] ?: '-') ?> |