Esempio n. 1
0
function viewsortiment()
{
    if (!isset($_GET["SortimentId"]) || !$_GET["SortimentId"]) {
        sortimentlista();
        return;
    }
    $results = array();
    $results['Sortiment'] = Sortiment::getById((int) $_GET["SortimentId"]);
    $results['pageTitle'] = $results['Sortiment']->Namn . " | SystemBolaget";
    require TEMPLATE_PATH . "/viewsortiment.php";
}
Esempio n. 2
0
function deleteSortiment()
{
    if (!($Sortiment = Sortiment::getById((int) $_GET['SortimentId']))) {
        header("Location: admin.php?error=SortimentNotFound");
        return;
    }
    $article->delete();
    $article->deleteImages();
    header("Location: admin.php?status=SortimentDeleted");
}