diff options
-rw-r--r-- | A8_srv_build/list.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/A8_srv_build/list.php b/A8_srv_build/list.php index c5c3b47..db89053 100644 --- a/A8_srv_build/list.php +++ b/A8_srv_build/list.php @@ -37,19 +37,19 @@ $url = isset($_SESSION['url']) ? $_SESSION['url'] : null; <a href="add.php" class="stb">Add Record</a><br><br> <form action="sessionvars.php" method="post"> Select columns:<br> - <input type="checkbox" name="con" value="Configure" + <input type="checkbox" class="colbox" name="con" value="Configure" <?php echo isSet($con)?" checked":"";?>/>Configure - <input type="checkbox" name="bul" value="Build" + <input type="checkbox" class="colbox" name="bul" value="Build" <?php echo isSet($bul)?" checked":"";?>/>Build - <input type="checkbox" name="nst" value="Install" + <input type="checkbox" class="colbox" name="nst" value="Install" <?php echo isSet($nst)?" checked":"";?>/>Install - <input type="checkbox" name="set" value="Setup" + <input type="checkbox" class="colbox" name="set" value="Setup" <?php echo isSet($set)?" checked":"";?>/>Setup - <input type="checkbox" name="not" value="Notes" + <input type="checkbox" class="colbox" name="not" value="Notes" <?php echo isSet($not)?" checked":"";?>/>Notes - <input type="checkbox" name="url" value="URL" + <input type="checkbox" class="colbox" name="url" value="URL" <?php echo isSet($url)?" checked":"";?>/>URL<br> - <input type="submit" name="submit" value="Submit"/> + <input type="colsubmit" name="colsubmit" value="Submit"/> </form> <?php @@ -228,7 +228,7 @@ if ($stmt->rowCount() > 0) { echo '<font color="#D00"><pre>No data found!</pre></font>'; } ?> - <input id="submit" type="submit" value="Delete" disabled="disabled"/> + <input id="submit" type="submit" value="Delete"/> <input type="checkbox" id="selectall"/>Check All </form> <!--- w3c tag --> @@ -239,15 +239,15 @@ if ($stmt->rowCount() > 0) { <!-- end w3c tag --> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type='text/javascript'> -var checkBoxes = $('tbody .checks'); -checkBoxes.change(function() { - $('#submit').prop('disabled', checkBoxes.filter(':checked').length < 1); +var delCcheckBoxes = $('tbody .checks'); +delCheckBoxes.change(function() { + $('#submit').prop('disabled', delCheckBoxes.filter(':checked').length < 1); }); -checkBoxes.change(); +delCheckBoxes.change(); $("#selectall").click(function () { $(".checks").prop('checked', $(this).prop('checked')); - $('#submit').prop('disabled', checkBoxes.filter(':checked').length < 1); + $('#submit').prop('disabled', delCheckBoxes.filter(':checked').length < 1); }); $(".checks").change(function(){ |