// if job status for this TB is running, aborting, next, or queued => disqualify this TB if ($item->status == 0 || $item->status == 1 || $item->status == 2 || $item->status == 4) { $qualify_flag = 0; } } } if ($qualify_flag) { $testbeds[$row->testbedID] = $row->testbed; } } // Process the form and update the lock status $Error = '<p style="font-size: 13pt; font-weight: bold; color: green;" id="msg"></p>'; if (isset($_GET[saveSelection])) { if ($_GET[password] == 'only4auto') { $IDs = array(); $objTestbedList->rReset(); while ($row = $objTestbedList->rNext()) { if ($_GET['box' . $row->testbedID] == "on") { array_push($IDs, $row->testbedID); } } $stringIDs = implode(",", $IDs); while ($row = $objUserList->rNext()) { if ($row->NTID == $_GET[userName]) { $initiatorID = $row->userID; break; } } $updateStatus = $objTestbedList->updateMulti($stringIDs, $initiatorID, "Y"); $Error = $updateStatus ? '<p style="font-size: 13pt; font-weight: bold; color: green;" id="msg">Successfully Updated Lock Status</p>' : '<p style="font-size: 13pt; font-weight: bold; color: red;" id="msg">Failed to update Lock Status</p>'; } else {