49 lines
1.7 KiB
PHP
49 lines
1.7 KiB
PHP
<?php
|
|
require_once __DIR__ . '/../includes/init_praticien.php';
|
|
require_once '../includes/header.php';
|
|
if ($_SESSION['role'] === 'praticien'): ?>
|
|
|
|
<div class="main1">
|
|
<div class="container py-5">
|
|
<div class="shadow p-4 rounded bg-light">
|
|
<h2 class="mb-4 text-center"><?= htmlspecialchars($translations['titre_sync_agenda']) ?></h2>
|
|
|
|
<!-- Google Agenda -->
|
|
<div class="card_sync p-4">
|
|
<h4><?= htmlspecialchars($translations['google_import_title']) ?></h4>
|
|
<p><?= htmlspecialchars($translations['google_import_text']) ?></p>
|
|
<a href="/google/connect_google.php">
|
|
<button class="btn btn-outline-secondary mb-4"><?= htmlspecialchars($translations['btn_connect_google_agenda']) ?></button>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- iCal -->
|
|
<div class="card_sync p-4">
|
|
<h4><?= htmlspecialchars($translations['ical_import_title']) ?></h4>
|
|
<p><?= htmlspecialchars($translations['ical_import_text']) ?></p>
|
|
<a href="https://uslugi.fr/calendar.php?id=<?= (int)$_SESSION['reference_id'] ?>" target="_blank" rel="noopener">
|
|
<button class="btn btn-outline-secondary mb-4"><?= htmlspecialchars($translations['btn_add_to_ical']) ?></button>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Outlook -->
|
|
<div class="card_sync p-4">
|
|
<h4><?= htmlspecialchars($translations['outlook_import_title']) ?></h4>
|
|
<p><?= htmlspecialchars($translations['outlook_import_text']) ?></p>
|
|
<a href="https://uslugi.fr/outlook_connect.php" target="_blank" rel="noopener">
|
|
<button class="btn btn-outline-secondary mb-4"><?= htmlspecialchars($translations['btn_connect_outlook']) ?></button>
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer class="site-footer">
|
|
<div class="container">
|
|
<p><?= $translations['copyr'] ?></p>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
<?php endif; ?>
|