php require_once __DIR__ . '/../config/auth.php'; require_admin(); require_once __DIR__ . '/_layout.php'; $q = trim($_GET['q'] ?? ''); $sql = 'SELECT * FROM embassy_missions WHERE 1'; $params=[]; if($q!==''){ $sql .= ' AND (embassy_name LIKE ? OR host_country LIKE ? OR represented_country LIKE ? OR 城市 LIKE ?)'; $like="%$q%"; $params=[$like,$like,$like,$like]; } $sql .= ' ORDER BY updated_at DESC LIMIT 300'; $stmt=$pdo-prepare($sql); $stmt->execute($params); $rows=$stmt->fetchAll(); admin_header('大使馆 Records'); ?>
| 大使馆 | Host 国家 | Represented | Type | Status | Action |
|---|---|---|---|---|---|
| =e($r['embassy_name'])? | =e($r['host_country'])? | =e($r['represented_country'])? | =e($r['mission_type'])? | =e($r['admin_status'])? | Edit |