Beispiel #1
0
require_once 'init.php';
session_start();
if (!isset($_SESSION['user_id'])) {
    header('location: ' . $BASEURL . 'user/login');
    exit;
}
$user_id = $_SESSION['user_id'];
$dal = new DataAccessLayer();
if (isset($_GET['id'])) {
    $id = $_GET['id'];
} else {
    $id = $_POST['id'];
}
if (isset($_POST['save'])) {
    $dal->UpdateCountryRank($id, $_POST['rank']);
    $id++;
}
$country = $dal->GetCountryInfo($id);
include "{$BASEDIR}/templates/header_review.php";
?>

<form method="post" action="<?php 
echo $BASEURL;
?>
review/country/edit">
<h1>Edit Country Info</h1>
<?php 
include "{$BASEDIR}/templates/admin_nav.php";
?>
<div id="country-grid-return">