// include function files for this application require_once("book_sc_fns.php"); session_start(); do_html_header("Adding a paper template"); if (check_admin_user()) { // if (filled_out($HTTP_POST_VARS)) // { // reg_gbl 4112 $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']; if(insert_book($catid, $handle, $title, $au1, $au1wp, $au1em, $au2, $au2wp, $au2em, $au3, $au3wp, $au3em, $au4, $au4wp, $au4em, $abstract, $jelclass, $keywords, $fileURL1, $fileURL2, $fileURL3, $dateMod)) { $h = $handle; $ser=get_category_name($catid); echo "
Paper $h was added to the series $ser.
"; } else echo "Paper $handle could not be added to the database.
"; // } // 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(); ?>