| ' . $title . ' |
' . $related_product . ' |
' . $priority . ' |
' . $status . ' |
' . $last_reply_time . ' |
border_color
|
';
}else{
$i_ticket = '';
}
?>
提交工单
';
}
?>
| 工单标题 |
关联项目 |
紧急程度 |
工单状态 |
最近回复 |
工单操作 |
=$i_ticket?>
无数据 |
无数据 |
无数据 |
无数据 |
无数据 |
无数据 |
';
} else {
// 遍历每个.json文件
foreach ($jsonFiles as $file) {
// 读取文件内容
$jsonContent = file_get_contents($file);
// 将内容解析为数组
$ticketData = json_decode($jsonContent, true);
// 解析工单信息
if (isset($ticketData['ticket'])) {
$ticket = $ticketData['ticket'];
$title = htmlspecialchars($ticket['title']);
$created_at = htmlspecialchars($ticket['created_at']);
$priority = htmlspecialchars($ticket['priority']);
$last_reply_time = htmlspecialchars($ticket['last_reply_time']);
$related_product = htmlspecialchars($ticket['related_product']);
$status = htmlspecialchars($ticket['status']);
$fileName = basename($file); // 获取文件名
// 输出HTML表格行
echo '
| ' . $title . ' |
' . $related_product . ' |
' . $priority . ' |
' . $status . ' |
' . $last_reply_time . ' |
remove_red_eye
|
';
}
}
}
?>