public static function getUploadDir($updateID = NULL) { $row = mysql_fetch_array(EJHSJournal::queryOneById($updateID), MYSQL_ASSOC); return $row['upload_dir']; }
} if (isset($_GET['del'])) { if (EJHSJournalArticle::deleteById($_GET['del'])) { $_SESSION['notice1'] = 'File Deletion Was Successful.'; header('location:journal_detail.php?detailID=' . $_GET['detailID']); exit; } else { $_SESSION['error'] = "File Deletion Was Not Sccuessful."; header('Location: ' . $_SERVER['PHP_SELF'] . '?detailID=' . $_GET['detailID'] . '&her2e=here'); exit; } } if (isset($_GET['detailID']) && EJHSJournal::checkIfExistsById($_GET['detailID'])) { ## Get Journal By ID $detailID = $_GET['detailID']; $jResult = EJHSJournal::queryOneById($detailID); $jRow = mysql_fetch_array($jResult, MYSQL_ASSOC); $aResult = EJHSJournalArticle::getArticlesUnderJournal($detailID); } else { ## redirect to Journal Edit $_SESSION['notice1'] = "Requested Journal Information Unavailable."; header('location: journal_edit.php'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>E J H S | About Ethiopian Journal of Health Sciences</title> <link href="admin-style.css" rel="stylesheet" type="text/css" />
} ## DEALL With Table Updates if (EJHSJournal::update($year_of_edition, $month, $vol, $num, $issn, $eissn, $new_upload_dir, $fileName, $updateID) && EJHSJournalArticle::updateArticleUploadDir($updateID, $new_upload_dir)) { $_SESSION['notice1'] = "Journal Update Was Successful."; header('location: journal_edit.php'); } else { echo mysql_error() . "It Seems Like There Are Errors"; } } } if (!isset($_GET['updateID'])) { $_SESSION['error'] = "Unable To Start Update: UpdateID Error."; header('location: journal_edit.php'); } else { $updateID = $_GET['updateID']; $result = EJHSJournal::queryOneById($updateID); $row = mysql_fetch_array($result, MYSQL_ASSOC); $year_of_edition = $row['year']; $month = $row['month']; $vol = $row['volume']; $num = $row['num']; $issn = $row['issn']; $eissn = $row['eissn']; $cover = $row['coverpage_location']; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
session_start(); if (!$_SESSION['user_is_logged_in']) { header("location:login.php"); } if ($_SESSION['privilege'] != "reviewer") { header("location:login.php"); } include 'library/config.php'; include 'library/opendb.php'; include 'EJHSJournal.class.php'; include 'EJHSJournalForm.class.php'; include 'EJHSJournalArticle.class.php'; if (isset($_GET['del'])) { $aResult = EJHSJournalArticle::queryOneById($_GET['del']); $aRow = mysql_fetch_array($aResult, MYSQL_ASSOC); $jResult = EJHSJournal::queryOneById($aRow['journal_id']); $jRow = mysql_fetch_array($jResult, MYSQL_ASSOC); if (EJHSJournalArticle::deleteById($_GET['del'])) { $_SESSION['notice'] = 'File Deletion Was Successful.'; header('location:journal_article_list.php?artID=' . $jRow['id'] . '&vol=' . $jRow['volume'] . '&num=' . $jRow['num'] . '&year=' . $jRow['year'] . ''); exit; } else { $_SESSION['error'] = "File Deletion Was Not Sccuessful."; header('Location: ' . $_SERVER['PHP_SELF'] . '?detailID=' . $_GET['detailID'] . '&her2e=here'); exit; } } if (isset($_GET['detailID']) && EJHSJournalArticle::checkIfExists($_GET['detailID'])) { ## Get Journal By ID $detailID = $_GET['detailID']; $aResult = EJHSJournalArticle::queryOneById($detailID);