$prescribedLimit = 0; } $chConfigObj->setPrescribedLimit($prescribedLimit); if (!empty($chseq)) { $channlConfigs[intval($chseq)] = $chConfigObj; } else { array_push($channlConfigs, $chConfigObj); } if (!empty($chNo)) { if (!in_array($chNo, $chNoArr)) { array_push($chNoArr, $chNo); } else { array_push($dupNoChArr, $chNo); } } $errMsg .= validator::validateNumeric("Row No. {$count} - Channel Number", $chNo, 11, false); $errMsg .= validator::validateform("Row No. {$count} - Channel Name", $chName, 255, false); $errMsg .= validator::validateform("Row No. {$count} - Channel Unit", $chUnit, 10, false); $count++; } if (count($dupNoChArr) > 0) { $errMsg .= "Duplicate Channel Number(s) :- " . implode(",", $dupNoChArr); } } if (!empty($errMsg)) { $div = " <div class='ui-widget'>\n <div class='ui-state-error ui-corner-all' style='padding: 0 .7em;'>\n <p><span class='ui-icon ui-icon-alert' style='float: left; margin-right: .3em;'></span>\n <strong>Error during Edit Meta</strong> <br/>" . $errMsg . "</p>\n </div></div>"; } else { $CDS->saveList($channlConfigs); $folderSeq = intval($_POST["selectedFolderSeq"]); $channlConfigs = $CDS->FindByFolder($selSeq); $msg = "Parameters Updated Successfully.";