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'); ?>
Add new
php foreach($rows 作为 $r): ?php endforeach; ?
大使馆Host 国家RepresentedTypeStatusAction
=e($r['embassy_name'])?=e($r['host_country'])?=e($r['represented_country'])?=e($r['mission_type'])?=e($r['admin_status'])?Edit
php admin_footer(); ?