new $.zui.Messager("重新统计成功!", { type: "success", // 定义颜色主题 icon: "ok-sign" // 定义消息图标 }).show(); '; // 延时1s刷新 Header("refresh:1;url=chart.php"); } // 统计图表 // array_reverse($arr,true) 倒叙数组并保持键值关系 $char_data = read_chart_total(); if (is_array($char_data)) { $chart_date = ''; foreach (array_reverse($char_data['date'], true) as $value) { $chart_date .= $value; } $chart_date = str_replace(date('Y/'), '', $chart_date); // 删除年份 $chart_number = ''; foreach (array_reverse($char_data['number'], true) as $value) { $chart_number .= $value; } $chart_disk = ''; foreach (array_reverse($char_data['disk'], true) as $value) { $chart_disk .= $value; } } ?>