Пример #1
0
            $discAdd = true;
        } else {
            $newDisc->open($_POST['hdIdAct']);
            $newDisc->save($company->id, $_POST['code'], $_POST['percent'], $_POST['condition_start'], $_POST['condition_end']);
            $discUpd = true;
        }
    }
}
if ($_POST['action'] == 'Delete') {
    if (isset($_POST['hdIdDE'])) {
        $newDisc->open($_POST['hdIdDE']);
        $newDisc->del();
        $discDel = true;
    }
}
$list_discounts = $newDisc->list_discounts($company->id);
$country->open($company->fk_country);
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <link rel="shortcut icon" href="../img/icon.png">
        <title>Discount | FOLearn</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta name="description" content="" />
        <meta name="author" content="stilearning" />

        <!-- google font -->
        <link href="http://fonts.googleapis.com/css?family=Aclonica:regular" rel="stylesheet" type="text/css" />