</script> <?php $lengthQueries = new LengthQueries(); $error = false; // If this is set, then that means a server is being added if (isset($_POST['submitAdd'])) { $length = $_POST['length']; $timeScale = $_POST['timeScale']; $newLengthId = $lengthQueries->addLength($length, $timeScale); if ($newLengthId < 1) { $error = true; } } // If a reason is being deleted if (isset($_POST['deleteLength'])) { $lengthQueries->deleteLength($_POST['lengthId']); } // Get list of reasons $banLengths = $lengthQueries->getLengthList(); if ($fullPower) { ?> <div class="tborder"> <div id="tableHead"> <div><b><?php echo $LAN_BANLENGHTS_002; ?> </b></div> </div> <table class="bordercolor" width="100%" cellspacing="1" cellpadding="5" border="0" style="margin-top: 1px;"> <tr> <th class="colColor1" width="1%" nowrap><div align="center"><?php