// include function files for this application require_once("book_sc_fns.php"); session_start(); do_html_header("Updating paper"); if (check_admin_user()) { // if (filled_out($HTTP_POST_VARS)) // { // reg_gbl 4112 $newcode = $_POST['newcode']; $catid = $_POST['catid']; $handle = $_POST['handle']; $title = $_POST['title']; $au1 = $_POST['au1']; $au1wp = $_POST['au1wp']; $au1em = $_POST['au1em']; $au2 = $_POST['au2']; $au2wp = $_POST['au2wp']; $au2em = $_POST['au2em']; $au3 = $_POST['au3']; $au3wp = $_POST['au3wp']; $au3em = $_POST['au3em']; $au4 = $_POST['au4']; $au4wp = $_POST['au4wp']; $au4em = $_POST['au4em']; $abstract = $_POST['abstract']; $jelclass = $_POST['jelclass']; $keywords = $_POST['keywords']; $fileURL1 = $_POST['fileURL1']; $fileURL2 = $_POST['fileURL2']; $fileURL3 = $_POST['fileURL3']; $dateMod = $_POST['dateMod']; $category = get_category_name($catid); if(update_book($newcode, $catid, $handle, $title, $au1, $au1wp, $au1em, $au2, $au2wp, $au2em, $au3, $au3wp, $au3em, $au4, $au4wp, $au4em, $abstract, $jelclass, $keywords, $fileURL1, $fileURL2, $fileURL3, $dateMod)) echo "
Paper $category:$handle was updated.
"; else echo "Paper $category:$handle could not be updated.
"; // } // else // echo "You have not filled out the form. Please try again.
"; do_html_url("admin.php", "Back to administration menu"); } else echo "You are not authorised to view this page."; do_html_footer(); ?>