当用户选择选项但有警报-实体已更改时,我需要重新加载表格。
我看到这是选项
if (!empty($sections)) {
foreach ($sections as $d) {
$row_array = array();
$row_array["id"] = intval($d["id"]);
$row_array["sname"] = $d["sname"];
$row_array["sicon"] = $d["sicon"];
$row_array["perc"] = intval($d["perc"]);
$row_array["pvalue"] = intval($d["pvalue"]);
$row_array["vfixed"] = intval($d["vfixed"]);
$row_array["sectionValues"] = array();
array_push($row_array["sectionValues"],
intval($d["perc"]),
intval($d["id"]),
0
);
$row_array["sectionIndicators"] = array();
//loop indicators
if (!empty($indicators)) {
$i=-1;
foreach ($indicators as $v) {
if ($d["id"] == $v["idsec"]) {
$i++;
$row_array["sectionIndicators"][$i]["iid"] = intval($v["iid"]);
$row_array["sectionIndicators"][$i]["iname"] = $v["iname"];
$row_array["sectionIndicators"][$i]["perc"] = intval($v["perc"]);
$row_array["sectionIndicators"][$i]["pvalue"] = intval($v["pvalue"]);
$row_array["sectionIndicators"][$i]["vfixed"] = intval($v["vfixed"]);
$row_array["sectionIndicators"][$i]["finalArray"] = array();
array_push($row_array["sectionIndicators"][$i]["finalArray"],
intval($v["perc"]),
intval($d["id"]),
intval($v["iid"])
);
}
}
}
array_push($data, $row_array);
}
}
如何更改?
这是私有数组:(
confirm_exit