'运行中', 'suspend' => '已暂停', 'pending' => '待开通', 'terminated' => '已终止', 'unknown' => '未知', ]; $status_classes = [ 'active' => 'badge-success', 'suspend' => 'badge-danger', 'pending' => 'badge-warning', 'terminated' => 'badge-dark', 'unknown' => 'badge-secondary', ]; $title = $title ?? '主机管理'; ?>
主机映射为开通成功的上游主机。可点击「刷新状态」同步上游实时状态; 点「全部刷新状态」可批量修复存量未知/过期缓存(逐台上游查询)。
| ID | 供应商 | 用户 | 主机名 | 上游主机ID | 状态 | 周期 | 到期时间 | 创建时间 | 操作 |
|---|---|---|---|---|---|---|---|---|---|
| 暂无主机 | |||||||||
| = (int)$h['id'] ?> | = htmlspecialchars($h['supplier_name'] ?: '-') ?> | = htmlspecialchars($h['user_name'] ?: ('ID ' . (int)$h['user_id'])) ?> | = htmlspecialchars($h['name'], ENT_QUOTES) ?> | = (int)$h['up_host_id'] ?> | = htmlspecialchars($status_labels[$h['status']] ?? $h['status']) ?> | = htmlspecialchars($h['cycle'] ?: '-') ?> | = htmlspecialchars(zjmf_normalize_date((string)$h['renew_date']) ?: '-') ?> | = htmlspecialchars($h['created_at']) ?> | 0): ?> - |