feat: 优化问题页面样式并添加复制功能

This commit is contained in:
2026-04-11 19:44:27 +08:00
parent 5a39432029
commit ab2a3ca65f
3 changed files with 87 additions and 11 deletions

View File

@@ -97,7 +97,15 @@
<?php
foreach($view_problemset as $row){
echo "<tr>";
foreach($row as $table_cell){
foreach($row as $cell_index => $table_cell){
if ($cell_index === 0) {
$status_value = trim(strip_tags($table_cell));
if ($status_value === 'Y') {
$table_cell = '<span style="color:#21ba45" title="Y">✅</span>';
} else if ($status_value === 'N') {
$table_cell = '<span style="color:#db2828" title="N">❌</span>';
}
}
echo "<td>".$table_cell."</td>";
}
echo "</tr>";