示例#1
0
 /**
  * Standard aed_module delete actualiser.
  *
  * @param  ID_TEXT		The entry being deleted
  */
 function delete_actualisation($id)
 {
     delete_newsletter(intval($id));
 }
示例#2
0
 function tearDown()
 {
     delete_newsletter($this->news_id);
     parent::tearDown();
 }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>	
	<?php 
include 'header.php';
if (isset($_POST['addBook'])) {
    add_book();
} elseif (isset($_POST['deleteBook'])) {
    delete_book();
} elseif (isset($_POST['addEvent'])) {
    add_event();
} elseif (isset($_POST['deleteEvent'])) {
    delete_event();
} elseif (isset($_POST['uploadNewsletter'])) {
    upload_newsletter();
} elseif (isset($_POST['deleteNewsletter'])) {
    delete_newsletter();
} elseif (isset($_POST['uploadReport'])) {
    upload_report();
} elseif (isset($_POST['deleteReport'])) {
    delete_report();
} else {
    echo "Error: Please submit changes to the site first.";
}
// TODO: If logged_user is the admin user, then this page will be available as a link
// TODO: Add following forms:
// ADD/DELETE Books/Events Form
// Upload Newsletter form
// Form will have all relevant fields and a submit button
// TODO: Check which button is clicked and call the relevant function
function add_book()
{