122 lines
6.9 KiB
PHP
122 lines
6.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="pl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Polish Contract Calculator</title>
|
|
|
|
<?php
|
|
// Dynamic Open Graph tags for social sharing
|
|
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
|
$domainName = $_SERVER['HTTP_HOST'];
|
|
$imageUrl = $protocol . $domainName . '/assets/pasted-20250909-220108-d3c9b032.png';
|
|
$pageUrl = $protocol . $domainName . $_SERVER['REQUEST_URI'];
|
|
?>
|
|
<meta property="og:title" content="Polish Contract Calculator" />
|
|
<meta property="og:description" content="Oblicz swoje zarobki dla najpopularniejszych form zatrudnienia." />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:image" content="<?php echo $imageUrl; ?>" />
|
|
<meta property="og:url" content="<?php echo $pageUrl; ?>" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:image:alt" content="Polish Contract Calculator" />
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="calculator-container">
|
|
<main class="container my-5">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8 col-xl-7">
|
|
|
|
<div class="text-center mb-4">
|
|
<h1 class="h2 fw-bold">Kalkulator Wynagrodzeń</h1>
|
|
<p class="text-muted">Oblicz swoje zarobki dla najpopularniejszych form zatrudnienia.</p>
|
|
</div>
|
|
|
|
<div class="card calculator-widget calculator-card">
|
|
<div class="card-body p-4 p-md-5">
|
|
|
|
<!-- Contract Type Selector -->
|
|
<div class="mb-4">
|
|
<label class="form-label fw-bold">Typ umowy</label>
|
|
<div id="contract-type-selector" class="btn-group w-100" role="group" aria-label="Wybierz typ umowy">
|
|
<input type="radio" class="btn-check" name="contractType" id="b2b" value="b2b" autocomplete="off" checked>
|
|
<label class="btn btn-outline-primary" for="b2b"><i class="bi bi-briefcase-fill me-2"></i>B2B</label>
|
|
|
|
<input type="radio" class="btn-check" name="contractType" id="uop" value="uop" autocomplete="off">
|
|
<label class="btn btn-outline-primary" for="uop"><i class="bi bi-file-earmark-person-fill me-2"></i>Umowa o pracę</label>
|
|
|
|
<input type="radio" class="btn-check" name="contractType" id="uz" value="uz" autocomplete="off">
|
|
<label class="btn btn-outline-primary" for="uz"><i class="bi bi-file-text-fill me-2"></i>Umowa zlecenie</label>
|
|
|
|
<input type="radio" class="btn-check" name="contractType" id="uod" value="uod" autocomplete="off">
|
|
<label class="btn btn-outline-primary" for="uod"><i class="bi bi-palette-fill me-2"></i>Umowa o dzieło</label>
|
|
|
|
<input type="radio" class="btn-check" name="contractType" id="inkubator" value="inkubator" autocomplete="off">
|
|
<label class="btn btn-outline-primary" for="inkubator"><i class="bi bi-lightbulb-fill me-2"></i>Inkubator</label>
|
|
</div>
|
|
</div>
|
|
|
|
<form id="calculator-form">
|
|
<!-- Amount Input -->
|
|
<div class="mb-3">
|
|
<label for="amount" class="form-label fw-bold">Kwota</label>
|
|
<div class="input-group input-group-lg">
|
|
<input type="number" class="form-control" id="income" name="income" placeholder="np. 5000" required>
|
|
<span class="input-group-text">PLN</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Amount Type (Net/Gross) -->
|
|
<div class="mb-4 text-center">
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="radio" name="amountType" id="gross" value="gross" checked>
|
|
<label class="form-check-label" for="gross">Brutto</label>
|
|
</div>
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="radio" name="amountType" id="net" value="net">
|
|
<label class="form-check-label" for="net">Netto ("na rękę")</label>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Dynamic Options -->
|
|
<div id="dynamic-options" class="mb-4">
|
|
<!-- Options for B2B, UoP, etc. will be injected here by JS -->
|
|
</div>
|
|
|
|
<div class="d-grid">
|
|
<button type="submit" class="btn btn-primary btn-lg">Oblicz</button>
|
|
</div>
|
|
</form>
|
|
|
|
<!-- Results -->
|
|
<div id="results" class="mt-5" style="display: none;">
|
|
<hr>
|
|
<h3 class="text-center mb-4 h4">Podsumowanie</h3>
|
|
<div id="results-summary" class="row">
|
|
<!-- Results will be injected here -->
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="text-center mt-3 footer-links">
|
|
<small class="text-muted">© <?php echo date("Y"); ?> AppWizzy Inc. Obliczenia są szacunkowe. | <a href="/tos.php">Terms of Service</a> | <a href="/privacy.php">Privacy Policy</a></small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<!-- Bootstrap 5 JS Bundle -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
|
|
|
<!-- Custom JS -->
|
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
</body>
|
|
</html>
|