decode(); if(isset($_POST['addbook']) == '1') { $check = $thelibrary->checkForm(); if($check !== false) { $thelibrary->addBook(); } else { $thelibrary->showmessage(); } } if(isset($_POST['editbook'])) { $check = $thelibrary->checkForm(); if($check !== false) { $thelibrary->editBook($_POST['editbook']); } else { $thelibrary->showmessage(); } } if(isset($_GET['remove'])) { $thelibrary->deleteBook($_GET['remove']); } ?>
| '; $i = count($books)-1; if($i >= 0) { while($i >= 0) { if(($weightplank + $books[$i]['weight']) > $thelibrary::MAXWEIGHT) { echo " |
| "; $weightplank = 0; } else { echo ""; $weightplank = ($weightplank + $books[$i]['weight']); } $i--; } } echo ' |
BookLibrary is empty...
"; } ?> "; echo "edit | cleanInput(ucfirst($books[$id]['isbn']))."\" alt=\"remove book\">remove"; echo "".$thelibrary->cleanInput(ucfirst($books[$id]['title']))."
"; echo "