Compare commits
38 Commits
94aa765186
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a96df9381 | ||
|
|
968bbdec3b | ||
|
|
654157f174 | ||
|
|
2046d80c9b | ||
|
|
358a73f16f | ||
|
|
a8b4b0d5f2 | ||
|
|
a4c3644a54 | ||
|
|
cb0f7ea866 | ||
|
|
ec0a253d4e | ||
|
|
1b78d4b15a | ||
|
|
b7676b2833 | ||
|
|
0cb4ca932c | ||
|
|
ddcd614a49 | ||
|
|
1b9ba22bb5 | ||
|
|
aeb2d87cf5 | ||
|
|
d48b8457de | ||
|
|
0b8cc216b4 | ||
|
|
9782304e61 | ||
|
|
8804920129 | ||
|
|
bbce9776e1 | ||
|
|
9cd9afaad4 | ||
|
|
83489a149d | ||
|
|
a3437a9dcc | ||
|
|
5574ee031b | ||
|
|
7393378a02 | ||
|
|
9887da8e77 | ||
|
|
313157e24a | ||
|
|
7abaaede8b | ||
|
|
0f34cf93a4 | ||
|
|
2cf4d98714 | ||
|
|
0433161ab1 | ||
|
|
80360c0dfd | ||
|
|
4ab4576ec8 | ||
|
|
30d242afb8 | ||
|
|
0b4e4d6d89 | ||
|
|
dbb2151bf1 | ||
|
|
de77fac3e6 | ||
|
|
07413b7c46 |
173
admin/colors.php
173
admin/colors.php
@@ -1,173 +0,0 @@
|
||||
<?php
|
||||
include('../inc/check_login.php');
|
||||
include('../inc/check_admin.php');
|
||||
require_once '../inc/db.php';
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$edit_mode = false;
|
||||
$edit_color = null;
|
||||
|
||||
// --- Löschen ---
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$id = $_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM colors WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Farbe erfolgreich gelöscht!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Löschen der Farbe.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
|
||||
// --- Bearbeiten ---
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id'])) {
|
||||
$id = $_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, name, hex_code FROM colors WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$edit_color = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
$edit_mode = true;
|
||||
}
|
||||
|
||||
// --- Hinzufügen / Aktualisieren ---
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$name = $_POST['name'];
|
||||
$hex_code = $_POST['hex_code'];
|
||||
$id = $_POST['id'] ?? null;
|
||||
|
||||
if ($id) {
|
||||
$stmt = mysqli_prepare($conn, "UPDATE colors SET name = ?, hex_code = ? WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "ssi", $name, $hex_code, $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Farbe erfolgreich aktualisiert!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Aktualisieren der Farbe.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
} else {
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO colors (name, hex_code) VALUES (?, ?)");
|
||||
mysqli_stmt_bind_param($stmt, "ss", $name, $hex_code);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Neue Farbe erfolgreich hinzugefügt!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Hinzufügen der Farbe.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Farben auslesen ---
|
||||
$colors = [];
|
||||
$result = mysqli_query($conn, "SELECT id, name, hex_code FROM colors ORDER BY name");
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$colors[] = $row;
|
||||
}
|
||||
|
||||
require_once '../inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
|
||||
<?php if ($message) : ?>
|
||||
<div class="alert alert-<?= $message_type ?> alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($message) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Farbverwaltung</h2>
|
||||
</div>
|
||||
|
||||
<div class="collapse <?= $edit_mode ? 'show' : '' ?>" id="colorFormCollapse">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0"><?= $edit_mode ? 'Farbe bearbeiten' : 'Neue Farbe hinzufügen'; ?></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="colors.php" method="post">
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?= htmlspecialchars($edit_color['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label for="name" class="form-label">Name der Farbe</label>
|
||||
<input type="text" class="form-control" id="name" name="name"
|
||||
value="<?= htmlspecialchars($edit_color['name'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="hex_code" class="form-label">Hex-Code</label>
|
||||
<input type="color" class="form-control form-control-color" id="hex_code" name="hex_code"
|
||||
value="<?= htmlspecialchars($edit_color['hex_code'] ?? '#'); ?>">
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start mt-2">
|
||||
<button type="submit" class="btn btn-sm btn-outline-<?= $edit_mode ? 'success' : 'primary'; ?> me-2">
|
||||
<?= $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<a href="colors.php" class="btn btn-sm btn-outline-secondary">Abbrechen</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
</div>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-secondary bg-opacity-50 text-secondary d-flex justify-content-between align-items-center mb-4">
|
||||
<h4 class="mb-0">Aktuelle Farben</h4>
|
||||
<a class="btn btn-sm d-flex align-items-center justify-content-center" data-bs-toggle="collapse" href="#colorFormCollapse" role="button" aria-expanded="false" aria-controls="colorFormCollapse">Add
|
||||
<span class="material-symbols-outlined">add</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (empty($colors)): ?>
|
||||
<p class="text-muted text-center">Es sind noch keine Farben vorhanden.</p>
|
||||
<?php else: ?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Hex-Code</th>
|
||||
<th>Farbe</th>
|
||||
<th>Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($colors as $color): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($color['name']); ?></td>
|
||||
<td><?= htmlspecialchars($color['hex_code']); ?></td>
|
||||
<td>
|
||||
<div style="background-color: <?= htmlspecialchars($color['hex_code']); ?>; width: 40px; height: 20px; border: 1px solid #ccc;"></div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="colors.php?action=edit&id=<?= htmlspecialchars($color['id']); ?>" class="text-dark me-1 text-decoration-none">
|
||||
<span class="material-icons">mode_edit_outline</span>
|
||||
</a>
|
||||
<a href="colors.php?action=delete&id=<?= htmlspecialchars($color['id']); ?>" class="text-danger text-decoration-none" onclick="return confirm('Sind Sie sicher, dass Sie diese Farbe löschen möchten?');">
|
||||
<span class="material-icons">delete_outline</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('../inc/footer.php'); ?>
|
||||
@@ -1,276 +0,0 @@
|
||||
<?php
|
||||
include('../inc/check_login.php');
|
||||
include('../inc/check_admin.php');
|
||||
require_once('../inc/db.php');
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$edit_mode = false;
|
||||
$edit_meeting = null;
|
||||
|
||||
// --- Funktion zur gewichteten zufälligen Farbauswahl ---
|
||||
function get_weighted_random_color($conn)
|
||||
{
|
||||
// 1. Alle Farben abrufen
|
||||
$all_colors = [];
|
||||
$result_all = mysqli_query($conn, "SELECT id FROM colors");
|
||||
while ($row = mysqli_fetch_assoc($result_all)) {
|
||||
$all_colors[] = $row['id'];
|
||||
}
|
||||
|
||||
if (empty($all_colors)) {
|
||||
return null; // Keine Farben vorhanden
|
||||
}
|
||||
|
||||
// 2. Anzahl der Farben als "Sperrzeit"
|
||||
$color_count = count($all_colors);
|
||||
|
||||
// 3. Kürzlich verwendete Farben abrufen
|
||||
$used_colors_id = [];
|
||||
$stmt = mysqli_prepare($conn, "SELECT color_id FROM meetings ORDER BY meeting_date DESC LIMIT ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $color_count);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result_used = mysqli_stmt_get_result($stmt);
|
||||
while ($row = mysqli_fetch_assoc($result_used)) {
|
||||
$used_colors_id[] = $row['color_id'];
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
// 4. Farben-Pool erstellen
|
||||
$color_pool = [];
|
||||
foreach ($all_colors as $color_id) {
|
||||
if (in_array($color_id, $used_colors_id)) {
|
||||
// Kürzlich verwendete Farben haben 1x Chance
|
||||
$color_pool[] = $color_id;
|
||||
} else {
|
||||
// Andere Farben haben 3x Chance
|
||||
$color_pool[] = $color_id;
|
||||
$color_pool[] = $color_id;
|
||||
$color_pool[] = $color_id;
|
||||
}
|
||||
}
|
||||
|
||||
// 5. Zufällige Farbe aus dem Pool auswählen
|
||||
shuffle($color_pool);
|
||||
return $color_pool[0];
|
||||
}
|
||||
|
||||
// --- Logik zum Löschen und Bearbeiten von Terminen ---
|
||||
|
||||
// Aktion Löschen
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$id = $_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM meetings WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Termin erfolgreich gelöscht!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Löschen des Termins.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
|
||||
// Aktion Bearbeiten (Formular laden)
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id'])) {
|
||||
$id = $_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, meeting_date, color_id, reason FROM meetings WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$edit_meeting = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
$edit_mode = true;
|
||||
|
||||
// Datum und Uhrzeit für die Formularfelder aufteilen
|
||||
$edit_date_time = new DateTime($edit_meeting['meeting_date']);
|
||||
$edit_meeting['meeting_date_only'] = $edit_date_time->format('Y-m-d');
|
||||
$edit_meeting['meeting_time_only'] = $edit_date_time->format('H:i');
|
||||
}
|
||||
|
||||
// --- Logik zum Hinzufügen oder Speichern von Terminen (POST) ---
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$meeting_date_only = $_POST['meeting_date'];
|
||||
$meeting_time_only = $_POST['meeting_time'] ?? '12:00';
|
||||
$meeting_date = $meeting_date_only . ' ' . $meeting_time_only;
|
||||
$color_id = $_POST['color_id'];
|
||||
$reason = $_POST['reason'] ?? 'Zufallsfarbe';
|
||||
$id = $_POST['id'] ?? null;
|
||||
|
||||
if ($id) { // Update-Logik
|
||||
$stmt = mysqli_prepare($conn, "UPDATE meetings SET meeting_date = ?, color_id = ?, reason = ? WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "sisi", $meeting_date, $color_id, $reason, $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Termin erfolgreich aktualisiert!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Aktualisieren des Termins.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
} else { // Insert-Logik
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO meetings (meeting_date, color_id, reason) VALUES (?, ?, ?)");
|
||||
mysqli_stmt_bind_param($stmt, "sis", $meeting_date, $color_id, $reason);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Neuer Termin erfolgreich hinzugefügt!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Hinzufügen des Termins.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Nächste 2 Donnerstage automatisch hinzufügen (mit 12:00 Uhr) ---
|
||||
$date = new DateTime('now');
|
||||
$date->modify('next thursday');
|
||||
|
||||
for ($i = 0; $i < 2; $i++) {
|
||||
$next_thursday = $date->format('Y-m-d') . ' 12:00:00';
|
||||
|
||||
$stmt = mysqli_prepare($conn, "SELECT id FROM meetings WHERE meeting_date = ?");
|
||||
mysqli_stmt_bind_param($stmt, "s", $next_thursday);
|
||||
mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_store_result($stmt);
|
||||
|
||||
if (mysqli_stmt_num_rows($stmt) == 0) {
|
||||
$color_id = get_weighted_random_color($conn);
|
||||
if ($color_id) {
|
||||
$stmt_insert = mysqli_prepare($conn, "INSERT INTO meetings (meeting_date, color_id, reason) VALUES (?, ?, ?)");
|
||||
$default_reason = "Zufallsfarbe";
|
||||
mysqli_stmt_bind_param($stmt_insert, "sis", $next_thursday, $color_id, $default_reason);
|
||||
mysqli_stmt_execute($stmt_insert);
|
||||
mysqli_stmt_close($stmt_insert);
|
||||
}
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
$date->modify('+1 week');
|
||||
}
|
||||
|
||||
// --- Termine und alle Farben abrufen (für Übersicht und Formular) ---
|
||||
$all_colors = [];
|
||||
$result = mysqli_query($conn, "SELECT id, name, hex_code FROM colors ORDER BY name");
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$all_colors[] = $row;
|
||||
}
|
||||
|
||||
$meetings = [];
|
||||
// Aktualisierte Abfrage: Zeigt nur Meetings an, die nicht abgeschlossen sind (is_completed = 0)
|
||||
$result = mysqli_query($conn, "SELECT m.id, m.meeting_date, m.created_at, m.reason, c.name AS color_name, c.hex_code FROM meetings m JOIN colors c ON m.color_id = c.id WHERE m.is_completed = 0 ORDER BY m.meeting_date");
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$meetings[] = $row;
|
||||
}
|
||||
|
||||
require_once '../inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
|
||||
<?php if ($message) : ?>
|
||||
<div id="status-message" class="alert alert-<?php echo $message_type; ?> alert-dismissible fade show" role="alert">
|
||||
<?php echo htmlspecialchars($message); ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Terminverwaltung</h2>
|
||||
</div>
|
||||
|
||||
<div class="collapse <?= $edit_mode ? 'show' : '' ?>" id="planningFormCollapse">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0"><?= $edit_mode ? 'Termin bearbeiten' : 'Neuen Termin hinzufügen'; ?></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="planning.php" method="post">
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?= htmlspecialchars($edit_meeting['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-1 align-items-end">
|
||||
<div class="col-md-4">
|
||||
<label for="meeting_date" class="form-label">Datum</label>
|
||||
<input type="date" class="form-control" id="meeting_date" name="meeting_date" value="<?= htmlspecialchars($edit_meeting['meeting_date_only'] ?? ''); ?>" required>
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="meeting_time" class="form-label">Uhrzeit</label>
|
||||
<input type="time" class="form-control" id="meeting_time" name="meeting_time" value="<?= htmlspecialchars($edit_meeting['meeting_time_only'] ?? '12:00'); ?>" required>
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="color_id" class="form-label">Farbe</label>
|
||||
<select class="form-select" id="color_id" name="color_id" required>
|
||||
<?php foreach ($all_colors as $color): ?>
|
||||
<option value="<?= htmlspecialchars($color['id']); ?>" <?= (($edit_meeting['color_id'] ?? '') == $color['id']) ? 'selected' : ''; ?>>
|
||||
<?= htmlspecialchars($color['name']); ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="reason" class="form-label">Grund für die Farbe (optional)</label>
|
||||
<input type="text" class="form-control" id="reason" name="reason" value="<?= htmlspecialchars($edit_meeting['reason'] ?? ''); ?>">
|
||||
<div class="form-text">wenn leer, wird automatisch "Zufallsfarbe" eingetragen</div>
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start">
|
||||
<div class="d-flex w-100">
|
||||
<button type="submit" class="btn btn-sm btn-outline-<?= $edit_mode ? 'success' : 'primary'; ?> w-auto me-2">
|
||||
<?= $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<a href="planning.php" class="btn btn-sm btn-outline-secondary w-auto">Abbrechen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
</div>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-secondary bg-opacity-50 text-secondary d-flex justify-content-between align-items-center mb-4">
|
||||
<h4 class="mb-0">Übersicht der nächsten Termine</h4>
|
||||
<a class="btn btn-sm d-flex align-items-center justify-content-center" data-bs-toggle="collapse" href="#planningFormCollapse" role="button" aria-expanded="false" aria-controls="planningFormCollapse">Add
|
||||
<span class="material-symbols-outlined">add</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (empty($meetings)): ?>
|
||||
<p class="text-muted text-center">Es sind noch keine Termine vorhanden.</p>
|
||||
<?php else: ?>
|
||||
<div class="list-group list-group-flush">
|
||||
<?php foreach ($meetings as $meeting): ?>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<p class="mb-1 fw-bold"><?= date('d.m.y H:i', strtotime($meeting['meeting_date'])); ?></p>
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="color-preview rounded me-2" style="background-color: <?= htmlspecialchars($meeting['hex_code']); ?>; width: 20px; height: 20px;"></div>
|
||||
<p class="mb-1"><?= htmlspecialchars($meeting['color_name']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<a href="planning.php?action=edit&id=<?= htmlspecialchars($meeting['id']); ?>" class="text-dark me-1 text-decoration-none" data-bs-toggle="tooltip" data-bs-placement="top" title="Bearbeiten">
|
||||
<span class="material-icons">mode_edit_outline</span>
|
||||
</a>
|
||||
<a href="planning.php?action=delete&id=<?= htmlspecialchars($meeting['id']); ?>" class="text-danger text-decoration-none" onclick="return confirm('Sind Sie sicher, dass Sie diesen Termin löschen möchten?');" data-bs-toggle="tooltip" data-bs-placement="top" title="Löschen">
|
||||
<span class="material-icons">delete_outline</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="small text-muted mb-0 mt-2">Grund: <?= htmlspecialchars($meeting['reason']); ?></p>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('../inc/footer.php'); ?>
|
||||
210
admin/users.php
210
admin/users.php
@@ -1,210 +0,0 @@
|
||||
<?php
|
||||
include('../inc/check_login.php');
|
||||
include('../inc/check_admin.php');
|
||||
require_once('../inc/db.php');
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$edit_mode = false;
|
||||
$edit_user = null;
|
||||
|
||||
// --- Logik zum Löschen und Bearbeiten von Benutzern ---
|
||||
|
||||
// Aktion Löschen
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$id = $_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Benutzer erfolgreich gelöscht!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Löschen des Benutzers.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
|
||||
// Aktion Bearbeiten (Formular laden)
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id'])) {
|
||||
$id = $_GET['id'];
|
||||
// E-Mail-Feld zur Abfrage hinzugefügt, da es für das Bearbeiten benötigt wird
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, username, email, role FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$edit_user = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
$edit_mode = true;
|
||||
}
|
||||
|
||||
// --- Logik zum Hinzufügen oder Speichern von Benutzern ---
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$username = $_POST['username'];
|
||||
$password = $_POST['password'];
|
||||
// E-Mail-Feld aus dem Formular auslesen
|
||||
$email = $_POST['email'] ?? null;
|
||||
$role = $_POST['role'] === 'admin' ? 'admin' : 'member';
|
||||
$id = $_POST['id'] ?? null;
|
||||
|
||||
if ($id) { // Update-Logik
|
||||
// Überprüfen, ob ein neues Passwort gesetzt wurde
|
||||
if (!empty($password)) {
|
||||
$password_hashed = password_hash($password, PASSWORD_DEFAULT);
|
||||
// E-Mail-Feld zum UPDATE-Statement hinzugefügt
|
||||
$stmt = mysqli_prepare($conn, "UPDATE users SET username = ?, password = ?, email = ?, role = ? WHERE id = ?");
|
||||
// `email` zur Parameter-Bindung hinzugefügt
|
||||
mysqli_stmt_bind_param($stmt, "ssssi", $username, $password_hashed, $email, $role, $id);
|
||||
} else {
|
||||
// E-Mail-Feld zum UPDATE-Statement hinzugefügt
|
||||
$stmt = mysqli_prepare($conn, "UPDATE users SET username = ?, email = ?, role = ? WHERE id = ?");
|
||||
// `email` zur Parameter-Bindung hinzugefügt
|
||||
mysqli_stmt_bind_param($stmt, "sssi", $username, $email, $role, $id);
|
||||
}
|
||||
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Benutzer erfolgreich aktualisiert!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Aktualisieren des Benutzers.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
} else { // Insert-Logik
|
||||
$password_hashed = password_hash($password, PASSWORD_DEFAULT);
|
||||
// E-Mail-Feld zum INSERT-Statement hinzugefügt
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO users (username, password, email, role) VALUES (?, ?, ?, ?)");
|
||||
// `email` zur Parameter-Bindung hinzugefügt
|
||||
mysqli_stmt_bind_param($stmt, "ssss", $username, $password_hashed, $email, $role);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Benutzer erfolgreich hinzugefügt.";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Hinzufügen: " . mysqli_error($conn);
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
}
|
||||
|
||||
// Benutzerübersicht abrufen (E-Mail-Feld entfernt)
|
||||
$users = [];
|
||||
$result = mysqli_query($conn, "SELECT id, username, role FROM users ORDER BY id ASC");
|
||||
if ($result) {
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$users[] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
require_once('../inc/header.php');
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
|
||||
<?php if ($message) : ?>
|
||||
<div id="status-message" class="alert alert-<?php echo $message_type; ?> alert-dismissible fade show" role="alert">
|
||||
<?php echo htmlspecialchars($message); ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Benutzerverwaltung</h2>
|
||||
</div>
|
||||
|
||||
<div class="collapse <?= $edit_mode ? 'show' : '' ?>" id="userFormCollapse">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0"><?= $edit_mode ? 'Benutzer bearbeiten' : 'Neuen Benutzer hinzufügen'; ?></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="users.php" method="post">
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?= htmlspecialchars($edit_user['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-1 align-items-end">
|
||||
<div class="col-md-3">
|
||||
<label for="username" class="form-label">Benutzername</label>
|
||||
<input type="text" class="form-control" id="username" name="username" value="<?= htmlspecialchars($edit_user['username'] ?? ''); ?>" required>
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="email" class="form-label">E-Mail (optional)</label>
|
||||
<input type="email" class="form-control" id="email" name="email" value="<?= htmlspecialchars($edit_user['email'] ?? ''); ?>">
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="password" class="form-label">Passwort</label>
|
||||
<input type="password" class="form-control" id="password" name="password" <?= $edit_mode ? '' : 'required'; ?>>
|
||||
<div class="form-text">
|
||||
<?= $edit_mode ? 'Feld leer lassen, um das Passwort nicht zu ändern.' : ' '; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="role" class="form-label">Rolle</label>
|
||||
<select class="form-select" id="role" name="role">
|
||||
<option value="member" <?= (($edit_user['role'] ?? '') === 'member') ? 'selected' : ''; ?>>Mitglied</option>
|
||||
<option value="admin" <?= (($edit_user['role'] ?? '') === 'admin') ? 'selected' : ''; ?>>Admin</option>
|
||||
</select>
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start">
|
||||
<button type="submit" class="btn btn-sm btn-outline-<?= $edit_mode ? 'success' : 'primary'; ?> w-auto me-2">
|
||||
<?= $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<a href="users.php" class="btn btn-sm btn-outline-secondary w-auto">Abbrechen</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
</div>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-secondary bg-opacity-50 text-secondary d-flex justify-content-between align-items-center mb-4">
|
||||
<h4 class="mb-0">Benutzerübersicht</h4>
|
||||
<a class="btn btn-sm d-flex align-items-center justify-content-center" data-bs-toggle="collapse" href="#userFormCollapse" role="button" aria-expanded="false" aria-controls="userFormCollapse">Add
|
||||
<span class="material-symbols-outlined">add</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Benutzername</th>
|
||||
<th>Rolle</th>
|
||||
<th>Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($users as $user): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($user['id']) ?></td>
|
||||
<td><?= htmlspecialchars($user['username']) ?></td>
|
||||
<td>
|
||||
<span class="badge rounded-pill bg-<?= $user['role'] === 'admin' ? 'info' : 'secondary' ?>">
|
||||
<?= htmlspecialchars($user['role']) ?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="users.php?action=edit&id=<?= htmlspecialchars($user['id']) ?>" class="text-dark me-1 text-decoration-none" data-bs-toggle="tooltip" data-bs-placement="top" title="Bearbeiten">
|
||||
<span class="material-icons">mode_edit_outline</span>
|
||||
</a>
|
||||
<a href="users.php?action=delete&id=<?= htmlspecialchars($user['id']) ?>" class="text-danger text-decoration-none" data-bs-toggle="tooltip" data-bs-placement="top" title="Löschen" onclick="return confirm('Sind Sie sicher, dass Sie diesen Benutzer löschen möchten?');">
|
||||
<span class="material-icons">delete_outline</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('../inc/footer.php'); ?>
|
||||
118
backup.php
Executable file
118
backup.php
Executable file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
include('inc/check_login.php');
|
||||
include('inc/db.php');
|
||||
|
||||
// 🔹 Pfad zum Backup-Ordner (relativ zum Projekt)
|
||||
$backup_dir = __DIR__ . '/backups/';
|
||||
$backup_url = 'backups/'; // öffentliche URL
|
||||
|
||||
// Prüfen, ob Ordner existiert
|
||||
if (!is_dir($backup_dir)) {
|
||||
mkdir($backup_dir, 0755, true);
|
||||
}
|
||||
|
||||
// PDF-Dateien holen
|
||||
$files = [];
|
||||
if ($handle = opendir($backup_dir)) {
|
||||
while (false !== ($entry = readdir($handle))) {
|
||||
if ($entry !== '.' && $entry !== '..' && pathinfo($entry, PATHINFO_EXTENSION) === 'pdf') {
|
||||
$full_path = $backup_dir . $entry;
|
||||
$files[] = [
|
||||
'name' => $entry,
|
||||
'size' => filesize($full_path),
|
||||
'mtime' => filemtime($full_path)
|
||||
];
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
// 🔸 Sortieren nach Datum im Dateinamen: DoMiLi_Backup_YYYY-MM[_x].pdf
|
||||
usort($files, function ($a, $b) {
|
||||
// Extrahiere YYYY-MM aus dem Dateinamen (ohne .pdf)
|
||||
$nameA = pathinfo($a['name'], PATHINFO_FILENAME);
|
||||
$nameB = pathinfo($b['name'], PATHINFO_FILENAME);
|
||||
|
||||
// Regex: Suche nach 4 Ziffern, Bindestrich, 2 Ziffern
|
||||
$dateA = null;
|
||||
$dateB = null;
|
||||
if (preg_match('/(\d{4}-\d{2})/', $nameA, $matchesA)) {
|
||||
$dateA = $matchesA[1];
|
||||
}
|
||||
if (preg_match('/(\d{4}-\d{2})/', $nameB, $matchesB)) {
|
||||
$dateB = $matchesB[1];
|
||||
}
|
||||
|
||||
// Wenn kein Datum gefunden: ans Ende schieben
|
||||
if ($dateA === null && $dateB === null) return 0;
|
||||
if ($dateA === null) return 1; // A hinter B
|
||||
if ($dateB === null) return -1; // B hinter A
|
||||
|
||||
// Absteigend sortieren: neuestes zuerst → "2025-07" > "2025-02"
|
||||
return $dateB <=> $dateA;
|
||||
});
|
||||
}
|
||||
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">PDF-Backups</h2>
|
||||
<a href="index.php" class="btn btn-sm btn-outline-secondary">Zurück</a>
|
||||
</div>
|
||||
|
||||
<?php if (empty($files)): ?>
|
||||
<div class="alert alert-info">
|
||||
<span class="material-symbols-outlined align-text-bottom me-2">info</span>
|
||||
Keine PDF-Backups gefunden.
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="card shadow">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover mb-0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Datei</th>
|
||||
<th>Datum</th>
|
||||
<th class="d-none d-md-table-cell">Größe</th>
|
||||
<th class="text-end">Aktion</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($files as $file): ?>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;">
|
||||
<div class="d-flex align-items-center" style="min-height: 1.4rem;">
|
||||
<span class="material-symbols-outlined text-info me-2" style="font-size: 1.1em; line-height: 1; flex-shrink: 0;">picture_as_pdf</span>
|
||||
<span class="fw-medium text-break" style="font-size: 0.92rem; line-height: 1.3; min-width: 0; white-space: normal;">
|
||||
<?= htmlspecialchars(pathinfo($file['name'], PATHINFO_FILENAME)) ?>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
<td><?= date('d.m.y', $file['mtime']) ?></td>
|
||||
<td class="d-none d-md-table-cell"><?= number_format($file['size'] / 1024, 1, ',', '.') ?> KB</td>
|
||||
<td class="text-end pe-4">
|
||||
<a href="<?= htmlspecialchars($backup_url . $file['name']) ?>" target="_blank" class="text-secondary" title="PDF öffnen oder herunterladen">
|
||||
<span class="material-icons">download</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="mt-4 p-3 bg-light rounded">
|
||||
<h5 class="mb-3">Hinweis</h5>
|
||||
<p class="mb-0">
|
||||
Diese PDFs werden manuell oder automatisch erstellt (z. B. über <code>export.php</code>).
|
||||
Sie dienen als Archiv und können nicht über diese Oberfläche gelöscht werden.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
BIN
backups/DoMiLi_Backup_2025-07.pdf
Executable file
BIN
backups/DoMiLi_Backup_2025-07.pdf
Executable file
Binary file not shown.
BIN
backups/DoMiLi_Backup_2025-08.pdf
Executable file
BIN
backups/DoMiLi_Backup_2025-08.pdf
Executable file
Binary file not shown.
BIN
backups/DoMiLi_Backup_2025-09.pdf
Executable file
BIN
backups/DoMiLi_Backup_2025-09.pdf
Executable file
Binary file not shown.
BIN
backups/DoMiLi_Backup_2025-10.pdf
Executable file
BIN
backups/DoMiLi_Backup_2025-10.pdf
Executable file
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include('../inc/check_admin.php');
|
||||
require_once('../inc/header.php'); ?>
|
||||
include('inc/check_admin.php');
|
||||
require_once('inc/header.php'); ?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h2 class="mb-4">Debug-Informationen</h2>
|
||||
@@ -34,4 +34,4 @@ require_once('../inc/header.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once '../inc/footer.php'; ?>
|
||||
<?php require_once 'inc/footer.php'; ?>
|
||||
260
colors.php
Executable file
260
colors.php
Executable file
@@ -0,0 +1,260 @@
|
||||
<?php
|
||||
include('inc/check_login.php');
|
||||
require_once 'inc/db.php';
|
||||
|
||||
$is_admin = ($_SESSION['role'] === 'admin');
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$edit_mode = false;
|
||||
$edit_color = null;
|
||||
|
||||
// --- Nur Admins: Löschen ---
|
||||
if ($is_admin && isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$id = (int)$_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM colors WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Farbe erfolgreich gelöscht!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Löschen der Farbe.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
header("Location: colors.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
// --- Nur Admins: Bearbeiten ---
|
||||
if ($is_admin && isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id'])) {
|
||||
$id = (int)$_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, name, hex_code, is_special FROM colors WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$edit_color = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
if ($edit_color) {
|
||||
$edit_mode = true;
|
||||
} else {
|
||||
$message = "Farbe nicht gefunden.";
|
||||
$message_type = 'warning';
|
||||
}
|
||||
}
|
||||
|
||||
// --- Nur Admins: Speichern ---
|
||||
if ($is_admin && $_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$name = trim($_POST['name'] ?? '');
|
||||
$hex_code = trim($_POST['hex_code'] ?? '');
|
||||
$is_special = !empty($_POST['is_special']) ? 1 : 0;
|
||||
$id = !empty($_POST['id']) ? (int)$_POST['id'] : null;
|
||||
|
||||
if (empty($name) || empty($hex_code)) {
|
||||
$message = "Name und Farbcode sind erforderlich.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
if ($id) {
|
||||
$stmt = mysqli_prepare($conn, "UPDATE colors SET name = ?, hex_code = ?, is_special = ? WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "ssii", $name, $hex_code, $is_special, $id);
|
||||
} else {
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO colors (name, hex_code, is_special) VALUES (?, ?, ?)");
|
||||
mysqli_stmt_bind_param($stmt, "ssi", $name, $hex_code, $is_special);
|
||||
}
|
||||
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = $id ? "Farbe erfolgreich aktualisiert!" : "Neue Farbe erfolgreich hinzugefügt!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Speichern der Farbe.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
header("Location: colors.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
// --- Sortierung mit Richtung (asc/desc) ---
|
||||
$sort = $_GET['sort'] ?? 'name';
|
||||
$dir = $_GET['dir'] ?? 'asc';
|
||||
$sort = in_array($sort, ['name', 'usage']) ? $sort : 'name';
|
||||
$dir = in_array($dir, ['asc', 'desc']) ? $dir : 'asc';
|
||||
|
||||
if ($sort === 'usage') {
|
||||
$order_by = "usage_count $dir, c.name ASC";
|
||||
} else {
|
||||
$order_by = "c.name $dir";
|
||||
}
|
||||
|
||||
// --- Farben mit Nutzungszähler laden ---
|
||||
$colors = [];
|
||||
$result = mysqli_query($conn, "
|
||||
SELECT
|
||||
c.id,
|
||||
c.name,
|
||||
c.hex_code,
|
||||
c.is_special,
|
||||
COUNT(m.id) AS usage_count
|
||||
FROM colors c
|
||||
LEFT JOIN meetings m ON c.id = m.color_id
|
||||
GROUP BY c.id, c.name, c.hex_code, c.is_special
|
||||
ORDER BY $order_by
|
||||
");
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$colors[] = $row;
|
||||
}
|
||||
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
|
||||
<?php if ($message): ?>
|
||||
<div class="alert alert-<?= htmlspecialchars($message_type) ?> alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($message) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Farbverwaltung</h2>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin): ?>
|
||||
<div class="collapse <?= $edit_mode ? 'show' : '' ?>" id="colorFormCollapse">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0"><?= $edit_mode ? 'Farbe bearbeiten' : 'Neue Farbe hinzufügen'; ?></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="colors.php" method="post">
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?= htmlspecialchars($edit_color['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label for="name" class="form-label">Name der Farbe</label>
|
||||
<input type="text" class="form-control" id="name" name="name"
|
||||
value="<?= htmlspecialchars($edit_color['name'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="hex_code" class="form-label">Hex-Code</label>
|
||||
<input type="color" class="form-control form-control-color" id="hex_code" name="hex_code"
|
||||
value="<?= htmlspecialchars($edit_color['hex_code'] ?? '#000000'); ?>">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="is_special" name="is_special" <?= (!empty($edit_color['is_special']) ? 'checked' : ''); ?>>
|
||||
<label class="form-check-label" for="is_special">
|
||||
Sonderfarbe (wird nicht im Zufallsmodus verwendet)
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start mt-2">
|
||||
<button type="submit" class="btn btn-sm btn-outline-<?= $edit_mode ? 'success' : 'primary'; ?> me-2">
|
||||
<?= $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<a href="colors.php" class="btn btn-sm btn-outline-secondary">Abbrechen</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0">Aktuelle Farben</h4>
|
||||
<?php if ($is_admin): ?>
|
||||
<a class="btn btn-sm d-flex align-items-center justify-content-center" data-bs-toggle="collapse" href="#colorFormCollapse" role="button" aria-expanded="false" aria-controls="colorFormCollapse">Add
|
||||
<span class="material-symbols-outlined">add</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (empty($colors)): ?>
|
||||
<p class="text-muted text-center">Es sind noch keine Farben vorhanden.</p>
|
||||
<?php else: ?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Farbe</th>
|
||||
<th>
|
||||
<?php
|
||||
$name_dir = ($sort === 'name' && $dir === 'asc') ? 'desc' : 'asc';
|
||||
$name_arrow = '';
|
||||
if ($sort === 'name') {
|
||||
$name_arrow = $dir === 'asc' ? 'arrow_upward' : 'arrow_downward';
|
||||
}
|
||||
?>
|
||||
<a href="?sort=name&dir=<?= $name_dir ?>" class="link-secondary text-decoration-none">
|
||||
Name <?php if ($name_arrow): ?><span class="material-symbols-outlined" style="font-size:1em;"><?= $name_arrow ?></span><?php endif; ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<?php
|
||||
$usage_dir = ($sort === 'usage' && $dir === 'asc') ? 'desc' : 'asc';
|
||||
$usage_arrow = '';
|
||||
if ($sort === 'usage') {
|
||||
$usage_arrow = $dir === 'asc' ? 'arrow_upward' : 'arrow_downward';
|
||||
}
|
||||
?>
|
||||
<a href="?sort=usage&dir=<?= $usage_dir ?>" class="link-secondary text-decoration-none">
|
||||
Anzahl <?php if ($usage_arrow): ?><span class="material-symbols-outlined" style="font-size:1em;"><?= $usage_arrow ?></span><?php endif; ?>
|
||||
</a>
|
||||
</th>
|
||||
<?php if ($is_admin): ?>
|
||||
<th></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($colors as $color): ?>
|
||||
<tr>
|
||||
<td class="align-middle">
|
||||
<div style="background-color: <?= htmlspecialchars($color['hex_code']); ?>; width: 40px; height: 20px; border: 1px solid #ccc;"></div>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<?= htmlspecialchars($color['name']); ?>
|
||||
<?php if ($color['is_special']): ?>
|
||||
<span class="badge bg-info ms-1" title="Sonderfarbe – nicht im Zufallsmodus">★</span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<?= (int)$color['usage_count']; ?>
|
||||
</td>
|
||||
<?php if ($is_admin): ?>
|
||||
<td class="text-end align-middle">
|
||||
<div class="dropdown">
|
||||
<a href="#" class="text-secondary" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="material-icons">more_vert</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="colors.php?action=edit&id=<?= htmlspecialchars($color['id']); ?>">
|
||||
<span class="material-icons me-2">mode_edit_outline</span> Bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center text-danger" href="colors.php?action=delete&id=<?= htmlspecialchars($color['id']); ?>" onclick="return confirm('Sind Sie sicher, dass Sie diese Farbe löschen möchten?');">
|
||||
<span class="material-icons me-2">delete_outline</span> Löschen
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"require": {
|
||||
"phpmailer/phpmailer": "^6.11"
|
||||
"phpmailer/phpmailer": "^6.11",
|
||||
"dompdf/dompdf": "^3.1"
|
||||
}
|
||||
}
|
||||
|
||||
292
composer.lock
generated
292
composer.lock
generated
@@ -4,8 +4,230 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "94c96dbad66f3b661f2a90841d0bc0ba",
|
||||
"content-hash": "90061d671d78e34e05b86356b90ec6c8",
|
||||
"packages": [
|
||||
{
|
||||
"name": "dompdf/dompdf",
|
||||
"version": "v3.1.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/dompdf.git",
|
||||
"reference": "db712c90c5b9868df3600e64e68da62e78a34623"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/db712c90c5b9868df3600e64e68da62e78a34623",
|
||||
"reference": "db712c90c5b9868df3600e64e68da62e78a34623",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"dompdf/php-font-lib": "^1.0.0",
|
||||
"dompdf/php-svg-lib": "^1.0.0",
|
||||
"ext-dom": "*",
|
||||
"ext-mbstring": "*",
|
||||
"masterminds/html5": "^2.0",
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
"ext-zip": "*",
|
||||
"mockery/mockery": "^1.3",
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"symfony/process": "^4.4 || ^5.4 || ^6.2 || ^7.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd": "Needed to process images",
|
||||
"ext-gmagick": "Improves image processing performance",
|
||||
"ext-imagick": "Improves image processing performance",
|
||||
"ext-zlib": "Needed for pdf stream compression"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Dompdf\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"lib/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The Dompdf Community",
|
||||
"homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter",
|
||||
"homepage": "https://github.com/dompdf/dompdf",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/dompdf/issues",
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v3.1.4"
|
||||
},
|
||||
"time": "2025-10-29T12:43:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-font-lib",
|
||||
"version": "1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-font-lib.git",
|
||||
"reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d",
|
||||
"reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "^3 || ^4 || ^5 || ^6"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"FontLib\\": "src/FontLib"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The FontLib Community",
|
||||
"homepage": "https://github.com/dompdf/php-font-lib/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "A library to read, parse, export and make subsets of different types of font files.",
|
||||
"homepage": "https://github.com/dompdf/php-font-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-font-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-font-lib/tree/1.0.1"
|
||||
},
|
||||
"time": "2024-12-02T14:37:59+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-svg-lib",
|
||||
"version": "1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-svg-lib.git",
|
||||
"reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/eb045e518185298eb6ff8d80d0d0c6b17aecd9af",
|
||||
"reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0",
|
||||
"sabberworm/php-css-parser": "^8.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Svg\\": "src/Svg"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-3.0-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The SvgLib Community",
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "A library to read, parse and export to PDF SVG files.",
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-svg-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-svg-lib/tree/1.0.0"
|
||||
},
|
||||
"time": "2024-04-29T13:26:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
"version": "2.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Masterminds/html5-php.git",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Masterminds\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matt Butcher",
|
||||
"email": "technosophos@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Matt Farina",
|
||||
"email": "matt@mattfarina.com"
|
||||
},
|
||||
{
|
||||
"name": "Asmir Mustafic",
|
||||
"email": "goetas@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "An HTML5 parser and serializer.",
|
||||
"homepage": "http://masterminds.github.io/html5-php",
|
||||
"keywords": [
|
||||
"HTML5",
|
||||
"dom",
|
||||
"html",
|
||||
"parser",
|
||||
"querypath",
|
||||
"serializer",
|
||||
"xml"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Masterminds/html5-php/issues",
|
||||
"source": "https://github.com/Masterminds/html5-php/tree/2.10.0"
|
||||
},
|
||||
"time": "2025-07-25T09:04:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpmailer/phpmailer",
|
||||
"version": "v6.11.1",
|
||||
@@ -87,6 +309,72 @@
|
||||
}
|
||||
],
|
||||
"time": "2025-09-30T11:54:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sabberworm/php-css-parser",
|
||||
"version": "v8.9.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/MyIntervals/PHP-CSS-Parser.git",
|
||||
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9",
|
||||
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-iconv": "*",
|
||||
"php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41",
|
||||
"rawr/cross-data-providers": "^2.0.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "for parsing UTF-8 CSS"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "9.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Sabberworm\\CSS\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Raphael Schweikert"
|
||||
},
|
||||
{
|
||||
"name": "Oliver Klee",
|
||||
"email": "github@oliverklee.de"
|
||||
},
|
||||
{
|
||||
"name": "Jake Hotson",
|
||||
"email": "jake.github@qzdesign.co.uk"
|
||||
}
|
||||
],
|
||||
"description": "Parser for CSS Files written in PHP",
|
||||
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
|
||||
"keywords": [
|
||||
"css",
|
||||
"parser",
|
||||
"stylesheet"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues",
|
||||
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0"
|
||||
},
|
||||
"time": "2025-07-11T13:20:48+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
@@ -97,5 +385,5 @@
|
||||
"prefer-lowest": false,
|
||||
"platform": {},
|
||||
"platform-dev": {},
|
||||
"plugin-api-version": "2.6.0"
|
||||
"plugin-api-version": "2.9.0"
|
||||
}
|
||||
|
||||
@@ -63,3 +63,7 @@ pre {
|
||||
.collapse:not(.show) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.badge-outline-normal {
|
||||
font-weight: normal !important;
|
||||
}
|
||||
296
export.php
Executable file
296
export.php
Executable file
@@ -0,0 +1,296 @@
|
||||
<?php
|
||||
//define('DOMILI_ALLOW_WEB', true); // Zum Testen im Browser einkommentieren
|
||||
|
||||
if (php_sapi_name() !== 'cli' && !defined('DOMILI_ALLOW_WEB')) {
|
||||
die('Zugriff verweigert.');
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once __DIR__ . '/inc/db.php';
|
||||
|
||||
use Dompdf\Dompdf;
|
||||
use Dompdf\Options;
|
||||
|
||||
date_default_timezone_set('Europe/Berlin');
|
||||
|
||||
// === 1. Berichtsmonat ===
|
||||
$berichtsMonatBeginn = new DateTime('first day of last month');
|
||||
$berichtsMonatEnde = new DateTime('last day of last month');
|
||||
$berichtsMonatEnde->setTime(23, 59, 59);
|
||||
|
||||
// Backup für manuelles erzeugen eines PDF in einem anderen Zeitabschnitt
|
||||
//$berichtsMonatBeginn = new DateTime('2025-09-01 00:00:00');
|
||||
//$berichtsMonatEnde = new DateTime('2025-09-30 23:59:59');
|
||||
|
||||
|
||||
// === 2. Letzter Jahresabschluss ===
|
||||
$last_closing = '2025-01-01';
|
||||
$res = mysqli_query($conn, "SELECT MAX(closing_date) AS last_date FROM penalty_closings");
|
||||
if ($res && ($row = mysqli_fetch_assoc($res)) && !is_null($row['last_date'])) {
|
||||
$last_closing = $row['last_date'];
|
||||
}
|
||||
|
||||
// === 3. Alle Benutzer ===
|
||||
$alleBenutzer = [];
|
||||
$resUsers = mysqli_query($conn, "SELECT id, username FROM users ORDER BY username");
|
||||
while ($row = mysqli_fetch_assoc($resUsers)) {
|
||||
$alleBenutzer[$row['id']] = $row['username'];
|
||||
}
|
||||
$userIds = array_keys($alleBenutzer);
|
||||
|
||||
// === 4. Alle relevanten Daten (nur completed + attended=1) ===
|
||||
$bisDatum = $berichtsMonatEnde->format('Y-m-d H:i:s');
|
||||
$stmt = mysqli_prepare($conn, "
|
||||
SELECT m.id AS meeting_id, m.meeting_date,
|
||||
mt.user_id, mt.wore_color, mt.paid, mt.birthday_pay
|
||||
FROM meetings m
|
||||
LEFT JOIN meeting_teilnehmer mt ON m.id = mt.meeting_id AND mt.attended = 1
|
||||
WHERE m.meeting_date <= ? AND m.is_completed = 1
|
||||
ORDER BY m.meeting_date
|
||||
");
|
||||
mysqli_stmt_bind_param($stmt, 's', $bisDatum);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
|
||||
$alleMeetingsMitTeilnehmern = [];
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$alleMeetingsMitTeilnehmern[] = $row;
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
// === 5. Meetings des Berichtsmonats mit Farben ===
|
||||
$stmtMeta = mysqli_prepare($conn, "
|
||||
SELECT id, meeting_date, reason, color_id
|
||||
FROM meetings
|
||||
WHERE meeting_date >= ? AND meeting_date <= ? AND is_completed = 1
|
||||
ORDER BY meeting_date
|
||||
");
|
||||
$startDate = $berichtsMonatBeginn->format('Y-m-d H:i:s');
|
||||
$endDate = $berichtsMonatEnde->format('Y-m-d H:i:s');
|
||||
mysqli_stmt_bind_param($stmtMeta, 'ss', $startDate, $endDate);
|
||||
mysqli_stmt_execute($stmtMeta);
|
||||
$resultMeta = mysqli_stmt_get_result($stmtMeta);
|
||||
|
||||
$berichtsMeetingsMeta = [];
|
||||
while ($row = mysqli_fetch_assoc($resultMeta)) {
|
||||
$color_id = (int)$row['color_id'];
|
||||
$colorStmt = mysqli_prepare($conn, "SELECT name FROM colors WHERE id = ?");
|
||||
mysqli_stmt_bind_param($colorStmt, 'i', $color_id);
|
||||
mysqli_stmt_execute($colorStmt);
|
||||
$colorRes = mysqli_stmt_get_result($colorStmt);
|
||||
$colorName = '–';
|
||||
if ($cRow = mysqli_fetch_assoc($colorRes)) {
|
||||
$colorName = $cRow['name'];
|
||||
}
|
||||
mysqli_stmt_close($colorStmt);
|
||||
|
||||
$berichtsMeetingsMeta[] = [
|
||||
'id' => $row['id'],
|
||||
'meeting_date' => $row['meeting_date'],
|
||||
'reason' => $row['reason'],
|
||||
'color_name' => $colorName
|
||||
];
|
||||
}
|
||||
mysqli_stmt_close($stmtMeta);
|
||||
|
||||
// === 6. Für jedes Meeting: alle Benutzer mit allen Werten ===
|
||||
$gruppiert = [];
|
||||
|
||||
foreach ($berichtsMeetingsMeta as $meta) {
|
||||
$mid = $meta['id'];
|
||||
$meetingDatum = new DateTime($meta['meeting_date']);
|
||||
|
||||
$gruppiert[$mid] = [
|
||||
'datum' => $meta['meeting_date'],
|
||||
'reason' => $meta['reason'],
|
||||
'color_name' => $meta['color_name'],
|
||||
'teilnehmer' => []
|
||||
];
|
||||
|
||||
foreach ($userIds as $uid) {
|
||||
$username = $alleBenutzer[$uid];
|
||||
|
||||
$teilgenommen = false;
|
||||
$wore_color = null;
|
||||
$paid_this = false;
|
||||
$paid_this_birthday = false; // NEU
|
||||
|
||||
// Finde Teilnahme-Daten für dieses Meeting
|
||||
foreach ($alleMeetingsMitTeilnehmern as $mt) {
|
||||
if ($mt['meeting_id'] == $mid && $mt['user_id'] == $uid) {
|
||||
$teilgenommen = true;
|
||||
$wore_color = !empty($mt['wore_color']);
|
||||
$paid_this = ($mt['paid'] == 1);
|
||||
$paid_this_birthday = ($mt['birthday_pay'] == 1); // Explizit prüfen
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Kumulierte Werte bis zu diesem Meeting
|
||||
$strafenGesamt = 0;
|
||||
$offeneStrafen = 0;
|
||||
$teilnahmenGesamt = 0;
|
||||
$rechnungenGesamt = 0;
|
||||
|
||||
foreach ($alleMeetingsMitTeilnehmern as $mt) {
|
||||
if ($mt['user_id'] != $uid || is_null($mt['user_id'])) continue;
|
||||
$mDatum = new DateTime($mt['meeting_date']);
|
||||
if ($mDatum > $meetingDatum) continue;
|
||||
|
||||
$teilnahmenGesamt++;
|
||||
if (!$mt['wore_color']) {
|
||||
$strafenGesamt++;
|
||||
if ($mt['meeting_date'] >= $last_closing) {
|
||||
$offeneStrafen++;
|
||||
}
|
||||
}
|
||||
|
||||
// 🔹 NUR normale Zahlungen zählen (birthday_pay = 0)
|
||||
$is_paid = ($mt['paid'] == 1);
|
||||
$is_birthday = ($mt['birthday_pay'] == 1);
|
||||
if ($is_paid && !$is_birthday) {
|
||||
$rechnungenGesamt++;
|
||||
}
|
||||
}
|
||||
|
||||
// Name mit Symbolen
|
||||
$userNameAnzeige = htmlspecialchars($username);
|
||||
if ($paid_this) {
|
||||
$userNameAnzeige .= ' <span class="paid-symbol">€</span>';
|
||||
if ($paid_this_birthday) {
|
||||
$userNameAnzeige .= ' <span class="birthday-symbol">(G)</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!$teilgenommen) {
|
||||
$farbeSymbol = '–';
|
||||
} else {
|
||||
$farbeSymbol = $wore_color ? '✓' : '✗';
|
||||
}
|
||||
|
||||
$gruppiert[$mid]['teilnehmer'][] = [
|
||||
'username' => $userNameAnzeige,
|
||||
'farbe_symbol' => $farbeSymbol,
|
||||
'teilgenommen' => $teilgenommen,
|
||||
'offene_strafen' => $offeneStrafen,
|
||||
'strafen_gesamt' => $strafenGesamt,
|
||||
'teilnahmen_gesamt' => $teilnahmenGesamt,
|
||||
'rechnungen_gesamt' => $rechnungenGesamt
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
// === 7. Gesamt offene Strafen ===
|
||||
$gesamtOffen = 0;
|
||||
foreach ($alleMeetingsMitTeilnehmern as $mt) {
|
||||
if (!is_null($mt['user_id']) && !$mt['wore_color'] && $mt['meeting_date'] >= $last_closing) {
|
||||
$gesamtOffen++;
|
||||
}
|
||||
}
|
||||
|
||||
// === 8. PDF-Pfad ===
|
||||
@mkdir(__DIR__ . '/backups', 0755, true);
|
||||
$baseName = 'DoMiLi_Backup_' . $berichtsMonatBeginn->format('Y-m');
|
||||
$counter = 0;
|
||||
$outputPath = __DIR__ . '/backups/' . $baseName . '.pdf';
|
||||
while (file_exists($outputPath)) {
|
||||
$counter++;
|
||||
$outputPath = __DIR__ . '/backups/' . $baseName . '_' . $counter . '.pdf';
|
||||
}
|
||||
|
||||
// === 9. HTML mit allen Anforderungen ===
|
||||
$html = '
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body { font-family: DejaVu Sans, Arial, sans-serif; font-size: 9pt; }
|
||||
h1 { font-size: 14pt; margin-bottom: 14pt; }
|
||||
h2 { font-size: 11pt; margin: 12pt 0 8pt 0; }
|
||||
.strafkasse { font-weight: bold; margin: 0 0 14pt 0; padding: 6pt; background-color: #f9f9f9; border: 1px solid #ccc; }
|
||||
table { width: 100%; border-collapse: collapse; margin-bottom: 12pt; }
|
||||
th, td { border: 1px solid #333; padding: 4pt 6pt; text-align: left; }
|
||||
th { background-color: #f0f0f0; font-weight: bold; }
|
||||
.paid-symbol { color: red; font-weight: bold; }
|
||||
.birthday-symbol { color: #d63384; font-size: 0.85em; }
|
||||
.color-ok { color: green; }
|
||||
.color-fail { color: red; }
|
||||
.page-break { page-break-after: always; }
|
||||
.meta { margin-top: 20pt; font-size: 8pt; color: #555; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>DoMiLi – Monatliches Backup</h1>
|
||||
<h2>Zeitraum: ' . $berichtsMonatBeginn->format('F Y') . '</h2>
|
||||
<div class="strafkasse">Strafkasse: ' . $gesamtOffen . ' €</div>';
|
||||
|
||||
if (empty($berichtsMeetingsMeta)) {
|
||||
$html .= '<p>Keine abgeschlossenen Meetings im Berichtsmonat.</p>';
|
||||
} else {
|
||||
$meetingCount = 0;
|
||||
foreach ($gruppiert as $meeting) {
|
||||
if ($meetingCount > 0 && $meetingCount % 3 === 0) {
|
||||
$html .= '<div class="page-break"></div>';
|
||||
}
|
||||
$meetingCount++;
|
||||
|
||||
$meetingDatum = new DateTime($meeting['datum']);
|
||||
$html .= '<h3>' . $meetingDatum->format('d.m.Y') . ' – ' . htmlspecialchars($meeting['reason']) . ' (' . htmlspecialchars($meeting['color_name']) . ')</h3>';
|
||||
$html .= '<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Benutzer*</th>
|
||||
<th>Farbe getragen</th>
|
||||
<th>offene Strafen (in €)</th>
|
||||
<th>Strafen gesamt</th>
|
||||
<th>Teilnahmen gesamt</th>
|
||||
<th>Rechnung gesamt</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>';
|
||||
|
||||
foreach ($meeting['teilnehmer'] as $t) {
|
||||
if ($t['farbe_symbol'] === '✓') {
|
||||
$farbeHtml = '<span class="color-ok">✓</span>';
|
||||
} elseif ($t['farbe_symbol'] === '✗') {
|
||||
$farbeHtml = '<span class="color-fail">✗</span>';
|
||||
} else {
|
||||
$farbeHtml = $t['farbe_symbol'];
|
||||
}
|
||||
|
||||
$html .= '<tr>
|
||||
<td>' . $t['username'] . '</td>
|
||||
<td>' . $farbeHtml . '</td>
|
||||
<td>' . $t['offene_strafen'] . '</td>
|
||||
<td>' . $t['strafen_gesamt'] . '</td>
|
||||
<td>' . $t['teilnahmen_gesamt'] . '</td>
|
||||
<td>' . $t['rechnungen_gesamt'] . '</td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
$html .= '</tbody></table>';
|
||||
}
|
||||
}
|
||||
|
||||
$html .= '
|
||||
<div class="meta">
|
||||
<p>Erstellt am: ' . date('d.m.Y') . '</p>
|
||||
<p><em>* = "€" hat Restaurant-Rechnung bezahlt</em></p>
|
||||
<p><em>(G) = Geburtstagszahlung (zählt nicht zur Rechnungsanzahl)</em></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>';
|
||||
|
||||
// === 10. PDF erzeugen ===
|
||||
$options = new Options();
|
||||
$options->set('defaultFont', 'DejaVu Sans');
|
||||
$dompdf = new Dompdf($options);
|
||||
$dompdf->loadHtml($html);
|
||||
$dompdf->setPaper('A4', 'portrait');
|
||||
$dompdf->render();
|
||||
|
||||
file_put_contents($outputPath, $dompdf->output());
|
||||
echo "✅ PDF erfolgreich gespeichert: " . $outputPath . "\n";
|
||||
123
forgot_password.php
Executable file
123
forgot_password.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
session_start();
|
||||
include('inc/db.php');
|
||||
|
||||
// SMTP-Konfiguration wird über die DB-Einbindung bereits bereitgestellt
|
||||
// (SMTP_HOST, SMTP_USERNAME, etc. müssen in inc/db.php oder einer config.php definiert sein)
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$identifier = trim($_POST['identifier']);
|
||||
|
||||
// Benutzer per Username ODER E-Mail finden
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, username, email FROM users WHERE username = ? OR email = ?");
|
||||
mysqli_stmt_bind_param($stmt, "ss", $identifier, $identifier);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$user = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
if ($user && !empty($user['email'])) {
|
||||
// Sicherer Token (64 Zeichen hex)
|
||||
$token = bin2hex(random_bytes(32));
|
||||
$expires_at = date('Y-m-d H:i:s', strtotime('+12 hours'));
|
||||
|
||||
// Token in DB speichern
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO password_reset_tokens (user_id, token, expires_at) VALUES (?, ?, ?)");
|
||||
mysqli_stmt_bind_param($stmt, "iss", $user['id'], $token, $expires_at);
|
||||
mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
// 🔸 PHPMailer – wie in deinem Beispiel
|
||||
try {
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
$mail = new \PHPMailer\PHPMailer\PHPMailer(true);
|
||||
$mail->CharSet = 'UTF-8';
|
||||
$mail->isSMTP();
|
||||
$mail->Host = SMTP_HOST;
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = SMTP_USERNAME;
|
||||
$mail->Password = SMTP_PASSWORD;
|
||||
$mail->SMTPSecure = SMTP_ENCRYPTION;
|
||||
$mail->Port = SMTP_PORT;
|
||||
$mail->setFrom(MAIL_FROM_ADDRESS, MAIL_FROM_NAME);
|
||||
|
||||
$reset_link = "https://domili.borgal.de/reset_password.php?token=" . urlencode($token);
|
||||
|
||||
// Text-Version (für E-Mail-Clients ohne HTML)
|
||||
$text_body = "Hallo {$user['username']},\n\n";
|
||||
$text_body .= "du hast eine Zurücksetzung deines Passworts angefordert.\n";
|
||||
$text_body .= "Klicke auf den folgenden Link (gültig 12 Stunden):\n";
|
||||
$text_body .= "$reset_link\n\n";
|
||||
$text_body .= "Falls du dies nicht angefordert hast, ignoriere diese E-Mail.\n\n";
|
||||
$text_body .= "—\nDein DoMiLi-Admin";
|
||||
|
||||
// HTML-Version (mit lesbarer Formatierung)
|
||||
$html_body = "
|
||||
<p>Hallo <strong>{$user['username']}</strong>,</p>
|
||||
<p>du hast eine Zurücksetzung deines Passworts angefordert.</p>
|
||||
<p>Bitte klicke auf den folgenden Link, um ein neues Passwort festzulegen (gültig für 12 Stunden):</p>
|
||||
<p>
|
||||
<a href=\"$reset_link\" style=\"color: #0d6efd; text-decoration: underline;\">Passwort zurücksetzen</a>
|
||||
</p>
|
||||
<p style=\"margin-top: 16px; color: #555; font-size: 0.95em; line-height: 1.5;\">
|
||||
Falls du diese Anfrage nicht gestellt hast, kannst du diese E-Mail ignorieren.
|
||||
</p>
|
||||
<p style=\"margin-top: 20px; font-size: 0.9em; color: #777;\">
|
||||
—<br>
|
||||
Dein DoMiLi-Admin
|
||||
</p>
|
||||
";
|
||||
|
||||
$mail->isHTML(true);
|
||||
$mail->Subject = "DoMiLi: Passwort zurücksetzen";
|
||||
$mail->Body = $html_body;
|
||||
$mail->AltBody = $text_body;
|
||||
$mail->addAddress($user['email'], $user['username']);
|
||||
$mail->send();
|
||||
|
||||
$message = "Ein Link zum Zurücksetzen wurde an deine E-Mail gesendet.";
|
||||
$message_type = "success";
|
||||
} catch (Exception $e) {
|
||||
error_log("PHPMailer Fehler bei Passwort-Zurücksetzung für {$user['email']}: " . $mail->ErrorInfo);
|
||||
$message = "Fehler beim Senden der E-Mail. Bitte versuche es später erneut.";
|
||||
$message_type = "danger";
|
||||
}
|
||||
} else {
|
||||
// Vage Antwort – Schutz vor Benutzer-Enumeration
|
||||
$message = "Falls ein Konto mit dieser Angabe existiert, wurde eine E-Mail gesendet.";
|
||||
$message_type = "info";
|
||||
}
|
||||
}
|
||||
|
||||
// HTML-Ausgabe
|
||||
require_once 'inc/public_header.php';
|
||||
?>
|
||||
|
||||
<div class="container d-flex justify-content-center align-items-start py-4 pt-5">
|
||||
<div class="card bg-light shadow w-100" style="max-width: 400px;">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title text-center mb-4 fs-3">Passwort vergessen</h4>
|
||||
<?php if ($message): ?>
|
||||
<div class="alert alert-<?= htmlspecialchars($message_type) ?>"><?= htmlspecialchars($message) ?></div>
|
||||
<?php endif; ?>
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label for="identifier" class="form-label">Benutzername oder E-Mail</label>
|
||||
<input type="text" class="form-control form-control-lg" id="identifier" name="identifier" required autofocus>
|
||||
</div>
|
||||
<div class="d-grid">
|
||||
<button type="submit" class="btn btn-primary btn-lg">Link senden</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="text-center mt-3">
|
||||
<a href="login.php" class="text-decoration-none">Zurück zum Login</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
68
history.php
68
history.php
@@ -57,7 +57,8 @@ function get_all_meeting_details($conn)
|
||||
u.username,
|
||||
mt.attended,
|
||||
mt.wore_color,
|
||||
mt.paid
|
||||
mt.paid,
|
||||
mt.birthday_pay
|
||||
FROM meetings m
|
||||
JOIN colors c ON m.color_id = c.id
|
||||
LEFT JOIN meeting_teilnehmer mt ON m.id = mt.meeting_id
|
||||
@@ -91,7 +92,8 @@ function get_all_meeting_details($conn)
|
||||
'username' => $row['username'],
|
||||
'attended' => $row['attended'],
|
||||
'wore_color' => $row['wore_color'],
|
||||
'paid' => $row['paid']
|
||||
'paid' => $row['paid'],
|
||||
'birthday_pay' => $row['birthday_pay']
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -151,28 +153,54 @@ include('inc/header.php');
|
||||
<?php else: ?>
|
||||
<?php foreach ($all_meetings as $meeting_id => $meeting): ?>
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header d-flex justify-content-between bg-secondary bg-opacity-25 text-dark align-items-center">
|
||||
<?php
|
||||
// Wochentag abkürzen (Mo., Di., Mi., ...)
|
||||
$weekday_short = date('D', strtotime($meeting['date']));
|
||||
$german_weekdays = [
|
||||
'Mon' => 'Mo.',
|
||||
'Tue' => 'Di.',
|
||||
'Wed' => 'Mi.',
|
||||
'Thu' => 'Do.',
|
||||
'Fri' => 'Fr.',
|
||||
'Sat' => 'Sa.',
|
||||
'Sun' => 'So.'
|
||||
];
|
||||
$weekday = $german_weekdays[$weekday_short] ?? '';
|
||||
$formatted_date = date('d.m.y', strtotime($meeting['date']));
|
||||
$formatted_time = date('H:i', strtotime($meeting['date']));
|
||||
?>
|
||||
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<div class="mb-0 fs-6 fs-md-5 fw-bold">
|
||||
<span class="fw-normal me-2">am</span><?= date('d.m.y', strtotime($meeting['date'])) ?>
|
||||
Treffen am <?= $weekday ?> <?= $formatted_date ?> um <?= $formatted_time ?> Uhr
|
||||
</div>
|
||||
<?php
|
||||
if ($_SESSION['role'] == 'admin') {
|
||||
?>
|
||||
<div>
|
||||
<a href="admin/participant.php?id=<?= $meeting_id ?>&source=history" style="text-decoration: none; border: none; outline: none;">
|
||||
<span class="material-symbols-outlined text-dark">edit_calendar</span>
|
||||
<?php if ($_SESSION['role'] === 'admin'): ?>
|
||||
<div class="dropdown">
|
||||
<a href="#" class="text-secondary" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="material-icons">more_vert</span>
|
||||
</a>
|
||||
<a href="history.php?action=delete&id=<?= $meeting_id ?>" class="ms-1" style="text-decoration: none; border: none; outline: none;" onclick="return confirm('Möchtest du diesen Termin wirklich löschen?');">
|
||||
<span class="material-symbols-outlined text-danger">delete_outline</span>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="participant.php?id=<?= $meeting_id ?>&source=history">
|
||||
<span class="material-icons me-2">edit_calendar</span> Bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center text-danger" href="history.php?action=delete&id=<?= $meeting_id ?>" onclick="return confirm('Möchtest du diesen Termin wirklich löschen?');">
|
||||
<span class="material-icons me-2">delete_outline</span> Löschen
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="d-flex flex-column text-muted fst-italic mb-2">
|
||||
<span>Farbe: <span class="fw-bold"><?= htmlspecialchars($meeting['color_name']) ?></span></span>
|
||||
<div class="d-flex align-items-center mb-1">
|
||||
<span>Farbe:</span>
|
||||
<div class="ms-2" style="background-color: <?= htmlspecialchars($meeting['hex_code']); ?>; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 2px;"></div>
|
||||
<span class="fw-bold ms-2"><?= htmlspecialchars($meeting['color_name']) ?></span>
|
||||
</div>
|
||||
<span>Grund: <?= htmlspecialchars($meeting['reason']) ?></span>
|
||||
</div>
|
||||
<h6 class="mb-2">Teilnehmer:</h6>
|
||||
@@ -189,7 +217,13 @@ include('inc/header.php');
|
||||
$status_icon = $participant['wore_color'] ? '✅' : '🔴';
|
||||
$status_text = $participant['wore_color'] ? 'Farbe getragen' : 'Falsche Farbe';
|
||||
}
|
||||
$paid_icon = $participant['paid'] ? '💰' : '';
|
||||
$paid_icon = '';
|
||||
if ($participant['paid']) {
|
||||
$paid_icon = '💰';
|
||||
if ($participant['birthday_pay']) {
|
||||
$paid_icon .= ' 🎂';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?= $status_icon ?>
|
||||
<span class="fw-bold"><?= htmlspecialchars($participant['username']) ?></span>
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles -->
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
|
||||
<!-- PWA Manifest -->
|
||||
<link rel="manifest" href="./manifest.json">
|
||||
<link rel="manifest" href="./manifest.json?v=1">
|
||||
<link rel="apple-touch-icon" href="../img/icon-192.png">
|
||||
</head>
|
||||
|
||||
|
||||
115
inc/menu.php
115
inc/menu.php
@@ -1,62 +1,95 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
|
||||
<a class="navbar-brand d-flex align-items-center" href="../index.php">
|
||||
<img src="../img/icon-192.png" alt="Logo" width="32" height="32" class="me-2">
|
||||
<a class="navbar-brand d-flex align-items-center" href="index.php">
|
||||
<img src="img/icon-192.png" alt="Logo" width="32" height="32" class="me-2">
|
||||
DoMiLi
|
||||
</a>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex" href="../history.php"><span class="material-icons md-18 me-1">calendar_month</span>History</a>
|
||||
<a class="nav-link d-flex align-items-center" href="planning.php">
|
||||
<span class="material-icons md-18 me-2" style="width: 24px;">event</span> Terminplanung
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex" href="../kasse.php"><span class="material-icons md-18 me-1">euro</span>Kasse</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex" href="../stats.php"><span class="material-icons md-18 me-1">bar_chart</span>Auswertung</a>
|
||||
</li>
|
||||
<!-- <li class="nav-item">
|
||||
<a class="nav-link d-flex" href="#"><span class="material-icons md-18 me-1">menu_book</span>Anleitung</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex" href="#"><span class="material-icons md-18 me-1">message</span>Kontakt</a>
|
||||
</li> -->
|
||||
|
||||
<?php
|
||||
if (isset($_SESSION['role']) && $_SESSION['role'] == 'admin') {
|
||||
?>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link d-flex align-items-center dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"><span class="material-icons md-18 me-1">admin_panel_settings</span>Admin</a>
|
||||
<a class="nav-link d-flex align-items-center dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
|
||||
<span class="material-icons md-18 me-2">bar_chart</span> Auswertung
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="../admin/colors.php">Farben</a></li>
|
||||
<li><a class="dropdown-item" href="../admin/planning.php">Terminplanung</a></li>
|
||||
<li><a class="dropdown-item" href="../admin/users.php">Benutzer</a></li>
|
||||
<li><a class="dropdown-item" href="../admin/check_session.php">Session prüfen</a></li>
|
||||
<li><a class="dropdown-item d-flex align-items-center" href="history.php"><span class="material-icons text-secondary me-2">calendar_month</span>History</a></li>
|
||||
<li><a class="dropdown-item d-flex align-items-center" href="kasse.php"><span class="material-icons text-secondary me-2">euro</span>Kasse</a></li>
|
||||
<li><a class="dropdown-item d-flex align-items-center" href="stats.php"><span class="material-icons text-secondary me-2">bar_chart</span>Statistik</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<ul class="navbar-nav ms-auto">
|
||||
<li><a class="dropdown-item" href="#"><span class="material-icons align-baseline md-18 me-1">help</span></a></li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex align-items-center" href="vacation.php">
|
||||
<span class="material-icons md-18 me-2" style="width: 24px;">beach_access</span> Abwesenheiten
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex align-items-center" href="info.php">
|
||||
<span class="material-icons md-18 me-2" style="width: 24px;">rule</span> Info
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex align-items-center" href="version.php">
|
||||
<span class="material-icons md-18 me-2" style="width: 24px;">info</span> Release Notes
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"><span class="material-symbols-outlined align-text-bottom md-18 me-1">person</span><?php echo $_SESSION['username']; ?></a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><a class="dropdown-item" href="../profil.php"><span class="material-icons text-secondary align-middle md-18 me-1">person</span>Profil</a></li>
|
||||
<li><a class="dropdown-item" href="../change_password.php"><span class="material-icons text-secondary align-middle md-18 me-1">lock</span>Passwort ändern</a></li>
|
||||
<li><a class="dropdown-item" href="../vacation.php"><span class="material-icons text-secondary align-middle md-18 me-1">beach_access</span>Abwesenheiten</a></li>
|
||||
<li>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="nav-link d-flex align-items-center dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
|
||||
<span class="material-icons md-18 me-2">settings</span> Settings
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item d-flex align-items-center" href="colors.php"><span class="material-icons text-secondary me-2">palette</span>Farben</a></li>
|
||||
<li><a class="dropdown-item d-flex align-items-center" href="users.php"><span class="material-icons text-secondary me-2">group</span>Benutzer</a></li>
|
||||
<li><a class="dropdown-item d-flex align-items-center" href="backup.php"><span class="material-icons text-secondary me-2">archive</span>PDF-Backup</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav ms-auto">
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" role="button" data-bs-toggle="dropdown">
|
||||
<span class="material-symbols-outlined align-middle md-18 me-2">person</span>
|
||||
<?= htmlspecialchars($_SESSION['username'] ?? 'Benutzer'); ?>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="profil.php">
|
||||
<span class="material-icons text-secondary" style="width: 24px;">person</span>
|
||||
Profil
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="change_password.php">
|
||||
<span class="material-icons text-secondary" style="width: 24px;">lock</span>
|
||||
Passwort ändern
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin'): ?>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="check_session.php">
|
||||
<span class="material-icons text-secondary" style="width: 24px;">check_small</span>
|
||||
Session prüfen
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="logout.php">
|
||||
<span class="material-icons text-secondary" style="width: 24px;">logout</span>
|
||||
Log Out
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="dropdown-item" href="../logout.php"><span class="material-icons align-middle md-18 me-1">logout</span>Log Out</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
30
inc/public_header.php
Executable file
30
inc/public_header.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo htmlspecialchars('DoMiLi – Farbe der Woche'); ?></title>
|
||||
|
||||
<!-- PWA Meta Tags -->
|
||||
<meta name="theme-color" content="#212529">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="<?php echo htmlspecialchars('DoMiLi'); ?>">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Material Icons -->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles -->
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
|
||||
<!-- PWA Manifest -->
|
||||
<link rel="manifest" href="./manifest.json?v=1">
|
||||
<link rel="apple-touch-icon" href="../img/icon-192.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
329
index.php
329
index.php
@@ -23,7 +23,7 @@ function is_user_on_vacation($conn, $user_id, $meeting_date)
|
||||
return $found !== null;
|
||||
}
|
||||
|
||||
// 🔹 Funktion: Automatisch ablehnen, wenn im Urlaub (außer bei expliziter Zusage)
|
||||
// 🔹 Funktion: Automatisch ablehnen, wenn im Urlaub
|
||||
function auto_decline_if_on_vacation($conn, $meeting_id, $user_id, $meeting_date)
|
||||
{
|
||||
if (!is_user_on_vacation($conn, $user_id, $meeting_date)) {
|
||||
@@ -37,12 +37,12 @@ function auto_decline_if_on_vacation($conn, $meeting_id, $user_id, $meeting_date
|
||||
$existing = mysqli_fetch_assoc(mysqli_stmt_get_result($check_stmt));
|
||||
mysqli_stmt_close($check_stmt);
|
||||
|
||||
// Wenn bereits "accepted", nichts tun
|
||||
if ($existing && $existing['rsvp_status'] === 'accepted') {
|
||||
return 'accepted';
|
||||
$current_status = $existing ? $existing['rsvp_status'] : null;
|
||||
|
||||
if ($current_status === 'accepted' || $current_status === 'maybe') {
|
||||
return $current_status;
|
||||
}
|
||||
|
||||
// Sonst: ablehnen
|
||||
if ($existing) {
|
||||
$upd = mysqli_prepare($conn, "UPDATE meeting_teilnehmer SET rsvp_status = 'declined', attended = 0 WHERE meeting_id = ? AND user_id = ?");
|
||||
mysqli_stmt_bind_param($upd, "ii", $meeting_id, $user_id);
|
||||
@@ -72,10 +72,7 @@ function get_current_meeting($conn)
|
||||
|
||||
$row = get_current_meeting($conn);
|
||||
|
||||
// 🔴 Automatisches Abschließen bei vergangenem Termin wurde ENTFERNT
|
||||
// → Termin bleibt sichtbar, bis Admin in participant.php abschließt
|
||||
|
||||
// --- TEILNAHME-LOGIK ---
|
||||
// --- TEILNAHME-LOGIK & TERMINVERSCHIEBUNG ---
|
||||
if ($row) {
|
||||
$meeting_id = $row['id'];
|
||||
|
||||
@@ -132,7 +129,7 @@ if ($row) {
|
||||
// 🔥 Automatisch ablehnen, wenn im Abwesenheitsmodus
|
||||
$auto_declined = auto_decline_if_on_vacation($conn, $meeting_id, $logged_in_user_id, $row['meeting_date']);
|
||||
|
||||
// Status abrufen (kann jetzt "declined" sein)
|
||||
// Status abrufen
|
||||
$user_attendance_status = null;
|
||||
$user_status_sql = "SELECT rsvp_status FROM meeting_teilnehmer WHERE meeting_id = ? AND user_id = ?";
|
||||
$user_status_stmt = mysqli_prepare($conn, $user_status_sql);
|
||||
@@ -183,43 +180,21 @@ if ($row) {
|
||||
}
|
||||
|
||||
// --- ZAHLENDE PERSON BESTIMMEN ---
|
||||
$next_payer_username = null;
|
||||
$next_payer_info = null;
|
||||
if ($total_accepted > 0) {
|
||||
$sql_next_payer = "
|
||||
SELECT
|
||||
u.username,
|
||||
(SELECT COUNT(*) FROM meeting_teilnehmer WHERE user_id = u.id AND paid = 1) AS paid_count
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
WHERE mt.meeting_id = ? AND mt.rsvp_status = 'accepted'
|
||||
ORDER BY paid_count ASC
|
||||
";
|
||||
$stmt_next_payer = mysqli_prepare($conn, $sql_next_payer);
|
||||
mysqli_stmt_bind_param($stmt_next_payer, "i", $meeting_id);
|
||||
mysqli_stmt_execute($stmt_next_payer);
|
||||
$result_next_payer = mysqli_stmt_get_result($stmt_next_payer);
|
||||
$payer_candidates = [];
|
||||
$min_paid_count = -1;
|
||||
while ($row_payer = mysqli_fetch_assoc($result_next_payer)) {
|
||||
if ($min_paid_count == -1 || $row_payer['paid_count'] < $min_paid_count) {
|
||||
$min_paid_count = $row_payer['paid_count'];
|
||||
$payer_candidates = [$row_payer['username']];
|
||||
} elseif ($row_payer['paid_count'] == $min_paid_count) {
|
||||
$payer_candidates[] = $row_payer['username'];
|
||||
}
|
||||
}
|
||||
mysqli_stmt_close($stmt_next_payer);
|
||||
if (!empty($payer_candidates)) {
|
||||
sort($payer_candidates);
|
||||
$next_payer_username = $payer_candidates[0];
|
||||
}
|
||||
include_once('zahler.php');
|
||||
$next_payer_info = get_next_payer_info($conn, $meeting_id);
|
||||
}
|
||||
|
||||
// --- TERMINVERSCHIEBUNG (ohne Änderung) ---
|
||||
include('verschiebung.php'); // oder den gesamten Block hier lassen – optional
|
||||
// ... (hier kommt dein bestehender Verschiebungscode – unverändert)
|
||||
// Da du ihn bereits modularisiert hast, kannst du auch `include('verschiebung.php');` nutzen
|
||||
// Für diese Version lasse ich ihn aus Platzgründen weg – du kannst ihn wie gewohnt einfügen.
|
||||
|
||||
// --- TERMINVERSCHIEBUNG: Logik einbinden UND ausführen ---
|
||||
include('verschiebung.php');
|
||||
handle_reschedule_actions($conn, $meeting_id, $logged_in_user_id);
|
||||
$reschedule_data = load_reschedule_data($conn, $meeting_id, $logged_in_user_id);
|
||||
$active_proposals = $reschedule_data['active_proposals'];
|
||||
$user_votes = $reschedule_data['user_votes'];
|
||||
$yes_voters = $reschedule_data['yes_voters'];
|
||||
$no_voters = $reschedule_data['no_voters'];
|
||||
}
|
||||
|
||||
include('inc/header.php');
|
||||
@@ -235,11 +210,38 @@ $german_weekdays = [
|
||||
];
|
||||
?>
|
||||
|
||||
<div class="container py-0">
|
||||
<!-- Optional: Hinweis bei automatischer Ablehnung -->
|
||||
<div class="container pt-0">
|
||||
<?php
|
||||
// 🔹 Hinweis für fehlende Profildaten (E-Mail oder Geburtstag)
|
||||
if (isset($_SESSION['user_id'])) {
|
||||
$user_profile_check = mysqli_prepare($conn, "SELECT email, birthday FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($user_profile_check, "i", $_SESSION['user_id']);
|
||||
mysqli_stmt_execute($user_profile_check);
|
||||
$profile_data = mysqli_fetch_assoc(mysqli_stmt_get_result($user_profile_check));
|
||||
mysqli_stmt_close($user_profile_check);
|
||||
|
||||
$email_missing = empty($profile_data['email']);
|
||||
$birthday_missing = empty($profile_data['birthday']) || $profile_data['birthday'] === '0000-00-00';
|
||||
|
||||
if ($email_missing || $birthday_missing) {
|
||||
echo '<div class="alert alert-info alert-dismissible fade show" role="alert">';
|
||||
echo '<strong>Fast fertig!</strong> ';
|
||||
if ($email_missing && $birthday_missing) {
|
||||
echo 'Bitte trage deine E-Mail-Adresse und deinen Geburtstag in deinem Profil ein, um alle Funktionen nutzen zu können.';
|
||||
} elseif ($email_missing) {
|
||||
echo 'Bitte trage deine E-Mail-Adresse in deinem Profil ein.';
|
||||
} else {
|
||||
echo 'Bitte trage deinen Geburtstag in deinem Profil ein, um bei Geburtstagen berücksichtigt zu werden.';
|
||||
}
|
||||
echo ' <a href="profil.php" class="alert-link">Zum Profil</a>';
|
||||
echo '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if (isset($auto_declined) && $auto_declined === 'declined'): ?>
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Du befindest dich im Abwesenheitsmodus → Teilnahme wurde automatisch abgelehnt.
|
||||
Abwesenheitsmodus aktiv.
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -260,10 +262,6 @@ $german_weekdays = [
|
||||
<?php unset($_SESSION['error_message']); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="text-center mb-4">
|
||||
<h2 class="fw-bold">Farbe des nächsten Treffens</h2>
|
||||
</div>
|
||||
|
||||
<?php if ($row): ?>
|
||||
<?php
|
||||
$english_weekday = date('D', strtotime($row['meeting_date']));
|
||||
@@ -273,42 +271,93 @@ $german_weekdays = [
|
||||
mysqli_stmt_execute($color_stmt);
|
||||
$color_row = mysqli_fetch_assoc(mysqli_stmt_get_result($color_stmt));
|
||||
?>
|
||||
<div class="card mx-auto bg-light shadow" style="max-width: 500px;">
|
||||
<div class="card-body text-center">
|
||||
<div class="rounded-4 mb-3 mx-auto d-flex flex-column justify-content-center align-items-center color-box" style="background-image: linear-gradient(135deg, <?= htmlspecialchars($color_row['hex_code']) ?>, <?= darken_color($color_row['hex_code']) ?>);">
|
||||
<p class="fs-5 fw-semibold m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($color_row['name']) ?></p>
|
||||
<p class="fs-6 fw-normal m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($row['reason']) ?></p>
|
||||
<div class="card mx-auto bg-light shadow mb-4" style="max-width: 500px;">
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0">nächstes Treffens</h4>
|
||||
</div>
|
||||
<p class="text-muted">nächster Termin:</p>
|
||||
<p class="text-muted h3 fw-bold mb-2"><?= $german_weekday . ' ' . date('d.m.Y H:i', strtotime($row['meeting_date'])) ?></p>
|
||||
<div class="mt-3 mb-2">
|
||||
<button class="btn btn-sm btn-outline-primary" type="button" data-bs-toggle="collapse" data-bs-target="#rescheduleForm" aria-expanded="false" aria-controls="rescheduleForm">
|
||||
<div class="card-body text-center">
|
||||
<p class="text-muted h3 fw-bold mb-2"><?= $german_weekday . ' ' . date('d.m.Y H:i', strtotime($row['meeting_date'])) . " Uhr" ?></p>
|
||||
<?php
|
||||
$has_active_proposal = false;
|
||||
if ($row) {
|
||||
$check_proposal = mysqli_prepare($conn, "
|
||||
SELECT 1 FROM meeting_reschedule_proposals
|
||||
WHERE meeting_id = ? AND proposed_by_user_id = ? AND status = 'pending'
|
||||
");
|
||||
mysqli_stmt_bind_param($check_proposal, "ii", $meeting_id, $logged_in_user_id);
|
||||
mysqli_stmt_execute($check_proposal);
|
||||
$result_proposal = mysqli_stmt_get_result($check_proposal);
|
||||
$has_active_proposal = (mysqli_fetch_assoc($result_proposal) !== null);
|
||||
mysqli_stmt_close($check_proposal);
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="mt-3 mb-2 text-center">
|
||||
<?php if ($has_active_proposal): ?>
|
||||
<div class="alert alert-info alert-sm mb-0" role="alert">
|
||||
Dein Terminverschiebungsvorschlag befindet sich noch in der Abstimmung.
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<button class="btn btn-sm btn-outline-secondary mb-2" type="button" data-bs-toggle="collapse" data-bs-target="#rescheduleForm" aria-expanded="false" aria-controls="rescheduleForm">
|
||||
Terminverschiebung vorschlagen
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- Verschiebungsformular -->
|
||||
<div class="collapse" id="rescheduleForm">
|
||||
<div class="card card-body bg-light mt-3 mx-auto" style="max-width: 90%;">
|
||||
<h5>Anderen Termin vorschlagen</h5>
|
||||
<form method="POST">
|
||||
<div class="mb-3">
|
||||
<label for="new_date" class="form-label">Neuer Termin:</label>
|
||||
<input type="datetime-local" class="form-control" id="new_date" name="new_date" value="<?= date('Y-m-d\TH:i', strtotime($row['meeting_date'])) ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="reason" class="form-label">Grund/Bemerkung:</label>
|
||||
<textarea class="form-control" id="reason" name="reason" rows="2" placeholder="Warum soll der Termin verschoben werden?"></textarea>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<button type="submit" name="propose_reschedule" class="btn btn-sm btn-outline-primary">Vorschlag einreichen</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-toggle="collapse" data-bs-target="#rescheduleForm">Abbrechen</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-center pt-2 pb-3" style="max-width: 500px; margin-left: auto; margin-right: auto; flex-direction: column; align-items: center;">
|
||||
<!-- Horizontale Linie hier einfügen -->
|
||||
<hr class="my-2">
|
||||
|
||||
<p class="text-muted">Farbe des Treffens:</p>
|
||||
<div class="rounded-4 my-1 mx-auto d-flex flex-column justify-content-center align-items-center color-box" style="background-image: linear-gradient(135deg, <?= htmlspecialchars($color_row['hex_code']) ?>, <?= darken_color($color_row['hex_code']) ?>);">
|
||||
<p class="fs-5 fw-semibold m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($color_row['name']) ?></p>
|
||||
<p class="fs-6 fw-normal m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($row['reason']) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Horizontale Linie hier einfügen -->
|
||||
<hr class="my-1">
|
||||
|
||||
<div class="d-flex justify-content-center py-2" style="max-width: 500px; margin-left: auto; margin-right: auto; flex-direction: column; align-items: center;">
|
||||
<?php if ($user_attendance_status === 'accepted'): ?>
|
||||
<p class="text-success fw-bold mb-4">Du hast zugesagt!</p>
|
||||
<p class="text-success fw-bold mb-3">Du hast zugesagt!</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=decline&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-danger me-2">Absagen</a>
|
||||
<a href="index.php?action=maybe&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-info">noch unklar</a>
|
||||
</div>
|
||||
<?php elseif ($user_attendance_status === 'declined'): ?>
|
||||
<p class="text-danger fw-bold mb-4">Du hast abgesagt!</p>
|
||||
<p class="text-danger fw-bold mb-3">Du hast abgesagt!</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=accept&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-success me-2">Zusagen</a>
|
||||
<a href="index.php?action=maybe&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-info">noch unklar</a>
|
||||
</div>
|
||||
<?php elseif ($user_attendance_status === 'maybe'): ?>
|
||||
<p class="text-muted fw-bold mb-4">Vielleicht dabei!</p>
|
||||
<p class="text-muted fw-bold mb-3">Vielleicht dabei!</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=accept&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-success me-2">Zusagen</a>
|
||||
<a href="index.php?action=decline&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-danger">Absagen</a>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p class="text-muted fw-bold mb-4">Bist du dabei?</p>
|
||||
<p class="text-muted fw-bold mb-3">Bist du dabei?</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=accept&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-success me-2">Zusagen</a>
|
||||
<a href="index.php?action=decline&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-danger me-2">Absagen</a>
|
||||
@@ -317,18 +366,26 @@ $german_weekdays = [
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($next_payer_username): ?>
|
||||
<!-- Horizontale Linie hier einfügen -->
|
||||
<hr class="my-1">
|
||||
|
||||
<?php if ($next_payer_info): ?>
|
||||
<div class="text-center my-2 mx-auto" style="max-width: 500px; border-radius: 0.5rem;">
|
||||
<p class="fw-bold mb-1">Rechnung wird bezahlt von:</p>
|
||||
<h4 class="text-muted fw-bold mb-0"><?= htmlspecialchars($next_payer_username); ?></h4>
|
||||
<h4 class="text-muted fw-bold mb-0">
|
||||
<?= htmlspecialchars($next_payer_info['username']); ?>
|
||||
<?php if ($next_payer_info['is_birthday_payer']): ?>
|
||||
<span class="material-symbols-outlined align-text-bottom" style="font-size: 1.1em; color: #ff6f00;" title="Geburtstagsvorschlag">cake</span>
|
||||
<?php endif; ?>
|
||||
</h4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-center my-3" style="max-width: 500px; margin-left: auto; margin-right: auto;">
|
||||
<a href="admin/participant.php?id=<?= htmlspecialchars($row['id']) ?>" class="btn btn-sm btn-outline-secondary">Teilnahme eintragen</a>
|
||||
<div class="d-flex justify-content-center my-1" style="max-width: 500px; margin-left: auto; margin-right: auto;">
|
||||
<a href="participant.php?id=<?= htmlspecialchars($row['id']) ?>" class="btn btn-sm btn-outline-secondary">Teilnahme eintragen</a>
|
||||
</div>
|
||||
|
||||
<!-- Teilnehmerübersicht (unverändert) -->
|
||||
<!-- Teilnehmerübersicht -->
|
||||
<div class="card-footer text-center mt-3">
|
||||
<p class="text-muted mb-1">Teilnehmerübersicht:</p>
|
||||
<div class="d-flex justify-content-around">
|
||||
@@ -388,37 +445,123 @@ $german_weekdays = [
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 🔹 TERMINVERSCHIEBUNGS-VORSCHLÄGE -->
|
||||
<?php if (!empty($active_proposals)): ?>
|
||||
<div class="mt-4 pt-3 border-top">
|
||||
<h5 class="text-center mb-3">Aktive Verschiebungsvorschläge</h5>
|
||||
<?php foreach ($active_proposals as $p): ?>
|
||||
<div class="card mb-3 bg-light">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<h6 class="mb-1">
|
||||
<?= date('d.m.Y H:i', strtotime($p['proposed_date'])) ?>
|
||||
<?php if (!empty($p['proposer_name'])): ?>
|
||||
<small class="text-muted">(von <?= htmlspecialchars($p['proposer_name']) ?>)</small>
|
||||
<?php endif; ?>
|
||||
</h6>
|
||||
<p class="mb-2"><?= htmlspecialchars($p['reason'] ?: 'Kein Grund angegeben') ?></p>
|
||||
</div>
|
||||
<?php if ($p['proposed_by_user_id'] == $logged_in_user_id): ?>
|
||||
<div class="dropdown ms-2">
|
||||
<button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">⋯</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#editProposalModal<?= $p['id'] ?>">Bearbeiten</a>
|
||||
</li>
|
||||
<li>
|
||||
<form method="POST" class="d-inline" onsubmit="return confirm('Vorschlag wirklich löschen?')">
|
||||
<input type="hidden" name="proposal_id" value="<?= $p['id'] ?>">
|
||||
<button type="submit" name="delete_proposal" class="dropdown-item text-danger">Löschen</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Hier kommt dein bestehender Verschiebungs-HTML-Block – unverändert -->
|
||||
<!-- (Du kannst ihn aus deinem Originalcode kopieren) -->
|
||||
<div class="mt-2">
|
||||
<small class="text-success">✅ Ja: <?= $p['yes_votes'] ?>
|
||||
<?php if (!empty($yes_voters[$p['id']])): ?>
|
||||
(<?= implode(', ', $yes_voters[$p['id']]) ?>)
|
||||
<?php endif; ?>
|
||||
</small><br>
|
||||
<small class="text-danger">❌ Nein: <?= $p['no_votes'] ?>
|
||||
<?php if (!empty($no_voters[$p['id']])): ?>
|
||||
(<?= implode(', ', $no_voters[$p['id']]) ?>)
|
||||
<?php endif; ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<div class="mt-2">
|
||||
<?php if (!isset($user_votes[$p['id']])): ?>
|
||||
<form method="POST" class="d-inline">
|
||||
<input type="hidden" name="proposal_id" value="<?= $p['id'] ?>">
|
||||
<button type="submit" name="vote_proposal" value="yes" class="btn btn-sm btn-success">✅ Ja</button>
|
||||
<button type="submit" name="vote_proposal" value="no" class="btn btn-sm btn-danger">❌ Nein</button>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<span class="badge bg-secondary">Bereits abgestimmt:
|
||||
<?= $user_votes[$p['id']] === 'yes' ? '✅ Ja' : '❌ Nein' ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin'): ?>
|
||||
<div class="mt-1">
|
||||
<form method="POST" class="d-inline">
|
||||
<input type="hidden" name="proposal_id" value="<?= $p['id'] ?>">
|
||||
<button type="submit" name="accept_proposal" class="btn btn-sm btn-outline-success" onclick="return confirm('Vorschlag wirklich annehmen? Der Termin wird verschoben!')">Annehmen</button>
|
||||
<button type="submit" name="reject_proposal" class="btn btn-sm btn-outline-danger" onclick="return confirm('Vorschlag wirklich ablehnen?')">Ablehnen</button>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bearbeiten-Modal -->
|
||||
<div class="modal fade" id="editProposalModal<?= $p['id'] ?>" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Vorschlag bearbeiten</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form method="POST">
|
||||
<div class="modal-body">
|
||||
<input type="hidden" name="proposal_id" value="<?= $p['id'] ?>">
|
||||
<div class="mb-3">
|
||||
<label>Neuer Termin</label>
|
||||
<input type="datetime-local" name="new_date" class="form-control"
|
||||
value="<?= date('Y-m-d\TH:i', strtotime($p['proposed_date'])) ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label>Grund</label>
|
||||
<textarea name="reason" class="form-control"><?= htmlspecialchars($p['reason']) ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Abbrechen</button>
|
||||
<button type="submit" name="edit_proposal" class="btn btn-primary">Speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="alert alert-warning text-center">Keine anstehenden Termine gefunden.</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Verschiebungsformular (unverändert) -->
|
||||
<div class="collapse" id="rescheduleForm">
|
||||
<div class="card card-body bg-light mt-3 mx-auto" style="max-width: 500px;">
|
||||
<h5>Anderen Termin vorschlagen</h5>
|
||||
<form method="POST">
|
||||
<div class="mb-3">
|
||||
<label for="new_date" class="form-label">Neuer Termin:</label>
|
||||
<input type="datetime-local" class="form-control" id="new_date" name="new_date" value="<?= $row ? date('Y-m-d\TH:i', strtotime($row['meeting_date'])) : '' ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="reason" class="form-label">Grund/Bemerkung:</label>
|
||||
<textarea class="form-control" id="reason" name="reason" rows="2" placeholder="Warum soll der Termin verschoben werden?"></textarea>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<button type="submit" name="propose_reschedule" class="btn btn-sm btn-outline-primary">Vorschlag einreichen</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-toggle="collapse" data-bs-target="#rescheduleForm">Abbrechen</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const links = document.querySelectorAll('.participant-toggle-collapse');
|
||||
|
||||
123
info.php
Executable file
123
info.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
include('inc/check_login.php');
|
||||
require_once('inc/db.php');
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h2 class="mb-4">Funktionen und Infos</h2>
|
||||
|
||||
<div class="alert alert-info d-flex align-items-start">
|
||||
<i class="bi bi-info-circle me-2 mt-1"></i>
|
||||
<div>
|
||||
Dieses sind die aktuellen Funktionen und Regeln der DoMiLi-App.
|
||||
Sie wurden zuletzt am <strong>11. November 2025</strong> aktualisiert.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h5 class="mb-0">1. Farbwahl</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="mb-0" style="font-size: 0.95rem; line-height: 1.6;">
|
||||
<li>Wer einen <b>Einteiler</b> in der gewählten Farbe trägt, bekommt einen <b>Bonus</b>.</li>
|
||||
<li>Arbeitskleidung ist <b>nicht</b> zugelassen, ausgenommen Hosen.</li>
|
||||
<li>Ausleihen von Kleidung ist <b>nicht</b> zugelassen.</li>
|
||||
<li>Schriften, Logos etc. zählen <b>nicht</b> als Farbe (Farbanteil <b>min. 75%</b> des Oberteils)</li>
|
||||
<li>Mäntel und Jacken sind <b>nicht</b> zugelassen</li>
|
||||
<li>Umziehen nach 8 Uhr (Ausnahme Arbeitskleidung) nicht zugelassen</li>
|
||||
<li>Die Farben werden <b>zufällig</b> gewählt, können aber nachträglich vom <b>Admin</b> geändert werden.</li>
|
||||
<li>Welche <b>Farben</b> aktuell zur Auswahl stehen kann man im Menü unter <code>Settings -> Farben</code> sehen.</li>
|
||||
<li>In der Übersicht ist auch die Anzahl der Farben einzusehen <i>(historische und schon geplante Treffen)</i>.</li>
|
||||
<li>Es können natürlich Farben vom <b>Admin</b> hinzugefügt oder entfernt werden.</li>
|
||||
<li>Die Auswahl der Farben ist zwar <b>zufällig</b>, aber schon genutzte Farben sollen <b><i>weniger wahrscheinlich</i></b> gewählt werden.</li>
|
||||
<li>Es gibt Sonderfarben<span class="badge bg-info ms-1" title="Sonderfarbe – nicht im Zufallsmodus">★</span> die nicht automatisch gewählt werden, diese können nur manuell gesetzt werden.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h5 class="mb-0">2. Teilnahme</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="mb-0" style="font-size: 0.95rem; line-height: 1.6;">
|
||||
<li>Eine Zu- bzw. Absage im Vorwege gibt einen guten Überblick und dient der Festlegung des Zahlers.</li>
|
||||
<li>Auf der Startseite kann man in der Teilnehmerübersicht durch anklicken die Namen der Teilnehmer sehen.</li>
|
||||
<li>Für eine längere Abwesenheit z.B. Urlaub kann man einen Abwesenheitsassistenten setzen, der automatisch absagt.</li>
|
||||
<li>Nach dem Termin können von jedem User die Teilnehmer inkl. Farbe und Zahler eingetragen werden.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h5 class="mb-0">3. Terminverschiebungen</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="mb-0" style="font-size: 0.95rem; line-height: 1.6;">
|
||||
<li>Jeder User kann einen Änderungsvorschlag für einen Termine eintragen.</li>
|
||||
<li>Die User können der Verschiebung zustimmen oder widersprechen. Die Verschiebung kann im Anschluss von einem <b>Admin</b> akzeptiert oder abgelehnt werden.</li>
|
||||
<li>Die Benutzer werden bei jedem Verschiebungsvorschlag, sowie bei der Annahme/Ablehnung dessen per Mail benachrichtigt.</li>
|
||||
<li>Die Vorschläge werden in der Statistik erfasst.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h5 class="mb-0">4. Strafgeld</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="mb-0" style="font-size: 0.95rem; line-height: 1.6;">
|
||||
<li>Nichtteilnahme ist straffrei.</li>
|
||||
<li>Falsche Farbe getragen bedeutet eine Strafe von <b>1 €</b>.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h5 class="mb-0">5. Zahler</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="mb-0" style="font-size: 0.95rem; line-height: 1.6;">
|
||||
<li>Wer bisher am <b>seltensten gezahlt</b> hat, wird beim nächsten Treffen als <b>Zahler</b> vorgeschlagen.</li>
|
||||
<li>Bei Gleichstand entscheidet die <b>alphabetische Reihenfolge</b> des Benutzernamens.</li>
|
||||
<li>Hat ein User <b>Geburtstag</b> wird diese als Zahler für das nächste Treffen vorgeschlagen, dieses zählt <b>nicht</b> für die Zahler-Statistik.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h5 class="mb-0">6. Auswertung</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="mb-0" style="font-size: 0.95rem; line-height: 1.6;">
|
||||
<li>Unter der <b>Historie</b> kann man die Eintragung für <b>jedes Treffen</b> einsehen.</li>
|
||||
<li>In der <b>Kasse</b> sieht man die Übersicht der <b>Strafen</b> und <b>Zahler</b></li>
|
||||
<ul>
|
||||
<li>Bei den offenen Strafen werden die Strafen bis zum Jahresabschluss summiert und anschließend zurückgesetzt.</li>
|
||||
<li>In den Gesamtstrafen werden alle Strafen aus der Gesamthistorie seit App-Launch aufsummiert.</li>
|
||||
<li>Im Ranking der Zahler ist die Auflistung der bisherigen Zahler einzusehen.</li>
|
||||
</ul>
|
||||
<li>In der <b>Statistik</b> befindet sich die Übersicht der</li>
|
||||
<ul>
|
||||
<li><b>Häufigkeit der Farben</b>.</li>
|
||||
<li><b>Teilnahme-Ranking</b> mit Durchschnittlicher Teilnahme je Treffen und der Anzahl der Teilnahme je Benutzer.</li>
|
||||
<li><b>Farbe getragen Ranking</b> mit Durchschnittlicher korrekten Farbe je Treffen, sowie die Anzahl der korrekten Farbe je User.</li>
|
||||
<li><b>Verschiebevorschlag Ranking</b> Anzahl der Verschiebevorschlägen je Benutzer.</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center text-muted mt-4" style="font-size: 0.875rem;">
|
||||
<i class="bi bi-clipboard-check me-1"></i>
|
||||
The Regels sind the Regels.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
433
kasse.php
433
kasse.php
@@ -1,62 +1,274 @@
|
||||
<?php
|
||||
// PHP-Logik für die Datenabfrage
|
||||
include('inc/check_login.php');
|
||||
require_once('inc/db.php');
|
||||
|
||||
// --- 1. Jährliche Strafen-Statistik ---
|
||||
// Passen Sie hier das Datum der Abschlussveranstaltung an.
|
||||
$last_reset_date = '2024-01-01';
|
||||
$is_admin = ($_SESSION['role'] === 'admin');
|
||||
|
||||
$penalties_data = [];
|
||||
$total_penalties = 0;
|
||||
$total_due = 0;
|
||||
// Passen Sie hier die Höhe der Strafe in Euro an.
|
||||
// --- JAHRESABSCHLUSS ---
|
||||
if ($is_admin && $_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST['action'] === 'close_year') {
|
||||
$today = date('Y-m-d');
|
||||
$user_id = $_SESSION['user_id'] ?? 0;
|
||||
|
||||
$last_closing_date = '2020-01-01';
|
||||
$result_last = mysqli_query($conn, "SELECT MAX(closing_date) AS last_date FROM penalty_closings");
|
||||
if ($result_last) {
|
||||
$row = mysqli_fetch_assoc($result_last);
|
||||
if ($row && !is_null($row['last_date'])) {
|
||||
$last_closing_date = $row['last_date'];
|
||||
}
|
||||
}
|
||||
|
||||
$check = mysqli_prepare($conn, "SELECT 1 FROM penalty_closings WHERE closing_date = ?");
|
||||
mysqli_stmt_bind_param($check, "s", $today);
|
||||
mysqli_stmt_execute($check);
|
||||
$exists = mysqli_stmt_get_result($check)->num_rows > 0;
|
||||
mysqli_stmt_close($check);
|
||||
|
||||
if (!$exists) {
|
||||
$insert = mysqli_prepare($conn, "INSERT INTO penalty_closings (closing_date, closed_by) VALUES (?, ?)");
|
||||
mysqli_stmt_bind_param($insert, "si", $today, $user_id);
|
||||
mysqli_stmt_execute($insert);
|
||||
mysqli_stmt_close($insert);
|
||||
|
||||
$penalty_summary = [];
|
||||
$stmt_email = mysqli_prepare($conn, "
|
||||
SELECT u.username, COUNT(*) AS penalty_count
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
WHERE m.meeting_date >= ? AND m.meeting_date <= ?
|
||||
AND mt.attended = 1 AND mt.wore_color = 0 AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
");
|
||||
mysqli_stmt_bind_param($stmt_email, "ss", $last_closing_date, $today);
|
||||
mysqli_stmt_execute($stmt_email);
|
||||
$result_email = mysqli_stmt_get_result($stmt_email);
|
||||
while ($row = mysqli_fetch_assoc($result_email)) {
|
||||
$penalty_summary[] = $row;
|
||||
}
|
||||
mysqli_stmt_close($stmt_email);
|
||||
|
||||
$all_users = [];
|
||||
$stmt_users = mysqli_prepare($conn, "SELECT id, username, email FROM users WHERE email IS NOT NULL AND email != ''");
|
||||
mysqli_stmt_execute($stmt_users);
|
||||
$result_users = mysqli_stmt_get_result($stmt_users);
|
||||
while ($row = mysqli_fetch_assoc($result_users)) {
|
||||
$all_users[] = $row;
|
||||
}
|
||||
mysqli_stmt_close($stmt_users);
|
||||
|
||||
if (!empty($all_users) && file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
$today_formatted = date('d.m.Y', strtotime($today));
|
||||
$last_closing_formatted = date('d.m.Y', strtotime($last_closing_date));
|
||||
|
||||
foreach ($all_users as $recipient) {
|
||||
$recipient_email = $recipient['email'];
|
||||
$recipient_name = $recipient['username'] ?? 'Benutzer';
|
||||
|
||||
try {
|
||||
$mail = new \PHPMailer\PHPMailer\PHPMailer(true);
|
||||
$mail->CharSet = 'UTF-8';
|
||||
$mail->isSMTP();
|
||||
$mail->Host = SMTP_HOST;
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = SMTP_USERNAME;
|
||||
$mail->Password = SMTP_PASSWORD;
|
||||
$mail->SMTPSecure = SMTP_ENCRYPTION;
|
||||
$mail->Port = SMTP_PORT;
|
||||
$mail->setFrom(MAIL_FROM_ADDRESS, MAIL_FROM_NAME);
|
||||
|
||||
$text_body = "Hallo $recipient_name,\n\n";
|
||||
$text_body .= "Der Jahresabschluss wurde am $today_formatted durchgeführt.\n";
|
||||
$text_body .= "Strafen der abgeschlossenen Periode (vom $last_closing_formatted bis $today_formatted):\n\n";
|
||||
if (empty($penalty_summary)) {
|
||||
$text_body .= "Keine Strafen in diesem Zeitraum.\n";
|
||||
} else {
|
||||
foreach ($penalty_summary as $row) {
|
||||
$text_body .= "- " . $row['username'] . ": " . (int)$row['penalty_count'] . " Strafen (1 € pro Strafe)\n";
|
||||
}
|
||||
}
|
||||
$text_body .= "\nDein DoMiLi-Admin.";
|
||||
|
||||
$html_table_rows = '';
|
||||
if (empty($penalty_summary)) {
|
||||
$html_table_rows = '<tr><td colspan="3" style="text-align:center;">Keine Strafen in diesem Zeitraum.</td></tr>';
|
||||
} else {
|
||||
foreach ($penalty_summary as $row) {
|
||||
$html_table_rows .= sprintf(
|
||||
'<tr>
|
||||
<td style="padding:8px;border:1px solid #ddd;">%s</td>
|
||||
<td style="padding:8px;border:1px solid #ddd;text-align:center;">%d</td>
|
||||
<td style="padding:8px;border:1px solid #ddd;text-align:right;">%s</td>
|
||||
</tr>',
|
||||
htmlspecialchars($row['username']),
|
||||
(int)$row['penalty_count'],
|
||||
number_format((float)($row['penalty_count']), 2, ',', '.') . ' €'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$html_body = "
|
||||
<p>Hallo <strong>$recipient_name</strong>,</p>
|
||||
<p>der Jahresabschluss wurde am <strong>$today_formatted</strong> durchgeführt.</p>
|
||||
<p><strong>Strafen der abgeschlossenen Periode</strong> (vom $last_closing_formatted bis $today_formatted):</p>
|
||||
<table style=\"border-collapse:collapse;width:100%;margin:15px 0;\">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style=\"padding:8px;border:1px solid #ddd;text-align:left;background:#f2f2f2;\">Mitglied</th>
|
||||
<th style=\"padding:8px;border:1px solid #ddd;text-align:center;background:#f2f2f2;\">Anzahl Strafen</th>
|
||||
<th style=\"padding:8px;border:1px solid #ddd;text-align:right;background:#f2f2f2;\">Betrag</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
$html_table_rows
|
||||
</tbody>
|
||||
</table>
|
||||
<p><em>Dein DoMiLi-Admin.</em></p>";
|
||||
|
||||
$mail->isHTML(true);
|
||||
$mail->Subject = "DoMiLi – Jahresabschluss abgeschlossen am $today_formatted";
|
||||
$mail->Body = $html_body;
|
||||
$mail->AltBody = $text_body;
|
||||
$mail->addAddress($recipient_email);
|
||||
$mail->send();
|
||||
} catch (Exception $e) {
|
||||
error_log("PHPMailer Fehler: " . $mail->ErrorInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$close_success = "Jahresabschluss erfolgreich durchgeführt!";
|
||||
} else {
|
||||
$close_error = "Heute wurde bereits ein Abschluss durchgeführt.";
|
||||
}
|
||||
}
|
||||
|
||||
// --- DATEN FÜR ANZEIGE ---
|
||||
$last_closing_date = '2020-01-01';
|
||||
$result_last = mysqli_query($conn, "SELECT MAX(closing_date) AS last_date FROM penalty_closings");
|
||||
if ($result_last) {
|
||||
$row = mysqli_fetch_assoc($result_last);
|
||||
if ($row && !is_null($row['last_date'])) {
|
||||
$last_closing_date = $row['last_date'];
|
||||
}
|
||||
}
|
||||
|
||||
$cumulative_penalties = [];
|
||||
$stmt_cum = mysqli_prepare($conn, "
|
||||
SELECT u.username, COUNT(*) AS total_penalty_count
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
WHERE mt.attended = 1 AND mt.wore_color = 0 AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
");
|
||||
mysqli_stmt_execute($stmt_cum);
|
||||
$result_cum = mysqli_stmt_get_result($stmt_cum);
|
||||
while ($row = mysqli_fetch_assoc($result_cum)) {
|
||||
$cumulative_penalties[$row['username']] = (int)$row['total_penalty_count'];
|
||||
}
|
||||
mysqli_stmt_close($stmt_cum);
|
||||
|
||||
$open_penalties = [];
|
||||
$total_open = 0;
|
||||
$penalty_amount = 1;
|
||||
|
||||
// SQL-Abfrage, um Strafen pro Benutzer seit dem letzten Reset-Datum zu zählen
|
||||
// Strafe = anwesend (attended=1) aber Farbe nicht getragen (wore_color=0)
|
||||
// NEUE BEDINGUNG: Nur Meetings einbeziehen, die als abgeschlossen markiert sind.
|
||||
$sql_penalties = "
|
||||
SELECT
|
||||
u.username,
|
||||
COUNT(mt.user_id) AS penalty_count
|
||||
$stmt_open = mysqli_prepare($conn, "
|
||||
SELECT u.username, COUNT(*) AS open_penalty_count
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
WHERE m.meeting_date >= ? AND mt.attended = 1 AND mt.wore_color = 0 AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
ORDER BY penalty_count DESC
|
||||
";
|
||||
$stmt = mysqli_prepare($conn, $sql_penalties);
|
||||
// Überprüfen, ob das Statement erfolgreich vorbereitet wurde
|
||||
if ($stmt === false) {
|
||||
die("Fehler bei der SQL-Abfrage: " . mysqli_error($conn));
|
||||
");
|
||||
mysqli_stmt_bind_param($stmt_open, "s", $last_closing_date);
|
||||
mysqli_stmt_execute($stmt_open);
|
||||
$result_open = mysqli_stmt_get_result($stmt_open);
|
||||
while ($row = mysqli_fetch_assoc($result_open)) {
|
||||
$open_penalties[$row['username']] = (int)$row['open_penalty_count'];
|
||||
$total_open += $row['open_penalty_count'];
|
||||
}
|
||||
mysqli_stmt_bind_param($stmt, "s", $last_reset_date);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
mysqli_stmt_close($stmt_open);
|
||||
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$penalties_data[] = $row;
|
||||
$total_penalties += $row['penalty_count'];
|
||||
$total_due += $row['penalty_count'] * $penalty_amount;
|
||||
$penalties_data = [];
|
||||
$all_usernames = array_unique(array_merge(array_keys($cumulative_penalties), array_keys($open_penalties)));
|
||||
foreach ($all_usernames as $username) {
|
||||
$total = $cumulative_penalties[$username] ?? 0;
|
||||
$open = $open_penalties[$username] ?? 0;
|
||||
$penalties_data[] = [
|
||||
'username' => $username,
|
||||
'total_penalty_count' => $total,
|
||||
'open_penalty_count' => $open
|
||||
];
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
usort($penalties_data, fn($a, $b) => $b['open_penalty_count'] <=> $a['open_penalty_count']);
|
||||
|
||||
// Neue Statistik: Ranking nach bezahlten Strafen
|
||||
// NEUE BEDINGUNG: Auch hier nur abgeschlossene Meetings einbeziehen.
|
||||
$paid_stats = [];
|
||||
$sql_paid = "
|
||||
SELECT
|
||||
u.username,
|
||||
COUNT(mt.user_id) AS paid_count
|
||||
$total_penalties = array_sum(array_column($penalties_data, 'total_penalty_count'));
|
||||
$total_due = $total_open * $penalty_amount;
|
||||
|
||||
$historical_table = [];
|
||||
$closing_years = [];
|
||||
$result_closings = mysqli_query($conn, "SELECT closing_date FROM penalty_closings ORDER BY closing_date");
|
||||
while ($row = mysqli_fetch_assoc($result_closings)) {
|
||||
$closing_date = new DateTime($row['closing_date']);
|
||||
$year = (int)$closing_date->format('Y');
|
||||
$month = (int)$closing_date->format('n');
|
||||
$closed_year = ($month >= 7) ? $year : ($year - 1);
|
||||
$closing_years[] = $closed_year;
|
||||
}
|
||||
$closing_years = array_unique($closing_years);
|
||||
sort($closing_years);
|
||||
|
||||
if (!empty($closing_years)) {
|
||||
foreach ($closing_years as $year) {
|
||||
$year_start = "$year-01-01";
|
||||
$year_end = "$year-12-31";
|
||||
|
||||
$stmt_hist = mysqli_prepare($conn, "
|
||||
SELECT u.username, COUNT(*) AS penalty_count
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
WHERE mt.paid = 1 AND m.is_completed = 1
|
||||
WHERE m.meeting_date BETWEEN ? AND ?
|
||||
AND mt.attended = 1 AND mt.wore_color = 0 AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
ORDER BY paid_count DESC
|
||||
");
|
||||
mysqli_stmt_bind_param($stmt_hist, "ss", $year_start, $year_end);
|
||||
mysqli_stmt_execute($stmt_hist);
|
||||
$result_hist = mysqli_stmt_get_result($stmt_hist);
|
||||
while ($row = mysqli_fetch_assoc($result_hist)) {
|
||||
$username = $row['username'];
|
||||
$count = (int)$row['penalty_count'];
|
||||
|
||||
if (!isset($historical_table[$username])) {
|
||||
$historical_table[$username] = ['years' => [], 'total' => 0];
|
||||
}
|
||||
$historical_table[$username]['years'][] = $year;
|
||||
$historical_table[$username]['total'] += $count;
|
||||
}
|
||||
mysqli_stmt_close($stmt_hist);
|
||||
}
|
||||
|
||||
foreach ($historical_table as $username => $data) {
|
||||
$historical_table[$username]['year_label'] = implode('/', $data['years']);
|
||||
}
|
||||
}
|
||||
|
||||
$paid_stats = [];
|
||||
$sql_paid = "
|
||||
SELECT u.username, COUNT(mt.user_id) AS paid_count
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
WHERE mt.paid = 1
|
||||
AND mt.birthday_pay = 0
|
||||
AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
ORDER BY paid_count ASC, u.username ASC
|
||||
";
|
||||
|
||||
$result_paid = mysqli_query($conn, $sql_paid);
|
||||
while ($row = mysqli_fetch_assoc($result_paid)) {
|
||||
$paid_stats[] = $row;
|
||||
@@ -66,38 +278,58 @@ require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h2 class="mb-4">Kasse & Auswertung</h2>
|
||||
<h2 class="mb-4">Kasse</h2>
|
||||
|
||||
<?php if (!empty($close_success)): ?>
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($close_success) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($close_error)): ?>
|
||||
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($close_error) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-danger-subtle text-danger">
|
||||
<h4 class="mb-0">Strafen seit letztem Abschluss</h4>
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0">Strafen</h4>
|
||||
<?php if ($is_admin): ?>
|
||||
<form method="POST" class="d-flex align-items-center m-0" onsubmit="return confirm('Jahresabschluss durchführen?');">
|
||||
<input type="hidden" name="action" value="close_year">
|
||||
<button type="submit" class="btn btn-sm d-flex align-items-center justify-content-center p-0" style="height: 24px; font-size: 0.875rem;">
|
||||
Jahresabschluss
|
||||
<span class="material-symbols-outlined ms-1" style="font-size: 18px; line-height: 1;">add</span>
|
||||
</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p class="fs-5 fw-bold text-center">
|
||||
Gesamtzahl der Strafen: <span class="badge bg-danger"><?= $total_penalties ?></span><br>
|
||||
Fälliger Gesamtbetrag: <span class="text-danger fw-bold"><?= number_format($total_due, 2, ',', '.'); ?> €</span>
|
||||
Strafen gesamt: <span class="badge bg-danger"><?= $total_penalties ?></span><br>
|
||||
offener Betrag: <span class="text-danger fw-bold"><?= number_format($total_due, 2, ',', '.') ?> €</span>
|
||||
</p>
|
||||
|
||||
<?php if (empty($penalties_data)): ?>
|
||||
<div class="alert alert-info text-center" role="alert">
|
||||
Bisher wurden keine Strafen verzeichnet.
|
||||
</div>
|
||||
<div class="alert alert-info text-center">Keine Strafen erfasst.</div>
|
||||
<?php else: ?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Benutzer</th>
|
||||
<th>Anzahl Strafen</th>
|
||||
<th>Fälliger Betrag</th>
|
||||
<th>Strafen gesamt</th>
|
||||
<th>offener Betrag</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($penalties_data as $penalty): ?>
|
||||
<?php foreach ($penalties_data as $p): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($penalty['username']); ?></td>
|
||||
<td><?= htmlspecialchars($penalty['penalty_count']); ?></td>
|
||||
<td><?= number_format($penalty['penalty_count'] * $penalty_amount, 2, ',', '.'); ?> €</td>
|
||||
<td><?= htmlspecialchars($p['username']) ?></td>
|
||||
<td><?= htmlspecialchars($p['total_penalty_count']) ?></td>
|
||||
<td><?= number_format($p['open_penalty_count'] * $penalty_amount, 2, ',', '.') ?> €</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
@@ -108,39 +340,79 @@ require_once 'inc/header.php';
|
||||
</div>
|
||||
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-success-subtle text-success">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0">Historische Strafen</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Benutzer</th>
|
||||
<th>Jahr(e)</th>
|
||||
<th>Strafen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!empty($historical_table)): ?>
|
||||
<?php foreach ($historical_table as $username => $data): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($username) ?></td>
|
||||
<td><?= htmlspecialchars($data['year_label']) ?></td>
|
||||
<td><?= htmlspecialchars($data['total']) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="3" class="text-center text-muted">—</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0">Rechnungen</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title text-center">Ranking - Rechnung übernommen</h5>
|
||||
|
||||
<h5 class="card-title text-center">Ranking – Rechnung übernommen</h5>
|
||||
<p class="text-muted text-center small mb-1">Position 1 = nächster Zahler</p>
|
||||
<div style="height: 40vh;">
|
||||
<canvas id="paidChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Daten für "Gezahlt"-Diagramm
|
||||
const paidData = {
|
||||
labels: <?= json_encode(array_column($paid_stats, 'username')); ?>,
|
||||
const rawLabels = <?php echo json_encode(array_column($paid_stats, 'username') ?: []); ?>;
|
||||
const rawData = <?php echo json_encode(array_map('intval', array_column($paid_stats, 'paid_count') ?: [])); ?>;
|
||||
|
||||
const ctx = document.getElementById('paidChart').getContext('2d');
|
||||
|
||||
if (rawLabels.length === 0 || rawData.length === 0) {
|
||||
document.getElementById('paidChart').closest('.card-body').innerHTML =
|
||||
'<p class="text-muted text-center mt-3">Keine bezahlten Rechnungen erfasst.</p>';
|
||||
return;
|
||||
}
|
||||
|
||||
new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: rawLabels,
|
||||
datasets: [{
|
||||
label: 'Gezahlte Strafen',
|
||||
data: <?= json_encode(array_column($paid_stats, 'paid_count')); ?>,
|
||||
backgroundColor: 'rgba(153, 102, 255, 0.8)',
|
||||
borderColor: 'rgb(153, 102, 255)',
|
||||
data: rawData,
|
||||
backgroundColor: 'rgba(54, 162, 235, 0.6)',
|
||||
borderColor: 'rgba(54, 162, 235, 1)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
};
|
||||
|
||||
const paidConfig = {
|
||||
type: 'bar',
|
||||
data: paidData,
|
||||
},
|
||||
options: {
|
||||
indexAxis: 'y',
|
||||
responsive: true,
|
||||
@@ -156,31 +428,28 @@ require_once 'inc/header.php';
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
beginAtZero: true
|
||||
beginAtZero: true,
|
||||
ticks: {
|
||||
stepSize: 1,
|
||||
callback: function(value) {
|
||||
return Number.isInteger(value) ? value : null;
|
||||
}
|
||||
}
|
||||
},
|
||||
y: {
|
||||
ticks: {
|
||||
font: {
|
||||
size: 10
|
||||
size: 12
|
||||
},
|
||||
callback: function(value, index, ticks) {
|
||||
const username = this.getLabelForValue(value);
|
||||
const maxChars = 15;
|
||||
if (username.length > maxChars) {
|
||||
return username.substring(0, maxChars) + '...';
|
||||
}
|
||||
return username;
|
||||
const label = this.getLabelForValue(value);
|
||||
return label.length > 15 ? label.substring(0, 15) + '…' : label;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
new Chart(
|
||||
document.getElementById('paidChart'),
|
||||
paidConfig
|
||||
);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
26
login.php
26
login.php
@@ -46,25 +46,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$error = "Datenbankfehler.";
|
||||
}
|
||||
}
|
||||
|
||||
require_once 'inc/public_header.php';
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>DoMiLi – Login</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- Font Google-->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
|
||||
<!-- Custom styles -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container d-flex justify-content-center align-items-start py-4 pt-5">
|
||||
<div class="card bg-light shadow w-100" style="max-width: 400px;">
|
||||
<div class="card-body">
|
||||
@@ -86,11 +70,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
<div class="d-grid">
|
||||
<button type="submit" class="btn btn-primary btn-lg">Einloggen</button>
|
||||
</div>
|
||||
<div class="text-center mt-3">
|
||||
<a href="forgot_password.php" class="text-decoration-none">Passwort vergessen?</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include('inc/footer.php'); ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,32 +1,18 @@
|
||||
<?php
|
||||
// Fehleranzeige für Entwicklung (optional)
|
||||
// error_reporting(E_ALL);
|
||||
// ini_set('display_errors', 1);
|
||||
include('inc/check_login.php');
|
||||
include('inc/db.php');
|
||||
require_once 'inc/helpers.php';
|
||||
|
||||
include('../inc/check_login.php');
|
||||
include('../inc/db.php');
|
||||
require_once '../inc/helpers.php';
|
||||
|
||||
// Nur Admin darf diese Seite nutzen
|
||||
if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
||||
header("Location: ../index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Meeting-ID prüfen
|
||||
if (!isset($_GET['id'])) {
|
||||
$_SESSION['error_message'] = "Keine Meeting-ID angegeben.";
|
||||
header("Location: ../index.php");
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
$meeting_id = intval($_GET['id']);
|
||||
|
||||
// Quelle merken (für Weiterleitung)
|
||||
$source_page = isset($_GET['source']) && $_GET['source'] === 'history' ? 'history' : 'index';
|
||||
$cancel_link = $source_page === 'history' ? '../history.php' : '../index.php';
|
||||
$cancel_link = $source_page === 'history' ? 'history.php' : 'index.php';
|
||||
|
||||
// Meeting-Daten laden
|
||||
$stmt = mysqli_prepare($conn, "SELECT meeting_date, color_id, reason FROM meetings WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $meeting_id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
@@ -39,7 +25,6 @@ if (!$meeting) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Farben und Benutzer laden
|
||||
$colors = [];
|
||||
$colors_result = mysqli_query($conn, "SELECT id, name FROM colors ORDER BY name");
|
||||
while ($row = mysqli_fetch_assoc($colors_result)) {
|
||||
@@ -52,9 +37,8 @@ while ($row = mysqli_fetch_assoc($users_result)) {
|
||||
$users[] = $row;
|
||||
}
|
||||
|
||||
// Bestehende Teilnehmerdaten laden
|
||||
$existing_feedback = [];
|
||||
$stmt = mysqli_prepare($conn, "SELECT user_id, attended, wore_color, paid FROM meeting_teilnehmer WHERE meeting_id = ?");
|
||||
$stmt = mysqli_prepare($conn, "SELECT user_id, attended, wore_color, paid, birthday_pay FROM meeting_teilnehmer WHERE meeting_id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $meeting_id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
@@ -66,9 +50,7 @@ mysqli_stmt_close($stmt);
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
|
||||
// POST-Verarbeitung
|
||||
if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
// Meeting-Daten aktualisieren (nur im History-Modus)
|
||||
if ($source_page === 'history') {
|
||||
$meeting_date = $_POST['meeting_date'] ?? '';
|
||||
$color_id = intval($_POST['color_id'] ?? 0);
|
||||
@@ -90,20 +72,76 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
|
||||
// Neue Daten speichern
|
||||
if (isset($_POST['user_id']) && is_array($_POST['user_id'])) {
|
||||
$stmt_insert = mysqli_prepare($conn, "INSERT INTO meeting_teilnehmer (meeting_id, user_id, attended, wore_color, paid) VALUES (?, ?, ?, ?, ?)");
|
||||
$stmt_insert = mysqli_prepare($conn, "
|
||||
INSERT INTO meeting_teilnehmer
|
||||
(meeting_id, user_id, attended, wore_color, paid, birthday_pay)
|
||||
VALUES (?, ?, ?, ?, ?, ?)
|
||||
");
|
||||
|
||||
$meeting_year = (int)date('Y', strtotime($meeting['meeting_date']));
|
||||
$meeting_month = (int)date('n', strtotime($meeting['meeting_date']));
|
||||
$meeting_day = (int)date('j', strtotime($meeting['meeting_date']));
|
||||
|
||||
foreach ($_POST['user_id'] as $user_id) {
|
||||
$user_id = intval($user_id);
|
||||
$attended = isset($_POST['attended'][$user_id]) ? 1 : 0;
|
||||
$wore_color = isset($_POST['wore_color'][$user_id]) ? 1 : 0;
|
||||
$paid = isset($_POST['paid'][$user_id]) ? 1 : 0;
|
||||
$birthday_pay = 0;
|
||||
|
||||
mysqli_stmt_bind_param($stmt_insert, "iiiii", $meeting_id, $user_id, $attended, $wore_color, $paid);
|
||||
if ($paid) {
|
||||
// Hole Geburtstag des Users
|
||||
$user_stmt = mysqli_prepare($conn, "SELECT birthday FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($user_stmt, "i", $user_id);
|
||||
mysqli_stmt_execute($user_stmt);
|
||||
$user_row = mysqli_fetch_assoc(mysqli_stmt_get_result($user_stmt));
|
||||
mysqli_stmt_close($user_stmt);
|
||||
|
||||
if ($user_row && $user_row['birthday'] && $user_row['birthday'] !== '0000-00-00') {
|
||||
$bday_month = (int)date('n', strtotime($user_row['birthday']));
|
||||
$bday_day = (int)date('j', strtotime($user_row['birthday']));
|
||||
|
||||
// War Geburtstag in diesem Jahr bereits?
|
||||
$birthday_passed = ($bday_month < $meeting_month ||
|
||||
($bday_month == $meeting_month && $bday_day <= $meeting_day));
|
||||
|
||||
if ($birthday_passed) {
|
||||
// Prüfen: Hat er in DIESEM JAHR schon als Geburtstagszahler gezahlt?
|
||||
$check_stmt = mysqli_prepare($conn, "
|
||||
SELECT 1 FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
WHERE mt.user_id = ?
|
||||
AND mt.birthday_pay = 1
|
||||
AND YEAR(m.meeting_date) = ?
|
||||
LIMIT 1
|
||||
");
|
||||
mysqli_stmt_bind_param($check_stmt, "ii", $user_id, $meeting_year);
|
||||
mysqli_stmt_execute($check_stmt);
|
||||
$already_birthday_paid = mysqli_num_rows(mysqli_stmt_get_result($check_stmt)) > 0;
|
||||
mysqli_stmt_close($check_stmt);
|
||||
|
||||
if (!$already_birthday_paid) {
|
||||
$birthday_pay = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mysqli_stmt_bind_param(
|
||||
$stmt_insert,
|
||||
"iiiiii",
|
||||
$meeting_id,
|
||||
$user_id,
|
||||
$attended,
|
||||
$wore_color,
|
||||
$paid,
|
||||
$birthday_pay
|
||||
);
|
||||
mysqli_stmt_execute($stmt_insert);
|
||||
}
|
||||
mysqli_stmt_close($stmt_insert);
|
||||
|
||||
// Meeting als abgeschlossen markieren (nur im Index-Modus)
|
||||
// Meeting abschließen (nur im Index-Modus)
|
||||
if ($source_page === 'index') {
|
||||
$stmt_complete = mysqli_prepare($conn, "UPDATE meetings SET is_completed = 1 WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt_complete, "i", $meeting_id);
|
||||
@@ -118,12 +156,11 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
$message_type = 'warning';
|
||||
}
|
||||
|
||||
// 🔁 Zurück zur ursprünglichen Quelle
|
||||
header("Location: " . $cancel_link);
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once '../inc/header.php';
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
@@ -234,4 +271,4 @@ require_once '../inc/header.php';
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('../inc/footer.php'); ?>
|
||||
<?php include('inc/footer.php'); ?>
|
||||
306
planning.php
Executable file
306
planning.php
Executable file
@@ -0,0 +1,306 @@
|
||||
<?php
|
||||
include('inc/check_login.php');
|
||||
require_once('inc/db.php');
|
||||
|
||||
$is_admin = ($_SESSION['role'] === 'admin');
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$edit_mode = false;
|
||||
$edit_meeting = null;
|
||||
|
||||
// --- Funktion: Zufallsfarbe mit inverser Gewichtung (alle Termine, keine Sonderfarben) ---
|
||||
function get_weighted_random_color($conn)
|
||||
{
|
||||
// Zählt ALLE Termine (vergangen + geplant) für jede reguläre Farbe
|
||||
$colors = [];
|
||||
$result = mysqli_query($conn, "
|
||||
SELECT
|
||||
c.id,
|
||||
c.name,
|
||||
COUNT(m.id) AS usage_count
|
||||
FROM colors c
|
||||
LEFT JOIN meetings m ON c.id = m.color_id
|
||||
WHERE c.is_special = 0
|
||||
GROUP BY c.id, c.name
|
||||
");
|
||||
|
||||
if (!$result || mysqli_num_rows($result) === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$colors[] = [
|
||||
'id' => (int)$row['id'],
|
||||
'usage' => (int)$row['usage_count']
|
||||
];
|
||||
}
|
||||
|
||||
$max_usage = max(array_column($colors, 'usage'));
|
||||
$color_pool = [];
|
||||
|
||||
foreach ($colors as $color) {
|
||||
$weight = ($max_usage - $color['usage'] + 1) ** 2;
|
||||
for ($i = 0; $i < $weight; $i++) {
|
||||
$color_pool[] = $color['id'];
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($color_pool)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $color_pool[array_rand($color_pool)];
|
||||
}
|
||||
|
||||
// --- Nur Admins: Löschen ---
|
||||
if ($is_admin && isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$id = (int)$_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM meetings WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Termin erfolgreich gelöscht!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Löschen des Termins.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
header("Location: planning.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
// --- Nur Admins: Bearbeiten ---
|
||||
if ($is_admin && isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id'])) {
|
||||
$id = (int)$_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, meeting_date, color_id, reason FROM meetings WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$edit_meeting = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
$edit_mode = true;
|
||||
|
||||
if ($edit_meeting) {
|
||||
$edit_dt = new DateTime($edit_meeting['meeting_date']);
|
||||
$edit_meeting['meeting_date_only'] = $edit_dt->format('Y-m-d');
|
||||
$edit_meeting['meeting_time_only'] = $edit_dt->format('H:i');
|
||||
} else {
|
||||
$message = "Termin nicht gefunden.";
|
||||
$message_type = 'warning';
|
||||
}
|
||||
}
|
||||
|
||||
// --- Nur Admins: Speichern (POST) ---
|
||||
if ($is_admin && $_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$meeting_date_only = $_POST['meeting_date'] ?? '';
|
||||
$meeting_time_only = $_POST['meeting_time'] ?? '12:00';
|
||||
$color_id = (int)($_POST['color_id'] ?? 0);
|
||||
$reason = trim($_POST['reason'] ?? 'Zufallsfarbe');
|
||||
$id = !empty($_POST['id']) ? (int)$_POST['id'] : null;
|
||||
|
||||
if (empty($meeting_date_only) || !$color_id) {
|
||||
$message = "Datum und Farbe sind erforderlich.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
$meeting_date = $meeting_date_only . ' ' . $meeting_time_only;
|
||||
if ($id) {
|
||||
$stmt = mysqli_prepare($conn, "UPDATE meetings SET meeting_date = ?, color_id = ?, reason = ? WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "sisi", $meeting_date, $color_id, $reason, $id);
|
||||
} else {
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO meetings (meeting_date, color_id, reason) VALUES (?, ?, ?)");
|
||||
mysqli_stmt_bind_param($stmt, "sis", $meeting_date, $color_id, $reason);
|
||||
}
|
||||
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = $id ? "Termin aktualisiert!" : "Neuer Termin hinzugefügt!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Speichern.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
header("Location: planning.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
// --- 🔁 Automatische Planung: 4 Donnerstage, max. 1 pro Woche ---
|
||||
if ($is_admin) {
|
||||
$today = new DateTime('today');
|
||||
$existing_weeks = [];
|
||||
$result_existing = mysqli_query($conn, "SELECT meeting_date FROM meetings");
|
||||
while ($row = mysqli_fetch_assoc($result_existing)) {
|
||||
$dt = new DateTime($row['meeting_date']);
|
||||
$year = $dt->format('o');
|
||||
$week = $dt->format('W');
|
||||
$existing_weeks["$year-$week"] = true;
|
||||
}
|
||||
|
||||
$date = clone $today;
|
||||
for ($i = 0; $i < 4; $i++) {
|
||||
$date->modify($i === 0 ? 'next thursday' : 'next thursday');
|
||||
$year = $date->format('o');
|
||||
$week = $date->format('W');
|
||||
$week_key = "$year-$week";
|
||||
|
||||
if (!isset($existing_weeks[$week_key])) {
|
||||
$new_date = $date->format('Y-m-d') . ' 12:00:00';
|
||||
$color_id = get_weighted_random_color($conn);
|
||||
if ($color_id) {
|
||||
$check = mysqli_prepare($conn, "SELECT id FROM meetings WHERE meeting_date = ?");
|
||||
mysqli_stmt_bind_param($check, "s", $new_date);
|
||||
mysqli_stmt_execute($check);
|
||||
$exists = mysqli_fetch_assoc(mysqli_stmt_get_result($check));
|
||||
mysqli_stmt_close($check);
|
||||
|
||||
if (!$exists) {
|
||||
$default_reason = "Zufallsfarbe";
|
||||
$ins = mysqli_prepare($conn, "INSERT INTO meetings (meeting_date, color_id, reason) VALUES (?, ?, ?)");
|
||||
mysqli_stmt_bind_param($ins, "sis", $new_date, $color_id, $default_reason);
|
||||
mysqli_stmt_execute($ins);
|
||||
mysqli_stmt_close($ins);
|
||||
$existing_weeks[$week_key] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- Daten für Anzeige laden ---
|
||||
$all_colors = [];
|
||||
if ($is_admin) {
|
||||
$result_colors = mysqli_query($conn, "SELECT id, name, hex_code FROM colors ORDER BY name");
|
||||
while ($row = mysqli_fetch_assoc($result_colors)) {
|
||||
$all_colors[] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
$meetings = [];
|
||||
$result_meetings = mysqli_query($conn, "
|
||||
SELECT m.id, m.meeting_date, m.reason, c.name AS color_name, c.hex_code
|
||||
FROM meetings m
|
||||
JOIN colors c ON m.color_id = c.id
|
||||
WHERE m.is_completed = 0
|
||||
ORDER BY m.meeting_date
|
||||
");
|
||||
while ($row = mysqli_fetch_assoc($result_meetings)) {
|
||||
$meetings[] = $row;
|
||||
}
|
||||
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<?php if ($message): ?>
|
||||
<div class="alert alert-<?= htmlspecialchars($message_type) ?> alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($message) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Terminübersicht</h2>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin): ?>
|
||||
<div class="collapse <?= $edit_mode ? 'show' : '' ?>" id="planningFormCollapse">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0"><?= $edit_mode ? 'Termin bearbeiten' : 'Neuen Termin hinzufügen'; ?></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="planning.php" method="post">
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?= htmlspecialchars($edit_meeting['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Datum</label>
|
||||
<input type="date" class="form-control" name="meeting_date" value="<?= htmlspecialchars($edit_meeting['meeting_date_only'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Uhrzeit</label>
|
||||
<input type="time" class="form-control" name="meeting_time" value="<?= htmlspecialchars($edit_meeting['meeting_time_only'] ?? '12:00'); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Farbe</label>
|
||||
<select class="form-select" name="color_id" required>
|
||||
<?php foreach ($all_colors as $color): ?>
|
||||
<option value="<?= $color['id'] ?>" <?= (($edit_meeting['color_id'] ?? 0) == $color['id']) ? 'selected' : '' ?>>
|
||||
<?= htmlspecialchars($color['name']) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label">Grund für die Farbe (optional)</label>
|
||||
<input type="text" class="form-control" name="reason" value="<?= htmlspecialchars($edit_meeting['reason'] ?? ''); ?>">
|
||||
<div class="form-text">Wenn leer, wird „Zufallsfarbe“ eingetragen.</div>
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start">
|
||||
<button type="submit" class="btn btn-sm btn-outline-<?= $edit_mode ? 'success' : 'primary' ?> me-2">
|
||||
<?= $edit_mode ? 'Speichern' : 'Hinzufügen' ?>
|
||||
</button>
|
||||
<a href="planning.php" class="btn btn-sm btn-outline-secondary">Abbrechen</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0">Anstehende Termine</h4>
|
||||
<?php if ($is_admin): ?>
|
||||
<a class="btn btn-sm d-flex align-items-center justify-content-center" data-bs-toggle="collapse" href="#planningFormCollapse" role="button" aria-expanded="false" aria-controls="planningFormCollapse">Add
|
||||
<span class="material-symbols-outlined">add</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (empty($meetings)): ?>
|
||||
<p class="text-muted text-center">Keine anstehenden Termine.</p>
|
||||
<?php else: ?>
|
||||
<div class="list-group list-group-flush">
|
||||
<?php foreach ($meetings as $m): ?>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<p class="fw-bold mb-1"><?= date('d.m.Y H:i', strtotime($m['meeting_date'])) ?></p>
|
||||
<div class="d-flex align-items-center mb-1">
|
||||
<div class="me-2" style="background-color: <?= htmlspecialchars($m['hex_code']); ?>; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 2px;"></div> <span><?= htmlspecialchars($m['color_name']); ?></span>
|
||||
</div>
|
||||
<p class="text-muted small mb-0">Grund: <?= htmlspecialchars($m['reason']); ?></p>
|
||||
</div>
|
||||
<?php if ($is_admin): ?>
|
||||
<div class="dropdown ms-2">
|
||||
<a href="#" class="text-secondary" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="material-icons">more_vert</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="planning.php?action=edit&id=<?= $m['id'] ?>">
|
||||
<span class="material-icons me-2">mode_edit_outline</span> Bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center text-danger" href="planning.php?action=delete&id=<?= $m['id'] ?>" onclick="return confirm('Wirklich löschen?')">
|
||||
<span class="material-icons me-2">delete_outline</span> Löschen
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
120
profil.php
120
profil.php
@@ -2,59 +2,113 @@
|
||||
require_once 'inc/check_login.php';
|
||||
require_once 'inc/db.php';
|
||||
|
||||
// Variable zur Statusmeldung
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
|
||||
// Überprüfen, ob das Formular per POST gesendet wurde
|
||||
$user_id = (int)$_SESSION['user_id'];
|
||||
|
||||
// Aktuelle Benutzerdaten laden
|
||||
$stmt_fetch = mysqli_prepare($conn, "SELECT username, email, role, birthday FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt_fetch, "i", $user_id);
|
||||
mysqli_stmt_execute($stmt_fetch);
|
||||
$result = mysqli_stmt_get_result($stmt_fetch);
|
||||
$user_data = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt_fetch);
|
||||
|
||||
if (!$user_data) {
|
||||
die("Benutzer nicht gefunden.");
|
||||
}
|
||||
|
||||
$current_username = $user_data['username'];
|
||||
$current_email = $user_data['email'] ?? '';
|
||||
$current_role = $user_data['role'];
|
||||
$current_birthday = $user_data['birthday'] ?? '';
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$new_username = trim($_POST['username'] ?? '');
|
||||
$new_email = trim($_POST['email'] ?? '');
|
||||
$new_birthday = trim($_POST['birthday'] ?? '');
|
||||
|
||||
// Eingaben aus dem Formular holen
|
||||
$new_username = $_POST['username'];
|
||||
$new_email = $_POST['email'];
|
||||
$user_id = $_SESSION['user_id'];
|
||||
|
||||
// Validierung der Eingaben
|
||||
if (empty($new_username)) {
|
||||
$message = "Benutzername darf nicht leer sein.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
// Datenbank-Abfrage vorbereiten
|
||||
$stmt = mysqli_prepare($conn, "UPDATE users SET username = ?, email = ? WHERE id = ?");
|
||||
if (!empty($new_email) && !filter_var($new_email, FILTER_VALIDATE_EMAIL)) {
|
||||
$message = "Ungültige E-Mail-Adresse.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
// Standardwerte
|
||||
$db_email = (!empty($new_email)) ? $new_email : null;
|
||||
$db_birthday = (!empty($new_birthday)) ? $new_birthday : null;
|
||||
|
||||
// 🔹 GEBURTSTAGSLOGIK: Nur wenn Geburtstag neu/aktualisiert wird
|
||||
$update_last_bday_year = false;
|
||||
$new_last_bday_year = null;
|
||||
|
||||
if ($db_birthday !== null) {
|
||||
$today = date('Y-m-d');
|
||||
$current_year = (int)date('Y');
|
||||
|
||||
$birth_month = (int)date('m', strtotime($db_birthday));
|
||||
$birth_day = (int)date('d', strtotime($db_birthday));
|
||||
$birthday_this_year = "$current_year-$birth_month-$birth_day";
|
||||
|
||||
if (strtotime($birthday_this_year) < strtotime($today)) {
|
||||
$new_last_bday_year = $current_year;
|
||||
$update_last_bday_year = true;
|
||||
}
|
||||
}
|
||||
|
||||
// 🔹 Update in DB
|
||||
mysqli_autocommit($conn, false);
|
||||
$success = true;
|
||||
|
||||
// 1. Benutzerdaten aktualisieren
|
||||
$stmt = mysqli_prepare($conn, "UPDATE users SET username = ?, email = ?, birthday = ? WHERE id = ?");
|
||||
if ($stmt) {
|
||||
// Parameter binden
|
||||
mysqli_stmt_bind_param($stmt, "ssi", $new_username, $new_email, $user_id);
|
||||
mysqli_stmt_bind_param($stmt, "sssi", $new_username, $db_email, $db_birthday, $user_id);
|
||||
if (!mysqli_stmt_execute($stmt)) {
|
||||
$success = false;
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
} else {
|
||||
$success = false;
|
||||
}
|
||||
|
||||
// Statement ausführen
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
// Session-Variablen aktualisieren
|
||||
if ($success) {
|
||||
mysqli_commit($conn);
|
||||
$_SESSION['username'] = $new_username;
|
||||
$_SESSION['email'] = $new_email;
|
||||
|
||||
// Neu laden
|
||||
$stmt_reload = mysqli_prepare($conn, "SELECT username, email, role, birthday FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt_reload, "i", $user_id);
|
||||
mysqli_stmt_execute($stmt_reload);
|
||||
$user_data = mysqli_fetch_assoc(mysqli_stmt_get_result($stmt_reload));
|
||||
mysqli_stmt_close($stmt_reload);
|
||||
|
||||
$current_username = $user_data['username'];
|
||||
$current_email = $user_data['email'] ?? '';
|
||||
$current_role = $user_data['role'];
|
||||
$current_birthday = $user_data['birthday'] ?? '';
|
||||
|
||||
$message = "Profil erfolgreich aktualisiert!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
mysqli_rollback($conn);
|
||||
$message = "Fehler beim Speichern der Daten.";
|
||||
$message_type = 'danger';
|
||||
}
|
||||
|
||||
// Statement schließen
|
||||
mysqli_stmt_close($stmt);
|
||||
} else {
|
||||
$message = "Datenbankfehler: Statement konnte nicht vorbereitet werden.";
|
||||
$message_type = 'danger';
|
||||
mysqli_autocommit($conn, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Daten für die Anzeige aus der Session holen
|
||||
$current_username = $_SESSION['username'];
|
||||
$current_email = $_SESSION['email'];
|
||||
$current_role = $_SESSION['role'];
|
||||
|
||||
require_once 'inc/header.php'; ?>
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-6">
|
||||
<h2 class="mb-4">Benutzerverwaltung</h2>
|
||||
@@ -64,8 +118,8 @@ require_once 'inc/header.php'; ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if ($message): ?>
|
||||
<div id="status-message" class="alert alert-<?php echo $message_type; ?> alert-dismissible fade show" role="alert">
|
||||
<?php echo htmlspecialchars($message); ?>
|
||||
<div id="status-message" class="alert alert-<?= htmlspecialchars($message_type) ?> alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($message) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -73,15 +127,19 @@ require_once 'inc/header.php'; ?>
|
||||
<form action="" method="post">
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label fw-bold">Benutzername</label>
|
||||
<input type="text" class="form-control" id="username" name="username" value="<?php echo htmlspecialchars($current_username); ?>" required>
|
||||
<input type="text" class="form-control" id="username" name="username" value="<?= htmlspecialchars($current_username) ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label fw-bold">E-Mail-Adresse</label>
|
||||
<input type="email" class="form-control" id="email" name="email" value="<?php echo htmlspecialchars($current_email); ?>">
|
||||
<input type="email" class="form-control" id="email" name="email" value="<?= htmlspecialchars($current_email ?? '') ?>">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="birthday" class="form-label fw-bold">Geburtstag</label>
|
||||
<input type="date" class="form-control" id="birthday" name="birthday" value="<?= htmlspecialchars($current_birthday ?? '') ?>">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="role" class="form-label fw-bold">Rolle</label>
|
||||
<input type="text" class="form-control" id="role" name="role" value="<?php echo htmlspecialchars($current_role); ?>" disabled readonly>
|
||||
<input type="text" class="form-control" id="role" name="role" value="<?= htmlspecialchars($current_role) ?>" disabled readonly>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mt-3">
|
||||
|
||||
93
reset_password.php
Executable file
93
reset_password.php
Executable file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
include('inc/db.php');
|
||||
|
||||
$token = $_GET['token'] ?? null;
|
||||
$error = '';
|
||||
$success = false;
|
||||
$username = '';
|
||||
|
||||
if (!$token) {
|
||||
die("Ungültiger Zugriff.");
|
||||
}
|
||||
|
||||
// Token prüfen: existiert, nicht abgelaufen, nicht verwendet
|
||||
$stmt = mysqli_prepare($conn, "
|
||||
SELECT prt.id, prt.user_id, prt.expires_at, u.username
|
||||
FROM password_reset_tokens prt
|
||||
JOIN users u ON prt.user_id = u.id
|
||||
WHERE prt.token = ? AND prt.used = 0
|
||||
");
|
||||
mysqli_stmt_bind_param($stmt, "s", $token);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$token_data = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
if (!$token_data) {
|
||||
$error = "Ungültiger oder bereits verwendeter Link.";
|
||||
} else if (strtotime($token_data['expires_at']) < time()) {
|
||||
$error = "Der Link ist abgelaufen. Bitte fordere einen neuen Link an.";
|
||||
} else {
|
||||
$username = htmlspecialchars($token_data['username']);
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$new_password = $_POST['new_password'] ?? '';
|
||||
$confirm_password = $_POST['confirm_password'] ?? '';
|
||||
|
||||
if (strlen($new_password) < 6) {
|
||||
$error = "Das Passwort muss mindestens 6 Zeichen lang sein.";
|
||||
} else if ($new_password !== $confirm_password) {
|
||||
$error = "Die Passwörter stimmen nicht überein.";
|
||||
} else {
|
||||
// Neues Passwort hashen und speichern
|
||||
$hashed = password_hash($new_password, PASSWORD_DEFAULT);
|
||||
$stmt = mysqli_prepare($conn, "UPDATE users SET password = ? WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "si", $hashed, $token_data['user_id']);
|
||||
mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
// Token als verwendet markieren
|
||||
$stmt = mysqli_prepare($conn, "UPDATE password_reset_tokens SET used = 1 WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $token_data['id']);
|
||||
mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
$success = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
require_once 'inc/public_header.php';
|
||||
?>
|
||||
|
||||
<div class="container d-flex justify-content-center align-items-start py-4 pt-5">
|
||||
<div class="card bg-light shadow w-100" style="max-width: 400px;">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title text-center mb-4 fs-3">Neues Passwort</h4>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<div class="alert alert-danger"><?= htmlspecialchars($error) ?></div>
|
||||
<?php elseif ($success): ?>
|
||||
<div class="alert alert-success">
|
||||
Dein Passwort wurde erfolgreich geändert!<br>
|
||||
<a href="login.php" class="alert-link">Zum Login</a>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Neues Passwort für: <strong><?= $username ?></strong></p>
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label for="new_password" class="form-label">Neues Passwort</label>
|
||||
<input type="password" class="form-control" id="new_password" name="new_password" required minlength="6">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="confirm_password" class="form-label">Bestätigen</label>
|
||||
<input type="password" class="form-control" id="confirm_password" name="confirm_password" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary w-100">Passwort speichern</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
370
stats.php
370
stats.php
@@ -2,13 +2,17 @@
|
||||
include('inc/check_login.php');
|
||||
require_once('inc/db.php');
|
||||
|
||||
// Statistik 1: Häufigkeit der gewählten Farben
|
||||
// Gesamtanzahl abgeschlossener Treffen (nur zur Info)
|
||||
$total_meetings = 0;
|
||||
$result_total_meetings = mysqli_query($conn, "SELECT COUNT(*) AS total FROM meetings WHERE is_completed = 1");
|
||||
if ($row = mysqli_fetch_assoc($result_total_meetings)) {
|
||||
$total_meetings = (int)$row['total'];
|
||||
}
|
||||
|
||||
// Statistik: Farbhäufigkeit
|
||||
$color_stats = [];
|
||||
$sql_colors = "
|
||||
SELECT
|
||||
c.name,
|
||||
c.hex_code,
|
||||
COUNT(m.id) AS meeting_count
|
||||
SELECT c.name, c.hex_code, COUNT(m.id) AS meeting_count
|
||||
FROM meetings m
|
||||
JOIN colors c ON m.color_id = c.id
|
||||
WHERE m.is_completed = 1
|
||||
@@ -20,25 +24,44 @@ while ($row = mysqli_fetch_assoc($result)) {
|
||||
$color_stats[] = $row;
|
||||
}
|
||||
|
||||
// Statistik 2: Teilnahmequote pro Benutzer
|
||||
// TEILNAHME: Sortiert nach Prozent, mit Prozentwert
|
||||
$participation_stats = [];
|
||||
$participation_percentages = [];
|
||||
$participation_registered = [];
|
||||
$participation_attended = [];
|
||||
|
||||
$sql_participation = "
|
||||
SELECT
|
||||
u.username,
|
||||
COUNT(mt.user_id) AS total_attendance
|
||||
COUNT(*) AS registered_completed,
|
||||
SUM(CASE WHEN mt.attended = 1 THEN 1 ELSE 0 END) AS total_attendance,
|
||||
ROUND(
|
||||
(SUM(CASE WHEN mt.attended = 1 THEN 1 ELSE 0 END) / COUNT(*)) * 100,
|
||||
1
|
||||
) AS percentage
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id AND m.is_completed = 1
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
WHERE mt.attended = 1 AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
ORDER BY total_attendance DESC
|
||||
GROUP BY u.id, u.username
|
||||
ORDER BY percentage DESC, u.username ASC
|
||||
";
|
||||
$result = mysqli_query($conn, $sql_participation);
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$participation_stats[] = $row;
|
||||
$registered = (int)$row['registered_completed'];
|
||||
$attended = (int)$row['total_attendance'];
|
||||
$percentage = (float)$row['percentage'];
|
||||
$participation_stats[] = [
|
||||
'username' => $row['username'],
|
||||
'total_attendance' => $attended,
|
||||
'registered_meetings' => $registered,
|
||||
'percentage' => $percentage
|
||||
];
|
||||
$participation_percentages[] = $percentage;
|
||||
$participation_registered[] = $registered;
|
||||
$participation_attended[] = $attended;
|
||||
}
|
||||
|
||||
// Neue Statistik: Durchschnittliche Anwesenheit pro Meeting
|
||||
// Globale Durchschnitte (unverändert)
|
||||
$avg_attendance = 0;
|
||||
$sql_avg_attendance = "
|
||||
SELECT AVG(attended_count) AS avg_attended
|
||||
@@ -54,7 +77,6 @@ if ($row = mysqli_fetch_assoc($result_avg)) {
|
||||
$avg_attendance = round($row['avg_attended'], 2);
|
||||
}
|
||||
|
||||
// Neue Statistik: Durchschnittliche Anzahl derer, die die korrekte Farbe getragen haben
|
||||
$avg_wore_color = 0;
|
||||
$sql_avg_wore_color = "
|
||||
SELECT AVG(wore_color_count) AS avg_wore_color
|
||||
@@ -70,25 +92,62 @@ if ($row = mysqli_fetch_assoc($result_avg_wore)) {
|
||||
$avg_wore_color = round($row['avg_wore_color'], 2);
|
||||
}
|
||||
|
||||
// Neue Statistik: Ranking nach dem Tragen der Farbe
|
||||
// FARBE GETRAGEN: Sortiert nach Prozent, mit Prozentwert
|
||||
$wore_color_stats = [];
|
||||
$wore_color_percentages = [];
|
||||
$wore_color_attended = [];
|
||||
$wore_color_count = [];
|
||||
|
||||
$sql_wore_color = "
|
||||
SELECT
|
||||
u.username,
|
||||
COUNT(mt.user_id) AS wore_color_count
|
||||
SUM(CASE WHEN mt.attended = 1 THEN 1 ELSE 0 END) AS total_attendance,
|
||||
SUM(CASE WHEN mt.wore_color = 1 THEN 1 ELSE 0 END) AS wore_color_count,
|
||||
CASE
|
||||
WHEN SUM(CASE WHEN mt.attended = 1 THEN 1 ELSE 0 END) > 0 THEN
|
||||
ROUND(
|
||||
(SUM(CASE WHEN mt.wore_color = 1 THEN 1 ELSE 0 END) /
|
||||
SUM(CASE WHEN mt.attended = 1 THEN 1 ELSE 0 END)) * 100,
|
||||
1
|
||||
)
|
||||
ELSE 0.0
|
||||
END AS percentage
|
||||
FROM meeting_teilnehmer mt
|
||||
JOIN meetings m ON mt.meeting_id = m.id AND m.is_completed = 1
|
||||
JOIN users u ON mt.user_id = u.id
|
||||
JOIN meetings m ON mt.meeting_id = m.id
|
||||
WHERE mt.wore_color = 1 AND m.is_completed = 1
|
||||
GROUP BY u.username
|
||||
ORDER BY wore_color_count DESC
|
||||
GROUP BY u.id, u.username
|
||||
ORDER BY percentage DESC, u.username ASC
|
||||
";
|
||||
$result_wore = mysqli_query($conn, $sql_wore_color);
|
||||
while ($row = mysqli_fetch_assoc($result_wore)) {
|
||||
$wore_color_stats[] = $row;
|
||||
$attended = (int)$row['total_attendance'];
|
||||
$wore = (int)$row['wore_color_count'];
|
||||
$percentage = (float)$row['percentage'];
|
||||
$wore_color_stats[] = [
|
||||
'username' => $row['username'],
|
||||
'wore_color_count' => $wore,
|
||||
'total_attendance' => $attended,
|
||||
'percentage' => $percentage
|
||||
];
|
||||
$wore_color_percentages[] = $percentage;
|
||||
$wore_color_attended[] = $attended;
|
||||
$wore_color_count[] = $wore;
|
||||
}
|
||||
|
||||
// Verschiebungsvorschläge (unverändert)
|
||||
$reschedule_stats = [];
|
||||
$sql_reschedule = "
|
||||
SELECT u.username, COUNT(p.id) AS reschedule_count
|
||||
FROM meeting_reschedule_proposals p
|
||||
JOIN users u ON p.proposed_by_user_id = u.id
|
||||
GROUP BY u.username
|
||||
ORDER BY reschedule_count DESC, u.username ASC
|
||||
";
|
||||
$result_reschedule = mysqli_query($conn, $sql_reschedule);
|
||||
while ($row = mysqli_fetch_assoc($result_reschedule)) {
|
||||
$reschedule_stats[] = $row;
|
||||
}
|
||||
|
||||
// Header einbinden
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
@@ -96,7 +155,7 @@ require_once 'inc/header.php';
|
||||
<h2 class="mb-4">Statistiken & Ranking</h2>
|
||||
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-secondary bg-opacity-50 text-muted">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0">Gesamt-Statistiken</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -105,21 +164,19 @@ require_once 'inc/header.php';
|
||||
<h5 class="card-title text-center">Häufigkeit der gewählten Farben</h5>
|
||||
<canvas id="colorChart" class="mb-4"></canvas>
|
||||
</div>
|
||||
<!-- Trennlinie, die nur auf Mobilgeräten sichtbar ist -->
|
||||
<hr class="d-lg-none my-4">
|
||||
<div class="col-lg-6">
|
||||
<h5 class="card-title text-center">Teilnahme-Ranking</h5>
|
||||
<p class="text-center text-muted mt-2 mb-3">
|
||||
Insgesamt <?= $total_meetings ?> abgeschlossene Treffen.<br>
|
||||
Durchschnittliche Anwesenheit je Treffen: <strong><?= htmlspecialchars($avg_attendance) ?></strong>
|
||||
</p>
|
||||
<!-- Neuer Container mit fester Höhe, um das unendliche Wachstum zu stoppen -->
|
||||
<div style="height: 40vh;">
|
||||
<canvas id="participationChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Trennlinie für die neue Statistik -->
|
||||
<hr class="my-4">
|
||||
|
||||
<div class="row justify-content-center">
|
||||
@@ -128,127 +185,72 @@ require_once 'inc/header.php';
|
||||
<p class="text-center text-muted mt-2 mb-3">
|
||||
Durchschnittliche korrekte Farbe je Treffen: <strong><?= htmlspecialchars($avg_wore_color) ?></strong>
|
||||
</p>
|
||||
<!-- Container für das neue Diagramm -->
|
||||
<div style="height: 40vh;">
|
||||
<canvas id="woreColorChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="my-4">
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6">
|
||||
<h5 class="card-title text-center">Ranking - Verschiebungsvorschläge</h5>
|
||||
<p class="text-center text-muted mt-2 mb-3">
|
||||
Wer schlägt am häufigsten eine Terminverschiebung vor?
|
||||
</p>
|
||||
<div style="height: 40vh;">
|
||||
<canvas id="rescheduleChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Daten für Farbhäufigkeits-Diagramm
|
||||
const colorData = {
|
||||
labels: <?= json_encode(array_column($color_stats, 'name')); ?>,
|
||||
// Farben (unverändert)
|
||||
new Chart(document.getElementById('colorChart'), {
|
||||
type: 'pie',
|
||||
data: {
|
||||
labels: <?= json_encode(array_column($color_stats, 'name')) ?>,
|
||||
datasets: [{
|
||||
label: 'Anzahl Treffen',
|
||||
data: <?= json_encode(array_column($color_stats, 'meeting_count')); ?>,
|
||||
backgroundColor: <?= json_encode(array_column($color_stats, 'hex_code')); ?>,
|
||||
data: <?= json_encode(array_column($color_stats, 'meeting_count')) ?>,
|
||||
backgroundColor: <?= json_encode(array_column($color_stats, 'hex_code')) ?>,
|
||||
borderColor: 'rgba(0,0,0,0.1)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
};
|
||||
|
||||
const colorConfig = {
|
||||
type: 'pie',
|
||||
data: colorData,
|
||||
},
|
||||
options: {
|
||||
responsive: true,
|
||||
plugins: {
|
||||
legend: {
|
||||
position: 'top',
|
||||
position: 'top'
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Verteilung der Farbwahl über alle Treffen'
|
||||
text: 'Verteilung der Farbwahl'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
new Chart(
|
||||
document.getElementById('colorChart'),
|
||||
colorConfig
|
||||
);
|
||||
|
||||
// Daten für Teilnahme-Diagramm
|
||||
const participationData = {
|
||||
labels: <?= json_encode(array_column($participation_stats, 'username')); ?>,
|
||||
// Teilnahme: Mit Prozentwerten (0–100%), sortiert nach Prozent
|
||||
new Chart(document.getElementById('participationChart'), {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: <?= json_encode(array_column($participation_stats, 'username')) ?>,
|
||||
datasets: [{
|
||||
label: 'Anzahl Teilnahmen',
|
||||
data: <?= json_encode(array_column($participation_stats, 'total_attendance')); ?>,
|
||||
label: 'Teilnahmequote (%)',
|
||||
data: <?= json_encode($participation_percentages) ?>,
|
||||
backgroundColor: 'rgba(54,162,235,0.8)',
|
||||
borderColor: 'rgb(54,162,235)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
};
|
||||
|
||||
const participationConfig = {
|
||||
type: 'bar',
|
||||
data: participationData,
|
||||
options: {
|
||||
indexAxis: 'y',
|
||||
responsive: true,
|
||||
maintainAspectRatio: false, // Wichtig für die Größenanpassung
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Anzahl der Teilnahmen pro Benutzer'
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
beginAtZero: true
|
||||
},
|
||||
y: {
|
||||
ticks: {
|
||||
font: {
|
||||
size: 10 // Kleinere Schriftgröße für bessere Lesbarkeit auf mobilen Geräten
|
||||
},
|
||||
// Callback, um lange Namen zu kürzen und Überlappungen zu vermeiden
|
||||
callback: function(value, index, ticks) {
|
||||
const username = this.getLabelForValue(value);
|
||||
const maxChars = 15; // Maximale Zeichen auf Mobilgeräten
|
||||
if (username.length > maxChars) {
|
||||
return username.substring(0, maxChars) + '...';
|
||||
}
|
||||
return username;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
new Chart(
|
||||
document.getElementById('participationChart'),
|
||||
participationConfig
|
||||
);
|
||||
|
||||
// Daten für "Farbe getragen"-Diagramm
|
||||
const woreColorData = {
|
||||
labels: <?= json_encode(array_column($wore_color_stats, 'username')); ?>,
|
||||
datasets: [{
|
||||
label: 'Farbe getragen',
|
||||
data: <?= json_encode(array_column($wore_color_stats, 'wore_color_count')); ?>,
|
||||
backgroundColor: 'rgba(75, 192, 192, 0.8)',
|
||||
borderColor: 'rgb(75, 192, 192)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
};
|
||||
|
||||
const woreColorConfig = {
|
||||
type: 'bar',
|
||||
data: woreColorData,
|
||||
options: {
|
||||
indexAxis: 'y',
|
||||
responsive: true,
|
||||
@@ -259,36 +261,152 @@ require_once 'inc/header.php';
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Anzahl der "Farbe getragen"-Einträge pro Benutzer'
|
||||
text: 'Teilnahmequote (nur abgeschlossene Treffen mit Eintrag)'
|
||||
},
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
label: function(ctx) {
|
||||
const pct = ctx.raw;
|
||||
const attended = <?= json_encode($participation_attended) ?>[ctx.dataIndex] || 0;
|
||||
const reg = <?= json_encode($participation_registered) ?>[ctx.dataIndex] || 0;
|
||||
return `${attended} von ${reg} (${pct}%)`;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
beginAtZero: true
|
||||
beginAtZero: true,
|
||||
max: 100,
|
||||
ticks: {
|
||||
callback: function(value) {
|
||||
return value + '%';
|
||||
}
|
||||
}
|
||||
},
|
||||
y: {
|
||||
ticks: {
|
||||
font: {
|
||||
size: 10
|
||||
},
|
||||
callback: function(value, index, ticks) {
|
||||
const username = this.getLabelForValue(value);
|
||||
const maxChars = 15;
|
||||
if (username.length > maxChars) {
|
||||
return username.substring(0, maxChars) + '...';
|
||||
}
|
||||
return username;
|
||||
callback: function(v) {
|
||||
const l = this.getLabelForValue(v);
|
||||
return l.length > 15 ? l.substring(0, 15) + '...' : l;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
new Chart(
|
||||
document.getElementById('woreColorChart'),
|
||||
woreColorConfig
|
||||
);
|
||||
// Farbe getragen: Mit Prozentwerten (0–100%)
|
||||
new Chart(document.getElementById('woreColorChart'), {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: <?= json_encode(array_column($wore_color_stats, 'username')) ?>,
|
||||
datasets: [{
|
||||
label: 'Farbenquote (%)',
|
||||
data: <?= json_encode($wore_color_percentages) ?>,
|
||||
backgroundColor: 'rgba(75,192,192,0.8)',
|
||||
borderColor: 'rgb(75,192,192)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
indexAxis: 'y',
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Farbenquote (nur bei Teilnahme)'
|
||||
},
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
label: function(ctx) {
|
||||
const pct = ctx.raw;
|
||||
const wore = <?= json_encode($wore_color_count) ?>[ctx.dataIndex] || 0;
|
||||
const att = <?= json_encode($wore_color_attended) ?>[ctx.dataIndex] || 0;
|
||||
return `${wore} von ${att} Teilnahmen (${pct}%)`;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
beginAtZero: true,
|
||||
max: 100,
|
||||
ticks: {
|
||||
callback: function(value) {
|
||||
return value + '%';
|
||||
}
|
||||
}
|
||||
},
|
||||
y: {
|
||||
ticks: {
|
||||
font: {
|
||||
size: 10
|
||||
},
|
||||
callback: function(v) {
|
||||
const l = this.getLabelForValue(v);
|
||||
return l.length > 15 ? l.substring(0, 15) + '...' : l;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Verschiebungsvorschläge (unverändert – ABER mit korrekter Syntax!)
|
||||
new Chart(document.getElementById('rescheduleChart'), {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: <?= json_encode(array_column($reschedule_stats, 'username')) ?>,
|
||||
datasets: [{
|
||||
label: 'Vorschläge',
|
||||
data: <?= json_encode(array_column($reschedule_stats, 'reschedule_count')) ?>,
|
||||
backgroundColor: 'rgba(255,159,64,0.8)',
|
||||
borderColor: 'rgb(255,159,64)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
indexAxis: 'y',
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Verschiebungsvorschläge'
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
beginAtZero: true,
|
||||
ticks: {
|
||||
stepSize: 1
|
||||
}
|
||||
},
|
||||
y: {
|
||||
ticks: {
|
||||
font: {
|
||||
size: 10
|
||||
},
|
||||
callback: function(v) {
|
||||
const l = this.getLabelForValue(v);
|
||||
return l.length > 15 ? l.substring(0, 15) + '...' : l;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
2
sw.js
2
sw.js
@@ -1,4 +1,4 @@
|
||||
const CACHE_NAME = 'domili-v' + new Date().getTime();
|
||||
const CACHE_NAME = 'domili-v1' + new Date().getTime();
|
||||
const urlsToCache = [
|
||||
'/',
|
||||
//'/index.php',
|
||||
|
||||
343
users.php
Executable file
343
users.php
Executable file
@@ -0,0 +1,343 @@
|
||||
<?php
|
||||
include('inc/check_login.php');
|
||||
require_once('inc/db.php');
|
||||
|
||||
// 🔹 Hilfsfunktion: DE-Format → DB-Format
|
||||
function deDateToDb($deDate)
|
||||
{
|
||||
if (empty($deDate)) return null;
|
||||
$parts = explode('.', $deDate);
|
||||
if (count($parts) !== 3) return null;
|
||||
$day = str_pad(trim($parts[0]), 2, '0', STR_PAD_LEFT);
|
||||
$month = str_pad(trim($parts[1]), 2, '0', STR_PAD_LEFT);
|
||||
$year = trim($parts[2]);
|
||||
if (strlen($year) === 2) {
|
||||
$year = (int)$year < 50 ? "20$year" : "19$year";
|
||||
}
|
||||
if (strlen($year) !== 4) return null;
|
||||
if (checkdate((int)$month, (int)$day, (int)$year)) {
|
||||
return "$year-$month-$day";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// 🔹 Hilfsfunktion: DB-Format → DE-Format
|
||||
function dbDateToDe($dbDate)
|
||||
{
|
||||
if (empty($dbDate) || $dbDate === '0000-00-00') return '';
|
||||
return date('d.m.Y', strtotime($dbDate));
|
||||
}
|
||||
|
||||
$is_admin = ($_SESSION['role'] === 'admin');
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$edit_mode = false;
|
||||
$edit_user = null;
|
||||
|
||||
// --- Nur Admins: Löschen ---
|
||||
if ($is_admin && isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$id = (int)$_GET['id'];
|
||||
if ($id == $_SESSION['user_id']) {
|
||||
$message = "Sie können Ihren eigenen Account nicht löschen.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
if (mysqli_stmt_execute($stmt)) {
|
||||
$message = "Benutzer erfolgreich gelöscht!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Löschen: " . mysqli_error($conn);
|
||||
$message_type = 'danger';
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
header("Location: users.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
// --- Nur Admins: Bearbeiten ---
|
||||
if ($is_admin && isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id'])) {
|
||||
$id = (int)$_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, username, email, role, birthday FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($stmt, "i", $id);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$result = mysqli_stmt_get_result($stmt);
|
||||
$edit_user = mysqli_fetch_assoc($result);
|
||||
mysqli_stmt_close($stmt);
|
||||
$edit_mode = true;
|
||||
|
||||
if (!$edit_user) {
|
||||
$message = "Benutzer nicht gefunden.";
|
||||
$message_type = 'warning';
|
||||
} else {
|
||||
$edit_user['birthday_de'] = dbDateToDe($edit_user['birthday']);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Nur Admins: Speichern ---
|
||||
if ($is_admin && $_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$username = trim($_POST['username'] ?? '');
|
||||
$password = $_POST['password'] ?? '';
|
||||
$email_raw = trim($_POST['email'] ?? '');
|
||||
$birthday_de = trim($_POST['birthday'] ?? '');
|
||||
$role = ($_POST['role'] ?? 'member') === 'admin' ? 'admin' : 'member';
|
||||
$id = !empty($_POST['id']) ? (int)$_POST['id'] : null;
|
||||
|
||||
$email = !empty($email_raw) ? $email_raw : null;
|
||||
$birthday_db = deDateToDb($birthday_de);
|
||||
|
||||
// --- DEBUG: Zeige, was konvertiert wurde (kannst du später löschen) ---
|
||||
// error_log("DEBUG: birthday_de='$birthday_de' → birthday_db='$birthday_db'");
|
||||
|
||||
if (empty($username)) {
|
||||
$message = "Benutzername ist erforderlich.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
$success = false;
|
||||
$update_fields = [];
|
||||
$params = [];
|
||||
$types = "";
|
||||
|
||||
if ($id) {
|
||||
// 🔹 UPDATE: Nur Felder aktualisieren, die sich geändert haben
|
||||
$current = mysqli_prepare($conn, "SELECT username, email, birthday, role FROM users WHERE id = ?");
|
||||
mysqli_stmt_bind_param($current, "i", $id);
|
||||
mysqli_stmt_execute($current);
|
||||
$curr_data = mysqli_fetch_assoc(mysqli_stmt_get_result($current));
|
||||
mysqli_stmt_close($current);
|
||||
|
||||
if (!$curr_data) {
|
||||
$message = "Benutzer nicht gefunden.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
// Prüfe Änderungen
|
||||
if ($username !== $curr_data['username']) {
|
||||
$update_fields[] = "username = ?";
|
||||
$params[] = $username;
|
||||
$types .= "s";
|
||||
}
|
||||
if ($email !== $curr_data['email']) {
|
||||
$update_fields[] = "email = ?";
|
||||
$params[] = $email;
|
||||
$types .= "s";
|
||||
}
|
||||
if ($birthday_db !== ($curr_data['birthday'] ?: null)) {
|
||||
$update_fields[] = "birthday = ?";
|
||||
$params[] = $birthday_db;
|
||||
$types .= "s";
|
||||
}
|
||||
if ($role !== $curr_data['role']) {
|
||||
$update_fields[] = "role = ?";
|
||||
$params[] = $role;
|
||||
$types .= "s";
|
||||
}
|
||||
|
||||
if (!empty($update_fields)) {
|
||||
// Passwort separat
|
||||
if (!empty($password)) {
|
||||
$password_hashed = password_hash($password, PASSWORD_DEFAULT);
|
||||
$update_fields[] = "password = ?";
|
||||
$params[] = $password_hashed;
|
||||
$types .= "s";
|
||||
}
|
||||
|
||||
$sql = "UPDATE users SET " . implode(", ", $update_fields) . " WHERE id = ?";
|
||||
$stmt = mysqli_prepare($conn, $sql);
|
||||
$params[] = $id;
|
||||
$types .= "i";
|
||||
|
||||
mysqli_stmt_bind_param($stmt, $types, ...$params);
|
||||
$success = mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_close($stmt);
|
||||
} else {
|
||||
$success = true; // nichts zu ändern → Erfolg
|
||||
$message = "Keine Änderungen vorgenommen.";
|
||||
$message_type = 'info';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 🔹 INSERT
|
||||
if (empty($password)) {
|
||||
$message = "Passwort ist beim Erstellen erforderlich.";
|
||||
$message_type = 'danger';
|
||||
} else {
|
||||
$password_hashed = password_hash($password, PASSWORD_DEFAULT);
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO users (username, password, email, birthday, role) VALUES (?, ?, ?, ?, ?)");
|
||||
mysqli_stmt_bind_param($stmt, "sssss", $username, $password_hashed, $email, $birthday_db, $role);
|
||||
$success = mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($message)) {
|
||||
if ($success) {
|
||||
$message = $id ? "Benutzer erfolgreich aktualisiert!" : "Neuer Benutzer hinzugefügt!";
|
||||
$message_type = 'success';
|
||||
} else {
|
||||
$message = "Fehler beim Speichern: " . mysqli_error($conn);
|
||||
$message_type = 'danger';
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: users.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
// --- Mitgliederliste ---
|
||||
$users = [];
|
||||
$result = mysqli_query($conn, "SELECT id, username, role, email, birthday FROM users ORDER BY id ASC");
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$users[] = $row;
|
||||
}
|
||||
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
|
||||
<?php if ($message): ?>
|
||||
<div class="alert alert-<?= htmlspecialchars($message_type) ?> alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($message) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Benutzerübersicht</h2>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin): ?>
|
||||
<div class="collapse <?= $edit_mode ? 'show' : '' ?>" id="userFormCollapse">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0"><?= $edit_mode ? 'Benutzer bearbeiten' : 'Neuen Benutzer hinzufügen'; ?></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="users.php" method="post">
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?= htmlspecialchars($edit_user['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-3">
|
||||
<label class="form-label">Benutzername</label>
|
||||
<input type="text" class="form-control" name="username" value="<?= htmlspecialchars($edit_user['username'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label">E-Mail (optional)</label>
|
||||
<input type="email" class="form-control" name="email" value="<?= htmlspecialchars($edit_user['email'] ?? ''); ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label">Geburtsdatum (optional, TT.MM.JJJJ)</label>
|
||||
<input type="text" class="form-control" name="birthday" placeholder="z. B. 15.08.1990" value="<?= htmlspecialchars($edit_user['birthday_de'] ?? ''); ?>">
|
||||
<div class="form-text">Leer lassen, um kein Geburtsdatum zu speichern.</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label">Passwort</label>
|
||||
<input type="password" class="form-control" name="password" placeholder="<?= $edit_mode ? 'Leer lassen = unverändert' : 'Erforderlich' ?>">
|
||||
<?php if ($edit_mode): ?>
|
||||
<div class="form-text">Leer lassen, um Passwort nicht zu ändern.</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label">Rolle</label>
|
||||
<select class="form-select" name="role">
|
||||
<option value="member" <?= (($edit_user['role'] ?? 'member') === 'member') ? 'selected' : ''; ?>>Mitglied</option>
|
||||
<option value="admin" <?= (($edit_user['role'] ?? 'member') === 'admin') ? 'selected' : ''; ?>>Admin</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start">
|
||||
<button type="submit" class="btn btn-sm btn-outline-<?= $edit_mode ? 'success' : 'primary'; ?> me-2">
|
||||
<?= $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<a href="users.php" class="btn btn-sm btn-outline-secondary">Abbrechen</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0">Mitglieder</h4>
|
||||
<?php if ($is_admin): ?>
|
||||
<a class="btn btn-sm d-flex align-items-center justify-content-center" data-bs-toggle="collapse" href="#userFormCollapse" role="button" aria-expanded="false" aria-controls="userFormCollapse">Add
|
||||
<span class="material-symbols-outlined">add</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>User</th>
|
||||
<th class="text-center" style="width: 56px;">Daten</th>
|
||||
<th>Rolle</th>
|
||||
<?php if ($is_admin): ?>
|
||||
<th class="text-end"></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($users as $user): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($user['id']) ?></td>
|
||||
<td><?= htmlspecialchars($user['username']) ?></td>
|
||||
<td class="text-center align-middle">
|
||||
<div class="d-flex" style="justify-content: center; height: 1.4rem; gap: 0.25rem;">
|
||||
<div class="d-flex align-items-center justify-content-center" style="width: 1.3em;">
|
||||
<?php if (!empty($user['email'])): ?>
|
||||
<span class="material-symbols-outlined text-success" style="font-size:0.8em; line-height:1;" title="E-Mail vorhanden">mail</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="d-flex align-items-center justify-content-center" style="width: 1.3em;">
|
||||
<?php if (!empty($user['birthday']) && $user['birthday'] !== '0000-00-00'): ?>
|
||||
<span class="material-symbols-outlined text-info" style="font-size:0.8em; line-height:1;" title="Geburtstag vorhanden">cake</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge rounded-pill bg-<?= $user['role'] === 'admin' ? 'info' : 'secondary' ?>">
|
||||
<?= htmlspecialchars($user['role']) ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php if ($is_admin): ?>
|
||||
<td class="text-end align-middle">
|
||||
<div class="dropdown">
|
||||
<a href="#" class="text-secondary" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="material-icons">more_vert</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center" href="users.php?action=edit&id=<?= htmlspecialchars($user['id']) ?>">
|
||||
<span class="material-icons me-2">mode_edit_outline</span> Bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
<?php if ($user['id'] != $_SESSION['user_id']): ?>
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center text-danger" href="users.php?action=delete&id=<?= htmlspecialchars($user['id']) ?>" onclick="return confirm('Wirklich löschen?')">
|
||||
<span class="material-icons me-2">delete_outline</span> Löschen
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('inc/footer.php'); ?>
|
||||
86
vacation.php
86
vacation.php
@@ -1,21 +1,17 @@
|
||||
<?php
|
||||
// vacation.php
|
||||
// Korrektur: Die Pfade gehen jetzt direkt in den 'inc' Ordner.
|
||||
include('inc/check_login.php');
|
||||
include('inc/db.php');
|
||||
require_once 'inc/helpers.php';
|
||||
|
||||
$message = '';
|
||||
$message_type = '';
|
||||
$logged_in_user_id = intval($_SESSION['user_id'] ?? 1); // Stellen Sie sicher, dass die User-ID verfügbar ist
|
||||
$logged_in_user_id = (int)($_SESSION['user_id'] ?? 1);
|
||||
|
||||
// Aktion verarbeiten (Hinzufügen oder Löschen)
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if (isset($_POST['action']) && $_POST['action'] == 'add_vacation') {
|
||||
$start_date = $_POST['start_date'];
|
||||
$end_date = $_POST['end_date'];
|
||||
// --- Hinzufügen ---
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['action']) && $_POST['action'] == 'add_vacation') {
|
||||
$start_date = $_POST['start_date'] ?? '';
|
||||
$end_date = $_POST['end_date'] ?? '';
|
||||
|
||||
// Eingabe validieren
|
||||
if (empty($start_date) || empty($end_date)) {
|
||||
$message = "Bitte geben Sie ein Start- und Enddatum an.";
|
||||
$message_type = "danger";
|
||||
@@ -23,7 +19,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$message = "Das Enddatum kann nicht vor dem Startdatum liegen.";
|
||||
$message_type = "danger";
|
||||
} else {
|
||||
// Termin in die Datenbank einfügen
|
||||
$stmt = mysqli_prepare($conn, "INSERT INTO vacations (user_id, start_date, end_date) VALUES (?, ?, ?)");
|
||||
if ($stmt) {
|
||||
mysqli_stmt_bind_param($stmt, "iss", $logged_in_user_id, $start_date, $end_date);
|
||||
@@ -31,19 +26,17 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$message = "Urlaub erfolgreich hinzugefügt.";
|
||||
$message_type = "success";
|
||||
} else {
|
||||
$message = "Fehler beim Hinzufügen des Urlaubs: " . mysqli_error($conn);
|
||||
$message = "Fehler beim Hinzufügen des Urlaubs.";
|
||||
$message_type = "danger";
|
||||
}
|
||||
mysqli_stmt_close($stmt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Löschen-Aktion
|
||||
// --- Löschen ---
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id'])) {
|
||||
$vacation_id = intval($_GET['id']);
|
||||
// Überprüfen, ob die ID zum eingeloggten Benutzer gehört
|
||||
$vacation_id = (int)$_GET['id'];
|
||||
$stmt = mysqli_prepare($conn, "DELETE FROM vacations WHERE id = ? AND user_id = ?");
|
||||
if ($stmt) {
|
||||
mysqli_stmt_bind_param($stmt, "ii", $vacation_id, $logged_in_user_id);
|
||||
@@ -58,7 +51,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id']))
|
||||
}
|
||||
}
|
||||
|
||||
// Alle bestehenden Urlaube des Benutzers abrufen
|
||||
// --- Daten laden ---
|
||||
$vacations = [];
|
||||
$stmt = mysqli_prepare($conn, "SELECT id, start_date, end_date FROM vacations WHERE user_id = ? ORDER BY start_date DESC");
|
||||
if ($stmt) {
|
||||
@@ -75,33 +68,35 @@ require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h2 class="mb-4">Abwesenheitsassistent</h2>
|
||||
|
||||
<?php if ($message): ?>
|
||||
<div class="alert alert-<?= htmlspecialchars($message_type) ?> alert-dismissible fade show" role="alert">
|
||||
<?= htmlspecialchars($message) ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2 class="mb-0">Abwesenheitsassistent</h2>
|
||||
</div>
|
||||
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header bg-light">
|
||||
<h5 class="mb-0">Urlaub eintragen</h5>
|
||||
<div class="card-header bg-primary-subtle text-secondary">
|
||||
<h4 class="mb-0">Urlaub eintragen</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="vacation.php" method="post">
|
||||
<input type="hidden" name="action" value="add_vacation">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-5">
|
||||
<label for="start_date" class="form-label">Startdatum</label>
|
||||
<input type="date" class="form-control" id="start_date" name="start_date" required>
|
||||
<label class="form-label">Startdatum</label>
|
||||
<input type="date" class="form-control" name="start_date" required>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<label for="end_date" class="form-label">Enddatum</label>
|
||||
<input type="date" class="form-control" id="end_date" name="end_date" required>
|
||||
<label class="form-label">Enddatum</label>
|
||||
<input type="date" class="form-control" name="end_date" required>
|
||||
</div>
|
||||
<div class="col-md-2 d-flex align-items-end">
|
||||
<button type="submit" class="btn btn-primary w-100">Hinzufügen</button>
|
||||
<button type="submit" class="btn btn-sm btn-outline-primary w-100">Hinzufügen</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -109,25 +104,46 @@ require_once 'inc/header.php';
|
||||
</div>
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-light">
|
||||
<h5 class="mb-0">Eingetragene Urlaube</h5>
|
||||
<div class="card-header bg-secondary bg-opacity-50 text-secondary">
|
||||
<h4 class="mb-0">Eingetragene Urlaube</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (empty($vacations)): ?>
|
||||
<p class="text-muted text-center">Es sind keine Urlaube eingetragen.</p>
|
||||
<?php else: ?>
|
||||
<ul class="list-group list-group-flush">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Zeitraum</th>
|
||||
<th class="text-end">Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($vacations as $vacation): ?>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span>
|
||||
<tr>
|
||||
<td>
|
||||
Vom <?= date('d.m.Y', strtotime($vacation['start_date'])) ?> bis <?= date('d.m.Y', strtotime($vacation['end_date'])) ?>
|
||||
</span>
|
||||
<a href="vacation.php?action=delete&id=<?= htmlspecialchars($vacation['id']) ?>" class="btn btn-sm btn-danger" onclick="return confirm('Sind Sie sicher, dass Sie diesen Urlaub löschen möchten?');">
|
||||
Löschen
|
||||
</td>
|
||||
<td class="text-end align-middle">
|
||||
<div class="dropdown">
|
||||
<a href="#" class="text-secondary" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="material-icons">more_vert</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<a class="dropdown-item d-flex align-items-center text-danger" href="vacation.php?action=delete&id=<?= htmlspecialchars($vacation['id']) ?>" onclick="return confirm('Wirklich löschen?')">
|
||||
<span class="material-icons me-2">delete_outline</span> Löschen
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
@@ -7,4 +7,5 @@ $baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'Dompdf\\Cpdf' => $vendorDir . '/dompdf/dompdf/lib/Cpdf.php',
|
||||
);
|
||||
|
||||
5
vendor/composer/autoload_psr4.php
vendored
5
vendor/composer/autoload_psr4.php
vendored
@@ -6,5 +6,10 @@ $vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'Svg\\' => array($vendorDir . '/dompdf/php-svg-lib/src/Svg'),
|
||||
'Sabberworm\\CSS\\' => array($vendorDir . '/sabberworm/php-css-parser/src'),
|
||||
'PHPMailer\\PHPMailer\\' => array($vendorDir . '/phpmailer/phpmailer/src'),
|
||||
'Masterminds\\' => array($vendorDir . '/masterminds/html5/src'),
|
||||
'FontLib\\' => array($vendorDir . '/dompdf/php-font-lib/src/FontLib'),
|
||||
'Dompdf\\' => array($vendorDir . '/dompdf/dompdf/src'),
|
||||
);
|
||||
|
||||
38
vendor/composer/autoload_static.php
vendored
38
vendor/composer/autoload_static.php
vendored
@@ -7,21 +7,59 @@ namespace Composer\Autoload;
|
||||
class ComposerStaticInit2185d2f99bcd56787481d9357a5972d3
|
||||
{
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
'S' =>
|
||||
array (
|
||||
'Svg\\' => 4,
|
||||
'Sabberworm\\CSS\\' => 15,
|
||||
),
|
||||
'P' =>
|
||||
array (
|
||||
'PHPMailer\\PHPMailer\\' => 20,
|
||||
),
|
||||
'M' =>
|
||||
array (
|
||||
'Masterminds\\' => 12,
|
||||
),
|
||||
'F' =>
|
||||
array (
|
||||
'FontLib\\' => 8,
|
||||
),
|
||||
'D' =>
|
||||
array (
|
||||
'Dompdf\\' => 7,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'Svg\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/dompdf/php-svg-lib/src/Svg',
|
||||
),
|
||||
'Sabberworm\\CSS\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/sabberworm/php-css-parser/src',
|
||||
),
|
||||
'PHPMailer\\PHPMailer\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/phpmailer/phpmailer/src',
|
||||
),
|
||||
'Masterminds\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/masterminds/html5/src',
|
||||
),
|
||||
'FontLib\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/dompdf/php-font-lib/src/FontLib',
|
||||
),
|
||||
'Dompdf\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/dompdf/dompdf/src',
|
||||
),
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||
'Dompdf\\Cpdf' => __DIR__ . '/..' . '/dompdf/dompdf/lib/Cpdf.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
|
||||
303
vendor/composer/installed.json
vendored
303
vendor/composer/installed.json
vendored
@@ -1,5 +1,239 @@
|
||||
{
|
||||
"packages": [
|
||||
{
|
||||
"name": "dompdf/dompdf",
|
||||
"version": "v3.1.4",
|
||||
"version_normalized": "3.1.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/dompdf.git",
|
||||
"reference": "db712c90c5b9868df3600e64e68da62e78a34623"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/db712c90c5b9868df3600e64e68da62e78a34623",
|
||||
"reference": "db712c90c5b9868df3600e64e68da62e78a34623",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"dompdf/php-font-lib": "^1.0.0",
|
||||
"dompdf/php-svg-lib": "^1.0.0",
|
||||
"ext-dom": "*",
|
||||
"ext-mbstring": "*",
|
||||
"masterminds/html5": "^2.0",
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
"ext-zip": "*",
|
||||
"mockery/mockery": "^1.3",
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"symfony/process": "^4.4 || ^5.4 || ^6.2 || ^7.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd": "Needed to process images",
|
||||
"ext-gmagick": "Improves image processing performance",
|
||||
"ext-imagick": "Improves image processing performance",
|
||||
"ext-zlib": "Needed for pdf stream compression"
|
||||
},
|
||||
"time": "2025-10-29T12:43:30+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Dompdf\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"lib/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The Dompdf Community",
|
||||
"homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter",
|
||||
"homepage": "https://github.com/dompdf/dompdf",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/dompdf/issues",
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v3.1.4"
|
||||
},
|
||||
"install-path": "../dompdf/dompdf"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-font-lib",
|
||||
"version": "1.0.1",
|
||||
"version_normalized": "1.0.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-font-lib.git",
|
||||
"reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d",
|
||||
"reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "^3 || ^4 || ^5 || ^6"
|
||||
},
|
||||
"time": "2024-12-02T14:37:59+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"FontLib\\": "src/FontLib"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The FontLib Community",
|
||||
"homepage": "https://github.com/dompdf/php-font-lib/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "A library to read, parse, export and make subsets of different types of font files.",
|
||||
"homepage": "https://github.com/dompdf/php-font-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-font-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-font-lib/tree/1.0.1"
|
||||
},
|
||||
"install-path": "../dompdf/php-font-lib"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-svg-lib",
|
||||
"version": "1.0.0",
|
||||
"version_normalized": "1.0.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-svg-lib.git",
|
||||
"reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/eb045e518185298eb6ff8d80d0d0c6b17aecd9af",
|
||||
"reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0",
|
||||
"sabberworm/php-css-parser": "^8.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
|
||||
},
|
||||
"time": "2024-04-29T13:26:35+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Svg\\": "src/Svg"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-3.0-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The SvgLib Community",
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "A library to read, parse and export to PDF SVG files.",
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-svg-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-svg-lib/tree/1.0.0"
|
||||
},
|
||||
"install-path": "../dompdf/php-svg-lib"
|
||||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
"version": "2.10.0",
|
||||
"version_normalized": "2.10.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Masterminds/html5-php.git",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
|
||||
},
|
||||
"time": "2025-07-25T09:04:22+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.7-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Masterminds\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matt Butcher",
|
||||
"email": "technosophos@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Matt Farina",
|
||||
"email": "matt@mattfarina.com"
|
||||
},
|
||||
{
|
||||
"name": "Asmir Mustafic",
|
||||
"email": "goetas@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "An HTML5 parser and serializer.",
|
||||
"homepage": "http://masterminds.github.io/html5-php",
|
||||
"keywords": [
|
||||
"HTML5",
|
||||
"dom",
|
||||
"html",
|
||||
"parser",
|
||||
"querypath",
|
||||
"serializer",
|
||||
"xml"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Masterminds/html5-php/issues",
|
||||
"source": "https://github.com/Masterminds/html5-php/tree/2.10.0"
|
||||
},
|
||||
"install-path": "../masterminds/html5"
|
||||
},
|
||||
{
|
||||
"name": "phpmailer/phpmailer",
|
||||
"version": "v6.11.1",
|
||||
@@ -84,6 +318,75 @@
|
||||
}
|
||||
],
|
||||
"install-path": "../phpmailer/phpmailer"
|
||||
},
|
||||
{
|
||||
"name": "sabberworm/php-css-parser",
|
||||
"version": "v8.9.0",
|
||||
"version_normalized": "8.9.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/MyIntervals/PHP-CSS-Parser.git",
|
||||
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9",
|
||||
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-iconv": "*",
|
||||
"php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41",
|
||||
"rawr/cross-data-providers": "^2.0.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "for parsing UTF-8 CSS"
|
||||
},
|
||||
"time": "2025-07-11T13:20:48+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "9.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Sabberworm\\CSS\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Raphael Schweikert"
|
||||
},
|
||||
{
|
||||
"name": "Oliver Klee",
|
||||
"email": "github@oliverklee.de"
|
||||
},
|
||||
{
|
||||
"name": "Jake Hotson",
|
||||
"email": "jake.github@qzdesign.co.uk"
|
||||
}
|
||||
],
|
||||
"description": "Parser for CSS Files written in PHP",
|
||||
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
|
||||
"keywords": [
|
||||
"css",
|
||||
"parser",
|
||||
"stylesheet"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues",
|
||||
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0"
|
||||
},
|
||||
"install-path": "../sabberworm/php-css-parser"
|
||||
}
|
||||
],
|
||||
"dev": true,
|
||||
|
||||
45
vendor/composer/installed.php
vendored
45
vendor/composer/installed.php
vendored
@@ -19,6 +19,42 @@
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'dompdf/dompdf' => array(
|
||||
'pretty_version' => 'v3.1.4',
|
||||
'version' => '3.1.4.0',
|
||||
'reference' => 'db712c90c5b9868df3600e64e68da62e78a34623',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../dompdf/dompdf',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'dompdf/php-font-lib' => array(
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'reference' => '6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../dompdf/php-font-lib',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'dompdf/php-svg-lib' => array(
|
||||
'pretty_version' => '1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'reference' => 'eb045e518185298eb6ff8d80d0d0c6b17aecd9af',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../dompdf/php-svg-lib',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'masterminds/html5' => array(
|
||||
'pretty_version' => '2.10.0',
|
||||
'version' => '2.10.0.0',
|
||||
'reference' => 'fcf91eb64359852f00d921887b219479b4f21251',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../masterminds/html5',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'phpmailer/phpmailer' => array(
|
||||
'pretty_version' => 'v6.11.1',
|
||||
'version' => '6.11.1.0',
|
||||
@@ -28,5 +64,14 @@
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'sabberworm/php-css-parser' => array(
|
||||
'pretty_version' => 'v8.9.0',
|
||||
'version' => '8.9.0.0',
|
||||
'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sabberworm/php-css-parser',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
4
vendor/composer/platform_check.php
vendored
4
vendor/composer/platform_check.php
vendored
@@ -4,8 +4,8 @@
|
||||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 50500)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.5.0". You are running ' . PHP_VERSION . '.';
|
||||
if (!(PHP_VERSION_ID >= 70100)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
|
||||
24
vendor/dompdf/dompdf/AUTHORS.md
vendored
Normal file
24
vendor/dompdf/dompdf/AUTHORS.md
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
Dompdf was designed and developed by Benj Carson.
|
||||
|
||||
### Current Team
|
||||
|
||||
* **Brian Sweeney** (maintainer)
|
||||
* **Till Berger**
|
||||
|
||||
### Alumni
|
||||
|
||||
* **Benj Carson** (creator)
|
||||
* **Fabien Ménager**
|
||||
* **Simon Berger**
|
||||
* **Orion Richardson**
|
||||
|
||||
### Contributors
|
||||
* **Gabriel Bull**
|
||||
* **Barry vd. Heuvel**
|
||||
* **Ryan H. Masten**
|
||||
* **Helmut Tischer**
|
||||
* [and many more...](https://github.com/dompdf/dompdf/graphs/contributors)
|
||||
|
||||
### Thanks
|
||||
|
||||
Dompdf would not have been possible without strong community support.
|
||||
456
vendor/dompdf/dompdf/LICENSE.LGPL
vendored
Normal file
456
vendor/dompdf/dompdf/LICENSE.LGPL
vendored
Normal file
@@ -0,0 +1,456 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
239
vendor/dompdf/dompdf/README.md
vendored
Normal file
239
vendor/dompdf/dompdf/README.md
vendored
Normal file
@@ -0,0 +1,239 @@
|
||||
Dompdf
|
||||
======
|
||||
|
||||
[](https://github.com/dompdf/dompdf/actions/workflows/test.yml)
|
||||
[](https://packagist.org/packages/dompdf/dompdf)
|
||||
[](https://packagist.org/packages/dompdf/dompdf)
|
||||
[](https://packagist.org/packages/dompdf/dompdf)
|
||||
[](https://packagist.org/packages/dompdf/dompdf)
|
||||
|
||||
**Dompdf is an HTML to PDF converter**
|
||||
|
||||
At its heart, dompdf is (mostly) a [CSS 2.1](http://www.w3.org/TR/CSS2/) compliant
|
||||
HTML layout and rendering engine written in PHP. It is a style-driven renderer:
|
||||
it will download and read external stylesheets, inline style tags, and the style
|
||||
attributes of individual HTML elements. It also supports most presentational
|
||||
HTML attributes.
|
||||
|
||||
*This document applies to the latest stable code which may not reflect the current
|
||||
release. For released code please
|
||||
[navigate to the appropriate tag](https://github.com/dompdf/dompdf/tags).*
|
||||
|
||||
----
|
||||
|
||||
**Check out the [demo](http://eclecticgeek.com/dompdf/debug.php) and ask any
|
||||
question on [StackOverflow](https://stackoverflow.com/questions/tagged/dompdf) or
|
||||
in [Discussions](https://github.com/dompdf/dompdf/discussions).**
|
||||
|
||||
Follow us on [](http://www.twitter.com/dompdf).
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
* Handles most CSS 2.1 and a few CSS3 properties, including @import, @media &
|
||||
@page rules
|
||||
* Supports most presentational HTML 4.0 attributes
|
||||
* Supports external stylesheets, either local or through http/ftp (via
|
||||
fopen-wrappers)
|
||||
* Supports complex tables, including row & column spans, separate & collapsed
|
||||
border models, individual cell styling
|
||||
* Image support (gif, png (8, 24 and 32 bit with alpha channel), bmp & jpeg)
|
||||
* No dependencies on external PDF libraries, thanks to the R&OS PDF class
|
||||
* Inline PHP support
|
||||
* Basic SVG support (see "Limitations" below)
|
||||
|
||||
## Requirements
|
||||
|
||||
* PHP version 7.1 or higher
|
||||
* DOM extension
|
||||
* MBString extension
|
||||
* php-font-lib
|
||||
* php-svg-lib
|
||||
|
||||
Note that some required dependencies may have further dependencies
|
||||
(notably php-svg-lib requires sabberworm/php-css-parser).
|
||||
|
||||
### Recommendations
|
||||
|
||||
* GD (for image processing)
|
||||
* Additionally, the IMagick or GMagick extension improves image processing performance for certain image types
|
||||
* OPcache (OPcache, XCache, APC, etc.): improves performance
|
||||
|
||||
Visit the wiki for more information:
|
||||
https://github.com/dompdf/dompdf/wiki/Requirements
|
||||
|
||||
## About Fonts & Character Encoding
|
||||
|
||||
PDF documents internally support the following fonts: Helvetica, Times-Roman,
|
||||
Courier, Zapf-Dingbats, & Symbol. These fonts only support Windows ANSI
|
||||
encoding. In order for a PDF to display characters that are not available in
|
||||
Windows ANSI, you must supply an external font. Dompdf will embed any referenced
|
||||
font in the PDF so long as it has been pre-loaded or is accessible to dompdf and
|
||||
reference in CSS @font-face rules. See the
|
||||
[font overview](https://github.com/dompdf/dompdf/wiki/About-Fonts-and-Character-Encoding)
|
||||
for more information on how to use fonts.
|
||||
|
||||
The [DejaVu TrueType fonts](https://dejavu-fonts.github.io/) have been pre-installed
|
||||
to give dompdf decent Unicode character coverage by default. To use the DejaVu
|
||||
fonts reference the font in your stylesheet, e.g. `body { font-family: DejaVu
|
||||
Sans; }` (for DejaVu Sans). The following DejaVu 2.34 fonts are available:
|
||||
DejaVu Sans, DejaVu Serif, and DejaVu Sans Mono.
|
||||
|
||||
## Easy Installation
|
||||
|
||||
### Install with composer
|
||||
|
||||
To install with [Composer](https://getcomposer.org/), simply require the
|
||||
latest version of this package.
|
||||
|
||||
```bash
|
||||
composer require dompdf/dompdf
|
||||
```
|
||||
|
||||
Make sure that the autoload file from Composer is loaded.
|
||||
|
||||
```php
|
||||
// somewhere early in your project's loading, require the Composer autoloader
|
||||
// see: http://getcomposer.org/doc/00-intro.md
|
||||
require 'vendor/autoload.php';
|
||||
```
|
||||
|
||||
### Download and install
|
||||
|
||||
Download a packaged archive of dompdf and extract it into the
|
||||
directory where dompdf will reside
|
||||
|
||||
* You can download stable copies of dompdf from
|
||||
https://github.com/dompdf/dompdf/releases
|
||||
* Or download a nightly (the latest, unreleased code) from
|
||||
http://eclecticgeek.com/dompdf
|
||||
|
||||
Use the packaged release autoloader to load dompdf, libraries,
|
||||
and helper functions in your PHP:
|
||||
|
||||
```php
|
||||
// include autoloader
|
||||
require_once 'dompdf/autoload.inc.php';
|
||||
```
|
||||
|
||||
Note: packaged releases are named according using semantic
|
||||
versioning (_dompdf_MAJOR-MINOR-PATCH.zip_). So the 1.0.0
|
||||
release would be dompdf_1-0-0.zip. This is the only download
|
||||
that includes the autoloader for Dompdf and all its dependencies.
|
||||
|
||||
### Install with git
|
||||
|
||||
From the command line, switch to the directory where dompdf will
|
||||
reside and run the following commands:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/dompdf/dompdf.git
|
||||
cd dompdf/lib
|
||||
|
||||
git clone https://github.com/PhenX/php-font-lib.git php-font-lib
|
||||
cd php-font-lib
|
||||
git checkout 0.5.1
|
||||
cd ..
|
||||
|
||||
git clone https://github.com/PhenX/php-svg-lib.git php-svg-lib
|
||||
cd php-svg-lib
|
||||
git checkout v0.3.2
|
||||
cd ..
|
||||
|
||||
git clone https://github.com/sabberworm/PHP-CSS-Parser.git php-css-parser
|
||||
cd php-css-parser
|
||||
git checkout 8.1.0
|
||||
```
|
||||
|
||||
Require dompdf and it's dependencies in your PHP.
|
||||
For details see the [autoloader in the utils project](https://github.com/dompdf/utils/blob/master/autoload.inc.php).
|
||||
|
||||
## Framework Integration
|
||||
|
||||
* For Symfony: [nucleos/dompdf-bundle](https://github.com/nucleos/NucleosDompdfBundle)
|
||||
* For Laravel: [barryvdh/laravel-dompdf](https://github.com/barryvdh/laravel-dompdf)
|
||||
* For Redaxo: [PdfOut](https://github.com/FriendsOfREDAXO/pdfout)
|
||||
|
||||
## Quick Start
|
||||
|
||||
Just pass your HTML in to dompdf and stream the output:
|
||||
|
||||
```php
|
||||
// reference the Dompdf namespace
|
||||
use Dompdf\Dompdf;
|
||||
|
||||
// instantiate and use the dompdf class
|
||||
$dompdf = new Dompdf();
|
||||
$dompdf->loadHtml('hello world');
|
||||
|
||||
// (Optional) Setup the paper size and orientation
|
||||
$dompdf->setPaper('A4', 'landscape');
|
||||
|
||||
// Render the HTML as PDF
|
||||
$dompdf->render();
|
||||
|
||||
// Output the generated PDF to Browser
|
||||
$dompdf->stream();
|
||||
```
|
||||
|
||||
### Setting Options
|
||||
|
||||
Set options during dompdf instantiation:
|
||||
|
||||
```php
|
||||
use Dompdf\Dompdf;
|
||||
use Dompdf\Options;
|
||||
|
||||
$options = new Options();
|
||||
$options->set('defaultFont', 'Courier');
|
||||
$dompdf = new Dompdf($options);
|
||||
```
|
||||
|
||||
or at run time
|
||||
|
||||
```php
|
||||
use Dompdf\Dompdf;
|
||||
|
||||
$dompdf = new Dompdf();
|
||||
$options = $dompdf->getOptions();
|
||||
$options->setDefaultFont('Courier');
|
||||
$dompdf->setOptions($options);
|
||||
```
|
||||
|
||||
See [Dompdf\Options](src/Options.php) for a list of available options.
|
||||
|
||||
### Resource Reference Requirements
|
||||
|
||||
In order to protect potentially sensitive information Dompdf imposes
|
||||
restrictions on files referenced from the local file system or the web.
|
||||
|
||||
Files accessed through web-based protocols have the following requirements:
|
||||
* The Dompdf option "isRemoteEnabled" must be set to "true"
|
||||
* PHP must either have the curl extension enabled or the
|
||||
allow_url_fopen setting set to true
|
||||
|
||||
Files accessed through the local file system have the following requirement:
|
||||
* The file must fall within the path(s) specified for the Dompdf "chroot" option
|
||||
|
||||
## Limitations (Known Issues)
|
||||
|
||||
* Table cells are not pageable, meaning a table row must fit on a single page: See https://github.com/dompdf/dompdf/issues/98
|
||||
* Elements are rendered on the active page when they are parsed.
|
||||
* Embedding "raw" SVG's (`<svg><path...></svg>`) isn't working yet: See https://github.com/dompdf/dompdf/issues/320
|
||||
Workaround: Either link to an external SVG file, or use a DataURI like this:
|
||||
```php
|
||||
$html = '<img src="data:image/svg+xml;base64,' . base64_encode($svg) . '">';
|
||||
```
|
||||
* Does not support CSS flexbox: See https://github.com/dompdf/dompdf/issues/971
|
||||
* Does not support CSS Grid: See https://github.com/dompdf/dompdf/issues/2988
|
||||
* A single Dompdf instance should not be used to render more than one HTML document
|
||||
because persisted parsing and rendering artifacts can impact future renders.
|
||||
---
|
||||
|
||||
[](http://goo.gl/DSvWf)
|
||||
|
||||
*If you find this project useful, please consider making a donation.
|
||||
Any funds donated will be used to help further development on this project.)*
|
||||
1
vendor/dompdf/dompdf/VERSION
vendored
Normal file
1
vendor/dompdf/dompdf/VERSION
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.1.4
|
||||
49
vendor/dompdf/dompdf/composer.json
vendored
Normal file
49
vendor/dompdf/dompdf/composer.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "dompdf/dompdf",
|
||||
"type": "library",
|
||||
"description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter",
|
||||
"homepage": "https://github.com/dompdf/dompdf",
|
||||
"license": "LGPL-2.1",
|
||||
"authors": [
|
||||
{
|
||||
"name": "The Dompdf Community",
|
||||
"homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Dompdf\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"lib/"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Dompdf\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"ext-dom": "*",
|
||||
"ext-mbstring": "*",
|
||||
"masterminds/html5": "^2.0",
|
||||
"dompdf/php-font-lib": "^1.0.0",
|
||||
"dompdf/php-svg-lib": "^1.0.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
"ext-zip": "*",
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"mockery/mockery": "^1.3",
|
||||
"symfony/process": "^4.4 || ^5.4 || ^6.2 || ^7.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd": "Needed to process images",
|
||||
"ext-imagick": "Improves image processing performance",
|
||||
"ext-gmagick": "Improves image processing performance",
|
||||
"ext-zlib": "Needed for pdf stream compression"
|
||||
}
|
||||
}
|
||||
6904
vendor/dompdf/dompdf/lib/Cpdf.php
vendored
Normal file
6904
vendor/dompdf/dompdf/lib/Cpdf.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
344
vendor/dompdf/dompdf/lib/fonts/Courier-Bold.afm
vendored
Normal file
344
vendor/dompdf/dompdf/lib/fonts/Courier-Bold.afm
vendored
Normal file
@@ -0,0 +1,344 @@
|
||||
StartFontMetrics 4.1
|
||||
Comment Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
Comment Creation Date: Mon Jun 23 16:28:00 0:00:00
|
||||
Comment UniqueID 43048
|
||||
Comment VMusage 41139 52164
|
||||
FontName Courier-Bold
|
||||
FullName Courier Bold
|
||||
FamilyName Courier
|
||||
Weight Bold
|
||||
ItalicAngle 0
|
||||
IsFixedPitch true
|
||||
CharacterSet ExtendedRoman
|
||||
FontBBox -113 -250 749 801
|
||||
UnderlinePosition -100
|
||||
UnderlineThickness 50
|
||||
Version 003.000
|
||||
Notice Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
EncodingScheme WinAnsiEncoding
|
||||
CapHeight 562
|
||||
XHeight 439
|
||||
Ascender 629
|
||||
Descender -157
|
||||
StdHW 84
|
||||
StdVW 106
|
||||
StartCharMetrics 317
|
||||
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 160 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 33 ; WX 600 ; N exclam ; B 202 -15 398 572 ;
|
||||
C 34 ; WX 600 ; N quotedbl ; B 135 277 465 562 ;
|
||||
C 35 ; WX 600 ; N numbersign ; B 56 -45 544 651 ;
|
||||
C 36 ; WX 600 ; N dollar ; B 82 -126 519 666 ;
|
||||
C 37 ; WX 600 ; N percent ; B 5 -15 595 616 ;
|
||||
C 38 ; WX 600 ; N ampersand ; B 36 -15 546 543 ;
|
||||
C 146 ; WX 600 ; N quoteright ; B 171 277 423 562 ;
|
||||
C 40 ; WX 600 ; N parenleft ; B 219 -102 461 616 ;
|
||||
C 41 ; WX 600 ; N parenright ; B 139 -102 381 616 ;
|
||||
C 42 ; WX 600 ; N asterisk ; B 91 219 509 601 ;
|
||||
C 43 ; WX 600 ; N plus ; B 71 39 529 478 ;
|
||||
C 44 ; WX 600 ; N comma ; B 123 -111 393 174 ;
|
||||
C 45 ; WX 600 ; N hyphen ; B 100 203 500 313 ;
|
||||
C 173 ; WX 600 ; N hyphen ; B 100 203 500 313 ;
|
||||
C 46 ; WX 600 ; N period ; B 192 -15 408 171 ;
|
||||
C 47 ; WX 600 ; N slash ; B 98 -77 502 626 ;
|
||||
C 48 ; WX 600 ; N zero ; B 87 -15 513 616 ;
|
||||
C 49 ; WX 600 ; N one ; B 81 0 539 616 ;
|
||||
C 50 ; WX 600 ; N two ; B 61 0 499 616 ;
|
||||
C 51 ; WX 600 ; N three ; B 63 -15 501 616 ;
|
||||
C 52 ; WX 600 ; N four ; B 53 0 507 616 ;
|
||||
C 53 ; WX 600 ; N five ; B 70 -15 521 601 ;
|
||||
C 54 ; WX 600 ; N six ; B 90 -15 521 616 ;
|
||||
C 55 ; WX 600 ; N seven ; B 55 0 494 601 ;
|
||||
C 56 ; WX 600 ; N eight ; B 83 -15 517 616 ;
|
||||
C 57 ; WX 600 ; N nine ; B 79 -15 510 616 ;
|
||||
C 58 ; WX 600 ; N colon ; B 191 -15 407 425 ;
|
||||
C 59 ; WX 600 ; N semicolon ; B 123 -111 408 425 ;
|
||||
C 60 ; WX 600 ; N less ; B 66 15 523 501 ;
|
||||
C 61 ; WX 600 ; N equal ; B 71 118 529 398 ;
|
||||
C 62 ; WX 600 ; N greater ; B 77 15 534 501 ;
|
||||
C 63 ; WX 600 ; N question ; B 98 -14 501 580 ;
|
||||
C 64 ; WX 600 ; N at ; B 16 -15 584 616 ;
|
||||
C 65 ; WX 600 ; N A ; B -9 0 609 562 ;
|
||||
C 66 ; WX 600 ; N B ; B 30 0 573 562 ;
|
||||
C 67 ; WX 600 ; N C ; B 22 -18 560 580 ;
|
||||
C 68 ; WX 600 ; N D ; B 30 0 594 562 ;
|
||||
C 69 ; WX 600 ; N E ; B 25 0 560 562 ;
|
||||
C 70 ; WX 600 ; N F ; B 39 0 570 562 ;
|
||||
C 71 ; WX 600 ; N G ; B 22 -18 594 580 ;
|
||||
C 72 ; WX 600 ; N H ; B 20 0 580 562 ;
|
||||
C 73 ; WX 600 ; N I ; B 77 0 523 562 ;
|
||||
C 74 ; WX 600 ; N J ; B 37 -18 601 562 ;
|
||||
C 75 ; WX 600 ; N K ; B 21 0 599 562 ;
|
||||
C 76 ; WX 600 ; N L ; B 39 0 578 562 ;
|
||||
C 77 ; WX 600 ; N M ; B -2 0 602 562 ;
|
||||
C 78 ; WX 600 ; N N ; B 8 -12 610 562 ;
|
||||
C 79 ; WX 600 ; N O ; B 22 -18 578 580 ;
|
||||
C 80 ; WX 600 ; N P ; B 48 0 559 562 ;
|
||||
C 81 ; WX 600 ; N Q ; B 32 -138 578 580 ;
|
||||
C 82 ; WX 600 ; N R ; B 24 0 599 562 ;
|
||||
C 83 ; WX 600 ; N S ; B 47 -22 553 582 ;
|
||||
C 84 ; WX 600 ; N T ; B 21 0 579 562 ;
|
||||
C 85 ; WX 600 ; N U ; B 4 -18 596 562 ;
|
||||
C 86 ; WX 600 ; N V ; B -13 0 613 562 ;
|
||||
C 87 ; WX 600 ; N W ; B -18 0 618 562 ;
|
||||
C 88 ; WX 600 ; N X ; B 12 0 588 562 ;
|
||||
C 89 ; WX 600 ; N Y ; B 12 0 589 562 ;
|
||||
C 90 ; WX 600 ; N Z ; B 62 0 539 562 ;
|
||||
C 91 ; WX 600 ; N bracketleft ; B 245 -102 475 616 ;
|
||||
C 92 ; WX 600 ; N backslash ; B 99 -77 503 626 ;
|
||||
C 93 ; WX 600 ; N bracketright ; B 125 -102 355 616 ;
|
||||
C 94 ; WX 600 ; N asciicircum ; B 108 250 492 616 ;
|
||||
C 95 ; WX 600 ; N underscore ; B 0 -125 600 -75 ;
|
||||
C 145 ; WX 600 ; N quoteleft ; B 178 277 428 562 ;
|
||||
C 97 ; WX 600 ; N a ; B 35 -15 570 454 ;
|
||||
C 98 ; WX 600 ; N b ; B 0 -15 584 626 ;
|
||||
C 99 ; WX 600 ; N c ; B 40 -15 545 459 ;
|
||||
C 100 ; WX 600 ; N d ; B 20 -15 591 626 ;
|
||||
C 101 ; WX 600 ; N e ; B 40 -15 563 454 ;
|
||||
C 102 ; WX 600 ; N f ; B 83 0 547 626 ; L i fi ; L l fl ;
|
||||
C 103 ; WX 600 ; N g ; B 30 -146 580 454 ;
|
||||
C 104 ; WX 600 ; N h ; B 5 0 592 626 ;
|
||||
C 105 ; WX 600 ; N i ; B 77 0 523 658 ;
|
||||
C 106 ; WX 600 ; N j ; B 63 -146 440 658 ;
|
||||
C 107 ; WX 600 ; N k ; B 20 0 585 626 ;
|
||||
C 108 ; WX 600 ; N l ; B 77 0 523 626 ;
|
||||
C 109 ; WX 600 ; N m ; B -22 0 626 454 ;
|
||||
C 110 ; WX 600 ; N n ; B 18 0 592 454 ;
|
||||
C 111 ; WX 600 ; N o ; B 30 -15 570 454 ;
|
||||
C 112 ; WX 600 ; N p ; B -1 -142 570 454 ;
|
||||
C 113 ; WX 600 ; N q ; B 20 -142 591 454 ;
|
||||
C 114 ; WX 600 ; N r ; B 47 0 580 454 ;
|
||||
C 115 ; WX 600 ; N s ; B 68 -17 535 459 ;
|
||||
C 116 ; WX 600 ; N t ; B 47 -15 532 562 ;
|
||||
C 117 ; WX 600 ; N u ; B -1 -15 569 439 ;
|
||||
C 118 ; WX 600 ; N v ; B -1 0 601 439 ;
|
||||
C 119 ; WX 600 ; N w ; B -18 0 618 439 ;
|
||||
C 120 ; WX 600 ; N x ; B 6 0 594 439 ;
|
||||
C 121 ; WX 600 ; N y ; B -4 -142 601 439 ;
|
||||
C 122 ; WX 600 ; N z ; B 81 0 520 439 ;
|
||||
C 123 ; WX 600 ; N braceleft ; B 160 -102 464 616 ;
|
||||
C 124 ; WX 600 ; N bar ; B 255 -250 345 750 ;
|
||||
C 125 ; WX 600 ; N braceright ; B 136 -102 440 616 ;
|
||||
C 126 ; WX 600 ; N asciitilde ; B 71 153 530 356 ;
|
||||
C 161 ; WX 600 ; N exclamdown ; B 202 -146 398 449 ;
|
||||
C 162 ; WX 600 ; N cent ; B 66 -49 518 614 ;
|
||||
C 163 ; WX 600 ; N sterling ; B 72 -28 558 611 ;
|
||||
C -1 ; WX 600 ; N fraction ; B 25 -60 576 661 ;
|
||||
C 165 ; WX 600 ; N yen ; B 10 0 590 562 ;
|
||||
C 131 ; WX 600 ; N florin ; B -30 -131 572 616 ;
|
||||
C 167 ; WX 600 ; N section ; B 83 -70 517 580 ;
|
||||
C 164 ; WX 600 ; N currency ; B 54 49 546 517 ;
|
||||
C 39 ; WX 600 ; N quotesingle ; B 227 277 373 562 ;
|
||||
C 147 ; WX 600 ; N quotedblleft ; B 71 277 535 562 ;
|
||||
C 171 ; WX 600 ; N guillemotleft ; B 8 70 553 446 ;
|
||||
C 139 ; WX 600 ; N guilsinglleft ; B 141 70 459 446 ;
|
||||
C 155 ; WX 600 ; N guilsinglright ; B 141 70 459 446 ;
|
||||
C -1 ; WX 600 ; N fi ; B 12 0 593 626 ;
|
||||
C -1 ; WX 600 ; N fl ; B 12 0 593 626 ;
|
||||
C 150 ; WX 600 ; N endash ; B 65 203 535 313 ;
|
||||
C 134 ; WX 600 ; N dagger ; B 106 -70 494 580 ;
|
||||
C 135 ; WX 600 ; N daggerdbl ; B 106 -70 494 580 ;
|
||||
C 183 ; WX 600 ; N periodcentered ; B 196 165 404 351 ;
|
||||
C 182 ; WX 600 ; N paragraph ; B 6 -70 576 580 ;
|
||||
C 149 ; WX 600 ; N bullet ; B 140 132 460 430 ;
|
||||
C 130 ; WX 600 ; N quotesinglbase ; B 175 -142 427 143 ;
|
||||
C 132 ; WX 600 ; N quotedblbase ; B 65 -142 529 143 ;
|
||||
C 148 ; WX 600 ; N quotedblright ; B 61 277 525 562 ;
|
||||
C 187 ; WX 600 ; N guillemotright ; B 47 70 592 446 ;
|
||||
C 133 ; WX 600 ; N ellipsis ; B 26 -15 574 116 ;
|
||||
C 137 ; WX 600 ; N perthousand ; B -113 -15 713 616 ;
|
||||
C 191 ; WX 600 ; N questiondown ; B 99 -146 502 449 ;
|
||||
C 96 ; WX 600 ; N grave ; B 132 508 395 661 ;
|
||||
C 180 ; WX 600 ; N acute ; B 205 508 468 661 ;
|
||||
C 136 ; WX 600 ; N circumflex ; B 103 483 497 657 ;
|
||||
C 152 ; WX 600 ; N tilde ; B 89 493 512 636 ;
|
||||
C 175 ; WX 600 ; N macron ; B 88 505 512 585 ;
|
||||
C -1 ; WX 600 ; N breve ; B 83 468 517 631 ;
|
||||
C -1 ; WX 600 ; N dotaccent ; B 230 498 370 638 ;
|
||||
C 168 ; WX 600 ; N dieresis ; B 128 498 472 638 ;
|
||||
C -1 ; WX 600 ; N ring ; B 198 481 402 678 ;
|
||||
C 184 ; WX 600 ; N cedilla ; B 205 -206 387 0 ;
|
||||
C -1 ; WX 600 ; N hungarumlaut ; B 68 488 588 661 ;
|
||||
C -1 ; WX 600 ; N ogonek ; B 169 -199 400 0 ;
|
||||
C -1 ; WX 600 ; N caron ; B 103 493 497 667 ;
|
||||
C 151 ; WX 600 ; N emdash ; B -10 203 610 313 ;
|
||||
C 198 ; WX 600 ; N AE ; B -29 0 602 562 ;
|
||||
C 170 ; WX 600 ; N ordfeminine ; B 147 196 453 580 ;
|
||||
C -1 ; WX 600 ; N Lslash ; B 39 0 578 562 ;
|
||||
C 216 ; WX 600 ; N Oslash ; B 22 -22 578 584 ;
|
||||
C 140 ; WX 600 ; N OE ; B -25 0 595 562 ;
|
||||
C 186 ; WX 600 ; N ordmasculine ; B 147 196 453 580 ;
|
||||
C 230 ; WX 600 ; N ae ; B -4 -15 601 454 ;
|
||||
C -1 ; WX 600 ; N dotlessi ; B 77 0 523 439 ;
|
||||
C -1 ; WX 600 ; N lslash ; B 77 0 523 626 ;
|
||||
C 248 ; WX 600 ; N oslash ; B 30 -24 570 463 ;
|
||||
C 156 ; WX 600 ; N oe ; B -18 -15 611 454 ;
|
||||
C 223 ; WX 600 ; N germandbls ; B 22 -15 596 626 ;
|
||||
C 207 ; WX 600 ; N Idieresis ; B 77 0 523 761 ;
|
||||
C 233 ; WX 600 ; N eacute ; B 40 -15 563 661 ;
|
||||
C -1 ; WX 600 ; N abreve ; B 35 -15 570 661 ;
|
||||
C -1 ; WX 600 ; N uhungarumlaut ; B -1 -15 628 661 ;
|
||||
C -1 ; WX 600 ; N ecaron ; B 40 -15 563 667 ;
|
||||
C 159 ; WX 600 ; N Ydieresis ; B 12 0 589 761 ;
|
||||
C 247 ; WX 600 ; N divide ; B 71 16 529 500 ;
|
||||
C 221 ; WX 600 ; N Yacute ; B 12 0 589 784 ;
|
||||
C 194 ; WX 600 ; N Acircumflex ; B -9 0 609 780 ;
|
||||
C 225 ; WX 600 ; N aacute ; B 35 -15 570 661 ;
|
||||
C 219 ; WX 600 ; N Ucircumflex ; B 4 -18 596 780 ;
|
||||
C 253 ; WX 600 ; N yacute ; B -4 -142 601 661 ;
|
||||
C -1 ; WX 600 ; N scommaaccent ; B 68 -250 535 459 ;
|
||||
C 234 ; WX 600 ; N ecircumflex ; B 40 -15 563 657 ;
|
||||
C -1 ; WX 600 ; N Uring ; B 4 -18 596 801 ;
|
||||
C 220 ; WX 600 ; N Udieresis ; B 4 -18 596 761 ;
|
||||
C -1 ; WX 600 ; N aogonek ; B 35 -199 586 454 ;
|
||||
C 218 ; WX 600 ; N Uacute ; B 4 -18 596 784 ;
|
||||
C -1 ; WX 600 ; N uogonek ; B -1 -199 585 439 ;
|
||||
C 203 ; WX 600 ; N Edieresis ; B 25 0 560 761 ;
|
||||
C -1 ; WX 600 ; N Dcroat ; B 30 0 594 562 ;
|
||||
C -1 ; WX 600 ; N commaaccent ; B 205 -250 397 -57 ;
|
||||
C 169 ; WX 600 ; N copyright ; B 0 -18 600 580 ;
|
||||
C -1 ; WX 600 ; N Emacron ; B 25 0 560 708 ;
|
||||
C -1 ; WX 600 ; N ccaron ; B 40 -15 545 667 ;
|
||||
C 229 ; WX 600 ; N aring ; B 35 -15 570 678 ;
|
||||
C -1 ; WX 600 ; N Ncommaaccent ; B 8 -250 610 562 ;
|
||||
C -1 ; WX 600 ; N lacute ; B 77 0 523 801 ;
|
||||
C 224 ; WX 600 ; N agrave ; B 35 -15 570 661 ;
|
||||
C -1 ; WX 600 ; N Tcommaaccent ; B 21 -250 579 562 ;
|
||||
C -1 ; WX 600 ; N Cacute ; B 22 -18 560 784 ;
|
||||
C 227 ; WX 600 ; N atilde ; B 35 -15 570 636 ;
|
||||
C -1 ; WX 600 ; N Edotaccent ; B 25 0 560 761 ;
|
||||
C 154 ; WX 600 ; N scaron ; B 68 -17 535 667 ;
|
||||
C -1 ; WX 600 ; N scedilla ; B 68 -206 535 459 ;
|
||||
C 237 ; WX 600 ; N iacute ; B 77 0 523 661 ;
|
||||
C -1 ; WX 600 ; N lozenge ; B 66 0 534 740 ;
|
||||
C -1 ; WX 600 ; N Rcaron ; B 24 0 599 790 ;
|
||||
C -1 ; WX 600 ; N Gcommaaccent ; B 22 -250 594 580 ;
|
||||
C 251 ; WX 600 ; N ucircumflex ; B -1 -15 569 657 ;
|
||||
C 226 ; WX 600 ; N acircumflex ; B 35 -15 570 657 ;
|
||||
C -1 ; WX 600 ; N Amacron ; B -9 0 609 708 ;
|
||||
C -1 ; WX 600 ; N rcaron ; B 47 0 580 667 ;
|
||||
C 231 ; WX 600 ; N ccedilla ; B 40 -206 545 459 ;
|
||||
C -1 ; WX 600 ; N Zdotaccent ; B 62 0 539 761 ;
|
||||
C 222 ; WX 600 ; N Thorn ; B 48 0 557 562 ;
|
||||
C -1 ; WX 600 ; N Omacron ; B 22 -18 578 708 ;
|
||||
C -1 ; WX 600 ; N Racute ; B 24 0 599 784 ;
|
||||
C -1 ; WX 600 ; N Sacute ; B 47 -22 553 784 ;
|
||||
C -1 ; WX 600 ; N dcaron ; B 20 -15 727 626 ;
|
||||
C -1 ; WX 600 ; N Umacron ; B 4 -18 596 708 ;
|
||||
C -1 ; WX 600 ; N uring ; B -1 -15 569 678 ;
|
||||
C 179 ; WX 600 ; N threesuperior ; B 138 222 433 616 ;
|
||||
C 210 ; WX 600 ; N Ograve ; B 22 -18 578 784 ;
|
||||
C 192 ; WX 600 ; N Agrave ; B -9 0 609 784 ;
|
||||
C -1 ; WX 600 ; N Abreve ; B -9 0 609 784 ;
|
||||
C 215 ; WX 600 ; N multiply ; B 81 39 520 478 ;
|
||||
C 250 ; WX 600 ; N uacute ; B -1 -15 569 661 ;
|
||||
C -1 ; WX 600 ; N Tcaron ; B 21 0 579 790 ;
|
||||
C -1 ; WX 600 ; N partialdiff ; B 63 -38 537 728 ;
|
||||
C 255 ; WX 600 ; N ydieresis ; B -4 -142 601 638 ;
|
||||
C -1 ; WX 600 ; N Nacute ; B 8 -12 610 784 ;
|
||||
C 238 ; WX 600 ; N icircumflex ; B 73 0 523 657 ;
|
||||
C 202 ; WX 600 ; N Ecircumflex ; B 25 0 560 780 ;
|
||||
C 228 ; WX 600 ; N adieresis ; B 35 -15 570 638 ;
|
||||
C 235 ; WX 600 ; N edieresis ; B 40 -15 563 638 ;
|
||||
C -1 ; WX 600 ; N cacute ; B 40 -15 545 661 ;
|
||||
C -1 ; WX 600 ; N nacute ; B 18 0 592 661 ;
|
||||
C -1 ; WX 600 ; N umacron ; B -1 -15 569 585 ;
|
||||
C -1 ; WX 600 ; N Ncaron ; B 8 -12 610 790 ;
|
||||
C 205 ; WX 600 ; N Iacute ; B 77 0 523 784 ;
|
||||
C 177 ; WX 600 ; N plusminus ; B 71 24 529 515 ;
|
||||
C 166 ; WX 600 ; N brokenbar ; B 255 -175 345 675 ;
|
||||
C 174 ; WX 600 ; N registered ; B 0 -18 600 580 ;
|
||||
C -1 ; WX 600 ; N Gbreve ; B 22 -18 594 784 ;
|
||||
C -1 ; WX 600 ; N Idotaccent ; B 77 0 523 761 ;
|
||||
C -1 ; WX 600 ; N summation ; B 15 -10 586 706 ;
|
||||
C 200 ; WX 600 ; N Egrave ; B 25 0 560 784 ;
|
||||
C -1 ; WX 600 ; N racute ; B 47 0 580 661 ;
|
||||
C -1 ; WX 600 ; N omacron ; B 30 -15 570 585 ;
|
||||
C -1 ; WX 600 ; N Zacute ; B 62 0 539 784 ;
|
||||
C 142 ; WX 600 ; N Zcaron ; B 62 0 539 790 ;
|
||||
C -1 ; WX 600 ; N greaterequal ; B 26 0 523 696 ;
|
||||
C 208 ; WX 600 ; N Eth ; B 30 0 594 562 ;
|
||||
C 199 ; WX 600 ; N Ccedilla ; B 22 -206 560 580 ;
|
||||
C -1 ; WX 600 ; N lcommaaccent ; B 77 -250 523 626 ;
|
||||
C -1 ; WX 600 ; N tcaron ; B 47 -15 532 703 ;
|
||||
C -1 ; WX 600 ; N eogonek ; B 40 -199 563 454 ;
|
||||
C -1 ; WX 600 ; N Uogonek ; B 4 -199 596 562 ;
|
||||
C 193 ; WX 600 ; N Aacute ; B -9 0 609 784 ;
|
||||
C 196 ; WX 600 ; N Adieresis ; B -9 0 609 761 ;
|
||||
C 232 ; WX 600 ; N egrave ; B 40 -15 563 661 ;
|
||||
C -1 ; WX 600 ; N zacute ; B 81 0 520 661 ;
|
||||
C -1 ; WX 600 ; N iogonek ; B 77 -199 523 658 ;
|
||||
C 211 ; WX 600 ; N Oacute ; B 22 -18 578 784 ;
|
||||
C 243 ; WX 600 ; N oacute ; B 30 -15 570 661 ;
|
||||
C -1 ; WX 600 ; N amacron ; B 35 -15 570 585 ;
|
||||
C -1 ; WX 600 ; N sacute ; B 68 -17 535 661 ;
|
||||
C 239 ; WX 600 ; N idieresis ; B 77 0 523 618 ;
|
||||
C 212 ; WX 600 ; N Ocircumflex ; B 22 -18 578 780 ;
|
||||
C 217 ; WX 600 ; N Ugrave ; B 4 -18 596 784 ;
|
||||
C -1 ; WX 600 ; N Delta ; B 6 0 594 688 ;
|
||||
C 254 ; WX 600 ; N thorn ; B -14 -142 570 626 ;
|
||||
C 178 ; WX 600 ; N twosuperior ; B 143 230 436 616 ;
|
||||
C 214 ; WX 600 ; N Odieresis ; B 22 -18 578 761 ;
|
||||
C 181 ; WX 600 ; N mu ; B -1 -142 569 439 ;
|
||||
C 236 ; WX 600 ; N igrave ; B 77 0 523 661 ;
|
||||
C -1 ; WX 600 ; N ohungarumlaut ; B 30 -15 668 661 ;
|
||||
C -1 ; WX 600 ; N Eogonek ; B 25 -199 576 562 ;
|
||||
C -1 ; WX 600 ; N dcroat ; B 20 -15 591 626 ;
|
||||
C 190 ; WX 600 ; N threequarters ; B -47 -60 648 661 ;
|
||||
C -1 ; WX 600 ; N Scedilla ; B 47 -206 553 582 ;
|
||||
C -1 ; WX 600 ; N lcaron ; B 77 0 597 626 ;
|
||||
C -1 ; WX 600 ; N Kcommaaccent ; B 21 -250 599 562 ;
|
||||
C -1 ; WX 600 ; N Lacute ; B 39 0 578 784 ;
|
||||
C 153 ; WX 600 ; N trademark ; B -9 230 749 562 ;
|
||||
C -1 ; WX 600 ; N edotaccent ; B 40 -15 563 638 ;
|
||||
C 204 ; WX 600 ; N Igrave ; B 77 0 523 784 ;
|
||||
C -1 ; WX 600 ; N Imacron ; B 77 0 523 708 ;
|
||||
C -1 ; WX 600 ; N Lcaron ; B 39 0 637 562 ;
|
||||
C 189 ; WX 600 ; N onehalf ; B -47 -60 648 661 ;
|
||||
C -1 ; WX 600 ; N lessequal ; B 26 0 523 696 ;
|
||||
C 244 ; WX 600 ; N ocircumflex ; B 30 -15 570 657 ;
|
||||
C 241 ; WX 600 ; N ntilde ; B 18 0 592 636 ;
|
||||
C -1 ; WX 600 ; N Uhungarumlaut ; B 4 -18 638 784 ;
|
||||
C 201 ; WX 600 ; N Eacute ; B 25 0 560 784 ;
|
||||
C -1 ; WX 600 ; N emacron ; B 40 -15 563 585 ;
|
||||
C -1 ; WX 600 ; N gbreve ; B 30 -146 580 661 ;
|
||||
C 188 ; WX 600 ; N onequarter ; B -56 -60 656 661 ;
|
||||
C 138 ; WX 600 ; N Scaron ; B 47 -22 553 790 ;
|
||||
C -1 ; WX 600 ; N Scommaaccent ; B 47 -250 553 582 ;
|
||||
C -1 ; WX 600 ; N Ohungarumlaut ; B 22 -18 628 784 ;
|
||||
C 176 ; WX 600 ; N degree ; B 86 243 474 616 ;
|
||||
C 242 ; WX 600 ; N ograve ; B 30 -15 570 661 ;
|
||||
C -1 ; WX 600 ; N Ccaron ; B 22 -18 560 790 ;
|
||||
C 249 ; WX 600 ; N ugrave ; B -1 -15 569 661 ;
|
||||
C -1 ; WX 600 ; N radical ; B -19 -104 473 778 ;
|
||||
C -1 ; WX 600 ; N Dcaron ; B 30 0 594 790 ;
|
||||
C -1 ; WX 600 ; N rcommaaccent ; B 47 -250 580 454 ;
|
||||
C 209 ; WX 600 ; N Ntilde ; B 8 -12 610 759 ;
|
||||
C 245 ; WX 600 ; N otilde ; B 30 -15 570 636 ;
|
||||
C -1 ; WX 600 ; N Rcommaaccent ; B 24 -250 599 562 ;
|
||||
C -1 ; WX 600 ; N Lcommaaccent ; B 39 -250 578 562 ;
|
||||
C 195 ; WX 600 ; N Atilde ; B -9 0 609 759 ;
|
||||
C -1 ; WX 600 ; N Aogonek ; B -9 -199 625 562 ;
|
||||
C 197 ; WX 600 ; N Aring ; B -9 0 609 801 ;
|
||||
C 213 ; WX 600 ; N Otilde ; B 22 -18 578 759 ;
|
||||
C -1 ; WX 600 ; N zdotaccent ; B 81 0 520 638 ;
|
||||
C -1 ; WX 600 ; N Ecaron ; B 25 0 560 790 ;
|
||||
C -1 ; WX 600 ; N Iogonek ; B 77 -199 523 562 ;
|
||||
C -1 ; WX 600 ; N kcommaaccent ; B 20 -250 585 626 ;
|
||||
C -1 ; WX 600 ; N minus ; B 71 203 529 313 ;
|
||||
C 206 ; WX 600 ; N Icircumflex ; B 77 0 523 780 ;
|
||||
C -1 ; WX 600 ; N ncaron ; B 18 0 592 667 ;
|
||||
C -1 ; WX 600 ; N tcommaaccent ; B 47 -250 532 562 ;
|
||||
C 172 ; WX 600 ; N logicalnot ; B 71 103 529 413 ;
|
||||
C 246 ; WX 600 ; N odieresis ; B 30 -15 570 638 ;
|
||||
C 252 ; WX 600 ; N udieresis ; B -1 -15 569 638 ;
|
||||
C -1 ; WX 600 ; N notequal ; B 12 -47 537 563 ;
|
||||
C -1 ; WX 600 ; N gcommaaccent ; B 30 -146 580 714 ;
|
||||
C 240 ; WX 600 ; N eth ; B 58 -27 543 626 ;
|
||||
C 158 ; WX 600 ; N zcaron ; B 81 0 520 667 ;
|
||||
C -1 ; WX 600 ; N ncommaaccent ; B 18 -250 592 454 ;
|
||||
C 185 ; WX 600 ; N onesuperior ; B 153 230 447 616 ;
|
||||
C -1 ; WX 600 ; N imacron ; B 77 0 523 585 ;
|
||||
C 128 ; WX 600 ; N Euro ; B 0 0 0 0 ;
|
||||
EndCharMetrics
|
||||
EndFontMetrics
|
||||
344
vendor/dompdf/dompdf/lib/fonts/Courier-BoldOblique.afm
vendored
Normal file
344
vendor/dompdf/dompdf/lib/fonts/Courier-BoldOblique.afm
vendored
Normal file
@@ -0,0 +1,344 @@
|
||||
StartFontMetrics 4.1
|
||||
Comment Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
Comment Creation Date: Mon Jun 23 16:28:46 0:00:00
|
||||
Comment UniqueID 43049
|
||||
Comment VMusage 17529 79244
|
||||
FontName Courier-BoldOblique
|
||||
FullName Courier Bold Oblique
|
||||
FamilyName Courier
|
||||
Weight Bold
|
||||
ItalicAngle -12
|
||||
IsFixedPitch true
|
||||
CharacterSet ExtendedRoman
|
||||
FontBBox -57 -250 869 801
|
||||
UnderlinePosition -100
|
||||
UnderlineThickness 50
|
||||
Version 3
|
||||
Notice Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
EncodingScheme WinAnsiEncoding
|
||||
CapHeight 562
|
||||
XHeight 439
|
||||
Ascender 629
|
||||
Descender -157
|
||||
StdHW 84
|
||||
StdVW 106
|
||||
StartCharMetrics 317
|
||||
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 160 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 33 ; WX 600 ; N exclam ; B 215 -15 495 572 ;
|
||||
C 34 ; WX 600 ; N quotedbl ; B 211 277 585 562 ;
|
||||
C 35 ; WX 600 ; N numbersign ; B 88 -45 641 651 ;
|
||||
C 36 ; WX 600 ; N dollar ; B 87 -126 630 666 ;
|
||||
C 37 ; WX 600 ; N percent ; B 101 -15 625 616 ;
|
||||
C 38 ; WX 600 ; N ampersand ; B 61 -15 595 543 ;
|
||||
C 146 ; WX 600 ; N quoteright ; B 229 277 543 562 ;
|
||||
C 40 ; WX 600 ; N parenleft ; B 265 -102 592 616 ;
|
||||
C 41 ; WX 600 ; N parenright ; B 117 -102 444 616 ;
|
||||
C 42 ; WX 600 ; N asterisk ; B 179 219 598 601 ;
|
||||
C 43 ; WX 600 ; N plus ; B 114 39 596 478 ;
|
||||
C 44 ; WX 600 ; N comma ; B 99 -111 430 174 ;
|
||||
C 45 ; WX 600 ; N hyphen ; B 143 203 567 313 ;
|
||||
C 173 ; WX 600 ; N hyphen ; B 143 203 567 313 ;
|
||||
C 46 ; WX 600 ; N period ; B 206 -15 427 171 ;
|
||||
C 47 ; WX 600 ; N slash ; B 90 -77 626 626 ;
|
||||
C 48 ; WX 600 ; N zero ; B 135 -15 593 616 ;
|
||||
C 49 ; WX 600 ; N one ; B 93 0 562 616 ;
|
||||
C 50 ; WX 600 ; N two ; B 61 0 594 616 ;
|
||||
C 51 ; WX 600 ; N three ; B 71 -15 571 616 ;
|
||||
C 52 ; WX 600 ; N four ; B 81 0 559 616 ;
|
||||
C 53 ; WX 600 ; N five ; B 77 -15 621 601 ;
|
||||
C 54 ; WX 600 ; N six ; B 135 -15 652 616 ;
|
||||
C 55 ; WX 600 ; N seven ; B 147 0 622 601 ;
|
||||
C 56 ; WX 600 ; N eight ; B 115 -15 604 616 ;
|
||||
C 57 ; WX 600 ; N nine ; B 75 -15 592 616 ;
|
||||
C 58 ; WX 600 ; N colon ; B 205 -15 480 425 ;
|
||||
C 59 ; WX 600 ; N semicolon ; B 99 -111 481 425 ;
|
||||
C 60 ; WX 600 ; N less ; B 120 15 613 501 ;
|
||||
C 61 ; WX 600 ; N equal ; B 96 118 614 398 ;
|
||||
C 62 ; WX 600 ; N greater ; B 97 15 589 501 ;
|
||||
C 63 ; WX 600 ; N question ; B 183 -14 592 580 ;
|
||||
C 64 ; WX 600 ; N at ; B 65 -15 642 616 ;
|
||||
C 65 ; WX 600 ; N A ; B -9 0 632 562 ;
|
||||
C 66 ; WX 600 ; N B ; B 30 0 630 562 ;
|
||||
C 67 ; WX 600 ; N C ; B 74 -18 675 580 ;
|
||||
C 68 ; WX 600 ; N D ; B 30 0 664 562 ;
|
||||
C 69 ; WX 600 ; N E ; B 25 0 670 562 ;
|
||||
C 70 ; WX 600 ; N F ; B 39 0 684 562 ;
|
||||
C 71 ; WX 600 ; N G ; B 74 -18 675 580 ;
|
||||
C 72 ; WX 600 ; N H ; B 20 0 700 562 ;
|
||||
C 73 ; WX 600 ; N I ; B 77 0 643 562 ;
|
||||
C 74 ; WX 600 ; N J ; B 58 -18 721 562 ;
|
||||
C 75 ; WX 600 ; N K ; B 21 0 692 562 ;
|
||||
C 76 ; WX 600 ; N L ; B 39 0 636 562 ;
|
||||
C 77 ; WX 600 ; N M ; B -2 0 722 562 ;
|
||||
C 78 ; WX 600 ; N N ; B 8 -12 730 562 ;
|
||||
C 79 ; WX 600 ; N O ; B 74 -18 645 580 ;
|
||||
C 80 ; WX 600 ; N P ; B 48 0 643 562 ;
|
||||
C 81 ; WX 600 ; N Q ; B 83 -138 636 580 ;
|
||||
C 82 ; WX 600 ; N R ; B 24 0 617 562 ;
|
||||
C 83 ; WX 600 ; N S ; B 54 -22 673 582 ;
|
||||
C 84 ; WX 600 ; N T ; B 86 0 679 562 ;
|
||||
C 85 ; WX 600 ; N U ; B 101 -18 716 562 ;
|
||||
C 86 ; WX 600 ; N V ; B 84 0 733 562 ;
|
||||
C 87 ; WX 600 ; N W ; B 79 0 738 562 ;
|
||||
C 88 ; WX 600 ; N X ; B 12 0 690 562 ;
|
||||
C 89 ; WX 600 ; N Y ; B 109 0 709 562 ;
|
||||
C 90 ; WX 600 ; N Z ; B 62 0 637 562 ;
|
||||
C 91 ; WX 600 ; N bracketleft ; B 223 -102 606 616 ;
|
||||
C 92 ; WX 600 ; N backslash ; B 222 -77 496 626 ;
|
||||
C 93 ; WX 600 ; N bracketright ; B 103 -102 486 616 ;
|
||||
C 94 ; WX 600 ; N asciicircum ; B 171 250 556 616 ;
|
||||
C 95 ; WX 600 ; N underscore ; B -27 -125 585 -75 ;
|
||||
C 145 ; WX 600 ; N quoteleft ; B 297 277 487 562 ;
|
||||
C 97 ; WX 600 ; N a ; B 61 -15 593 454 ;
|
||||
C 98 ; WX 600 ; N b ; B 13 -15 636 626 ;
|
||||
C 99 ; WX 600 ; N c ; B 81 -15 631 459 ;
|
||||
C 100 ; WX 600 ; N d ; B 60 -15 645 626 ;
|
||||
C 101 ; WX 600 ; N e ; B 81 -15 605 454 ;
|
||||
C 102 ; WX 600 ; N f ; B 83 0 677 626 ; L i fi ; L l fl ;
|
||||
C 103 ; WX 600 ; N g ; B 40 -146 674 454 ;
|
||||
C 104 ; WX 600 ; N h ; B 18 0 615 626 ;
|
||||
C 105 ; WX 600 ; N i ; B 77 0 546 658 ;
|
||||
C 106 ; WX 600 ; N j ; B 36 -146 580 658 ;
|
||||
C 107 ; WX 600 ; N k ; B 33 0 643 626 ;
|
||||
C 108 ; WX 600 ; N l ; B 77 0 546 626 ;
|
||||
C 109 ; WX 600 ; N m ; B -22 0 649 454 ;
|
||||
C 110 ; WX 600 ; N n ; B 18 0 615 454 ;
|
||||
C 111 ; WX 600 ; N o ; B 71 -15 622 454 ;
|
||||
C 112 ; WX 600 ; N p ; B -32 -142 622 454 ;
|
||||
C 113 ; WX 600 ; N q ; B 60 -142 685 454 ;
|
||||
C 114 ; WX 600 ; N r ; B 47 0 655 454 ;
|
||||
C 115 ; WX 600 ; N s ; B 66 -17 608 459 ;
|
||||
C 116 ; WX 600 ; N t ; B 118 -15 567 562 ;
|
||||
C 117 ; WX 600 ; N u ; B 70 -15 592 439 ;
|
||||
C 118 ; WX 600 ; N v ; B 70 0 695 439 ;
|
||||
C 119 ; WX 600 ; N w ; B 53 0 712 439 ;
|
||||
C 120 ; WX 600 ; N x ; B 6 0 671 439 ;
|
||||
C 121 ; WX 600 ; N y ; B -21 -142 695 439 ;
|
||||
C 122 ; WX 600 ; N z ; B 81 0 614 439 ;
|
||||
C 123 ; WX 600 ; N braceleft ; B 203 -102 595 616 ;
|
||||
C 124 ; WX 600 ; N bar ; B 201 -250 505 750 ;
|
||||
C 125 ; WX 600 ; N braceright ; B 114 -102 506 616 ;
|
||||
C 126 ; WX 600 ; N asciitilde ; B 120 153 590 356 ;
|
||||
C 161 ; WX 600 ; N exclamdown ; B 196 -146 477 449 ;
|
||||
C 162 ; WX 600 ; N cent ; B 121 -49 605 614 ;
|
||||
C 163 ; WX 600 ; N sterling ; B 106 -28 650 611 ;
|
||||
C -1 ; WX 600 ; N fraction ; B 22 -60 708 661 ;
|
||||
C 165 ; WX 600 ; N yen ; B 98 0 710 562 ;
|
||||
C 131 ; WX 600 ; N florin ; B -57 -131 702 616 ;
|
||||
C 167 ; WX 600 ; N section ; B 74 -70 620 580 ;
|
||||
C 164 ; WX 600 ; N currency ; B 77 49 644 517 ;
|
||||
C 39 ; WX 600 ; N quotesingle ; B 303 277 493 562 ;
|
||||
C 147 ; WX 600 ; N quotedblleft ; B 190 277 594 562 ;
|
||||
C 171 ; WX 600 ; N guillemotleft ; B 62 70 639 446 ;
|
||||
C 139 ; WX 600 ; N guilsinglleft ; B 195 70 545 446 ;
|
||||
C 155 ; WX 600 ; N guilsinglright ; B 165 70 514 446 ;
|
||||
C -1 ; WX 600 ; N fi ; B 12 0 644 626 ;
|
||||
C -1 ; WX 600 ; N fl ; B 12 0 644 626 ;
|
||||
C 150 ; WX 600 ; N endash ; B 108 203 602 313 ;
|
||||
C 134 ; WX 600 ; N dagger ; B 175 -70 586 580 ;
|
||||
C 135 ; WX 600 ; N daggerdbl ; B 121 -70 587 580 ;
|
||||
C 183 ; WX 600 ; N periodcentered ; B 248 165 461 351 ;
|
||||
C 182 ; WX 600 ; N paragraph ; B 61 -70 700 580 ;
|
||||
C 149 ; WX 600 ; N bullet ; B 196 132 523 430 ;
|
||||
C 130 ; WX 600 ; N quotesinglbase ; B 144 -142 458 143 ;
|
||||
C 132 ; WX 600 ; N quotedblbase ; B 34 -142 560 143 ;
|
||||
C 148 ; WX 600 ; N quotedblright ; B 119 277 645 562 ;
|
||||
C 187 ; WX 600 ; N guillemotright ; B 71 70 647 446 ;
|
||||
C 133 ; WX 600 ; N ellipsis ; B 35 -15 587 116 ;
|
||||
C 137 ; WX 600 ; N perthousand ; B -45 -15 743 616 ;
|
||||
C 191 ; WX 600 ; N questiondown ; B 100 -146 509 449 ;
|
||||
C 96 ; WX 600 ; N grave ; B 272 508 503 661 ;
|
||||
C 180 ; WX 600 ; N acute ; B 312 508 609 661 ;
|
||||
C 136 ; WX 600 ; N circumflex ; B 212 483 607 657 ;
|
||||
C 152 ; WX 600 ; N tilde ; B 199 493 643 636 ;
|
||||
C 175 ; WX 600 ; N macron ; B 195 505 637 585 ;
|
||||
C -1 ; WX 600 ; N breve ; B 217 468 652 631 ;
|
||||
C -1 ; WX 600 ; N dotaccent ; B 348 498 493 638 ;
|
||||
C 168 ; WX 600 ; N dieresis ; B 246 498 595 638 ;
|
||||
C -1 ; WX 600 ; N ring ; B 319 481 528 678 ;
|
||||
C 184 ; WX 600 ; N cedilla ; B 168 -206 368 0 ;
|
||||
C -1 ; WX 600 ; N hungarumlaut ; B 171 488 729 661 ;
|
||||
C -1 ; WX 600 ; N ogonek ; B 143 -199 367 0 ;
|
||||
C -1 ; WX 600 ; N caron ; B 238 493 633 667 ;
|
||||
C 151 ; WX 600 ; N emdash ; B 33 203 677 313 ;
|
||||
C 198 ; WX 600 ; N AE ; B -29 0 708 562 ;
|
||||
C 170 ; WX 600 ; N ordfeminine ; B 188 196 526 580 ;
|
||||
C -1 ; WX 600 ; N Lslash ; B 39 0 636 562 ;
|
||||
C 216 ; WX 600 ; N Oslash ; B 48 -22 673 584 ;
|
||||
C 140 ; WX 600 ; N OE ; B 26 0 701 562 ;
|
||||
C 186 ; WX 600 ; N ordmasculine ; B 188 196 543 580 ;
|
||||
C 230 ; WX 600 ; N ae ; B 21 -15 652 454 ;
|
||||
C -1 ; WX 600 ; N dotlessi ; B 77 0 546 439 ;
|
||||
C -1 ; WX 600 ; N lslash ; B 77 0 587 626 ;
|
||||
C 248 ; WX 600 ; N oslash ; B 54 -24 638 463 ;
|
||||
C 156 ; WX 600 ; N oe ; B 18 -15 662 454 ;
|
||||
C 223 ; WX 600 ; N germandbls ; B 22 -15 629 626 ;
|
||||
C 207 ; WX 600 ; N Idieresis ; B 77 0 643 761 ;
|
||||
C 233 ; WX 600 ; N eacute ; B 81 -15 609 661 ;
|
||||
C -1 ; WX 600 ; N abreve ; B 61 -15 658 661 ;
|
||||
C -1 ; WX 600 ; N uhungarumlaut ; B 70 -15 769 661 ;
|
||||
C -1 ; WX 600 ; N ecaron ; B 81 -15 633 667 ;
|
||||
C 159 ; WX 600 ; N Ydieresis ; B 109 0 709 761 ;
|
||||
C 247 ; WX 600 ; N divide ; B 114 16 596 500 ;
|
||||
C 221 ; WX 600 ; N Yacute ; B 109 0 709 784 ;
|
||||
C 194 ; WX 600 ; N Acircumflex ; B -9 0 632 780 ;
|
||||
C 225 ; WX 600 ; N aacute ; B 61 -15 609 661 ;
|
||||
C 219 ; WX 600 ; N Ucircumflex ; B 101 -18 716 780 ;
|
||||
C 253 ; WX 600 ; N yacute ; B -21 -142 695 661 ;
|
||||
C -1 ; WX 600 ; N scommaaccent ; B 66 -250 608 459 ;
|
||||
C 234 ; WX 600 ; N ecircumflex ; B 81 -15 607 657 ;
|
||||
C -1 ; WX 600 ; N Uring ; B 101 -18 716 801 ;
|
||||
C 220 ; WX 600 ; N Udieresis ; B 101 -18 716 761 ;
|
||||
C -1 ; WX 600 ; N aogonek ; B 61 -199 593 454 ;
|
||||
C 218 ; WX 600 ; N Uacute ; B 101 -18 716 784 ;
|
||||
C -1 ; WX 600 ; N uogonek ; B 70 -199 592 439 ;
|
||||
C 203 ; WX 600 ; N Edieresis ; B 25 0 670 761 ;
|
||||
C -1 ; WX 600 ; N Dcroat ; B 30 0 664 562 ;
|
||||
C -1 ; WX 600 ; N commaaccent ; B 151 -250 385 -57 ;
|
||||
C 169 ; WX 600 ; N copyright ; B 53 -18 667 580 ;
|
||||
C -1 ; WX 600 ; N Emacron ; B 25 0 670 708 ;
|
||||
C -1 ; WX 600 ; N ccaron ; B 81 -15 633 667 ;
|
||||
C 229 ; WX 600 ; N aring ; B 61 -15 593 678 ;
|
||||
C -1 ; WX 600 ; N Ncommaaccent ; B 8 -250 730 562 ;
|
||||
C -1 ; WX 600 ; N lacute ; B 77 0 639 801 ;
|
||||
C 224 ; WX 600 ; N agrave ; B 61 -15 593 661 ;
|
||||
C -1 ; WX 600 ; N Tcommaaccent ; B 86 -250 679 562 ;
|
||||
C -1 ; WX 600 ; N Cacute ; B 74 -18 675 784 ;
|
||||
C 227 ; WX 600 ; N atilde ; B 61 -15 643 636 ;
|
||||
C -1 ; WX 600 ; N Edotaccent ; B 25 0 670 761 ;
|
||||
C 154 ; WX 600 ; N scaron ; B 66 -17 633 667 ;
|
||||
C -1 ; WX 600 ; N scedilla ; B 66 -206 608 459 ;
|
||||
C 237 ; WX 600 ; N iacute ; B 77 0 609 661 ;
|
||||
C -1 ; WX 600 ; N lozenge ; B 145 0 614 740 ;
|
||||
C -1 ; WX 600 ; N Rcaron ; B 24 0 659 790 ;
|
||||
C -1 ; WX 600 ; N Gcommaaccent ; B 74 -250 675 580 ;
|
||||
C 251 ; WX 600 ; N ucircumflex ; B 70 -15 597 657 ;
|
||||
C 226 ; WX 600 ; N acircumflex ; B 61 -15 607 657 ;
|
||||
C -1 ; WX 600 ; N Amacron ; B -9 0 633 708 ;
|
||||
C -1 ; WX 600 ; N rcaron ; B 47 0 655 667 ;
|
||||
C 231 ; WX 600 ; N ccedilla ; B 81 -206 631 459 ;
|
||||
C -1 ; WX 600 ; N Zdotaccent ; B 62 0 637 761 ;
|
||||
C 222 ; WX 600 ; N Thorn ; B 48 0 620 562 ;
|
||||
C -1 ; WX 600 ; N Omacron ; B 74 -18 663 708 ;
|
||||
C -1 ; WX 600 ; N Racute ; B 24 0 665 784 ;
|
||||
C -1 ; WX 600 ; N Sacute ; B 54 -22 673 784 ;
|
||||
C -1 ; WX 600 ; N dcaron ; B 60 -15 861 626 ;
|
||||
C -1 ; WX 600 ; N Umacron ; B 101 -18 716 708 ;
|
||||
C -1 ; WX 600 ; N uring ; B 70 -15 592 678 ;
|
||||
C 179 ; WX 600 ; N threesuperior ; B 193 222 526 616 ;
|
||||
C 210 ; WX 600 ; N Ograve ; B 74 -18 645 784 ;
|
||||
C 192 ; WX 600 ; N Agrave ; B -9 0 632 784 ;
|
||||
C -1 ; WX 600 ; N Abreve ; B -9 0 684 784 ;
|
||||
C 215 ; WX 600 ; N multiply ; B 104 39 606 478 ;
|
||||
C 250 ; WX 600 ; N uacute ; B 70 -15 599 661 ;
|
||||
C -1 ; WX 600 ; N Tcaron ; B 86 0 679 790 ;
|
||||
C -1 ; WX 600 ; N partialdiff ; B 91 -38 627 728 ;
|
||||
C 255 ; WX 600 ; N ydieresis ; B -21 -142 695 638 ;
|
||||
C -1 ; WX 600 ; N Nacute ; B 8 -12 730 784 ;
|
||||
C 238 ; WX 600 ; N icircumflex ; B 77 0 577 657 ;
|
||||
C 202 ; WX 600 ; N Ecircumflex ; B 25 0 670 780 ;
|
||||
C 228 ; WX 600 ; N adieresis ; B 61 -15 595 638 ;
|
||||
C 235 ; WX 600 ; N edieresis ; B 81 -15 605 638 ;
|
||||
C -1 ; WX 600 ; N cacute ; B 81 -15 649 661 ;
|
||||
C -1 ; WX 600 ; N nacute ; B 18 0 639 661 ;
|
||||
C -1 ; WX 600 ; N umacron ; B 70 -15 637 585 ;
|
||||
C -1 ; WX 600 ; N Ncaron ; B 8 -12 730 790 ;
|
||||
C 205 ; WX 600 ; N Iacute ; B 77 0 643 784 ;
|
||||
C 177 ; WX 600 ; N plusminus ; B 76 24 614 515 ;
|
||||
C 166 ; WX 600 ; N brokenbar ; B 217 -175 489 675 ;
|
||||
C 174 ; WX 600 ; N registered ; B 53 -18 667 580 ;
|
||||
C -1 ; WX 600 ; N Gbreve ; B 74 -18 684 784 ;
|
||||
C -1 ; WX 600 ; N Idotaccent ; B 77 0 643 761 ;
|
||||
C -1 ; WX 600 ; N summation ; B 15 -10 672 706 ;
|
||||
C 200 ; WX 600 ; N Egrave ; B 25 0 670 784 ;
|
||||
C -1 ; WX 600 ; N racute ; B 47 0 655 661 ;
|
||||
C -1 ; WX 600 ; N omacron ; B 71 -15 637 585 ;
|
||||
C -1 ; WX 600 ; N Zacute ; B 62 0 665 784 ;
|
||||
C 142 ; WX 600 ; N Zcaron ; B 62 0 659 790 ;
|
||||
C -1 ; WX 600 ; N greaterequal ; B 26 0 627 696 ;
|
||||
C 208 ; WX 600 ; N Eth ; B 30 0 664 562 ;
|
||||
C 199 ; WX 600 ; N Ccedilla ; B 74 -206 675 580 ;
|
||||
C -1 ; WX 600 ; N lcommaaccent ; B 77 -250 546 626 ;
|
||||
C -1 ; WX 600 ; N tcaron ; B 118 -15 627 703 ;
|
||||
C -1 ; WX 600 ; N eogonek ; B 81 -199 605 454 ;
|
||||
C -1 ; WX 600 ; N Uogonek ; B 101 -199 716 562 ;
|
||||
C 193 ; WX 600 ; N Aacute ; B -9 0 655 784 ;
|
||||
C 196 ; WX 600 ; N Adieresis ; B -9 0 632 761 ;
|
||||
C 232 ; WX 600 ; N egrave ; B 81 -15 605 661 ;
|
||||
C -1 ; WX 600 ; N zacute ; B 81 0 614 661 ;
|
||||
C -1 ; WX 600 ; N iogonek ; B 77 -199 546 658 ;
|
||||
C 211 ; WX 600 ; N Oacute ; B 74 -18 645 784 ;
|
||||
C 243 ; WX 600 ; N oacute ; B 71 -15 649 661 ;
|
||||
C -1 ; WX 600 ; N amacron ; B 61 -15 637 585 ;
|
||||
C -1 ; WX 600 ; N sacute ; B 66 -17 609 661 ;
|
||||
C 239 ; WX 600 ; N idieresis ; B 77 0 561 618 ;
|
||||
C 212 ; WX 600 ; N Ocircumflex ; B 74 -18 645 780 ;
|
||||
C 217 ; WX 600 ; N Ugrave ; B 101 -18 716 784 ;
|
||||
C -1 ; WX 600 ; N Delta ; B 6 0 594 688 ;
|
||||
C 254 ; WX 600 ; N thorn ; B -32 -142 622 626 ;
|
||||
C 178 ; WX 600 ; N twosuperior ; B 191 230 542 616 ;
|
||||
C 214 ; WX 600 ; N Odieresis ; B 74 -18 645 761 ;
|
||||
C 181 ; WX 600 ; N mu ; B 49 -142 592 439 ;
|
||||
C 236 ; WX 600 ; N igrave ; B 77 0 546 661 ;
|
||||
C -1 ; WX 600 ; N ohungarumlaut ; B 71 -15 809 661 ;
|
||||
C -1 ; WX 600 ; N Eogonek ; B 25 -199 670 562 ;
|
||||
C -1 ; WX 600 ; N dcroat ; B 60 -15 712 626 ;
|
||||
C 190 ; WX 600 ; N threequarters ; B 8 -60 699 661 ;
|
||||
C -1 ; WX 600 ; N Scedilla ; B 54 -206 673 582 ;
|
||||
C -1 ; WX 600 ; N lcaron ; B 77 0 731 626 ;
|
||||
C -1 ; WX 600 ; N Kcommaaccent ; B 21 -250 692 562 ;
|
||||
C -1 ; WX 600 ; N Lacute ; B 39 0 636 784 ;
|
||||
C 153 ; WX 600 ; N trademark ; B 86 230 869 562 ;
|
||||
C -1 ; WX 600 ; N edotaccent ; B 81 -15 605 638 ;
|
||||
C 204 ; WX 600 ; N Igrave ; B 77 0 643 784 ;
|
||||
C -1 ; WX 600 ; N Imacron ; B 77 0 663 708 ;
|
||||
C -1 ; WX 600 ; N Lcaron ; B 39 0 757 562 ;
|
||||
C 189 ; WX 600 ; N onehalf ; B 22 -60 716 661 ;
|
||||
C -1 ; WX 600 ; N lessequal ; B 26 0 671 696 ;
|
||||
C 244 ; WX 600 ; N ocircumflex ; B 71 -15 622 657 ;
|
||||
C 241 ; WX 600 ; N ntilde ; B 18 0 643 636 ;
|
||||
C -1 ; WX 600 ; N Uhungarumlaut ; B 101 -18 805 784 ;
|
||||
C 201 ; WX 600 ; N Eacute ; B 25 0 670 784 ;
|
||||
C -1 ; WX 600 ; N emacron ; B 81 -15 637 585 ;
|
||||
C -1 ; WX 600 ; N gbreve ; B 40 -146 674 661 ;
|
||||
C 188 ; WX 600 ; N onequarter ; B 13 -60 707 661 ;
|
||||
C 138 ; WX 600 ; N Scaron ; B 54 -22 689 790 ;
|
||||
C -1 ; WX 600 ; N Scommaaccent ; B 54 -250 673 582 ;
|
||||
C -1 ; WX 600 ; N Ohungarumlaut ; B 74 -18 795 784 ;
|
||||
C 176 ; WX 600 ; N degree ; B 173 243 570 616 ;
|
||||
C 242 ; WX 600 ; N ograve ; B 71 -15 622 661 ;
|
||||
C -1 ; WX 600 ; N Ccaron ; B 74 -18 689 790 ;
|
||||
C 249 ; WX 600 ; N ugrave ; B 70 -15 592 661 ;
|
||||
C -1 ; WX 600 ; N radical ; B 67 -104 635 778 ;
|
||||
C -1 ; WX 600 ; N Dcaron ; B 30 0 664 790 ;
|
||||
C -1 ; WX 600 ; N rcommaaccent ; B 47 -250 655 454 ;
|
||||
C 209 ; WX 600 ; N Ntilde ; B 8 -12 730 759 ;
|
||||
C 245 ; WX 600 ; N otilde ; B 71 -15 643 636 ;
|
||||
C -1 ; WX 600 ; N Rcommaaccent ; B 24 -250 617 562 ;
|
||||
C -1 ; WX 600 ; N Lcommaaccent ; B 39 -250 636 562 ;
|
||||
C 195 ; WX 600 ; N Atilde ; B -9 0 669 759 ;
|
||||
C -1 ; WX 600 ; N Aogonek ; B -9 -199 632 562 ;
|
||||
C 197 ; WX 600 ; N Aring ; B -9 0 632 801 ;
|
||||
C 213 ; WX 600 ; N Otilde ; B 74 -18 669 759 ;
|
||||
C -1 ; WX 600 ; N zdotaccent ; B 81 0 614 638 ;
|
||||
C -1 ; WX 600 ; N Ecaron ; B 25 0 670 790 ;
|
||||
C -1 ; WX 600 ; N Iogonek ; B 77 -199 643 562 ;
|
||||
C -1 ; WX 600 ; N kcommaaccent ; B 33 -250 643 626 ;
|
||||
C -1 ; WX 600 ; N minus ; B 114 203 596 313 ;
|
||||
C 206 ; WX 600 ; N Icircumflex ; B 77 0 643 780 ;
|
||||
C -1 ; WX 600 ; N ncaron ; B 18 0 633 667 ;
|
||||
C -1 ; WX 600 ; N tcommaaccent ; B 118 -250 567 562 ;
|
||||
C 172 ; WX 600 ; N logicalnot ; B 135 103 617 413 ;
|
||||
C 246 ; WX 600 ; N odieresis ; B 71 -15 622 638 ;
|
||||
C 252 ; WX 600 ; N udieresis ; B 70 -15 595 638 ;
|
||||
C -1 ; WX 600 ; N notequal ; B 30 -47 626 563 ;
|
||||
C -1 ; WX 600 ; N gcommaaccent ; B 40 -146 674 714 ;
|
||||
C 240 ; WX 600 ; N eth ; B 93 -27 661 626 ;
|
||||
C 158 ; WX 600 ; N zcaron ; B 81 0 643 667 ;
|
||||
C -1 ; WX 600 ; N ncommaaccent ; B 18 -250 615 454 ;
|
||||
C 185 ; WX 600 ; N onesuperior ; B 212 230 514 616 ;
|
||||
C -1 ; WX 600 ; N imacron ; B 77 0 575 585 ;
|
||||
C 128 ; WX 600 ; N Euro ; B 0 0 0 0 ;
|
||||
EndCharMetrics
|
||||
EndFontMetrics
|
||||
344
vendor/dompdf/dompdf/lib/fonts/Courier-Oblique.afm
vendored
Normal file
344
vendor/dompdf/dompdf/lib/fonts/Courier-Oblique.afm
vendored
Normal file
@@ -0,0 +1,344 @@
|
||||
StartFontMetrics 4.1
|
||||
Comment Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
Comment Creation Date: Thu May 0:00:00 17:37:52 1997
|
||||
Comment UniqueID 43051
|
||||
Comment VMusage 16248 75829
|
||||
FontName Courier-Oblique
|
||||
FullName Courier Oblique
|
||||
FamilyName Courier
|
||||
Weight Medium
|
||||
ItalicAngle -12
|
||||
IsFixedPitch true
|
||||
CharacterSet ExtendedRoman
|
||||
FontBBox -27 -250 849 805
|
||||
UnderlinePosition -100
|
||||
UnderlineThickness 50
|
||||
Version 003.000
|
||||
Notice Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
EncodingScheme WinAnsiEncoding
|
||||
CapHeight 562
|
||||
XHeight 426
|
||||
Ascender 629
|
||||
Descender -157
|
||||
StdHW 51
|
||||
StdVW 51
|
||||
StartCharMetrics 317
|
||||
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 160 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 33 ; WX 600 ; N exclam ; B 243 -15 464 572 ;
|
||||
C 34 ; WX 600 ; N quotedbl ; B 273 328 532 562 ;
|
||||
C 35 ; WX 600 ; N numbersign ; B 133 -32 596 639 ;
|
||||
C 36 ; WX 600 ; N dollar ; B 108 -126 596 662 ;
|
||||
C 37 ; WX 600 ; N percent ; B 134 -15 599 622 ;
|
||||
C 38 ; WX 600 ; N ampersand ; B 87 -15 580 543 ;
|
||||
C 146 ; WX 600 ; N quoteright ; B 283 328 495 562 ;
|
||||
C 40 ; WX 600 ; N parenleft ; B 313 -108 572 622 ;
|
||||
C 41 ; WX 600 ; N parenright ; B 137 -108 396 622 ;
|
||||
C 42 ; WX 600 ; N asterisk ; B 212 257 580 607 ;
|
||||
C 43 ; WX 600 ; N plus ; B 129 44 580 470 ;
|
||||
C 44 ; WX 600 ; N comma ; B 157 -112 370 122 ;
|
||||
C 45 ; WX 600 ; N hyphen ; B 152 231 558 285 ;
|
||||
C 173 ; WX 600 ; N hyphen ; B 152 231 558 285 ;
|
||||
C 46 ; WX 600 ; N period ; B 238 -15 382 109 ;
|
||||
C 47 ; WX 600 ; N slash ; B 112 -80 604 629 ;
|
||||
C 48 ; WX 600 ; N zero ; B 154 -15 575 622 ;
|
||||
C 49 ; WX 600 ; N one ; B 98 0 515 622 ;
|
||||
C 50 ; WX 600 ; N two ; B 70 0 568 622 ;
|
||||
C 51 ; WX 600 ; N three ; B 82 -15 538 622 ;
|
||||
C 52 ; WX 600 ; N four ; B 108 0 541 622 ;
|
||||
C 53 ; WX 600 ; N five ; B 99 -15 589 607 ;
|
||||
C 54 ; WX 600 ; N six ; B 155 -15 629 622 ;
|
||||
C 55 ; WX 600 ; N seven ; B 182 0 612 607 ;
|
||||
C 56 ; WX 600 ; N eight ; B 132 -15 588 622 ;
|
||||
C 57 ; WX 600 ; N nine ; B 93 -15 574 622 ;
|
||||
C 58 ; WX 600 ; N colon ; B 238 -15 441 385 ;
|
||||
C 59 ; WX 600 ; N semicolon ; B 157 -112 441 385 ;
|
||||
C 60 ; WX 600 ; N less ; B 96 42 610 472 ;
|
||||
C 61 ; WX 600 ; N equal ; B 109 138 600 376 ;
|
||||
C 62 ; WX 600 ; N greater ; B 85 42 599 472 ;
|
||||
C 63 ; WX 600 ; N question ; B 222 -15 583 572 ;
|
||||
C 64 ; WX 600 ; N at ; B 127 -15 582 622 ;
|
||||
C 65 ; WX 600 ; N A ; B 3 0 607 562 ;
|
||||
C 66 ; WX 600 ; N B ; B 43 0 616 562 ;
|
||||
C 67 ; WX 600 ; N C ; B 93 -18 655 580 ;
|
||||
C 68 ; WX 600 ; N D ; B 43 0 645 562 ;
|
||||
C 69 ; WX 600 ; N E ; B 53 0 660 562 ;
|
||||
C 70 ; WX 600 ; N F ; B 53 0 660 562 ;
|
||||
C 71 ; WX 600 ; N G ; B 83 -18 645 580 ;
|
||||
C 72 ; WX 600 ; N H ; B 32 0 687 562 ;
|
||||
C 73 ; WX 600 ; N I ; B 96 0 623 562 ;
|
||||
C 74 ; WX 600 ; N J ; B 52 -18 685 562 ;
|
||||
C 75 ; WX 600 ; N K ; B 38 0 671 562 ;
|
||||
C 76 ; WX 600 ; N L ; B 47 0 607 562 ;
|
||||
C 77 ; WX 600 ; N M ; B 4 0 715 562 ;
|
||||
C 78 ; WX 600 ; N N ; B 7 -13 712 562 ;
|
||||
C 79 ; WX 600 ; N O ; B 94 -18 625 580 ;
|
||||
C 80 ; WX 600 ; N P ; B 79 0 644 562 ;
|
||||
C 81 ; WX 600 ; N Q ; B 95 -138 625 580 ;
|
||||
C 82 ; WX 600 ; N R ; B 38 0 598 562 ;
|
||||
C 83 ; WX 600 ; N S ; B 76 -20 650 580 ;
|
||||
C 84 ; WX 600 ; N T ; B 108 0 665 562 ;
|
||||
C 85 ; WX 600 ; N U ; B 125 -18 702 562 ;
|
||||
C 86 ; WX 600 ; N V ; B 105 -13 723 562 ;
|
||||
C 87 ; WX 600 ; N W ; B 106 -13 722 562 ;
|
||||
C 88 ; WX 600 ; N X ; B 23 0 675 562 ;
|
||||
C 89 ; WX 600 ; N Y ; B 133 0 695 562 ;
|
||||
C 90 ; WX 600 ; N Z ; B 86 0 610 562 ;
|
||||
C 91 ; WX 600 ; N bracketleft ; B 246 -108 574 622 ;
|
||||
C 92 ; WX 600 ; N backslash ; B 249 -80 468 629 ;
|
||||
C 93 ; WX 600 ; N bracketright ; B 135 -108 463 622 ;
|
||||
C 94 ; WX 600 ; N asciicircum ; B 175 354 587 622 ;
|
||||
C 95 ; WX 600 ; N underscore ; B -27 -125 584 -75 ;
|
||||
C 145 ; WX 600 ; N quoteleft ; B 343 328 457 562 ;
|
||||
C 97 ; WX 600 ; N a ; B 76 -15 569 441 ;
|
||||
C 98 ; WX 600 ; N b ; B 29 -15 625 629 ;
|
||||
C 99 ; WX 600 ; N c ; B 106 -15 608 441 ;
|
||||
C 100 ; WX 600 ; N d ; B 85 -15 640 629 ;
|
||||
C 101 ; WX 600 ; N e ; B 106 -15 598 441 ;
|
||||
C 102 ; WX 600 ; N f ; B 114 0 662 629 ; L i fi ; L l fl ;
|
||||
C 103 ; WX 600 ; N g ; B 61 -157 657 441 ;
|
||||
C 104 ; WX 600 ; N h ; B 33 0 592 629 ;
|
||||
C 105 ; WX 600 ; N i ; B 95 0 515 657 ;
|
||||
C 106 ; WX 600 ; N j ; B 52 -157 550 657 ;
|
||||
C 107 ; WX 600 ; N k ; B 58 0 633 629 ;
|
||||
C 108 ; WX 600 ; N l ; B 95 0 515 629 ;
|
||||
C 109 ; WX 600 ; N m ; B -5 0 615 441 ;
|
||||
C 110 ; WX 600 ; N n ; B 26 0 585 441 ;
|
||||
C 111 ; WX 600 ; N o ; B 102 -15 588 441 ;
|
||||
C 112 ; WX 600 ; N p ; B -24 -157 605 441 ;
|
||||
C 113 ; WX 600 ; N q ; B 85 -157 682 441 ;
|
||||
C 114 ; WX 600 ; N r ; B 60 0 636 441 ;
|
||||
C 115 ; WX 600 ; N s ; B 78 -15 584 441 ;
|
||||
C 116 ; WX 600 ; N t ; B 167 -15 561 561 ;
|
||||
C 117 ; WX 600 ; N u ; B 101 -15 572 426 ;
|
||||
C 118 ; WX 600 ; N v ; B 90 -10 681 426 ;
|
||||
C 119 ; WX 600 ; N w ; B 76 -10 695 426 ;
|
||||
C 120 ; WX 600 ; N x ; B 20 0 655 426 ;
|
||||
C 121 ; WX 600 ; N y ; B -4 -157 683 426 ;
|
||||
C 122 ; WX 600 ; N z ; B 99 0 593 426 ;
|
||||
C 123 ; WX 600 ; N braceleft ; B 233 -108 569 622 ;
|
||||
C 124 ; WX 600 ; N bar ; B 222 -250 485 750 ;
|
||||
C 125 ; WX 600 ; N braceright ; B 140 -108 477 622 ;
|
||||
C 126 ; WX 600 ; N asciitilde ; B 116 197 600 320 ;
|
||||
C 161 ; WX 600 ; N exclamdown ; B 225 -157 445 430 ;
|
||||
C 162 ; WX 600 ; N cent ; B 151 -49 588 614 ;
|
||||
C 163 ; WX 600 ; N sterling ; B 124 -21 621 611 ;
|
||||
C -1 ; WX 600 ; N fraction ; B 84 -57 646 665 ;
|
||||
C 165 ; WX 600 ; N yen ; B 120 0 693 562 ;
|
||||
C 131 ; WX 600 ; N florin ; B -26 -143 671 622 ;
|
||||
C 167 ; WX 600 ; N section ; B 104 -78 590 580 ;
|
||||
C 164 ; WX 600 ; N currency ; B 94 58 628 506 ;
|
||||
C 39 ; WX 600 ; N quotesingle ; B 345 328 460 562 ;
|
||||
C 147 ; WX 600 ; N quotedblleft ; B 262 328 541 562 ;
|
||||
C 171 ; WX 600 ; N guillemotleft ; B 92 70 652 446 ;
|
||||
C 139 ; WX 600 ; N guilsinglleft ; B 204 70 540 446 ;
|
||||
C 155 ; WX 600 ; N guilsinglright ; B 170 70 506 446 ;
|
||||
C -1 ; WX 600 ; N fi ; B 3 0 619 629 ;
|
||||
C -1 ; WX 600 ; N fl ; B 3 0 619 629 ;
|
||||
C 150 ; WX 600 ; N endash ; B 124 231 586 285 ;
|
||||
C 134 ; WX 600 ; N dagger ; B 217 -78 546 580 ;
|
||||
C 135 ; WX 600 ; N daggerdbl ; B 163 -78 546 580 ;
|
||||
C 183 ; WX 600 ; N periodcentered ; B 275 189 434 327 ;
|
||||
C 182 ; WX 600 ; N paragraph ; B 100 -78 630 562 ;
|
||||
C 149 ; WX 600 ; N bullet ; B 224 130 485 383 ;
|
||||
C 130 ; WX 600 ; N quotesinglbase ; B 185 -134 397 100 ;
|
||||
C 132 ; WX 600 ; N quotedblbase ; B 115 -134 478 100 ;
|
||||
C 148 ; WX 600 ; N quotedblright ; B 213 328 576 562 ;
|
||||
C 187 ; WX 600 ; N guillemotright ; B 58 70 618 446 ;
|
||||
C 133 ; WX 600 ; N ellipsis ; B 46 -15 575 111 ;
|
||||
C 137 ; WX 600 ; N perthousand ; B 59 -15 627 622 ;
|
||||
C 191 ; WX 600 ; N questiondown ; B 105 -157 466 430 ;
|
||||
C 96 ; WX 600 ; N grave ; B 294 497 484 672 ;
|
||||
C 180 ; WX 600 ; N acute ; B 348 497 612 672 ;
|
||||
C 136 ; WX 600 ; N circumflex ; B 229 477 581 654 ;
|
||||
C 152 ; WX 600 ; N tilde ; B 212 489 629 606 ;
|
||||
C 175 ; WX 600 ; N macron ; B 232 525 600 565 ;
|
||||
C -1 ; WX 600 ; N breve ; B 279 501 576 609 ;
|
||||
C -1 ; WX 600 ; N dotaccent ; B 373 537 478 640 ;
|
||||
C 168 ; WX 600 ; N dieresis ; B 272 537 579 640 ;
|
||||
C -1 ; WX 600 ; N ring ; B 332 463 500 627 ;
|
||||
C 184 ; WX 600 ; N cedilla ; B 197 -151 344 10 ;
|
||||
C -1 ; WX 600 ; N hungarumlaut ; B 239 497 683 672 ;
|
||||
C -1 ; WX 600 ; N ogonek ; B 189 -172 377 4 ;
|
||||
C -1 ; WX 600 ; N caron ; B 262 492 614 669 ;
|
||||
C 151 ; WX 600 ; N emdash ; B 49 231 661 285 ;
|
||||
C 198 ; WX 600 ; N AE ; B 3 0 655 562 ;
|
||||
C 170 ; WX 600 ; N ordfeminine ; B 209 249 512 580 ;
|
||||
C -1 ; WX 600 ; N Lslash ; B 47 0 607 562 ;
|
||||
C 216 ; WX 600 ; N Oslash ; B 94 -80 625 629 ;
|
||||
C 140 ; WX 600 ; N OE ; B 59 0 672 562 ;
|
||||
C 186 ; WX 600 ; N ordmasculine ; B 210 249 535 580 ;
|
||||
C 230 ; WX 600 ; N ae ; B 41 -15 626 441 ;
|
||||
C -1 ; WX 600 ; N dotlessi ; B 95 0 515 426 ;
|
||||
C -1 ; WX 600 ; N lslash ; B 95 0 587 629 ;
|
||||
C 248 ; WX 600 ; N oslash ; B 102 -80 588 506 ;
|
||||
C 156 ; WX 600 ; N oe ; B 54 -15 615 441 ;
|
||||
C 223 ; WX 600 ; N germandbls ; B 48 -15 617 629 ;
|
||||
C 207 ; WX 600 ; N Idieresis ; B 96 0 623 753 ;
|
||||
C 233 ; WX 600 ; N eacute ; B 106 -15 612 672 ;
|
||||
C -1 ; WX 600 ; N abreve ; B 76 -15 576 609 ;
|
||||
C -1 ; WX 600 ; N uhungarumlaut ; B 101 -15 723 672 ;
|
||||
C -1 ; WX 600 ; N ecaron ; B 106 -15 614 669 ;
|
||||
C 159 ; WX 600 ; N Ydieresis ; B 133 0 695 753 ;
|
||||
C 247 ; WX 600 ; N divide ; B 136 48 573 467 ;
|
||||
C 221 ; WX 600 ; N Yacute ; B 133 0 695 805 ;
|
||||
C 194 ; WX 600 ; N Acircumflex ; B 3 0 607 787 ;
|
||||
C 225 ; WX 600 ; N aacute ; B 76 -15 612 672 ;
|
||||
C 219 ; WX 600 ; N Ucircumflex ; B 125 -18 702 787 ;
|
||||
C 253 ; WX 600 ; N yacute ; B -4 -157 683 672 ;
|
||||
C -1 ; WX 600 ; N scommaaccent ; B 78 -250 584 441 ;
|
||||
C 234 ; WX 600 ; N ecircumflex ; B 106 -15 598 654 ;
|
||||
C -1 ; WX 600 ; N Uring ; B 125 -18 702 760 ;
|
||||
C 220 ; WX 600 ; N Udieresis ; B 125 -18 702 753 ;
|
||||
C -1 ; WX 600 ; N aogonek ; B 76 -172 569 441 ;
|
||||
C 218 ; WX 600 ; N Uacute ; B 125 -18 702 805 ;
|
||||
C -1 ; WX 600 ; N uogonek ; B 101 -172 572 426 ;
|
||||
C 203 ; WX 600 ; N Edieresis ; B 53 0 660 753 ;
|
||||
C -1 ; WX 600 ; N Dcroat ; B 43 0 645 562 ;
|
||||
C -1 ; WX 600 ; N commaaccent ; B 145 -250 323 -58 ;
|
||||
C 169 ; WX 600 ; N copyright ; B 53 -18 667 580 ;
|
||||
C -1 ; WX 600 ; N Emacron ; B 53 0 660 698 ;
|
||||
C -1 ; WX 600 ; N ccaron ; B 106 -15 614 669 ;
|
||||
C 229 ; WX 600 ; N aring ; B 76 -15 569 627 ;
|
||||
C -1 ; WX 600 ; N Ncommaaccent ; B 7 -250 712 562 ;
|
||||
C -1 ; WX 600 ; N lacute ; B 95 0 640 805 ;
|
||||
C 224 ; WX 600 ; N agrave ; B 76 -15 569 672 ;
|
||||
C -1 ; WX 600 ; N Tcommaaccent ; B 108 -250 665 562 ;
|
||||
C -1 ; WX 600 ; N Cacute ; B 93 -18 655 805 ;
|
||||
C 227 ; WX 600 ; N atilde ; B 76 -15 629 606 ;
|
||||
C -1 ; WX 600 ; N Edotaccent ; B 53 0 660 753 ;
|
||||
C 154 ; WX 600 ; N scaron ; B 78 -15 614 669 ;
|
||||
C -1 ; WX 600 ; N scedilla ; B 78 -151 584 441 ;
|
||||
C 237 ; WX 600 ; N iacute ; B 95 0 612 672 ;
|
||||
C -1 ; WX 600 ; N lozenge ; B 94 0 519 706 ;
|
||||
C -1 ; WX 600 ; N Rcaron ; B 38 0 642 802 ;
|
||||
C -1 ; WX 600 ; N Gcommaaccent ; B 83 -250 645 580 ;
|
||||
C 251 ; WX 600 ; N ucircumflex ; B 101 -15 572 654 ;
|
||||
C 226 ; WX 600 ; N acircumflex ; B 76 -15 581 654 ;
|
||||
C -1 ; WX 600 ; N Amacron ; B 3 0 607 698 ;
|
||||
C -1 ; WX 600 ; N rcaron ; B 60 0 636 669 ;
|
||||
C 231 ; WX 600 ; N ccedilla ; B 106 -151 614 441 ;
|
||||
C -1 ; WX 600 ; N Zdotaccent ; B 86 0 610 753 ;
|
||||
C 222 ; WX 600 ; N Thorn ; B 79 0 606 562 ;
|
||||
C -1 ; WX 600 ; N Omacron ; B 94 -18 628 698 ;
|
||||
C -1 ; WX 600 ; N Racute ; B 38 0 670 805 ;
|
||||
C -1 ; WX 600 ; N Sacute ; B 76 -20 650 805 ;
|
||||
C -1 ; WX 600 ; N dcaron ; B 85 -15 849 629 ;
|
||||
C -1 ; WX 600 ; N Umacron ; B 125 -18 702 698 ;
|
||||
C -1 ; WX 600 ; N uring ; B 101 -15 572 627 ;
|
||||
C 179 ; WX 600 ; N threesuperior ; B 213 240 501 622 ;
|
||||
C 210 ; WX 600 ; N Ograve ; B 94 -18 625 805 ;
|
||||
C 192 ; WX 600 ; N Agrave ; B 3 0 607 805 ;
|
||||
C -1 ; WX 600 ; N Abreve ; B 3 0 607 732 ;
|
||||
C 215 ; WX 600 ; N multiply ; B 103 43 607 470 ;
|
||||
C 250 ; WX 600 ; N uacute ; B 101 -15 602 672 ;
|
||||
C -1 ; WX 600 ; N Tcaron ; B 108 0 665 802 ;
|
||||
C -1 ; WX 600 ; N partialdiff ; B 45 -38 546 710 ;
|
||||
C 255 ; WX 600 ; N ydieresis ; B -4 -157 683 620 ;
|
||||
C -1 ; WX 600 ; N Nacute ; B 7 -13 712 805 ;
|
||||
C 238 ; WX 600 ; N icircumflex ; B 95 0 551 654 ;
|
||||
C 202 ; WX 600 ; N Ecircumflex ; B 53 0 660 787 ;
|
||||
C 228 ; WX 600 ; N adieresis ; B 76 -15 575 620 ;
|
||||
C 235 ; WX 600 ; N edieresis ; B 106 -15 598 620 ;
|
||||
C -1 ; WX 600 ; N cacute ; B 106 -15 612 672 ;
|
||||
C -1 ; WX 600 ; N nacute ; B 26 0 602 672 ;
|
||||
C -1 ; WX 600 ; N umacron ; B 101 -15 600 565 ;
|
||||
C -1 ; WX 600 ; N Ncaron ; B 7 -13 712 802 ;
|
||||
C 205 ; WX 600 ; N Iacute ; B 96 0 640 805 ;
|
||||
C 177 ; WX 600 ; N plusminus ; B 96 44 594 558 ;
|
||||
C 166 ; WX 600 ; N brokenbar ; B 238 -175 469 675 ;
|
||||
C 174 ; WX 600 ; N registered ; B 53 -18 667 580 ;
|
||||
C -1 ; WX 600 ; N Gbreve ; B 83 -18 645 732 ;
|
||||
C -1 ; WX 600 ; N Idotaccent ; B 96 0 623 753 ;
|
||||
C -1 ; WX 600 ; N summation ; B 15 -10 670 706 ;
|
||||
C 200 ; WX 600 ; N Egrave ; B 53 0 660 805 ;
|
||||
C -1 ; WX 600 ; N racute ; B 60 0 636 672 ;
|
||||
C -1 ; WX 600 ; N omacron ; B 102 -15 600 565 ;
|
||||
C -1 ; WX 600 ; N Zacute ; B 86 0 670 805 ;
|
||||
C 142 ; WX 600 ; N Zcaron ; B 86 0 642 802 ;
|
||||
C -1 ; WX 600 ; N greaterequal ; B 98 0 594 710 ;
|
||||
C 208 ; WX 600 ; N Eth ; B 43 0 645 562 ;
|
||||
C 199 ; WX 600 ; N Ccedilla ; B 93 -151 658 580 ;
|
||||
C -1 ; WX 600 ; N lcommaaccent ; B 95 -250 515 629 ;
|
||||
C -1 ; WX 600 ; N tcaron ; B 167 -15 587 717 ;
|
||||
C -1 ; WX 600 ; N eogonek ; B 106 -172 598 441 ;
|
||||
C -1 ; WX 600 ; N Uogonek ; B 124 -172 702 562 ;
|
||||
C 193 ; WX 600 ; N Aacute ; B 3 0 660 805 ;
|
||||
C 196 ; WX 600 ; N Adieresis ; B 3 0 607 753 ;
|
||||
C 232 ; WX 600 ; N egrave ; B 106 -15 598 672 ;
|
||||
C -1 ; WX 600 ; N zacute ; B 99 0 612 672 ;
|
||||
C -1 ; WX 600 ; N iogonek ; B 95 -172 515 657 ;
|
||||
C 211 ; WX 600 ; N Oacute ; B 94 -18 640 805 ;
|
||||
C 243 ; WX 600 ; N oacute ; B 102 -15 612 672 ;
|
||||
C -1 ; WX 600 ; N amacron ; B 76 -15 600 565 ;
|
||||
C -1 ; WX 600 ; N sacute ; B 78 -15 612 672 ;
|
||||
C 239 ; WX 600 ; N idieresis ; B 95 0 545 620 ;
|
||||
C 212 ; WX 600 ; N Ocircumflex ; B 94 -18 625 787 ;
|
||||
C 217 ; WX 600 ; N Ugrave ; B 125 -18 702 805 ;
|
||||
C -1 ; WX 600 ; N Delta ; B 6 0 598 688 ;
|
||||
C 254 ; WX 600 ; N thorn ; B -24 -157 605 629 ;
|
||||
C 178 ; WX 600 ; N twosuperior ; B 230 249 535 622 ;
|
||||
C 214 ; WX 600 ; N Odieresis ; B 94 -18 625 753 ;
|
||||
C 181 ; WX 600 ; N mu ; B 72 -157 572 426 ;
|
||||
C 236 ; WX 600 ; N igrave ; B 95 0 515 672 ;
|
||||
C -1 ; WX 600 ; N ohungarumlaut ; B 102 -15 723 672 ;
|
||||
C -1 ; WX 600 ; N Eogonek ; B 53 -172 660 562 ;
|
||||
C -1 ; WX 600 ; N dcroat ; B 85 -15 704 629 ;
|
||||
C 190 ; WX 600 ; N threequarters ; B 73 -56 659 666 ;
|
||||
C -1 ; WX 600 ; N Scedilla ; B 76 -151 650 580 ;
|
||||
C -1 ; WX 600 ; N lcaron ; B 95 0 667 629 ;
|
||||
C -1 ; WX 600 ; N Kcommaaccent ; B 38 -250 671 562 ;
|
||||
C -1 ; WX 600 ; N Lacute ; B 47 0 607 805 ;
|
||||
C 153 ; WX 600 ; N trademark ; B 75 263 742 562 ;
|
||||
C -1 ; WX 600 ; N edotaccent ; B 106 -15 598 620 ;
|
||||
C 204 ; WX 600 ; N Igrave ; B 96 0 623 805 ;
|
||||
C -1 ; WX 600 ; N Imacron ; B 96 0 628 698 ;
|
||||
C -1 ; WX 600 ; N Lcaron ; B 47 0 632 562 ;
|
||||
C 189 ; WX 600 ; N onehalf ; B 65 -57 669 665 ;
|
||||
C -1 ; WX 600 ; N lessequal ; B 98 0 645 710 ;
|
||||
C 244 ; WX 600 ; N ocircumflex ; B 102 -15 588 654 ;
|
||||
C 241 ; WX 600 ; N ntilde ; B 26 0 629 606 ;
|
||||
C -1 ; WX 600 ; N Uhungarumlaut ; B 125 -18 761 805 ;
|
||||
C 201 ; WX 600 ; N Eacute ; B 53 0 670 805 ;
|
||||
C -1 ; WX 600 ; N emacron ; B 106 -15 600 565 ;
|
||||
C -1 ; WX 600 ; N gbreve ; B 61 -157 657 609 ;
|
||||
C 188 ; WX 600 ; N onequarter ; B 65 -57 674 665 ;
|
||||
C 138 ; WX 600 ; N Scaron ; B 76 -20 672 802 ;
|
||||
C -1 ; WX 600 ; N Scommaaccent ; B 76 -250 650 580 ;
|
||||
C -1 ; WX 600 ; N Ohungarumlaut ; B 94 -18 751 805 ;
|
||||
C 176 ; WX 600 ; N degree ; B 214 269 576 622 ;
|
||||
C 242 ; WX 600 ; N ograve ; B 102 -15 588 672 ;
|
||||
C -1 ; WX 600 ; N Ccaron ; B 93 -18 672 802 ;
|
||||
C 249 ; WX 600 ; N ugrave ; B 101 -15 572 672 ;
|
||||
C -1 ; WX 600 ; N radical ; B 85 -15 765 792 ;
|
||||
C -1 ; WX 600 ; N Dcaron ; B 43 0 645 802 ;
|
||||
C -1 ; WX 600 ; N rcommaaccent ; B 60 -250 636 441 ;
|
||||
C 209 ; WX 600 ; N Ntilde ; B 7 -13 712 729 ;
|
||||
C 245 ; WX 600 ; N otilde ; B 102 -15 629 606 ;
|
||||
C -1 ; WX 600 ; N Rcommaaccent ; B 38 -250 598 562 ;
|
||||
C -1 ; WX 600 ; N Lcommaaccent ; B 47 -250 607 562 ;
|
||||
C 195 ; WX 600 ; N Atilde ; B 3 0 655 729 ;
|
||||
C -1 ; WX 600 ; N Aogonek ; B 3 -172 607 562 ;
|
||||
C 197 ; WX 600 ; N Aring ; B 3 0 607 750 ;
|
||||
C 213 ; WX 600 ; N Otilde ; B 94 -18 655 729 ;
|
||||
C -1 ; WX 600 ; N zdotaccent ; B 99 0 593 620 ;
|
||||
C -1 ; WX 600 ; N Ecaron ; B 53 0 660 802 ;
|
||||
C -1 ; WX 600 ; N Iogonek ; B 96 -172 623 562 ;
|
||||
C -1 ; WX 600 ; N kcommaaccent ; B 58 -250 633 629 ;
|
||||
C -1 ; WX 600 ; N minus ; B 129 232 580 283 ;
|
||||
C 206 ; WX 600 ; N Icircumflex ; B 96 0 623 787 ;
|
||||
C -1 ; WX 600 ; N ncaron ; B 26 0 614 669 ;
|
||||
C -1 ; WX 600 ; N tcommaaccent ; B 165 -250 561 561 ;
|
||||
C 172 ; WX 600 ; N logicalnot ; B 155 108 591 369 ;
|
||||
C 246 ; WX 600 ; N odieresis ; B 102 -15 588 620 ;
|
||||
C 252 ; WX 600 ; N udieresis ; B 101 -15 575 620 ;
|
||||
C -1 ; WX 600 ; N notequal ; B 43 -16 621 529 ;
|
||||
C -1 ; WX 600 ; N gcommaaccent ; B 61 -157 657 708 ;
|
||||
C 240 ; WX 600 ; N eth ; B 102 -15 639 629 ;
|
||||
C 158 ; WX 600 ; N zcaron ; B 99 0 624 669 ;
|
||||
C -1 ; WX 600 ; N ncommaaccent ; B 26 -250 585 441 ;
|
||||
C 185 ; WX 600 ; N onesuperior ; B 231 249 491 622 ;
|
||||
C -1 ; WX 600 ; N imacron ; B 95 0 543 565 ;
|
||||
C 128 ; WX 600 ; N Euro ; B 0 0 0 0 ;
|
||||
EndCharMetrics
|
||||
EndFontMetrics
|
||||
344
vendor/dompdf/dompdf/lib/fonts/Courier.afm
vendored
Normal file
344
vendor/dompdf/dompdf/lib/fonts/Courier.afm
vendored
Normal file
@@ -0,0 +1,344 @@
|
||||
StartFontMetrics 4.1
|
||||
Comment Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
Comment Creation Date: Thu May 1 17:27:09 1997
|
||||
Comment UniqueID 43050
|
||||
Comment VMusage 39754 50779
|
||||
FontName Courier
|
||||
FullName Courier
|
||||
FamilyName Courier
|
||||
Weight Medium
|
||||
ItalicAngle 0
|
||||
IsFixedPitch true
|
||||
CharacterSet ExtendedRoman
|
||||
FontBBox -23 -250 715 805
|
||||
UnderlinePosition -100
|
||||
UnderlineThickness 50
|
||||
Version 003.000
|
||||
Notice Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
EncodingScheme WinAnsiEncoding
|
||||
CapHeight 562
|
||||
XHeight 426
|
||||
Ascender 629
|
||||
Descender -157
|
||||
StdHW 51
|
||||
StdVW 51
|
||||
StartCharMetrics 317
|
||||
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 160 ; WX 600 ; N space ; B 0 0 0 0 ;
|
||||
C 33 ; WX 600 ; N exclam ; B 236 -15 364 572 ;
|
||||
C 34 ; WX 600 ; N quotedbl ; B 187 328 413 562 ;
|
||||
C 35 ; WX 600 ; N numbersign ; B 93 -32 507 639 ;
|
||||
C 36 ; WX 600 ; N dollar ; B 105 -126 496 662 ;
|
||||
C 37 ; WX 600 ; N percent ; B 81 -15 518 622 ;
|
||||
C 38 ; WX 600 ; N ampersand ; B 63 -15 538 543 ;
|
||||
C 146 ; WX 600 ; N quoteright ; B 213 328 376 562 ;
|
||||
C 40 ; WX 600 ; N parenleft ; B 269 -108 440 622 ;
|
||||
C 41 ; WX 600 ; N parenright ; B 160 -108 331 622 ;
|
||||
C 42 ; WX 600 ; N asterisk ; B 116 257 484 607 ;
|
||||
C 43 ; WX 600 ; N plus ; B 80 44 520 470 ;
|
||||
C 44 ; WX 600 ; N comma ; B 181 -112 344 122 ;
|
||||
C 45 ; WX 600 ; N hyphen ; B 103 231 497 285 ;
|
||||
C 173 ; WX 600 ; N hyphen ; B 103 231 497 285 ;
|
||||
C 46 ; WX 600 ; N period ; B 229 -15 371 109 ;
|
||||
C 47 ; WX 600 ; N slash ; B 125 -80 475 629 ;
|
||||
C 48 ; WX 600 ; N zero ; B 106 -15 494 622 ;
|
||||
C 49 ; WX 600 ; N one ; B 96 0 505 622 ;
|
||||
C 50 ; WX 600 ; N two ; B 70 0 471 622 ;
|
||||
C 51 ; WX 600 ; N three ; B 75 -15 466 622 ;
|
||||
C 52 ; WX 600 ; N four ; B 78 0 500 622 ;
|
||||
C 53 ; WX 600 ; N five ; B 92 -15 497 607 ;
|
||||
C 54 ; WX 600 ; N six ; B 111 -15 497 622 ;
|
||||
C 55 ; WX 600 ; N seven ; B 82 0 483 607 ;
|
||||
C 56 ; WX 600 ; N eight ; B 102 -15 498 622 ;
|
||||
C 57 ; WX 600 ; N nine ; B 96 -15 489 622 ;
|
||||
C 58 ; WX 600 ; N colon ; B 229 -15 371 385 ;
|
||||
C 59 ; WX 600 ; N semicolon ; B 181 -112 371 385 ;
|
||||
C 60 ; WX 600 ; N less ; B 41 42 519 472 ;
|
||||
C 61 ; WX 600 ; N equal ; B 80 138 520 376 ;
|
||||
C 62 ; WX 600 ; N greater ; B 66 42 544 472 ;
|
||||
C 63 ; WX 600 ; N question ; B 129 -15 492 572 ;
|
||||
C 64 ; WX 600 ; N at ; B 77 -15 533 622 ;
|
||||
C 65 ; WX 600 ; N A ; B 3 0 597 562 ;
|
||||
C 66 ; WX 600 ; N B ; B 43 0 559 562 ;
|
||||
C 67 ; WX 600 ; N C ; B 41 -18 540 580 ;
|
||||
C 68 ; WX 600 ; N D ; B 43 0 574 562 ;
|
||||
C 69 ; WX 600 ; N E ; B 53 0 550 562 ;
|
||||
C 70 ; WX 600 ; N F ; B 53 0 545 562 ;
|
||||
C 71 ; WX 600 ; N G ; B 31 -18 575 580 ;
|
||||
C 72 ; WX 600 ; N H ; B 32 0 568 562 ;
|
||||
C 73 ; WX 600 ; N I ; B 96 0 504 562 ;
|
||||
C 74 ; WX 600 ; N J ; B 34 -18 566 562 ;
|
||||
C 75 ; WX 600 ; N K ; B 38 0 582 562 ;
|
||||
C 76 ; WX 600 ; N L ; B 47 0 554 562 ;
|
||||
C 77 ; WX 600 ; N M ; B 4 0 596 562 ;
|
||||
C 78 ; WX 600 ; N N ; B 7 -13 593 562 ;
|
||||
C 79 ; WX 600 ; N O ; B 43 -18 557 580 ;
|
||||
C 80 ; WX 600 ; N P ; B 79 0 558 562 ;
|
||||
C 81 ; WX 600 ; N Q ; B 43 -138 557 580 ;
|
||||
C 82 ; WX 600 ; N R ; B 38 0 588 562 ;
|
||||
C 83 ; WX 600 ; N S ; B 72 -20 529 580 ;
|
||||
C 84 ; WX 600 ; N T ; B 38 0 563 562 ;
|
||||
C 85 ; WX 600 ; N U ; B 17 -18 583 562 ;
|
||||
C 86 ; WX 600 ; N V ; B -4 -13 604 562 ;
|
||||
C 87 ; WX 600 ; N W ; B -3 -13 603 562 ;
|
||||
C 88 ; WX 600 ; N X ; B 23 0 577 562 ;
|
||||
C 89 ; WX 600 ; N Y ; B 24 0 576 562 ;
|
||||
C 90 ; WX 600 ; N Z ; B 86 0 514 562 ;
|
||||
C 91 ; WX 600 ; N bracketleft ; B 269 -108 442 622 ;
|
||||
C 92 ; WX 600 ; N backslash ; B 118 -80 482 629 ;
|
||||
C 93 ; WX 600 ; N bracketright ; B 158 -108 331 622 ;
|
||||
C 94 ; WX 600 ; N asciicircum ; B 94 354 506 622 ;
|
||||
C 95 ; WX 600 ; N underscore ; B 0 -125 600 -75 ;
|
||||
C 145 ; WX 600 ; N quoteleft ; B 224 328 387 562 ;
|
||||
C 97 ; WX 600 ; N a ; B 53 -15 559 441 ;
|
||||
C 98 ; WX 600 ; N b ; B 14 -15 575 629 ;
|
||||
C 99 ; WX 600 ; N c ; B 66 -15 529 441 ;
|
||||
C 100 ; WX 600 ; N d ; B 45 -15 591 629 ;
|
||||
C 101 ; WX 600 ; N e ; B 66 -15 548 441 ;
|
||||
C 102 ; WX 600 ; N f ; B 114 0 531 629 ; L i fi ; L l fl ;
|
||||
C 103 ; WX 600 ; N g ; B 45 -157 566 441 ;
|
||||
C 104 ; WX 600 ; N h ; B 18 0 582 629 ;
|
||||
C 105 ; WX 600 ; N i ; B 95 0 505 657 ;
|
||||
C 106 ; WX 600 ; N j ; B 82 -157 410 657 ;
|
||||
C 107 ; WX 600 ; N k ; B 43 0 580 629 ;
|
||||
C 108 ; WX 600 ; N l ; B 95 0 505 629 ;
|
||||
C 109 ; WX 600 ; N m ; B -5 0 605 441 ;
|
||||
C 110 ; WX 600 ; N n ; B 26 0 575 441 ;
|
||||
C 111 ; WX 600 ; N o ; B 62 -15 538 441 ;
|
||||
C 112 ; WX 600 ; N p ; B 9 -157 555 441 ;
|
||||
C 113 ; WX 600 ; N q ; B 45 -157 591 441 ;
|
||||
C 114 ; WX 600 ; N r ; B 60 0 559 441 ;
|
||||
C 115 ; WX 600 ; N s ; B 80 -15 513 441 ;
|
||||
C 116 ; WX 600 ; N t ; B 87 -15 530 561 ;
|
||||
C 117 ; WX 600 ; N u ; B 21 -15 562 426 ;
|
||||
C 118 ; WX 600 ; N v ; B 10 -10 590 426 ;
|
||||
C 119 ; WX 600 ; N w ; B -4 -10 604 426 ;
|
||||
C 120 ; WX 600 ; N x ; B 20 0 580 426 ;
|
||||
C 121 ; WX 600 ; N y ; B 7 -157 592 426 ;
|
||||
C 122 ; WX 600 ; N z ; B 99 0 502 426 ;
|
||||
C 123 ; WX 600 ; N braceleft ; B 182 -108 437 622 ;
|
||||
C 124 ; WX 600 ; N bar ; B 275 -250 326 750 ;
|
||||
C 125 ; WX 600 ; N braceright ; B 163 -108 418 622 ;
|
||||
C 126 ; WX 600 ; N asciitilde ; B 63 197 540 320 ;
|
||||
C 161 ; WX 600 ; N exclamdown ; B 236 -157 364 430 ;
|
||||
C 162 ; WX 600 ; N cent ; B 96 -49 500 614 ;
|
||||
C 163 ; WX 600 ; N sterling ; B 84 -21 521 611 ;
|
||||
C -1 ; WX 600 ; N fraction ; B 92 -57 509 665 ;
|
||||
C 165 ; WX 600 ; N yen ; B 26 0 574 562 ;
|
||||
C 131 ; WX 600 ; N florin ; B 4 -143 539 622 ;
|
||||
C 167 ; WX 600 ; N section ; B 113 -78 488 580 ;
|
||||
C 164 ; WX 600 ; N currency ; B 73 58 527 506 ;
|
||||
C 39 ; WX 600 ; N quotesingle ; B 259 328 341 562 ;
|
||||
C 147 ; WX 600 ; N quotedblleft ; B 143 328 471 562 ;
|
||||
C 171 ; WX 600 ; N guillemotleft ; B 37 70 563 446 ;
|
||||
C 139 ; WX 600 ; N guilsinglleft ; B 149 70 451 446 ;
|
||||
C 155 ; WX 600 ; N guilsinglright ; B 149 70 451 446 ;
|
||||
C -1 ; WX 600 ; N fi ; B 3 0 597 629 ;
|
||||
C -1 ; WX 600 ; N fl ; B 3 0 597 629 ;
|
||||
C 150 ; WX 600 ; N endash ; B 75 231 525 285 ;
|
||||
C 134 ; WX 600 ; N dagger ; B 141 -78 459 580 ;
|
||||
C 135 ; WX 600 ; N daggerdbl ; B 141 -78 459 580 ;
|
||||
C 183 ; WX 600 ; N periodcentered ; B 222 189 378 327 ;
|
||||
C 182 ; WX 600 ; N paragraph ; B 50 -78 511 562 ;
|
||||
C 149 ; WX 600 ; N bullet ; B 172 130 428 383 ;
|
||||
C 130 ; WX 600 ; N quotesinglbase ; B 213 -134 376 100 ;
|
||||
C 132 ; WX 600 ; N quotedblbase ; B 143 -134 457 100 ;
|
||||
C 148 ; WX 600 ; N quotedblright ; B 143 328 457 562 ;
|
||||
C 187 ; WX 600 ; N guillemotright ; B 37 70 563 446 ;
|
||||
C 133 ; WX 600 ; N ellipsis ; B 37 -15 563 111 ;
|
||||
C 137 ; WX 600 ; N perthousand ; B 3 -15 600 622 ;
|
||||
C 191 ; WX 600 ; N questiondown ; B 108 -157 471 430 ;
|
||||
C 96 ; WX 600 ; N grave ; B 151 497 378 672 ;
|
||||
C 180 ; WX 600 ; N acute ; B 242 497 469 672 ;
|
||||
C 136 ; WX 600 ; N circumflex ; B 124 477 476 654 ;
|
||||
C 152 ; WX 600 ; N tilde ; B 105 489 503 606 ;
|
||||
C 175 ; WX 600 ; N macron ; B 120 525 480 565 ;
|
||||
C -1 ; WX 600 ; N breve ; B 153 501 447 609 ;
|
||||
C -1 ; WX 600 ; N dotaccent ; B 249 537 352 640 ;
|
||||
C 168 ; WX 600 ; N dieresis ; B 148 537 453 640 ;
|
||||
C -1 ; WX 600 ; N ring ; B 218 463 382 627 ;
|
||||
C 184 ; WX 600 ; N cedilla ; B 224 -151 362 10 ;
|
||||
C -1 ; WX 600 ; N hungarumlaut ; B 133 497 540 672 ;
|
||||
C -1 ; WX 600 ; N ogonek ; B 211 -172 407 4 ;
|
||||
C -1 ; WX 600 ; N caron ; B 124 492 476 669 ;
|
||||
C 151 ; WX 600 ; N emdash ; B 0 231 600 285 ;
|
||||
C 198 ; WX 600 ; N AE ; B 3 0 550 562 ;
|
||||
C 170 ; WX 600 ; N ordfeminine ; B 156 249 442 580 ;
|
||||
C -1 ; WX 600 ; N Lslash ; B 47 0 554 562 ;
|
||||
C 216 ; WX 600 ; N Oslash ; B 43 -80 557 629 ;
|
||||
C 140 ; WX 600 ; N OE ; B 7 0 567 562 ;
|
||||
C 186 ; WX 600 ; N ordmasculine ; B 157 249 443 580 ;
|
||||
C 230 ; WX 600 ; N ae ; B 19 -15 570 441 ;
|
||||
C -1 ; WX 600 ; N dotlessi ; B 95 0 505 426 ;
|
||||
C -1 ; WX 600 ; N lslash ; B 95 0 505 629 ;
|
||||
C 248 ; WX 600 ; N oslash ; B 62 -80 538 506 ;
|
||||
C 156 ; WX 600 ; N oe ; B 19 -15 559 441 ;
|
||||
C 223 ; WX 600 ; N germandbls ; B 48 -15 588 629 ;
|
||||
C 207 ; WX 600 ; N Idieresis ; B 96 0 504 753 ;
|
||||
C 233 ; WX 600 ; N eacute ; B 66 -15 548 672 ;
|
||||
C -1 ; WX 600 ; N abreve ; B 53 -15 559 609 ;
|
||||
C -1 ; WX 600 ; N uhungarumlaut ; B 21 -15 580 672 ;
|
||||
C -1 ; WX 600 ; N ecaron ; B 66 -15 548 669 ;
|
||||
C 159 ; WX 600 ; N Ydieresis ; B 24 0 576 753 ;
|
||||
C 247 ; WX 600 ; N divide ; B 87 48 513 467 ;
|
||||
C 221 ; WX 600 ; N Yacute ; B 24 0 576 805 ;
|
||||
C 194 ; WX 600 ; N Acircumflex ; B 3 0 597 787 ;
|
||||
C 225 ; WX 600 ; N aacute ; B 53 -15 559 672 ;
|
||||
C 219 ; WX 600 ; N Ucircumflex ; B 17 -18 583 787 ;
|
||||
C 253 ; WX 600 ; N yacute ; B 7 -157 592 672 ;
|
||||
C -1 ; WX 600 ; N scommaaccent ; B 80 -250 513 441 ;
|
||||
C 234 ; WX 600 ; N ecircumflex ; B 66 -15 548 654 ;
|
||||
C -1 ; WX 600 ; N Uring ; B 17 -18 583 760 ;
|
||||
C 220 ; WX 600 ; N Udieresis ; B 17 -18 583 753 ;
|
||||
C -1 ; WX 600 ; N aogonek ; B 53 -172 587 441 ;
|
||||
C 218 ; WX 600 ; N Uacute ; B 17 -18 583 805 ;
|
||||
C -1 ; WX 600 ; N uogonek ; B 21 -172 590 426 ;
|
||||
C 203 ; WX 600 ; N Edieresis ; B 53 0 550 753 ;
|
||||
C -1 ; WX 600 ; N Dcroat ; B 30 0 574 562 ;
|
||||
C -1 ; WX 600 ; N commaaccent ; B 198 -250 335 -58 ;
|
||||
C 169 ; WX 600 ; N copyright ; B 0 -18 600 580 ;
|
||||
C -1 ; WX 600 ; N Emacron ; B 53 0 550 698 ;
|
||||
C -1 ; WX 600 ; N ccaron ; B 66 -15 529 669 ;
|
||||
C 229 ; WX 600 ; N aring ; B 53 -15 559 627 ;
|
||||
C -1 ; WX 600 ; N Ncommaaccent ; B 7 -250 593 562 ;
|
||||
C -1 ; WX 600 ; N lacute ; B 95 0 505 805 ;
|
||||
C 224 ; WX 600 ; N agrave ; B 53 -15 559 672 ;
|
||||
C -1 ; WX 600 ; N Tcommaaccent ; B 38 -250 563 562 ;
|
||||
C -1 ; WX 600 ; N Cacute ; B 41 -18 540 805 ;
|
||||
C 227 ; WX 600 ; N atilde ; B 53 -15 559 606 ;
|
||||
C -1 ; WX 600 ; N Edotaccent ; B 53 0 550 753 ;
|
||||
C 154 ; WX 600 ; N scaron ; B 80 -15 513 669 ;
|
||||
C -1 ; WX 600 ; N scedilla ; B 80 -151 513 441 ;
|
||||
C 237 ; WX 600 ; N iacute ; B 95 0 505 672 ;
|
||||
C -1 ; WX 600 ; N lozenge ; B 18 0 443 706 ;
|
||||
C -1 ; WX 600 ; N Rcaron ; B 38 0 588 802 ;
|
||||
C -1 ; WX 600 ; N Gcommaaccent ; B 31 -250 575 580 ;
|
||||
C 251 ; WX 600 ; N ucircumflex ; B 21 -15 562 654 ;
|
||||
C 226 ; WX 600 ; N acircumflex ; B 53 -15 559 654 ;
|
||||
C -1 ; WX 600 ; N Amacron ; B 3 0 597 698 ;
|
||||
C -1 ; WX 600 ; N rcaron ; B 60 0 559 669 ;
|
||||
C 231 ; WX 600 ; N ccedilla ; B 66 -151 529 441 ;
|
||||
C -1 ; WX 600 ; N Zdotaccent ; B 86 0 514 753 ;
|
||||
C 222 ; WX 600 ; N Thorn ; B 79 0 538 562 ;
|
||||
C -1 ; WX 600 ; N Omacron ; B 43 -18 557 698 ;
|
||||
C -1 ; WX 600 ; N Racute ; B 38 0 588 805 ;
|
||||
C -1 ; WX 600 ; N Sacute ; B 72 -20 529 805 ;
|
||||
C -1 ; WX 600 ; N dcaron ; B 45 -15 715 629 ;
|
||||
C -1 ; WX 600 ; N Umacron ; B 17 -18 583 698 ;
|
||||
C -1 ; WX 600 ; N uring ; B 21 -15 562 627 ;
|
||||
C 179 ; WX 600 ; N threesuperior ; B 155 240 406 622 ;
|
||||
C 210 ; WX 600 ; N Ograve ; B 43 -18 557 805 ;
|
||||
C 192 ; WX 600 ; N Agrave ; B 3 0 597 805 ;
|
||||
C -1 ; WX 600 ; N Abreve ; B 3 0 597 732 ;
|
||||
C 215 ; WX 600 ; N multiply ; B 87 43 515 470 ;
|
||||
C 250 ; WX 600 ; N uacute ; B 21 -15 562 672 ;
|
||||
C -1 ; WX 600 ; N Tcaron ; B 38 0 563 802 ;
|
||||
C -1 ; WX 600 ; N partialdiff ; B 17 -38 459 710 ;
|
||||
C 255 ; WX 600 ; N ydieresis ; B 7 -157 592 620 ;
|
||||
C -1 ; WX 600 ; N Nacute ; B 7 -13 593 805 ;
|
||||
C 238 ; WX 600 ; N icircumflex ; B 94 0 505 654 ;
|
||||
C 202 ; WX 600 ; N Ecircumflex ; B 53 0 550 787 ;
|
||||
C 228 ; WX 600 ; N adieresis ; B 53 -15 559 620 ;
|
||||
C 235 ; WX 600 ; N edieresis ; B 66 -15 548 620 ;
|
||||
C -1 ; WX 600 ; N cacute ; B 66 -15 529 672 ;
|
||||
C -1 ; WX 600 ; N nacute ; B 26 0 575 672 ;
|
||||
C -1 ; WX 600 ; N umacron ; B 21 -15 562 565 ;
|
||||
C -1 ; WX 600 ; N Ncaron ; B 7 -13 593 802 ;
|
||||
C 205 ; WX 600 ; N Iacute ; B 96 0 504 805 ;
|
||||
C 177 ; WX 600 ; N plusminus ; B 87 44 513 558 ;
|
||||
C 166 ; WX 600 ; N brokenbar ; B 275 -175 326 675 ;
|
||||
C 174 ; WX 600 ; N registered ; B 0 -18 600 580 ;
|
||||
C -1 ; WX 600 ; N Gbreve ; B 31 -18 575 732 ;
|
||||
C -1 ; WX 600 ; N Idotaccent ; B 96 0 504 753 ;
|
||||
C -1 ; WX 600 ; N summation ; B 15 -10 585 706 ;
|
||||
C 200 ; WX 600 ; N Egrave ; B 53 0 550 805 ;
|
||||
C -1 ; WX 600 ; N racute ; B 60 0 559 672 ;
|
||||
C -1 ; WX 600 ; N omacron ; B 62 -15 538 565 ;
|
||||
C -1 ; WX 600 ; N Zacute ; B 86 0 514 805 ;
|
||||
C 142 ; WX 600 ; N Zcaron ; B 86 0 514 802 ;
|
||||
C -1 ; WX 600 ; N greaterequal ; B 98 0 502 710 ;
|
||||
C 208 ; WX 600 ; N Eth ; B 30 0 574 562 ;
|
||||
C 199 ; WX 600 ; N Ccedilla ; B 41 -151 540 580 ;
|
||||
C -1 ; WX 600 ; N lcommaaccent ; B 95 -250 505 629 ;
|
||||
C -1 ; WX 600 ; N tcaron ; B 87 -15 530 717 ;
|
||||
C -1 ; WX 600 ; N eogonek ; B 66 -172 548 441 ;
|
||||
C -1 ; WX 600 ; N Uogonek ; B 17 -172 583 562 ;
|
||||
C 193 ; WX 600 ; N Aacute ; B 3 0 597 805 ;
|
||||
C 196 ; WX 600 ; N Adieresis ; B 3 0 597 753 ;
|
||||
C 232 ; WX 600 ; N egrave ; B 66 -15 548 672 ;
|
||||
C -1 ; WX 600 ; N zacute ; B 99 0 502 672 ;
|
||||
C -1 ; WX 600 ; N iogonek ; B 95 -172 505 657 ;
|
||||
C 211 ; WX 600 ; N Oacute ; B 43 -18 557 805 ;
|
||||
C 243 ; WX 600 ; N oacute ; B 62 -15 538 672 ;
|
||||
C -1 ; WX 600 ; N amacron ; B 53 -15 559 565 ;
|
||||
C -1 ; WX 600 ; N sacute ; B 80 -15 513 672 ;
|
||||
C 239 ; WX 600 ; N idieresis ; B 95 0 505 620 ;
|
||||
C 212 ; WX 600 ; N Ocircumflex ; B 43 -18 557 787 ;
|
||||
C 217 ; WX 600 ; N Ugrave ; B 17 -18 583 805 ;
|
||||
C -1 ; WX 600 ; N Delta ; B 6 0 598 688 ;
|
||||
C 254 ; WX 600 ; N thorn ; B -6 -157 555 629 ;
|
||||
C 178 ; WX 600 ; N twosuperior ; B 177 249 424 622 ;
|
||||
C 214 ; WX 600 ; N Odieresis ; B 43 -18 557 753 ;
|
||||
C 181 ; WX 600 ; N mu ; B 21 -157 562 426 ;
|
||||
C 236 ; WX 600 ; N igrave ; B 95 0 505 672 ;
|
||||
C -1 ; WX 600 ; N ohungarumlaut ; B 62 -15 580 672 ;
|
||||
C -1 ; WX 600 ; N Eogonek ; B 53 -172 561 562 ;
|
||||
C -1 ; WX 600 ; N dcroat ; B 45 -15 591 629 ;
|
||||
C 190 ; WX 600 ; N threequarters ; B 8 -56 593 666 ;
|
||||
C -1 ; WX 600 ; N Scedilla ; B 72 -151 529 580 ;
|
||||
C -1 ; WX 600 ; N lcaron ; B 95 0 533 629 ;
|
||||
C -1 ; WX 600 ; N Kcommaaccent ; B 38 -250 582 562 ;
|
||||
C -1 ; WX 600 ; N Lacute ; B 47 0 554 805 ;
|
||||
C 153 ; WX 600 ; N trademark ; B -23 263 623 562 ;
|
||||
C -1 ; WX 600 ; N edotaccent ; B 66 -15 548 620 ;
|
||||
C 204 ; WX 600 ; N Igrave ; B 96 0 504 805 ;
|
||||
C -1 ; WX 600 ; N Imacron ; B 96 0 504 698 ;
|
||||
C -1 ; WX 600 ; N Lcaron ; B 47 0 554 562 ;
|
||||
C 189 ; WX 600 ; N onehalf ; B 0 -57 611 665 ;
|
||||
C -1 ; WX 600 ; N lessequal ; B 98 0 502 710 ;
|
||||
C 244 ; WX 600 ; N ocircumflex ; B 62 -15 538 654 ;
|
||||
C 241 ; WX 600 ; N ntilde ; B 26 0 575 606 ;
|
||||
C -1 ; WX 600 ; N Uhungarumlaut ; B 17 -18 590 805 ;
|
||||
C 201 ; WX 600 ; N Eacute ; B 53 0 550 805 ;
|
||||
C -1 ; WX 600 ; N emacron ; B 66 -15 548 565 ;
|
||||
C -1 ; WX 600 ; N gbreve ; B 45 -157 566 609 ;
|
||||
C 188 ; WX 600 ; N onequarter ; B 0 -57 600 665 ;
|
||||
C 138 ; WX 600 ; N Scaron ; B 72 -20 529 802 ;
|
||||
C -1 ; WX 600 ; N Scommaaccent ; B 72 -250 529 580 ;
|
||||
C -1 ; WX 600 ; N Ohungarumlaut ; B 43 -18 580 805 ;
|
||||
C 176 ; WX 600 ; N degree ; B 123 269 477 622 ;
|
||||
C 242 ; WX 600 ; N ograve ; B 62 -15 538 672 ;
|
||||
C -1 ; WX 600 ; N Ccaron ; B 41 -18 540 802 ;
|
||||
C 249 ; WX 600 ; N ugrave ; B 21 -15 562 672 ;
|
||||
C -1 ; WX 600 ; N radical ; B 3 -15 597 792 ;
|
||||
C -1 ; WX 600 ; N Dcaron ; B 43 0 574 802 ;
|
||||
C -1 ; WX 600 ; N rcommaaccent ; B 60 -250 559 441 ;
|
||||
C 209 ; WX 600 ; N Ntilde ; B 7 -13 593 729 ;
|
||||
C 245 ; WX 600 ; N otilde ; B 62 -15 538 606 ;
|
||||
C -1 ; WX 600 ; N Rcommaaccent ; B 38 -250 588 562 ;
|
||||
C -1 ; WX 600 ; N Lcommaaccent ; B 47 -250 554 562 ;
|
||||
C 195 ; WX 600 ; N Atilde ; B 3 0 597 729 ;
|
||||
C -1 ; WX 600 ; N Aogonek ; B 3 -172 608 562 ;
|
||||
C 197 ; WX 600 ; N Aring ; B 3 0 597 750 ;
|
||||
C 213 ; WX 600 ; N Otilde ; B 43 -18 557 729 ;
|
||||
C -1 ; WX 600 ; N zdotaccent ; B 99 0 502 620 ;
|
||||
C -1 ; WX 600 ; N Ecaron ; B 53 0 550 802 ;
|
||||
C -1 ; WX 600 ; N Iogonek ; B 96 -172 504 562 ;
|
||||
C -1 ; WX 600 ; N kcommaaccent ; B 43 -250 580 629 ;
|
||||
C -1 ; WX 600 ; N minus ; B 80 232 520 283 ;
|
||||
C 206 ; WX 600 ; N Icircumflex ; B 96 0 504 787 ;
|
||||
C -1 ; WX 600 ; N ncaron ; B 26 0 575 669 ;
|
||||
C -1 ; WX 600 ; N tcommaaccent ; B 87 -250 530 561 ;
|
||||
C 172 ; WX 600 ; N logicalnot ; B 87 108 513 369 ;
|
||||
C 246 ; WX 600 ; N odieresis ; B 62 -15 538 620 ;
|
||||
C 252 ; WX 600 ; N udieresis ; B 21 -15 562 620 ;
|
||||
C -1 ; WX 600 ; N notequal ; B 15 -16 540 529 ;
|
||||
C -1 ; WX 600 ; N gcommaaccent ; B 45 -157 566 708 ;
|
||||
C 240 ; WX 600 ; N eth ; B 62 -15 538 629 ;
|
||||
C 158 ; WX 600 ; N zcaron ; B 99 0 502 669 ;
|
||||
C -1 ; WX 600 ; N ncommaaccent ; B 26 -250 575 441 ;
|
||||
C 185 ; WX 600 ; N onesuperior ; B 172 249 428 622 ;
|
||||
C -1 ; WX 600 ; N imacron ; B 95 0 505 565 ;
|
||||
C 128 ; WX 600 ; N Euro ; B 0 0 0 0 ;
|
||||
EndCharMetrics
|
||||
EndFontMetrics
|
||||
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Bold.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Bold.ttf
vendored
Normal file
Binary file not shown.
6067
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Bold.ufm
vendored
Normal file
6067
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Bold.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10762
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Bold.ufm.json
vendored
Executable file
10762
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Bold.ufm.json
vendored
Executable file
File diff suppressed because one or more lines are too long
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-BoldOblique.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-BoldOblique.ttf
vendored
Normal file
Binary file not shown.
5712
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-BoldOblique.ufm
vendored
Normal file
5712
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-BoldOblique.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Oblique.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Oblique.ttf
vendored
Normal file
Binary file not shown.
5268
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Oblique.ufm
vendored
Normal file
5268
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Oblique.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9668
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Oblique.ufm.json
vendored
Executable file
9668
vendor/dompdf/dompdf/lib/fonts/DejaVuSans-Oblique.ufm.json
vendored
Executable file
File diff suppressed because one or more lines are too long
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSans.ttf
vendored
Normal file
Binary file not shown.
6661
vendor/dompdf/dompdf/lib/fonts/DejaVuSans.ufm
vendored
Normal file
6661
vendor/dompdf/dompdf/lib/fonts/DejaVuSans.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10770
vendor/dompdf/dompdf/lib/fonts/DejaVuSans.ufm.json
vendored
Executable file
10770
vendor/dompdf/dompdf/lib/fonts/DejaVuSans.ufm.json
vendored
Executable file
File diff suppressed because one or more lines are too long
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Bold.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Bold.ttf
vendored
Normal file
Binary file not shown.
3285
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Bold.ufm
vendored
Normal file
3285
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Bold.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-BoldOblique.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-BoldOblique.ttf
vendored
Normal file
Binary file not shown.
2707
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-BoldOblique.ufm
vendored
Normal file
2707
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-BoldOblique.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Oblique.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Oblique.ttf
vendored
Normal file
Binary file not shown.
2707
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Oblique.ufm
vendored
Normal file
2707
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono-Oblique.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono.ttf
vendored
Normal file
Binary file not shown.
3284
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono.ufm
vendored
Normal file
3284
vendor/dompdf/dompdf/lib/fonts/DejaVuSansMono.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Bold.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Bold.ttf
vendored
Normal file
Binary file not shown.
4013
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Bold.ufm
vendored
Normal file
4013
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Bold.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-BoldItalic.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-BoldItalic.ttf
vendored
Normal file
Binary file not shown.
3892
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-BoldItalic.ufm
vendored
Normal file
3892
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-BoldItalic.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Italic.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Italic.ttf
vendored
Normal file
Binary file not shown.
3883
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Italic.ufm
vendored
Normal file
3883
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif-Italic.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif.ttf
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif.ttf
vendored
Normal file
Binary file not shown.
4012
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif.ufm
vendored
Normal file
4012
vendor/dompdf/dompdf/lib/fonts/DejaVuSerif.ufm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2829
vendor/dompdf/dompdf/lib/fonts/Helvetica-Bold.afm
vendored
Normal file
2829
vendor/dompdf/dompdf/lib/fonts/Helvetica-Bold.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2829
vendor/dompdf/dompdf/lib/fonts/Helvetica-BoldOblique.afm
vendored
Normal file
2829
vendor/dompdf/dompdf/lib/fonts/Helvetica-BoldOblique.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3053
vendor/dompdf/dompdf/lib/fonts/Helvetica-Oblique.afm
vendored
Normal file
3053
vendor/dompdf/dompdf/lib/fonts/Helvetica-Oblique.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3053
vendor/dompdf/dompdf/lib/fonts/Helvetica.afm
vendored
Normal file
3053
vendor/dompdf/dompdf/lib/fonts/Helvetica.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
213
vendor/dompdf/dompdf/lib/fonts/Symbol.afm
vendored
Normal file
213
vendor/dompdf/dompdf/lib/fonts/Symbol.afm
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
StartFontMetrics 4.1
|
||||
Comment Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All rights reserved.
|
||||
Comment Creation Date: Thu May 1 15:12:25 1997
|
||||
Comment UniqueID 43064
|
||||
Comment VMusage 30820 39997
|
||||
FontName Symbol
|
||||
FullName Symbol
|
||||
FamilyName Symbol
|
||||
Weight Medium
|
||||
ItalicAngle 0
|
||||
IsFixedPitch false
|
||||
CharacterSet Special
|
||||
FontBBox -180 -293 1090 1010
|
||||
UnderlinePosition -100
|
||||
UnderlineThickness 50
|
||||
Version 001.008
|
||||
Notice Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All rights reserved.
|
||||
EncodingScheme FontSpecific
|
||||
StdHW 92
|
||||
StdVW 85
|
||||
StartCharMetrics 190
|
||||
C 32 ; WX 250 ; N space ; B 0 0 0 0 ;
|
||||
C 33 ; WX 333 ; N exclam ; B 128 -17 240 672 ;
|
||||
C 34 ; WX 713 ; N universal ; B 31 0 681 705 ;
|
||||
C 35 ; WX 500 ; N numbersign ; B 20 -16 481 673 ;
|
||||
C 36 ; WX 549 ; N existential ; B 25 0 478 707 ;
|
||||
C 37 ; WX 833 ; N percent ; B 63 -36 771 655 ;
|
||||
C 38 ; WX 778 ; N ampersand ; B 41 -18 750 661 ;
|
||||
C 39 ; WX 439 ; N suchthat ; B 48 -17 414 500 ;
|
||||
C 40 ; WX 333 ; N parenleft ; B 53 -191 300 673 ;
|
||||
C 41 ; WX 333 ; N parenright ; B 30 -191 277 673 ;
|
||||
C 42 ; WX 500 ; N asteriskmath ; B 65 134 427 551 ;
|
||||
C 43 ; WX 549 ; N plus ; B 10 0 539 533 ;
|
||||
C 44 ; WX 250 ; N comma ; B 56 -152 194 104 ;
|
||||
C 45 ; WX 549 ; N minus ; B 11 233 535 288 ;
|
||||
C 46 ; WX 250 ; N period ; B 69 -17 181 95 ;
|
||||
C 47 ; WX 278 ; N slash ; B 0 -18 254 646 ;
|
||||
C 48 ; WX 500 ; N zero ; B 24 -14 476 685 ;
|
||||
C 49 ; WX 500 ; N one ; B 117 0 390 673 ;
|
||||
C 50 ; WX 500 ; N two ; B 25 0 475 685 ;
|
||||
C 51 ; WX 500 ; N three ; B 43 -14 435 685 ;
|
||||
C 52 ; WX 500 ; N four ; B 15 0 469 685 ;
|
||||
C 53 ; WX 500 ; N five ; B 32 -14 445 690 ;
|
||||
C 54 ; WX 500 ; N six ; B 34 -14 468 685 ;
|
||||
C 55 ; WX 500 ; N seven ; B 24 -16 448 673 ;
|
||||
C 56 ; WX 500 ; N eight ; B 56 -14 445 685 ;
|
||||
C 57 ; WX 500 ; N nine ; B 30 -18 459 685 ;
|
||||
C 58 ; WX 278 ; N colon ; B 81 -17 193 460 ;
|
||||
C 59 ; WX 278 ; N semicolon ; B 83 -152 221 460 ;
|
||||
C 60 ; WX 549 ; N less ; B 26 0 523 522 ;
|
||||
C 61 ; WX 549 ; N equal ; B 11 141 537 390 ;
|
||||
C 62 ; WX 549 ; N greater ; B 26 0 523 522 ;
|
||||
C 63 ; WX 444 ; N question ; B 70 -17 412 686 ;
|
||||
C 64 ; WX 549 ; N congruent ; B 11 0 537 475 ;
|
||||
C 65 ; WX 722 ; N Alpha ; B 4 0 684 673 ;
|
||||
C 66 ; WX 667 ; N Beta ; B 29 0 592 673 ;
|
||||
C 67 ; WX 722 ; N Chi ; B -9 0 704 673 ;
|
||||
C 68 ; WX 612 ; N Delta ; B 6 0 608 688 ;
|
||||
C 69 ; WX 611 ; N Epsilon ; B 32 0 617 673 ;
|
||||
C 70 ; WX 763 ; N Phi ; B 26 0 741 673 ;
|
||||
C 71 ; WX 603 ; N Gamma ; B 24 0 609 673 ;
|
||||
C 72 ; WX 722 ; N Eta ; B 39 0 729 673 ;
|
||||
C 73 ; WX 333 ; N Iota ; B 32 0 316 673 ;
|
||||
C 74 ; WX 631 ; N theta1 ; B 18 -18 623 689 ;
|
||||
C 75 ; WX 722 ; N Kappa ; B 35 0 722 673 ;
|
||||
C 76 ; WX 686 ; N Lambda ; B 6 0 680 688 ;
|
||||
C 77 ; WX 889 ; N Mu ; B 28 0 887 673 ;
|
||||
C 78 ; WX 722 ; N Nu ; B 29 -8 720 673 ;
|
||||
C 79 ; WX 722 ; N Omicron ; B 41 -17 715 685 ;
|
||||
C 80 ; WX 768 ; N Pi ; B 25 0 745 673 ;
|
||||
C 81 ; WX 741 ; N Theta ; B 41 -17 715 685 ;
|
||||
C 82 ; WX 556 ; N Rho ; B 28 0 563 673 ;
|
||||
C 83 ; WX 592 ; N Sigma ; B 5 0 589 673 ;
|
||||
C 84 ; WX 611 ; N Tau ; B 33 0 607 673 ;
|
||||
C 85 ; WX 690 ; N Upsilon ; B -8 0 694 673 ;
|
||||
C 86 ; WX 439 ; N sigma1 ; B 40 -233 436 500 ;
|
||||
C 87 ; WX 768 ; N Omega ; B 34 0 736 688 ;
|
||||
C 88 ; WX 645 ; N Xi ; B 40 0 599 673 ;
|
||||
C 89 ; WX 795 ; N Psi ; B 15 0 781 684 ;
|
||||
C 90 ; WX 611 ; N Zeta ; B 44 0 636 673 ;
|
||||
C 91 ; WX 333 ; N bracketleft ; B 86 -155 299 674 ;
|
||||
C 92 ; WX 863 ; N therefore ; B 163 0 701 487 ;
|
||||
C 93 ; WX 333 ; N bracketright ; B 33 -155 246 674 ;
|
||||
C 94 ; WX 658 ; N perpendicular ; B 15 0 652 674 ;
|
||||
C 95 ; WX 500 ; N underscore ; B -2 -125 502 -75 ;
|
||||
C 96 ; WX 500 ; N radicalex ; B 480 881 1090 917 ;
|
||||
C 97 ; WX 631 ; N alpha ; B 41 -18 622 500 ;
|
||||
C 98 ; WX 549 ; N beta ; B 61 -223 515 741 ;
|
||||
C 99 ; WX 549 ; N chi ; B 12 -231 522 499 ;
|
||||
C 100 ; WX 494 ; N delta ; B 40 -19 481 740 ;
|
||||
C 101 ; WX 439 ; N epsilon ; B 22 -19 427 502 ;
|
||||
C 102 ; WX 521 ; N phi ; B 28 -224 492 673 ;
|
||||
C 103 ; WX 411 ; N gamma ; B 5 -225 484 499 ;
|
||||
C 104 ; WX 603 ; N eta ; B 0 -202 527 514 ;
|
||||
C 105 ; WX 329 ; N iota ; B 0 -17 301 503 ;
|
||||
C 106 ; WX 603 ; N phi1 ; B 36 -224 587 499 ;
|
||||
C 107 ; WX 549 ; N kappa ; B 33 0 558 501 ;
|
||||
C 108 ; WX 549 ; N lambda ; B 24 -17 548 739 ;
|
||||
C 109 ; WX 576 ; N mu ; B 33 -223 567 500 ;
|
||||
C 110 ; WX 521 ; N nu ; B -9 -16 475 507 ;
|
||||
C 111 ; WX 549 ; N omicron ; B 35 -19 501 499 ;
|
||||
C 112 ; WX 549 ; N pi ; B 10 -19 530 487 ;
|
||||
C 113 ; WX 521 ; N theta ; B 43 -17 485 690 ;
|
||||
C 114 ; WX 549 ; N rho ; B 50 -230 490 499 ;
|
||||
C 115 ; WX 603 ; N sigma ; B 30 -21 588 500 ;
|
||||
C 116 ; WX 439 ; N tau ; B 10 -19 418 500 ;
|
||||
C 117 ; WX 576 ; N upsilon ; B 7 -18 535 507 ;
|
||||
C 118 ; WX 713 ; N omega1 ; B 12 -18 671 583 ;
|
||||
C 119 ; WX 686 ; N omega ; B 42 -17 684 500 ;
|
||||
C 120 ; WX 493 ; N xi ; B 27 -224 469 766 ;
|
||||
C 121 ; WX 686 ; N psi ; B 12 -228 701 500 ;
|
||||
C 122 ; WX 494 ; N zeta ; B 60 -225 467 756 ;
|
||||
C 123 ; WX 480 ; N braceleft ; B 58 -183 397 673 ;
|
||||
C 124 ; WX 200 ; N bar ; B 65 -293 135 707 ;
|
||||
C 125 ; WX 480 ; N braceright ; B 79 -183 418 673 ;
|
||||
C 126 ; WX 549 ; N similar ; B 17 203 529 307 ;
|
||||
C 160 ; WX 750 ; N Euro ; B 20 -12 714 685 ;
|
||||
C 161 ; WX 620 ; N Upsilon1 ; B -2 0 610 685 ;
|
||||
C 162 ; WX 247 ; N minute ; B 27 459 228 735 ;
|
||||
C 163 ; WX 549 ; N lessequal ; B 29 0 526 639 ;
|
||||
C 164 ; WX 167 ; N fraction ; B -180 -12 340 677 ;
|
||||
C 165 ; WX 713 ; N infinity ; B 26 124 688 404 ;
|
||||
C 166 ; WX 500 ; N florin ; B 2 -193 494 686 ;
|
||||
C 167 ; WX 753 ; N club ; B 86 -26 660 533 ;
|
||||
C 168 ; WX 753 ; N diamond ; B 142 -36 600 550 ;
|
||||
C 169 ; WX 753 ; N heart ; B 117 -33 631 532 ;
|
||||
C 170 ; WX 753 ; N spade ; B 113 -36 629 548 ;
|
||||
C 171 ; WX 1042 ; N arrowboth ; B 24 -15 1024 511 ;
|
||||
C 172 ; WX 987 ; N arrowleft ; B 32 -15 942 511 ;
|
||||
C 173 ; WX 603 ; N arrowup ; B 45 0 571 910 ;
|
||||
C 174 ; WX 987 ; N arrowright ; B 49 -15 959 511 ;
|
||||
C 175 ; WX 603 ; N arrowdown ; B 45 -22 571 888 ;
|
||||
C 176 ; WX 400 ; N degree ; B 50 385 350 685 ;
|
||||
C 177 ; WX 549 ; N plusminus ; B 10 0 539 645 ;
|
||||
C 178 ; WX 411 ; N second ; B 20 459 413 737 ;
|
||||
C 179 ; WX 549 ; N greaterequal ; B 29 0 526 639 ;
|
||||
C 180 ; WX 549 ; N multiply ; B 17 8 533 524 ;
|
||||
C 181 ; WX 713 ; N proportional ; B 27 123 639 404 ;
|
||||
C 182 ; WX 494 ; N partialdiff ; B 26 -20 462 746 ;
|
||||
C 183 ; WX 460 ; N bullet ; B 50 113 410 473 ;
|
||||
C 184 ; WX 549 ; N divide ; B 10 71 536 456 ;
|
||||
C 185 ; WX 549 ; N notequal ; B 15 -25 540 549 ;
|
||||
C 186 ; WX 549 ; N equivalence ; B 14 82 538 443 ;
|
||||
C 187 ; WX 549 ; N approxequal ; B 14 135 527 394 ;
|
||||
C 188 ; WX 1000 ; N ellipsis ; B 111 -17 889 95 ;
|
||||
C 189 ; WX 603 ; N arrowvertex ; B 280 -120 336 1010 ;
|
||||
C 190 ; WX 1000 ; N arrowhorizex ; B -60 220 1050 276 ;
|
||||
C 191 ; WX 658 ; N carriagereturn ; B 15 -16 602 629 ;
|
||||
C 192 ; WX 823 ; N aleph ; B 175 -18 661 658 ;
|
||||
C 193 ; WX 686 ; N Ifraktur ; B 10 -53 578 740 ;
|
||||
C 194 ; WX 795 ; N Rfraktur ; B 26 -15 759 734 ;
|
||||
C 195 ; WX 987 ; N weierstrass ; B 159 -211 870 573 ;
|
||||
C 196 ; WX 768 ; N circlemultiply ; B 43 -17 733 673 ;
|
||||
C 197 ; WX 768 ; N circleplus ; B 43 -15 733 675 ;
|
||||
C 198 ; WX 823 ; N emptyset ; B 39 -24 781 719 ;
|
||||
C 199 ; WX 768 ; N intersection ; B 40 0 732 509 ;
|
||||
C 200 ; WX 768 ; N union ; B 40 -17 732 492 ;
|
||||
C 201 ; WX 713 ; N propersuperset ; B 20 0 673 470 ;
|
||||
C 202 ; WX 713 ; N reflexsuperset ; B 20 -125 673 470 ;
|
||||
C 203 ; WX 713 ; N notsubset ; B 36 -70 690 540 ;
|
||||
C 204 ; WX 713 ; N propersubset ; B 37 0 690 470 ;
|
||||
C 205 ; WX 713 ; N reflexsubset ; B 37 -125 690 470 ;
|
||||
C 206 ; WX 713 ; N element ; B 45 0 505 468 ;
|
||||
C 207 ; WX 713 ; N notelement ; B 45 -58 505 555 ;
|
||||
C 208 ; WX 768 ; N angle ; B 26 0 738 673 ;
|
||||
C 209 ; WX 713 ; N gradient ; B 36 -19 681 718 ;
|
||||
C 210 ; WX 790 ; N registerserif ; B 50 -17 740 673 ;
|
||||
C 211 ; WX 790 ; N copyrightserif ; B 51 -15 741 675 ;
|
||||
C 212 ; WX 890 ; N trademarkserif ; B 18 293 855 673 ;
|
||||
C 213 ; WX 823 ; N product ; B 25 -101 803 751 ;
|
||||
C 214 ; WX 549 ; N radical ; B 10 -38 515 917 ;
|
||||
C 215 ; WX 250 ; N dotmath ; B 69 210 169 310 ;
|
||||
C 216 ; WX 713 ; N logicalnot ; B 15 0 680 288 ;
|
||||
C 217 ; WX 603 ; N logicaland ; B 23 0 583 454 ;
|
||||
C 218 ; WX 603 ; N logicalor ; B 30 0 578 477 ;
|
||||
C 219 ; WX 1042 ; N arrowdblboth ; B 27 -20 1023 510 ;
|
||||
C 220 ; WX 987 ; N arrowdblleft ; B 30 -15 939 513 ;
|
||||
C 221 ; WX 603 ; N arrowdblup ; B 39 2 567 911 ;
|
||||
C 222 ; WX 987 ; N arrowdblright ; B 45 -20 954 508 ;
|
||||
C 223 ; WX 603 ; N arrowdbldown ; B 44 -19 572 890 ;
|
||||
C 224 ; WX 494 ; N lozenge ; B 18 0 466 745 ;
|
||||
C 225 ; WX 329 ; N angleleft ; B 25 -198 306 746 ;
|
||||
C 226 ; WX 790 ; N registersans ; B 50 -20 740 670 ;
|
||||
C 227 ; WX 790 ; N copyrightsans ; B 49 -15 739 675 ;
|
||||
C 228 ; WX 786 ; N trademarksans ; B 5 293 725 673 ;
|
||||
C 229 ; WX 713 ; N summation ; B 14 -108 695 752 ;
|
||||
C 230 ; WX 384 ; N parenlefttp ; B 24 -293 436 926 ;
|
||||
C 231 ; WX 384 ; N parenleftex ; B 24 -85 108 925 ;
|
||||
C 232 ; WX 384 ; N parenleftbt ; B 24 -293 436 926 ;
|
||||
C 233 ; WX 384 ; N bracketlefttp ; B 0 -80 349 926 ;
|
||||
C 234 ; WX 384 ; N bracketleftex ; B 0 -79 77 925 ;
|
||||
C 235 ; WX 384 ; N bracketleftbt ; B 0 -80 349 926 ;
|
||||
C 236 ; WX 494 ; N bracelefttp ; B 209 -85 445 925 ;
|
||||
C 237 ; WX 494 ; N braceleftmid ; B 20 -85 284 935 ;
|
||||
C 238 ; WX 494 ; N braceleftbt ; B 209 -75 445 935 ;
|
||||
C 239 ; WX 494 ; N braceex ; B 209 -85 284 935 ;
|
||||
C 241 ; WX 329 ; N angleright ; B 21 -198 302 746 ;
|
||||
C 242 ; WX 274 ; N integral ; B 2 -107 291 916 ;
|
||||
C 243 ; WX 686 ; N integraltp ; B 308 -88 675 920 ;
|
||||
C 244 ; WX 686 ; N integralex ; B 308 -88 378 975 ;
|
||||
C 245 ; WX 686 ; N integralbt ; B 11 -87 378 921 ;
|
||||
C 246 ; WX 384 ; N parenrighttp ; B 54 -293 466 926 ;
|
||||
C 247 ; WX 384 ; N parenrightex ; B 382 -85 466 925 ;
|
||||
C 248 ; WX 384 ; N parenrightbt ; B 54 -293 466 926 ;
|
||||
C 249 ; WX 384 ; N bracketrighttp ; B 22 -80 371 926 ;
|
||||
C 250 ; WX 384 ; N bracketrightex ; B 294 -79 371 925 ;
|
||||
C 251 ; WX 384 ; N bracketrightbt ; B 22 -80 371 926 ;
|
||||
C 252 ; WX 494 ; N bracerighttp ; B 48 -85 284 925 ;
|
||||
C 253 ; WX 494 ; N bracerightmid ; B 209 -85 473 935 ;
|
||||
C 254 ; WX 494 ; N bracerightbt ; B 48 -75 284 935 ;
|
||||
C -1 ; WX 790 ; N apple ; B 56 -3 733 808 ;
|
||||
EndCharMetrics
|
||||
EndFontMetrics
|
||||
2590
vendor/dompdf/dompdf/lib/fonts/Times-Bold.afm
vendored
Normal file
2590
vendor/dompdf/dompdf/lib/fonts/Times-Bold.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2386
vendor/dompdf/dompdf/lib/fonts/Times-BoldItalic.afm
vendored
Normal file
2386
vendor/dompdf/dompdf/lib/fonts/Times-BoldItalic.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2669
vendor/dompdf/dompdf/lib/fonts/Times-Italic.afm
vendored
Normal file
2669
vendor/dompdf/dompdf/lib/fonts/Times-Italic.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2421
vendor/dompdf/dompdf/lib/fonts/Times-Roman.afm
vendored
Normal file
2421
vendor/dompdf/dompdf/lib/fonts/Times-Roman.afm
vendored
Normal file
File diff suppressed because it is too large
Load Diff
225
vendor/dompdf/dompdf/lib/fonts/ZapfDingbats.afm
vendored
Normal file
225
vendor/dompdf/dompdf/lib/fonts/ZapfDingbats.afm
vendored
Normal file
@@ -0,0 +1,225 @@
|
||||
StartFontMetrics 4.1
|
||||
Comment Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
||||
Comment Creation Date: Thu May 1 15:14:13 1997
|
||||
Comment UniqueID 43082
|
||||
Comment VMusage 45775 55535
|
||||
FontName ZapfDingbats
|
||||
FullName ITC Zapf Dingbats
|
||||
FamilyName ZapfDingbats
|
||||
Weight Medium
|
||||
ItalicAngle 0
|
||||
IsFixedPitch false
|
||||
CharacterSet Special
|
||||
FontBBox -1 -143 981 820
|
||||
UnderlinePosition -100
|
||||
UnderlineThickness 50
|
||||
Version 002.000
|
||||
Notice Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.ITC Zapf Dingbats is a registered trademark of International Typeface Corporation.
|
||||
EncodingScheme FontSpecific
|
||||
StdHW 28
|
||||
StdVW 90
|
||||
StartCharMetrics 202
|
||||
C 32 ; WX 278 ; N space ; B 0 0 0 0 ;
|
||||
C 33 ; WX 974 ; N a1 ; B 35 72 939 621 ;
|
||||
C 34 ; WX 961 ; N a2 ; B 35 81 927 611 ;
|
||||
C 35 ; WX 974 ; N a202 ; B 35 72 939 621 ;
|
||||
C 36 ; WX 980 ; N a3 ; B 35 0 945 692 ;
|
||||
C 37 ; WX 719 ; N a4 ; B 34 139 685 566 ;
|
||||
C 38 ; WX 789 ; N a5 ; B 35 -14 755 705 ;
|
||||
C 39 ; WX 790 ; N a119 ; B 35 -14 755 705 ;
|
||||
C 40 ; WX 791 ; N a118 ; B 35 -13 761 705 ;
|
||||
C 41 ; WX 690 ; N a117 ; B 34 138 655 553 ;
|
||||
C 42 ; WX 960 ; N a11 ; B 35 123 925 568 ;
|
||||
C 43 ; WX 939 ; N a12 ; B 35 134 904 559 ;
|
||||
C 44 ; WX 549 ; N a13 ; B 29 -11 516 705 ;
|
||||
C 45 ; WX 855 ; N a14 ; B 34 59 820 632 ;
|
||||
C 46 ; WX 911 ; N a15 ; B 35 50 876 642 ;
|
||||
C 47 ; WX 933 ; N a16 ; B 35 139 899 550 ;
|
||||
C 48 ; WX 911 ; N a105 ; B 35 50 876 642 ;
|
||||
C 49 ; WX 945 ; N a17 ; B 35 139 909 553 ;
|
||||
C 50 ; WX 974 ; N a18 ; B 35 104 938 587 ;
|
||||
C 51 ; WX 755 ; N a19 ; B 34 -13 721 705 ;
|
||||
C 52 ; WX 846 ; N a20 ; B 36 -14 811 705 ;
|
||||
C 53 ; WX 762 ; N a21 ; B 35 0 727 692 ;
|
||||
C 54 ; WX 761 ; N a22 ; B 35 0 727 692 ;
|
||||
C 55 ; WX 571 ; N a23 ; B -1 -68 571 661 ;
|
||||
C 56 ; WX 677 ; N a24 ; B 36 -13 642 705 ;
|
||||
C 57 ; WX 763 ; N a25 ; B 35 0 728 692 ;
|
||||
C 58 ; WX 760 ; N a26 ; B 35 0 726 692 ;
|
||||
C 59 ; WX 759 ; N a27 ; B 35 0 725 692 ;
|
||||
C 60 ; WX 754 ; N a28 ; B 35 0 720 692 ;
|
||||
C 61 ; WX 494 ; N a6 ; B 35 0 460 692 ;
|
||||
C 62 ; WX 552 ; N a7 ; B 35 0 517 692 ;
|
||||
C 63 ; WX 537 ; N a8 ; B 35 0 503 692 ;
|
||||
C 64 ; WX 577 ; N a9 ; B 35 96 542 596 ;
|
||||
C 65 ; WX 692 ; N a10 ; B 35 -14 657 705 ;
|
||||
C 66 ; WX 786 ; N a29 ; B 35 -14 751 705 ;
|
||||
C 67 ; WX 788 ; N a30 ; B 35 -14 752 705 ;
|
||||
C 68 ; WX 788 ; N a31 ; B 35 -14 753 705 ;
|
||||
C 69 ; WX 790 ; N a32 ; B 35 -14 756 705 ;
|
||||
C 70 ; WX 793 ; N a33 ; B 35 -13 759 705 ;
|
||||
C 71 ; WX 794 ; N a34 ; B 35 -13 759 705 ;
|
||||
C 72 ; WX 816 ; N a35 ; B 35 -14 782 705 ;
|
||||
C 73 ; WX 823 ; N a36 ; B 35 -14 787 705 ;
|
||||
C 74 ; WX 789 ; N a37 ; B 35 -14 754 705 ;
|
||||
C 75 ; WX 841 ; N a38 ; B 35 -14 807 705 ;
|
||||
C 76 ; WX 823 ; N a39 ; B 35 -14 789 705 ;
|
||||
C 77 ; WX 833 ; N a40 ; B 35 -14 798 705 ;
|
||||
C 78 ; WX 816 ; N a41 ; B 35 -13 782 705 ;
|
||||
C 79 ; WX 831 ; N a42 ; B 35 -14 796 705 ;
|
||||
C 80 ; WX 923 ; N a43 ; B 35 -14 888 705 ;
|
||||
C 81 ; WX 744 ; N a44 ; B 35 0 710 692 ;
|
||||
C 82 ; WX 723 ; N a45 ; B 35 0 688 692 ;
|
||||
C 83 ; WX 749 ; N a46 ; B 35 0 714 692 ;
|
||||
C 84 ; WX 790 ; N a47 ; B 34 -14 756 705 ;
|
||||
C 85 ; WX 792 ; N a48 ; B 35 -14 758 705 ;
|
||||
C 86 ; WX 695 ; N a49 ; B 35 -14 661 706 ;
|
||||
C 87 ; WX 776 ; N a50 ; B 35 -6 741 699 ;
|
||||
C 88 ; WX 768 ; N a51 ; B 35 -7 734 699 ;
|
||||
C 89 ; WX 792 ; N a52 ; B 35 -14 757 705 ;
|
||||
C 90 ; WX 759 ; N a53 ; B 35 0 725 692 ;
|
||||
C 91 ; WX 707 ; N a54 ; B 35 -13 672 704 ;
|
||||
C 92 ; WX 708 ; N a55 ; B 35 -14 672 705 ;
|
||||
C 93 ; WX 682 ; N a56 ; B 35 -14 647 705 ;
|
||||
C 94 ; WX 701 ; N a57 ; B 35 -14 666 705 ;
|
||||
C 95 ; WX 826 ; N a58 ; B 35 -14 791 705 ;
|
||||
C 96 ; WX 815 ; N a59 ; B 35 -14 780 705 ;
|
||||
C 97 ; WX 789 ; N a60 ; B 35 -14 754 705 ;
|
||||
C 98 ; WX 789 ; N a61 ; B 35 -14 754 705 ;
|
||||
C 99 ; WX 707 ; N a62 ; B 34 -14 673 705 ;
|
||||
C 100 ; WX 687 ; N a63 ; B 36 0 651 692 ;
|
||||
C 101 ; WX 696 ; N a64 ; B 35 0 661 691 ;
|
||||
C 102 ; WX 689 ; N a65 ; B 35 0 655 692 ;
|
||||
C 103 ; WX 786 ; N a66 ; B 34 -14 751 705 ;
|
||||
C 104 ; WX 787 ; N a67 ; B 35 -14 752 705 ;
|
||||
C 105 ; WX 713 ; N a68 ; B 35 -14 678 705 ;
|
||||
C 106 ; WX 791 ; N a69 ; B 35 -14 756 705 ;
|
||||
C 107 ; WX 785 ; N a70 ; B 36 -14 751 705 ;
|
||||
C 108 ; WX 791 ; N a71 ; B 35 -14 757 705 ;
|
||||
C 109 ; WX 873 ; N a72 ; B 35 -14 838 705 ;
|
||||
C 110 ; WX 761 ; N a73 ; B 35 0 726 692 ;
|
||||
C 111 ; WX 762 ; N a74 ; B 35 0 727 692 ;
|
||||
C 112 ; WX 762 ; N a203 ; B 35 0 727 692 ;
|
||||
C 113 ; WX 759 ; N a75 ; B 35 0 725 692 ;
|
||||
C 114 ; WX 759 ; N a204 ; B 35 0 725 692 ;
|
||||
C 115 ; WX 892 ; N a76 ; B 35 0 858 705 ;
|
||||
C 116 ; WX 892 ; N a77 ; B 35 -14 858 692 ;
|
||||
C 117 ; WX 788 ; N a78 ; B 35 -14 754 705 ;
|
||||
C 118 ; WX 784 ; N a79 ; B 35 -14 749 705 ;
|
||||
C 119 ; WX 438 ; N a81 ; B 35 -14 403 705 ;
|
||||
C 120 ; WX 138 ; N a82 ; B 35 0 104 692 ;
|
||||
C 121 ; WX 277 ; N a83 ; B 35 0 242 692 ;
|
||||
C 122 ; WX 415 ; N a84 ; B 35 0 380 692 ;
|
||||
C 123 ; WX 392 ; N a97 ; B 35 263 357 705 ;
|
||||
C 124 ; WX 392 ; N a98 ; B 34 263 357 705 ;
|
||||
C 125 ; WX 668 ; N a99 ; B 35 263 633 705 ;
|
||||
C 126 ; WX 668 ; N a100 ; B 36 263 634 705 ;
|
||||
C 128 ; WX 390 ; N a89 ; B 35 -14 356 705 ;
|
||||
C 129 ; WX 390 ; N a90 ; B 35 -14 355 705 ;
|
||||
C 130 ; WX 317 ; N a93 ; B 35 0 283 692 ;
|
||||
C 131 ; WX 317 ; N a94 ; B 35 0 283 692 ;
|
||||
C 132 ; WX 276 ; N a91 ; B 35 0 242 692 ;
|
||||
C 133 ; WX 276 ; N a92 ; B 35 0 242 692 ;
|
||||
C 134 ; WX 509 ; N a205 ; B 35 0 475 692 ;
|
||||
C 135 ; WX 509 ; N a85 ; B 35 0 475 692 ;
|
||||
C 136 ; WX 410 ; N a206 ; B 35 0 375 692 ;
|
||||
C 137 ; WX 410 ; N a86 ; B 35 0 375 692 ;
|
||||
C 138 ; WX 234 ; N a87 ; B 35 -14 199 705 ;
|
||||
C 139 ; WX 234 ; N a88 ; B 35 -14 199 705 ;
|
||||
C 140 ; WX 334 ; N a95 ; B 35 0 299 692 ;
|
||||
C 141 ; WX 334 ; N a96 ; B 35 0 299 692 ;
|
||||
C 161 ; WX 732 ; N a101 ; B 35 -143 697 806 ;
|
||||
C 162 ; WX 544 ; N a102 ; B 56 -14 488 706 ;
|
||||
C 163 ; WX 544 ; N a103 ; B 34 -14 508 705 ;
|
||||
C 164 ; WX 910 ; N a104 ; B 35 40 875 651 ;
|
||||
C 165 ; WX 667 ; N a106 ; B 35 -14 633 705 ;
|
||||
C 166 ; WX 760 ; N a107 ; B 35 -14 726 705 ;
|
||||
C 167 ; WX 760 ; N a108 ; B 0 121 758 569 ;
|
||||
C 168 ; WX 776 ; N a112 ; B 35 0 741 705 ;
|
||||
C 169 ; WX 595 ; N a111 ; B 34 -14 560 705 ;
|
||||
C 170 ; WX 694 ; N a110 ; B 35 -14 659 705 ;
|
||||
C 171 ; WX 626 ; N a109 ; B 34 0 591 705 ;
|
||||
C 172 ; WX 788 ; N a120 ; B 35 -14 754 705 ;
|
||||
C 173 ; WX 788 ; N a121 ; B 35 -14 754 705 ;
|
||||
C 174 ; WX 788 ; N a122 ; B 35 -14 754 705 ;
|
||||
C 175 ; WX 788 ; N a123 ; B 35 -14 754 705 ;
|
||||
C 176 ; WX 788 ; N a124 ; B 35 -14 754 705 ;
|
||||
C 177 ; WX 788 ; N a125 ; B 35 -14 754 705 ;
|
||||
C 178 ; WX 788 ; N a126 ; B 35 -14 754 705 ;
|
||||
C 179 ; WX 788 ; N a127 ; B 35 -14 754 705 ;
|
||||
C 180 ; WX 788 ; N a128 ; B 35 -14 754 705 ;
|
||||
C 181 ; WX 788 ; N a129 ; B 35 -14 754 705 ;
|
||||
C 182 ; WX 788 ; N a130 ; B 35 -14 754 705 ;
|
||||
C 183 ; WX 788 ; N a131 ; B 35 -14 754 705 ;
|
||||
C 184 ; WX 788 ; N a132 ; B 35 -14 754 705 ;
|
||||
C 185 ; WX 788 ; N a133 ; B 35 -14 754 705 ;
|
||||
C 186 ; WX 788 ; N a134 ; B 35 -14 754 705 ;
|
||||
C 187 ; WX 788 ; N a135 ; B 35 -14 754 705 ;
|
||||
C 188 ; WX 788 ; N a136 ; B 35 -14 754 705 ;
|
||||
C 189 ; WX 788 ; N a137 ; B 35 -14 754 705 ;
|
||||
C 190 ; WX 788 ; N a138 ; B 35 -14 754 705 ;
|
||||
C 191 ; WX 788 ; N a139 ; B 35 -14 754 705 ;
|
||||
C 192 ; WX 788 ; N a140 ; B 35 -14 754 705 ;
|
||||
C 193 ; WX 788 ; N a141 ; B 35 -14 754 705 ;
|
||||
C 194 ; WX 788 ; N a142 ; B 35 -14 754 705 ;
|
||||
C 195 ; WX 788 ; N a143 ; B 35 -14 754 705 ;
|
||||
C 196 ; WX 788 ; N a144 ; B 35 -14 754 705 ;
|
||||
C 197 ; WX 788 ; N a145 ; B 35 -14 754 705 ;
|
||||
C 198 ; WX 788 ; N a146 ; B 35 -14 754 705 ;
|
||||
C 199 ; WX 788 ; N a147 ; B 35 -14 754 705 ;
|
||||
C 200 ; WX 788 ; N a148 ; B 35 -14 754 705 ;
|
||||
C 201 ; WX 788 ; N a149 ; B 35 -14 754 705 ;
|
||||
C 202 ; WX 788 ; N a150 ; B 35 -14 754 705 ;
|
||||
C 203 ; WX 788 ; N a151 ; B 35 -14 754 705 ;
|
||||
C 204 ; WX 788 ; N a152 ; B 35 -14 754 705 ;
|
||||
C 205 ; WX 788 ; N a153 ; B 35 -14 754 705 ;
|
||||
C 206 ; WX 788 ; N a154 ; B 35 -14 754 705 ;
|
||||
C 207 ; WX 788 ; N a155 ; B 35 -14 754 705 ;
|
||||
C 208 ; WX 788 ; N a156 ; B 35 -14 754 705 ;
|
||||
C 209 ; WX 788 ; N a157 ; B 35 -14 754 705 ;
|
||||
C 210 ; WX 788 ; N a158 ; B 35 -14 754 705 ;
|
||||
C 211 ; WX 788 ; N a159 ; B 35 -14 754 705 ;
|
||||
C 212 ; WX 894 ; N a160 ; B 35 58 860 634 ;
|
||||
C 213 ; WX 838 ; N a161 ; B 35 152 803 540 ;
|
||||
C 214 ; WX 1016 ; N a163 ; B 34 152 981 540 ;
|
||||
C 215 ; WX 458 ; N a164 ; B 35 -127 422 820 ;
|
||||
C 216 ; WX 748 ; N a196 ; B 35 94 698 597 ;
|
||||
C 217 ; WX 924 ; N a165 ; B 35 140 890 552 ;
|
||||
C 218 ; WX 748 ; N a192 ; B 35 94 698 597 ;
|
||||
C 219 ; WX 918 ; N a166 ; B 35 166 884 526 ;
|
||||
C 220 ; WX 927 ; N a167 ; B 35 32 892 660 ;
|
||||
C 221 ; WX 928 ; N a168 ; B 35 129 891 562 ;
|
||||
C 222 ; WX 928 ; N a169 ; B 35 128 893 563 ;
|
||||
C 223 ; WX 834 ; N a170 ; B 35 155 799 537 ;
|
||||
C 224 ; WX 873 ; N a171 ; B 35 93 838 599 ;
|
||||
C 225 ; WX 828 ; N a172 ; B 35 104 791 588 ;
|
||||
C 226 ; WX 924 ; N a173 ; B 35 98 889 594 ;
|
||||
C 227 ; WX 924 ; N a162 ; B 35 98 889 594 ;
|
||||
C 228 ; WX 917 ; N a174 ; B 35 0 882 692 ;
|
||||
C 229 ; WX 930 ; N a175 ; B 35 84 896 608 ;
|
||||
C 230 ; WX 931 ; N a176 ; B 35 84 896 608 ;
|
||||
C 231 ; WX 463 ; N a177 ; B 35 -99 429 791 ;
|
||||
C 232 ; WX 883 ; N a178 ; B 35 71 848 623 ;
|
||||
C 233 ; WX 836 ; N a179 ; B 35 44 802 648 ;
|
||||
C 234 ; WX 836 ; N a193 ; B 35 44 802 648 ;
|
||||
C 235 ; WX 867 ; N a180 ; B 35 101 832 591 ;
|
||||
C 236 ; WX 867 ; N a199 ; B 35 101 832 591 ;
|
||||
C 237 ; WX 696 ; N a181 ; B 35 44 661 648 ;
|
||||
C 238 ; WX 696 ; N a200 ; B 35 44 661 648 ;
|
||||
C 239 ; WX 874 ; N a182 ; B 35 77 840 619 ;
|
||||
C 241 ; WX 874 ; N a201 ; B 35 73 840 615 ;
|
||||
C 242 ; WX 760 ; N a183 ; B 35 0 725 692 ;
|
||||
C 243 ; WX 946 ; N a184 ; B 35 160 911 533 ;
|
||||
C 244 ; WX 771 ; N a197 ; B 34 37 736 655 ;
|
||||
C 245 ; WX 865 ; N a185 ; B 35 207 830 481 ;
|
||||
C 246 ; WX 771 ; N a194 ; B 34 37 736 655 ;
|
||||
C 247 ; WX 888 ; N a198 ; B 34 -19 853 712 ;
|
||||
C 248 ; WX 967 ; N a186 ; B 35 124 932 568 ;
|
||||
C 249 ; WX 888 ; N a195 ; B 34 -19 853 712 ;
|
||||
C 250 ; WX 831 ; N a187 ; B 35 113 796 579 ;
|
||||
C 251 ; WX 873 ; N a188 ; B 36 118 838 578 ;
|
||||
C 252 ; WX 927 ; N a189 ; B 35 150 891 542 ;
|
||||
C 253 ; WX 970 ; N a190 ; B 35 76 931 616 ;
|
||||
C 254 ; WX 918 ; N a191 ; B 34 99 884 593 ;
|
||||
EndCharMetrics
|
||||
EndFontMetrics
|
||||
80
vendor/dompdf/dompdf/lib/fonts/installed-fonts.dist.json
vendored
Normal file
80
vendor/dompdf/dompdf/lib/fonts/installed-fonts.dist.json
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"sans-serif": {
|
||||
"normal": "Helvetica",
|
||||
"bold": "Helvetica-Bold",
|
||||
"italic": "Helvetica-Oblique",
|
||||
"bold_italic": "Helvetica-BoldOblique"
|
||||
},
|
||||
"times": {
|
||||
"normal": "Times-Roman",
|
||||
"bold": "Times-Bold",
|
||||
"italic": "Times-Italic",
|
||||
"bold_italic": "Times-BoldItalic"
|
||||
},
|
||||
"times-roman": {
|
||||
"normal": "Times-Roman",
|
||||
"bold": "Times-Bold",
|
||||
"italic": "Times-Italic",
|
||||
"bold_italic": "Times-BoldItalic"
|
||||
},
|
||||
"courier": {
|
||||
"normal": "Courier",
|
||||
"bold": "Courier-Bold",
|
||||
"italic": "Courier-Oblique",
|
||||
"bold_italic": "Courier-BoldOblique"
|
||||
},
|
||||
"helvetica": {
|
||||
"normal": "Helvetica",
|
||||
"bold": "Helvetica-Bold",
|
||||
"italic": "Helvetica-Oblique",
|
||||
"bold_italic": "Helvetica-BoldOblique"
|
||||
},
|
||||
"zapfdingbats": {
|
||||
"normal": "ZapfDingbats",
|
||||
"bold": "ZapfDingbats",
|
||||
"italic": "ZapfDingbats",
|
||||
"bold_italic": "ZapfDingbats"
|
||||
},
|
||||
"symbol": {
|
||||
"normal": "Symbol",
|
||||
"bold": "Symbol",
|
||||
"italic": "Symbol",
|
||||
"bold_italic": "Symbol"
|
||||
},
|
||||
"serif": {
|
||||
"normal": "Times-Roman",
|
||||
"bold": "Times-Bold",
|
||||
"italic": "Times-Italic",
|
||||
"bold_italic": "Times-BoldItalic"
|
||||
},
|
||||
"monospace": {
|
||||
"normal": "Courier",
|
||||
"bold": "Courier-Bold",
|
||||
"italic": "Courier-Oblique",
|
||||
"bold_italic": "Courier-BoldOblique"
|
||||
},
|
||||
"fixed": {
|
||||
"normal": "Courier",
|
||||
"bold": "Courier-Bold",
|
||||
"italic": "Courier-Oblique",
|
||||
"bold_italic": "Courier-BoldOblique"
|
||||
},
|
||||
"dejavu sans": {
|
||||
"bold": "DejaVuSans-Bold",
|
||||
"bold_italic": "DejaVuSans-BoldOblique",
|
||||
"italic": "DejaVuSans-Oblique",
|
||||
"normal": "DejaVuSans"
|
||||
},
|
||||
"dejavu sans mono": {
|
||||
"bold": "DejaVuSansMono-Bold",
|
||||
"bold_italic": "DejaVuSansMono-BoldOblique",
|
||||
"italic": "DejaVuSansMono-Oblique",
|
||||
"normal": "DejaVuSansMono"
|
||||
},
|
||||
"dejavu serif": {
|
||||
"bold": "DejaVuSerif-Bold",
|
||||
"bold_italic": "DejaVuSerif-BoldItalic",
|
||||
"italic": "DejaVuSerif-Italic",
|
||||
"normal": "DejaVuSerif"
|
||||
}
|
||||
}
|
||||
17
vendor/dompdf/dompdf/lib/fonts/mustRead.html
vendored
Normal file
17
vendor/dompdf/dompdf/lib/fonts/mustRead.html
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="Adobe GoLive 4">
|
||||
<title>Core 14 AFM Files - ReadMe</title>
|
||||
</head>
|
||||
<body bgcolor="white">
|
||||
<font color="white">or</font>
|
||||
<table border="0" cellpadding="0" cellspacing="2">
|
||||
<tr>
|
||||
<td width="40"></td>
|
||||
<td width="300">This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. <font color="white">Col</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>Source <a href="http://www.adobe.com/devnet/font/#pcfi">http://www.adobe.com/devnet/font/#pcfi</a></p>
|
||||
</body>
|
||||
</html>
|
||||
BIN
vendor/dompdf/dompdf/lib/res/broken_image.png
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/res/broken_image.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 618 B |
8
vendor/dompdf/dompdf/lib/res/broken_image.svg
vendored
Normal file
8
vendor/dompdf/dompdf/lib/res/broken_image.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg">
|
||||
<g>
|
||||
<rect stroke="#666666" id="svg_1" height="60.499994" width="60.166667" y="1.666669" x="1.999998" stroke-width="1.5" fill="none"/>
|
||||
<line stroke-linecap="butt" stroke-linejoin="miter" id="svg_3" y2="59.333253" x2="59.749916" y1="4.333415" x1="4.250079" stroke-width="1.5" stroke="#999999" fill="none"/>
|
||||
<line stroke-linecap="butt" stroke-linejoin="miter" id="svg_4" y2="59.999665" x2="4.062838" y1="3.750342" x1="60.062164" stroke-width="1.5" stroke="#999999" fill="none"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 581 B |
526
vendor/dompdf/dompdf/lib/res/html.css
vendored
Normal file
526
vendor/dompdf/dompdf/lib/res/html.css
vendored
Normal file
@@ -0,0 +1,526 @@
|
||||
/**
|
||||
* dompdf default stylesheet.
|
||||
*
|
||||
* @package dompdf
|
||||
* @link https://github.com/dompdf/dompdf
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
*
|
||||
* Portions from Mozilla
|
||||
* @link https://dxr.mozilla.org/mozilla-central/source/layout/style/res/html.css
|
||||
* @license http://mozilla.org/MPL/2.0/ Mozilla Public License, v. 2.0
|
||||
*
|
||||
* Portions from W3C
|
||||
* @link https://www.w3.org/TR/css-ui-3/#default-style-sheet
|
||||
*
|
||||
*/
|
||||
|
||||
@page {
|
||||
margin: 1.2cm;
|
||||
}
|
||||
|
||||
html {
|
||||
display: -dompdf-page !important;
|
||||
counter-reset: page;
|
||||
}
|
||||
|
||||
/* blocks */
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
div,
|
||||
dt,
|
||||
figcaption,
|
||||
footer,
|
||||
form,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
noscript,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
page-break-before: avoid;
|
||||
display: block !important;
|
||||
counter-increment: page;
|
||||
}
|
||||
|
||||
p, dl, multicol {
|
||||
display: block;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
dd {
|
||||
display: block;
|
||||
margin-left: 40px;
|
||||
}
|
||||
|
||||
blockquote, figure {
|
||||
display: block;
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
address {
|
||||
display: block;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
center {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
blockquote[type=cite] {
|
||||
display: block;
|
||||
margin: 1em 0;
|
||||
padding-left: 1em;
|
||||
border-left: solid;
|
||||
border-color: blue;
|
||||
border-width: thin;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: .67em 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5em;
|
||||
margin: .83em 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.17em;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 1.33em 0;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.83em;
|
||||
margin: 1.67em 0;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.67em;
|
||||
margin: 2.33em 0;
|
||||
}
|
||||
|
||||
listing {
|
||||
display: block;
|
||||
font-family: fixed;
|
||||
font-size: medium;
|
||||
white-space: pre;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
plaintext, pre, xmp {
|
||||
display: block;
|
||||
font-family: fixed;
|
||||
white-space: pre;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
/* tables */
|
||||
|
||||
table {
|
||||
display: table;
|
||||
border-spacing: 2px;
|
||||
border-collapse: separate;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
text-indent: 0;
|
||||
text-align: left; /* quirk */
|
||||
}
|
||||
|
||||
table[border] {
|
||||
border: outset gray;
|
||||
}
|
||||
|
||||
table[border] td,
|
||||
table[border] th {
|
||||
border: 1px inset gray;
|
||||
}
|
||||
|
||||
table[border="0"] td,
|
||||
table[border="0"] th {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
/* make sure backgrounds are inherited in tables -- see bug 4510 */
|
||||
td, th, tr {
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
/* caption inherits from table not table-outer */
|
||||
caption {
|
||||
display: table-caption;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr {
|
||||
display: table-row;
|
||||
vertical-align: inherit;
|
||||
}
|
||||
|
||||
col {
|
||||
display: table-column;
|
||||
}
|
||||
|
||||
colgroup {
|
||||
display: table-column-group;
|
||||
}
|
||||
|
||||
tbody {
|
||||
display: table-row-group;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
thead {
|
||||
display: table-header-group;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
display: table-footer-group;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* To simulate tbody auto-insertion */
|
||||
table > tr {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
td {
|
||||
display: table-cell;
|
||||
vertical-align: inherit;
|
||||
text-align: inherit;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
th {
|
||||
display: table-cell;
|
||||
vertical-align: inherit;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
/* inlines */
|
||||
|
||||
q::before {
|
||||
content: open-quote;
|
||||
}
|
||||
|
||||
q::after {
|
||||
content: close-quote;
|
||||
}
|
||||
|
||||
:link {
|
||||
color: #00c;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
i, cite, em, var, dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
tt, code, kbd, samp {
|
||||
font-family: fixed;
|
||||
}
|
||||
|
||||
u, ins {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
s, strike, del {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
big {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
sub {
|
||||
vertical-align: sub;
|
||||
font-size: smaller;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
sup {
|
||||
vertical-align: super;
|
||||
font-size: smaller;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
nobr {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: yellow;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* titles */
|
||||
|
||||
abbr[title], acronym[title] {
|
||||
text-decoration: dotted underline;
|
||||
}
|
||||
|
||||
/* lists */
|
||||
|
||||
ul, menu, dir {
|
||||
display: block;
|
||||
list-style-type: disc;
|
||||
margin: 1em 0;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
ol {
|
||||
display: block;
|
||||
list-style-type: decimal;
|
||||
margin: 1em 0;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
li {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/*li::before {
|
||||
display: -dompdf-list-bullet !important;
|
||||
content: counter(-dompdf-default-counter) ". ";
|
||||
padding-right: 0.5em;
|
||||
}*/
|
||||
|
||||
/* nested lists have no top/bottom margins */
|
||||
:matches(ul, ol, dir, menu, dl) ul,
|
||||
:matches(ul, ol, dir, menu, dl) ol,
|
||||
:matches(ul, ol, dir, menu, dl) dir,
|
||||
:matches(ul, ol, dir, menu, dl) menu,
|
||||
:matches(ul, ol, dir, menu, dl) dl {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* 2 deep unordered lists use a circle */
|
||||
:matches(ul, ol, dir, menu) ul,
|
||||
:matches(ul, ol, dir, menu) menu,
|
||||
:matches(ul, ol, dir, menu) dir {
|
||||
list-style-type: circle;
|
||||
}
|
||||
|
||||
/* 3 deep (or more) unordered lists use a square */
|
||||
:matches(ul, ol, dir, menu) :matches(ul, ol, dir, menu) ul,
|
||||
:matches(ul, ol, dir, menu) :matches(ul, ol, dir, menu) menu,
|
||||
:matches(ul, ol, dir, menu) :matches(ul, ol, dir, menu) dir {
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
/* forms */
|
||||
/* From https://www.w3.org/TR/css-ui-3/#default-style-sheet */
|
||||
form {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input, button, select {
|
||||
display: inline-block;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
input, button, textarea, select {
|
||||
background: #FFF;
|
||||
border: 1px solid #999;
|
||||
padding: 2px;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
input, select {
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
input[type=hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
input[type=checkbox],
|
||||
input[type=radio],
|
||||
input[type=image] {
|
||||
width: auto;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type=button],
|
||||
input[type=submit],
|
||||
input[type=reset],
|
||||
input[type=file],
|
||||
button {
|
||||
width: auto;
|
||||
background: #CCC;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input[type=file] {
|
||||
width: 8em;
|
||||
}
|
||||
|
||||
input::before {
|
||||
content: attr(value);
|
||||
}
|
||||
|
||||
input[type=image][alt]::before {
|
||||
content: attr(alt);
|
||||
}
|
||||
|
||||
input[type=file]::before {
|
||||
content: "Choose a file";
|
||||
}
|
||||
|
||||
input[type=password][value]::before {
|
||||
font-family: "DejaVu Sans" !important;
|
||||
content: "\2022\2022\2022\2022\2022\2022\2022\2022";
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
input[type=password][value=""]::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
input[type=checkbox],
|
||||
input[type=radio],
|
||||
select::after {
|
||||
font-family: "DejaVu Sans" !important;
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
input[type=checkbox]::before {
|
||||
content: "\2610";
|
||||
}
|
||||
|
||||
input[type=checkbox][checked]::before {
|
||||
content: "\2611";
|
||||
}
|
||||
|
||||
input[type=radio]::before {
|
||||
content: "\25CB";
|
||||
}
|
||||
|
||||
input[type=radio][checked]::before {
|
||||
content: "\25C9";
|
||||
}
|
||||
|
||||
textarea {
|
||||
display: block;
|
||||
height: 3em;
|
||||
overflow: hidden;
|
||||
font-family: monospace;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
select {
|
||||
position: relative !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
select::after {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 5em;
|
||||
width: 1.4em;
|
||||
text-align: center;
|
||||
background: #CCC;
|
||||
content: "\25BE";
|
||||
}
|
||||
|
||||
select option {
|
||||
display: none;
|
||||
}
|
||||
|
||||
select option[selected] {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
display: block;
|
||||
margin: 0.6em 2px 2px;
|
||||
padding: 0.75em;
|
||||
border: 1pt groove #666;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
fieldset > legend {
|
||||
position: absolute;
|
||||
top: -0.6em;
|
||||
left: 0.75em;
|
||||
padding: 0 0.3em;
|
||||
background: white;
|
||||
}
|
||||
|
||||
legend {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* leafs */
|
||||
|
||||
hr {
|
||||
display: block;
|
||||
height: 0;
|
||||
border: 1px inset;
|
||||
margin: 0.5em auto 0.5em auto;
|
||||
}
|
||||
|
||||
hr[size="1"] {
|
||||
border-style: solid none none none;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 2px inset;
|
||||
}
|
||||
|
||||
noframes {
|
||||
display: block;
|
||||
}
|
||||
|
||||
br {
|
||||
display: -dompdf-br;
|
||||
}
|
||||
|
||||
img, img_generated {
|
||||
display: -dompdf-image !important;
|
||||
}
|
||||
|
||||
dompdf_generated {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* hidden elements */
|
||||
area, base, basefont, head, meta, script, style, title,
|
||||
noembed, param {
|
||||
display: none;
|
||||
-dompdf-keep: yes;
|
||||
}
|
||||
BIN
vendor/dompdf/dompdf/lib/res/sRGB2014.icc
vendored
Normal file
BIN
vendor/dompdf/dompdf/lib/res/sRGB2014.icc
vendored
Normal file
Binary file not shown.
5
vendor/dompdf/dompdf/lib/res/sRGB2014.icc.LICENSE
vendored
Normal file
5
vendor/dompdf/dompdf/lib/res/sRGB2014.icc.LICENSE
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
The copyright owner and terms of use of an ICC profile are normally identified in the Creator field in the profile header and in the Copyright tag. Where ICC is the copyright owner, the following license terms apply:
|
||||
|
||||
"This profile is made available by the International Color Consortium, and may be copied, distributed, embedded, made, used, and sold without restriction. Altered versions of this profile shall have the original identification and copyright information removed and shall not be misrepresented as the original profile."
|
||||
|
||||
(reference https://www.color.org/profiles2.xalter#license)
|
||||
20
vendor/dompdf/dompdf/phpunit.xml
vendored
Normal file
20
vendor/dompdf/dompdf/phpunit.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
convertDeprecationsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
failOnSkipped="true">
|
||||
<testsuites>
|
||||
<testsuite name="Dompdf Test Suite">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
1005
vendor/dompdf/dompdf/src/Adapter/CPDF.php
vendored
Normal file
1005
vendor/dompdf/dompdf/src/Adapter/CPDF.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1061
vendor/dompdf/dompdf/src/Adapter/GD.php
vendored
Normal file
1061
vendor/dompdf/dompdf/src/Adapter/GD.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1557
vendor/dompdf/dompdf/src/Adapter/PDFLib.php
vendored
Normal file
1557
vendor/dompdf/dompdf/src/Adapter/PDFLib.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
487
vendor/dompdf/dompdf/src/Canvas.php
vendored
Normal file
487
vendor/dompdf/dompdf/src/Canvas.php
vendored
Normal file
@@ -0,0 +1,487 @@
|
||||
<?php
|
||||
/**
|
||||
* @package dompdf
|
||||
* @link https://github.com/dompdf/dompdf
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
*/
|
||||
namespace Dompdf;
|
||||
|
||||
/**
|
||||
* Main rendering interface
|
||||
*
|
||||
* Currently {@link Dompdf\Adapter\CPDF}, {@link Dompdf\Adapter\PDFLib}, and {@link Dompdf\Adapter\GD}
|
||||
* implement this interface.
|
||||
*
|
||||
* Implementations should measure x and y increasing to the left and down,
|
||||
* respectively, with the origin in the top left corner. Implementations
|
||||
* are free to use a unit other than points for length, but I can't
|
||||
* guarantee that the results will look any good.
|
||||
*
|
||||
* @package dompdf
|
||||
*/
|
||||
interface Canvas
|
||||
{
|
||||
/**
|
||||
* @param string|float[] $paper The paper size to use as either a standard paper size (see {@link Dompdf\Adapter\CPDF::$PAPER_SIZES})
|
||||
* or an array of the form `[x1, y1, x2, y2]` (typically `[0, 0, width, height]`).
|
||||
* @param string $orientation The paper orientation, either `portrait` or `landscape`.
|
||||
* @param Dompdf|null $dompdf The Dompdf instance.
|
||||
*/
|
||||
public function __construct($paper = "letter", string $orientation = "portrait", ?Dompdf $dompdf = null);
|
||||
|
||||
/**
|
||||
* @return Dompdf
|
||||
*/
|
||||
function get_dompdf();
|
||||
|
||||
/**
|
||||
* Returns the current page number
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
function get_page_number();
|
||||
|
||||
/**
|
||||
* Returns the total number of pages in the document
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
function get_page_count();
|
||||
|
||||
/**
|
||||
* Sets the total number of pages
|
||||
*
|
||||
* @param int $count
|
||||
*/
|
||||
function set_page_count($count);
|
||||
|
||||
/**
|
||||
* Draws a line from x1,y1 to x2,y2
|
||||
*
|
||||
* See {@link Cpdf::setLineStyle()} for a description of the format of the
|
||||
* $style and $cap parameters (aka dash and cap).
|
||||
*
|
||||
* @param float $x1
|
||||
* @param float $y1
|
||||
* @param float $x2
|
||||
* @param float $y2
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $width
|
||||
* @param array $style
|
||||
* @param string $cap `butt`, `round`, or `square`
|
||||
*/
|
||||
function line($x1, $y1, $x2, $y2, $color, $width, $style = [], $cap = "butt");
|
||||
|
||||
/**
|
||||
* Draws an arc
|
||||
*
|
||||
* See {@link Cpdf::setLineStyle()} for a description of the format of the
|
||||
* $style and $cap parameters (aka dash and cap).
|
||||
*
|
||||
* @param float $x X coordinate of the arc
|
||||
* @param float $y Y coordinate of the arc
|
||||
* @param float $r1 Radius 1
|
||||
* @param float $r2 Radius 2
|
||||
* @param float $astart Start angle in degrees
|
||||
* @param float $aend End angle in degrees
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $width
|
||||
* @param array $style
|
||||
* @param string $cap `butt`, `round`, or `square`
|
||||
*/
|
||||
function arc($x, $y, $r1, $r2, $astart, $aend, $color, $width, $style = [], $cap = "butt");
|
||||
|
||||
/**
|
||||
* Draws a rectangle at x1,y1 with width w and height h
|
||||
*
|
||||
* See {@link Cpdf::setLineStyle()} for a description of the format of the
|
||||
* $style and $cap parameters (aka dash and cap).
|
||||
*
|
||||
* @param float $x1
|
||||
* @param float $y1
|
||||
* @param float $w
|
||||
* @param float $h
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $width
|
||||
* @param array $style
|
||||
* @param string $cap `butt`, `round`, or `square`
|
||||
*/
|
||||
function rectangle($x1, $y1, $w, $h, $color, $width, $style = [], $cap = "butt");
|
||||
|
||||
/**
|
||||
* Draws a filled rectangle at x1,y1 with width w and height h
|
||||
*
|
||||
* @param float $x1
|
||||
* @param float $y1
|
||||
* @param float $w
|
||||
* @param float $h
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
*/
|
||||
function filled_rectangle($x1, $y1, $w, $h, $color);
|
||||
|
||||
/**
|
||||
* Starts a clipping rectangle at x1,y1 with width w and height h
|
||||
*
|
||||
* @param float $x1
|
||||
* @param float $y1
|
||||
* @param float $w
|
||||
* @param float $h
|
||||
*/
|
||||
function clipping_rectangle($x1, $y1, $w, $h);
|
||||
|
||||
/**
|
||||
* Starts a rounded clipping rectangle at x1,y1 with width w and height h
|
||||
*
|
||||
* @param float $x1
|
||||
* @param float $y1
|
||||
* @param float $w
|
||||
* @param float $h
|
||||
* @param float $tl
|
||||
* @param float $tr
|
||||
* @param float $br
|
||||
* @param float $bl
|
||||
*/
|
||||
function clipping_roundrectangle($x1, $y1, $w, $h, $tl, $tr, $br, $bl);
|
||||
|
||||
/**
|
||||
* Starts a clipping polygon
|
||||
*
|
||||
* @param float[] $points
|
||||
*/
|
||||
public function clipping_polygon(array $points): void;
|
||||
|
||||
/**
|
||||
* Ends the last clipping shape
|
||||
*/
|
||||
function clipping_end();
|
||||
|
||||
/**
|
||||
* Processes a callback on every page.
|
||||
*
|
||||
* The callback function receives the four parameters `int $pageNumber`,
|
||||
* `int $pageCount`, `Canvas $canvas`, and `FontMetrics $fontMetrics`, in
|
||||
* that order.
|
||||
*
|
||||
* This function can be used to add page numbers to all pages after the
|
||||
* first one, for example.
|
||||
*
|
||||
* @param callable $callback The callback function to process on every page
|
||||
*/
|
||||
public function page_script($callback): void;
|
||||
|
||||
/**
|
||||
* Writes text at the specified x and y coordinates on every page.
|
||||
*
|
||||
* The strings '{PAGE_NUM}' and '{PAGE_COUNT}' are automatically replaced
|
||||
* with their current values.
|
||||
*
|
||||
* @param float $x
|
||||
* @param float $y
|
||||
* @param string $text The text to write
|
||||
* @param string $font The font file to use
|
||||
* @param float $size The font size, in points
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $word_space Word spacing adjustment
|
||||
* @param float $char_space Char spacing adjustment
|
||||
* @param float $angle Angle to write the text at, measured clockwise starting from the x-axis
|
||||
*/
|
||||
public function page_text($x, $y, $text, $font, $size, $color = [0, 0, 0], $word_space = 0.0, $char_space = 0.0, $angle = 0.0);
|
||||
|
||||
/**
|
||||
* Draws a line at the specified coordinates on every page.
|
||||
*
|
||||
* @param float $x1
|
||||
* @param float $y1
|
||||
* @param float $x2
|
||||
* @param float $y2
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $width
|
||||
* @param array $style
|
||||
*/
|
||||
public function page_line($x1, $y1, $x2, $y2, $color, $width, $style = []);
|
||||
|
||||
/**
|
||||
* Save current state
|
||||
*/
|
||||
function save();
|
||||
|
||||
/**
|
||||
* Restore last state
|
||||
*/
|
||||
function restore();
|
||||
|
||||
/**
|
||||
* Rotate
|
||||
*
|
||||
* @param float $angle angle in degrees for counter-clockwise rotation
|
||||
* @param float $x Origin abscissa
|
||||
* @param float $y Origin ordinate
|
||||
*/
|
||||
function rotate($angle, $x, $y);
|
||||
|
||||
/**
|
||||
* Skew
|
||||
*
|
||||
* @param float $angle_x
|
||||
* @param float $angle_y
|
||||
* @param float $x Origin abscissa
|
||||
* @param float $y Origin ordinate
|
||||
*/
|
||||
function skew($angle_x, $angle_y, $x, $y);
|
||||
|
||||
/**
|
||||
* Scale
|
||||
*
|
||||
* @param float $s_x scaling factor for width as percent
|
||||
* @param float $s_y scaling factor for height as percent
|
||||
* @param float $x Origin abscissa
|
||||
* @param float $y Origin ordinate
|
||||
*/
|
||||
function scale($s_x, $s_y, $x, $y);
|
||||
|
||||
/**
|
||||
* Translate
|
||||
*
|
||||
* @param float $t_x movement to the right
|
||||
* @param float $t_y movement to the bottom
|
||||
*/
|
||||
function translate($t_x, $t_y);
|
||||
|
||||
/**
|
||||
* Transform
|
||||
*
|
||||
* @param float $a
|
||||
* @param float $b
|
||||
* @param float $c
|
||||
* @param float $d
|
||||
* @param float $e
|
||||
* @param float $f
|
||||
*/
|
||||
function transform($a, $b, $c, $d, $e, $f);
|
||||
|
||||
/**
|
||||
* Draws a polygon
|
||||
*
|
||||
* The polygon is formed by joining all the points stored in the $points
|
||||
* array. $points has the following structure:
|
||||
* ```
|
||||
* array(0 => x1,
|
||||
* 1 => y1,
|
||||
* 2 => x2,
|
||||
* 3 => y2,
|
||||
* ...
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* See {@link Cpdf::setLineStyle()} for a description of the format of the
|
||||
* $style parameter (aka dash).
|
||||
*
|
||||
* @param array $points
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $width
|
||||
* @param array $style
|
||||
* @param bool $fill Fills the polygon if true
|
||||
*/
|
||||
function polygon($points, $color, $width = null, $style = [], $fill = false);
|
||||
|
||||
/**
|
||||
* Draws a circle at $x,$y with radius $r
|
||||
*
|
||||
* See {@link Cpdf::setLineStyle()} for a description of the format of the
|
||||
* $style parameter (aka dash).
|
||||
*
|
||||
* @param float $x
|
||||
* @param float $y
|
||||
* @param float $r
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $width
|
||||
* @param array $style
|
||||
* @param bool $fill Fills the circle if true
|
||||
*/
|
||||
function circle($x, $y, $r, $color, $width = null, $style = [], $fill = false);
|
||||
|
||||
/**
|
||||
* Add an image to the pdf.
|
||||
*
|
||||
* The image is placed at the specified x and y coordinates with the
|
||||
* given width and height.
|
||||
*
|
||||
* @param string $img The path to the image
|
||||
* @param float $x X position
|
||||
* @param float $y Y position
|
||||
* @param float $w Width
|
||||
* @param float $h Height
|
||||
* @param string $resolution The resolution of the image
|
||||
*/
|
||||
function image($img, $x, $y, $w, $h, $resolution = "normal");
|
||||
|
||||
/**
|
||||
* Writes text at the specified x and y coordinates
|
||||
*
|
||||
* @param float $x
|
||||
* @param float $y
|
||||
* @param string $text The text to write
|
||||
* @param string $font The font file to use
|
||||
* @param float $size The font size, in points
|
||||
* @param array $color Color array in the format `[r, g, b, "alpha" => alpha]`
|
||||
* where r, g, b, and alpha are float values between 0 and 1
|
||||
* @param float $word_space Word spacing adjustment
|
||||
* @param float $char_space Char spacing adjustment
|
||||
* @param float $angle Angle to write the text at, measured clockwise starting from the x-axis
|
||||
*/
|
||||
function text($x, $y, $text, $font, $size, $color = [0, 0, 0], $word_space = 0.0, $char_space = 0.0, $angle = 0.0);
|
||||
|
||||
/**
|
||||
* Add a named destination (similar to <a name="foo">...</a> in html)
|
||||
*
|
||||
* @param string $anchorname The name of the named destination
|
||||
*/
|
||||
function add_named_dest($anchorname);
|
||||
|
||||
/**
|
||||
* Add a link to the pdf
|
||||
*
|
||||
* @param string $url The url to link to
|
||||
* @param float $x The x position of the link
|
||||
* @param float $y The y position of the link
|
||||
* @param float $width The width of the link
|
||||
* @param float $height The height of the link
|
||||
*/
|
||||
function add_link($url, $x, $y, $width, $height);
|
||||
|
||||
/**
|
||||
* Add meta information to the PDF.
|
||||
*
|
||||
* @param string $label Label of the value (Creator, Producer, etc.)
|
||||
* @param string $value The text to set
|
||||
*/
|
||||
public function add_info(string $label, string $value): void;
|
||||
|
||||
/**
|
||||
* Determines if the font supports the given character
|
||||
*
|
||||
* @param string $font The font file to use
|
||||
* @param string $char The character to check
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function font_supports_char(string $font, string $char): bool;
|
||||
|
||||
/**
|
||||
* Calculates text size, in points
|
||||
*
|
||||
* @param string $text The text to be sized
|
||||
* @param string $font The font file to use
|
||||
* @param float $size The font size, in points
|
||||
* @param float $word_spacing Word spacing, if any
|
||||
* @param float $char_spacing Char spacing, if any
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
function get_text_width($text, $font, $size, $word_spacing = 0.0, $char_spacing = 0.0);
|
||||
|
||||
/**
|
||||
* Calculates font height, in points
|
||||
*
|
||||
* @param string $font The font file to use
|
||||
* @param float $size The font size, in points
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
function get_font_height($font, $size);
|
||||
|
||||
/**
|
||||
* Returns the font x-height, in points
|
||||
*
|
||||
* @param string $font The font file to use
|
||||
* @param float $size The font size, in points
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
//function get_font_x_height($font, $size);
|
||||
|
||||
/**
|
||||
* Calculates font baseline, in points
|
||||
*
|
||||
* @param string $font The font file to use
|
||||
* @param float $size The font size, in points
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
function get_font_baseline($font, $size);
|
||||
|
||||
/**
|
||||
* Returns the PDF's width in points
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
function get_width();
|
||||
|
||||
/**
|
||||
* Returns the PDF's height in points
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
function get_height();
|
||||
|
||||
/**
|
||||
* Sets the opacity
|
||||
*
|
||||
* @param float $opacity
|
||||
* @param string $mode
|
||||
*/
|
||||
public function set_opacity(float $opacity, string $mode = "Normal"): void;
|
||||
|
||||
/**
|
||||
* Sets the default view
|
||||
*
|
||||
* @param string $view
|
||||
* 'XYZ' left, top, zoom
|
||||
* 'Fit'
|
||||
* 'FitH' top
|
||||
* 'FitV' left
|
||||
* 'FitR' left,bottom,right
|
||||
* 'FitB'
|
||||
* 'FitBH' top
|
||||
* 'FitBV' left
|
||||
* @param array $options
|
||||
*/
|
||||
function set_default_view($view, $options = []);
|
||||
|
||||
/**
|
||||
* @param string $code
|
||||
*/
|
||||
function javascript($code);
|
||||
|
||||
/**
|
||||
* Starts a new page
|
||||
*
|
||||
* Subsequent drawing operations will appear on the new page.
|
||||
*/
|
||||
function new_page();
|
||||
|
||||
/**
|
||||
* Streams the PDF to the client.
|
||||
*
|
||||
* @param string $filename The filename to present to the client.
|
||||
* @param array $options Associative array: 'compress' => 1 or 0 (default 1); 'Attachment' => 1 or 0 (default 1).
|
||||
*/
|
||||
function stream($filename, $options = []);
|
||||
|
||||
/**
|
||||
* Returns the PDF as a string.
|
||||
*
|
||||
* @param array $options Associative array: 'compress' => 1 or 0 (default 1).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function output($options = []);
|
||||
}
|
||||
68
vendor/dompdf/dompdf/src/CanvasFactory.php
vendored
Normal file
68
vendor/dompdf/dompdf/src/CanvasFactory.php
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package dompdf
|
||||
* @link https://github.com/dompdf/dompdf
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
*/
|
||||
namespace Dompdf;
|
||||
|
||||
/**
|
||||
* Create canvas instances
|
||||
*
|
||||
* The canvas factory creates canvas instances based on the
|
||||
* availability of rendering backends and config options.
|
||||
*
|
||||
* @package dompdf
|
||||
*/
|
||||
class CanvasFactory
|
||||
{
|
||||
/**
|
||||
* Constructor is private: this is a static class
|
||||
*/
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Dompdf $dompdf
|
||||
* @param string|float[] $paper
|
||||
* @param string $orientation
|
||||
* @param string|null $class
|
||||
*
|
||||
* @return Canvas
|
||||
*/
|
||||
static function get_instance(Dompdf $dompdf, $paper, string $orientation, ?string $class = null)
|
||||
{
|
||||
$backend = strtolower($dompdf->getOptions()->getPdfBackend());
|
||||
|
||||
if (isset($class) && class_exists($class, false)) {
|
||||
$class .= "_Adapter";
|
||||
} else {
|
||||
if (($backend === "auto" || $backend === "pdflib") &&
|
||||
class_exists("PDFLib", false)
|
||||
) {
|
||||
$class = "Dompdf\\Adapter\\PDFLib";
|
||||
}
|
||||
|
||||
else {
|
||||
if (class_exists($backend, false)) {
|
||||
$class = $backend;
|
||||
} elseif ($backend === "gd" && extension_loaded('gd')) {
|
||||
$class = "Dompdf\\Adapter\\GD";
|
||||
} else {
|
||||
$class = "Dompdf\\Adapter\\CPDF";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$instance = new $class($paper, $orientation, $dompdf);
|
||||
|
||||
$class_interfaces = class_implements($class, false);
|
||||
if (!$class_interfaces || !in_array("Dompdf\\Canvas", $class_interfaces)) {
|
||||
$class = "Dompdf\\Adapter\\CPDF";
|
||||
$instance = new $class($paper, $orientation, $dompdf);
|
||||
}
|
||||
|
||||
return $instance;
|
||||
}
|
||||
}
|
||||
1009
vendor/dompdf/dompdf/src/Cellmap.php
vendored
Normal file
1009
vendor/dompdf/dompdf/src/Cellmap.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
680
vendor/dompdf/dompdf/src/Css/AttributeTranslator.php
vendored
Normal file
680
vendor/dompdf/dompdf/src/Css/AttributeTranslator.php
vendored
Normal file
@@ -0,0 +1,680 @@
|
||||
<?php
|
||||
/**
|
||||
* @package dompdf
|
||||
* @link https://github.com/dompdf/dompdf
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
*/
|
||||
namespace Dompdf\Css;
|
||||
|
||||
use Dompdf\Frame;
|
||||
use Dompdf\Helpers;
|
||||
|
||||
/**
|
||||
* Translates HTML 4.0 attributes into CSS rules
|
||||
*
|
||||
* @package dompdf
|
||||
*/
|
||||
class AttributeTranslator
|
||||
{
|
||||
static $_style_attr = "_html_style_attribute";
|
||||
|
||||
// Munged data originally from
|
||||
// http://www.w3.org/TR/REC-html40/index/attributes.html
|
||||
// http://www.cs.tut.fi/~jkorpela/html2css.html
|
||||
private static $__ATTRIBUTE_LOOKUP = [
|
||||
//'caption' => array ( 'align' => '', ),
|
||||
'img' => [
|
||||
'align' => [
|
||||
'bottom' => 'vertical-align: baseline;',
|
||||
'middle' => 'vertical-align: middle;',
|
||||
'top' => 'vertical-align: top;',
|
||||
'left' => 'float: left;',
|
||||
'right' => 'float: right;'
|
||||
],
|
||||
'border' => 'border: %0.2Fpx solid;',
|
||||
'height' => '_set_px_height',
|
||||
'hspace' => 'padding-left: %1$0.2Fpx; padding-right: %1$0.2Fpx;',
|
||||
'vspace' => 'padding-top: %1$0.2Fpx; padding-bottom: %1$0.2Fpx;',
|
||||
'width' => '_set_px_width',
|
||||
],
|
||||
'table' => [
|
||||
'align' => [
|
||||
'left' => 'margin-left: 0; margin-right: auto;',
|
||||
'center' => 'margin-left: auto; margin-right: auto;',
|
||||
'right' => 'margin-left: auto; margin-right: 0;'
|
||||
],
|
||||
'bgcolor' => 'background-color: %s;',
|
||||
'border' => '_set_table_border',
|
||||
'cellpadding' => '_set_table_cellpadding', //'border-spacing: %0.2F; border-collapse: separate;',
|
||||
'cellspacing' => '_set_table_cellspacing',
|
||||
'frame' => [
|
||||
'void' => 'border-style: none;',
|
||||
'above' => 'border-top-style: solid;',
|
||||
'below' => 'border-bottom-style: solid;',
|
||||
'hsides' => 'border-left-style: solid; border-right-style: solid;',
|
||||
'vsides' => 'border-top-style: solid; border-bottom-style: solid;',
|
||||
'lhs' => 'border-left-style: solid;',
|
||||
'rhs' => 'border-right-style: solid;',
|
||||
'box' => 'border-style: solid;',
|
||||
'border' => 'border-style: solid;'
|
||||
],
|
||||
'rules' => '_set_table_rules',
|
||||
'width' => 'width: %s;',
|
||||
],
|
||||
'hr' => [
|
||||
'align' => '_set_hr_align', // Need to grab width to set 'left' & 'right' correctly
|
||||
'noshade' => 'border-style: solid;',
|
||||
'size' => '_set_hr_size', //'border-width: %0.2F px;',
|
||||
'width' => 'width: %s;',
|
||||
],
|
||||
'div' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
'h1' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
'h2' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
'h3' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
'h4' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
'h5' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
'h6' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
//TODO: translate more form element attributes
|
||||
'input' => [
|
||||
'size' => '_set_input_width'
|
||||
],
|
||||
'p' => [
|
||||
'align' => 'text-align: %s;',
|
||||
],
|
||||
// 'col' => array(
|
||||
// 'align' => '',
|
||||
// 'valign' => '',
|
||||
// ),
|
||||
// 'colgroup' => array(
|
||||
// 'align' => '',
|
||||
// 'valign' => '',
|
||||
// ),
|
||||
'tbody' => [
|
||||
'align' => '_set_table_row_align',
|
||||
'valign' => '_set_table_row_valign',
|
||||
],
|
||||
'td' => [
|
||||
'align' => 'text-align: %s;',
|
||||
'bgcolor' => '_set_background_color',
|
||||
'height' => 'height: %s;',
|
||||
'nowrap' => 'white-space: nowrap;',
|
||||
'valign' => 'vertical-align: %s;',
|
||||
'width' => 'width: %s;',
|
||||
],
|
||||
'tfoot' => [
|
||||
'align' => '_set_table_row_align',
|
||||
'valign' => '_set_table_row_valign',
|
||||
],
|
||||
'th' => [
|
||||
'align' => 'text-align: %s;',
|
||||
'bgcolor' => '_set_background_color',
|
||||
'height' => 'height: %s;',
|
||||
'nowrap' => 'white-space: nowrap;',
|
||||
'valign' => 'vertical-align: %s;',
|
||||
'width' => 'width: %s;',
|
||||
],
|
||||
'thead' => [
|
||||
'align' => '_set_table_row_align',
|
||||
'valign' => '_set_table_row_valign',
|
||||
],
|
||||
'tr' => [
|
||||
'align' => '_set_table_row_align',
|
||||
'bgcolor' => '_set_table_row_bgcolor',
|
||||
'valign' => '_set_table_row_valign',
|
||||
],
|
||||
'body' => [
|
||||
'background' => 'background-image: url(%s);',
|
||||
'bgcolor' => '_set_background_color',
|
||||
'link' => '_set_body_link',
|
||||
'text' => '_set_color',
|
||||
],
|
||||
'br' => [
|
||||
'clear' => 'clear: %s;',
|
||||
],
|
||||
'basefont' => [
|
||||
'color' => '_set_color',
|
||||
'face' => 'font-family: %s;',
|
||||
'size' => '_set_basefont_size',
|
||||
],
|
||||
'font' => [
|
||||
'color' => '_set_color',
|
||||
'face' => 'font-family: %s;',
|
||||
'size' => '_set_font_size',
|
||||
],
|
||||
'dir' => [
|
||||
'compact' => 'margin: 0.5em 0;',
|
||||
],
|
||||
'dl' => [
|
||||
'compact' => 'margin: 0.5em 0;',
|
||||
],
|
||||
'menu' => [
|
||||
'compact' => 'margin: 0.5em 0;',
|
||||
],
|
||||
'ol' => [
|
||||
'compact' => 'margin: 0.5em 0;',
|
||||
'start' => 'counter-reset: -dompdf-default-counter %d;',
|
||||
'type' => '_set_list_style_type',
|
||||
],
|
||||
'ul' => [
|
||||
'compact' => 'margin: 0.5em 0;',
|
||||
'type' => '_set_list_style_type',
|
||||
],
|
||||
'li' => [
|
||||
'type' => '_set_list_style_type',
|
||||
'value' => 'counter-reset: -dompdf-default-counter %d;',
|
||||
],
|
||||
'pre' => [
|
||||
'width' => 'width: %s;',
|
||||
],
|
||||
];
|
||||
|
||||
protected static $_last_basefont_size = 3;
|
||||
protected static $_font_size_lookup = [
|
||||
// For basefont support
|
||||
-3 => "4pt",
|
||||
-2 => "5pt",
|
||||
-1 => "6pt",
|
||||
0 => "7pt",
|
||||
|
||||
1 => "8pt",
|
||||
2 => "10pt",
|
||||
3 => "12pt",
|
||||
4 => "14pt",
|
||||
5 => "18pt",
|
||||
6 => "24pt",
|
||||
7 => "34pt",
|
||||
|
||||
// For basefont support
|
||||
8 => "48pt",
|
||||
9 => "44pt",
|
||||
10 => "52pt",
|
||||
11 => "60pt",
|
||||
];
|
||||
|
||||
/**
|
||||
* @param Frame $frame
|
||||
*/
|
||||
static function translate_attributes(Frame $frame)
|
||||
{
|
||||
$node = $frame->get_node();
|
||||
$tag = $node->nodeName;
|
||||
|
||||
if (!isset(self::$__ATTRIBUTE_LOOKUP[$tag])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$valid_attrs = self::$__ATTRIBUTE_LOOKUP[$tag];
|
||||
$attrs = $node->attributes;
|
||||
$style = rtrim($node->getAttribute(self::$_style_attr), "; ");
|
||||
if ($style != "") {
|
||||
$style .= ";";
|
||||
}
|
||||
|
||||
foreach ($attrs as $attr => $attr_node) {
|
||||
if (!isset($valid_attrs[$attr])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$value = $attr_node->value;
|
||||
|
||||
$target = $valid_attrs[$attr];
|
||||
|
||||
// Look up $value in $target, if $target is an array:
|
||||
if (is_array($target)) {
|
||||
if (isset($target[$value])) {
|
||||
$style .= " " . self::_resolve_target($node, $target[$value], $value);
|
||||
}
|
||||
} else {
|
||||
// otherwise use target directly
|
||||
$style .= " " . self::_resolve_target($node, $target, $value);
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_null($style)) {
|
||||
$style = ltrim($style);
|
||||
$node->setAttribute(self::$_style_attr, $style);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMNode $node
|
||||
* @param string $target
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _resolve_target(\DOMNode $node, $target, $value)
|
||||
{
|
||||
if ($target[0] === "_") {
|
||||
return self::$target($node, $value);
|
||||
}
|
||||
|
||||
return $value ? sprintf($target, $value) : "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $new_style
|
||||
*/
|
||||
static function append_style(\DOMElement $node, $new_style)
|
||||
{
|
||||
$style = rtrim($node->getAttribute(self::$_style_attr), ";");
|
||||
$style .= $new_style;
|
||||
$style = ltrim($style, ";");
|
||||
$node->setAttribute(self::$_style_attr, $style);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMNode $node
|
||||
*
|
||||
* @return \DOMNodeList|\DOMElement[]
|
||||
*/
|
||||
protected static function get_cell_list(\DOMNode $node)
|
||||
{
|
||||
$xpath = new \DOMXpath($node->ownerDocument);
|
||||
|
||||
switch ($node->nodeName) {
|
||||
default:
|
||||
case "table":
|
||||
$query = "tr/td | thead/tr/td | tbody/tr/td | tfoot/tr/td | tr/th | thead/tr/th | tbody/tr/th | tfoot/tr/th";
|
||||
break;
|
||||
|
||||
case "tbody":
|
||||
case "tfoot":
|
||||
case "thead":
|
||||
$query = "tr/td | tr/th";
|
||||
break;
|
||||
|
||||
case "tr":
|
||||
$query = "td | th";
|
||||
break;
|
||||
}
|
||||
|
||||
return $xpath->query($query, $node);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _get_valid_color($value)
|
||||
{
|
||||
if (preg_match('/^#?([0-9A-F]{6})$/i', $value, $matches)) {
|
||||
$value = "#$matches[1]";
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _set_color(\DOMElement $node, $value)
|
||||
{
|
||||
$value = self::_get_valid_color($value);
|
||||
|
||||
return "color: $value;";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _set_background_color(\DOMElement $node, $value)
|
||||
{
|
||||
$value = self::_get_valid_color($value);
|
||||
|
||||
return "background-color: $value;";
|
||||
}
|
||||
|
||||
protected static function _set_px_width(\DOMElement $node, string $value): string
|
||||
{
|
||||
$v = trim($value);
|
||||
|
||||
if (Helpers::is_percent($v)) {
|
||||
return sprintf("width: %s;", $v);
|
||||
}
|
||||
|
||||
if (is_numeric(mb_substr($v, 0, 1))) {
|
||||
return sprintf("width: %spx;", (float) $v);
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
protected static function _set_px_height(\DOMElement $node, string $value): string
|
||||
{
|
||||
$v = trim($value);
|
||||
|
||||
if (Helpers::is_percent($v)) {
|
||||
return sprintf("height: %s;", $v);
|
||||
}
|
||||
|
||||
if (is_numeric(mb_substr($v, 0, 1))) {
|
||||
return sprintf("height: %spx;", (float) $v);
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
protected static function _set_table_cellpadding(\DOMElement $node, $value)
|
||||
{
|
||||
$cell_list = self::get_cell_list($node);
|
||||
|
||||
foreach ($cell_list as $cell) {
|
||||
self::append_style($cell, "; padding: {$value}px;");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _set_table_border(\DOMElement $node, $value)
|
||||
{
|
||||
return "border-width: $value" . "px;";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _set_table_cellspacing(\DOMElement $node, $value)
|
||||
{
|
||||
$style = rtrim($node->getAttribute(self::$_style_attr), ";");
|
||||
|
||||
if ($value == 0) {
|
||||
$style .= "; border-collapse: collapse;";
|
||||
} else {
|
||||
$style .= "; border-spacing: {$value}px; border-collapse: separate;";
|
||||
}
|
||||
|
||||
return ltrim($style, ";");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
protected static function _set_table_rules(\DOMElement $node, $value)
|
||||
{
|
||||
$new_style = "; border-collapse: collapse;";
|
||||
|
||||
switch ($value) {
|
||||
case "none":
|
||||
$new_style .= "border-style: none;";
|
||||
break;
|
||||
|
||||
case "groups":
|
||||
// FIXME: unsupported
|
||||
return null;
|
||||
|
||||
case "rows":
|
||||
$new_style .= "border-style: solid none solid none; border-width: 1px; ";
|
||||
break;
|
||||
|
||||
case "cols":
|
||||
$new_style .= "border-style: none solid none solid; border-width: 1px; ";
|
||||
break;
|
||||
|
||||
case "all":
|
||||
$new_style .= "border-style: solid; border-width: 1px; ";
|
||||
break;
|
||||
|
||||
default:
|
||||
// Invalid value
|
||||
return null;
|
||||
}
|
||||
|
||||
$cell_list = self::get_cell_list($node);
|
||||
|
||||
foreach ($cell_list as $cell) {
|
||||
$style = $cell->getAttribute(self::$_style_attr);
|
||||
$style .= $new_style;
|
||||
$cell->setAttribute(self::$_style_attr, $style);
|
||||
}
|
||||
|
||||
$style = rtrim($node->getAttribute(self::$_style_attr), ";");
|
||||
$style .= "; border-collapse: collapse; ";
|
||||
|
||||
return ltrim($style, "; ");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _set_hr_size(\DOMElement $node, $value)
|
||||
{
|
||||
$style = rtrim($node->getAttribute(self::$_style_attr), ";");
|
||||
$style .= "; border-width: " . max(0, $value - 2) . "; ";
|
||||
|
||||
return ltrim($style, "; ");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
protected static function _set_hr_align(\DOMElement $node, $value)
|
||||
{
|
||||
$style = rtrim($node->getAttribute(self::$_style_attr), ";");
|
||||
$width = $node->getAttribute("width");
|
||||
|
||||
if ($width == "") {
|
||||
$width = "100%";
|
||||
}
|
||||
|
||||
$remainder = 100 - (float)rtrim($width, "% ");
|
||||
|
||||
switch ($value) {
|
||||
case "left":
|
||||
$style .= "; margin-right: $remainder %;";
|
||||
break;
|
||||
|
||||
case "right":
|
||||
$style .= "; margin-left: $remainder %;";
|
||||
break;
|
||||
|
||||
case "center":
|
||||
$style .= "; margin-left: auto; margin-right: auto;";
|
||||
break;
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
return ltrim($style, "; ");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
protected static function _set_input_width(\DOMElement $node, $value)
|
||||
{
|
||||
if (empty($value)) { return null; }
|
||||
|
||||
if ($node->hasAttribute("type") && in_array(strtolower($node->getAttribute("type")), ["text","password"])) {
|
||||
return sprintf("width: %Fem", (((int)$value * .65)+2));
|
||||
} else {
|
||||
return sprintf("width: %upx;", (int)$value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
protected static function _set_table_row_align(\DOMElement $node, $value)
|
||||
{
|
||||
$cell_list = self::get_cell_list($node);
|
||||
|
||||
foreach ($cell_list as $cell) {
|
||||
self::append_style($cell, "; text-align: $value;");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
protected static function _set_table_row_valign(\DOMElement $node, $value)
|
||||
{
|
||||
$cell_list = self::get_cell_list($node);
|
||||
|
||||
foreach ($cell_list as $cell) {
|
||||
self::append_style($cell, "; vertical-align: $value;");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
protected static function _set_table_row_bgcolor(\DOMElement $node, $value)
|
||||
{
|
||||
$cell_list = self::get_cell_list($node);
|
||||
$value = self::_get_valid_color($value);
|
||||
|
||||
foreach ($cell_list as $cell) {
|
||||
self::append_style($cell, "; background-color: $value;");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
protected static function _set_body_link(\DOMElement $node, $value)
|
||||
{
|
||||
$a_list = $node->getElementsByTagName("a");
|
||||
$value = self::_get_valid_color($value);
|
||||
|
||||
foreach ($a_list as $a) {
|
||||
self::append_style($a, "; color: $value;");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
protected static function _set_basefont_size(\DOMElement $node, $value)
|
||||
{
|
||||
// FIXME: ? we don't actually set the font size of anything here, just
|
||||
// the base size for later modification by <font> tags.
|
||||
self::$_last_basefont_size = $value;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMElement $node
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function _set_font_size(\DOMElement $node, $value)
|
||||
{
|
||||
$style = $node->getAttribute(self::$_style_attr);
|
||||
|
||||
if ($value[0] === "-" || $value[0] === "+") {
|
||||
$value = self::$_last_basefont_size + (int)$value;
|
||||
}
|
||||
|
||||
if (isset(self::$_font_size_lookup[$value])) {
|
||||
$style .= "; font-size: " . self::$_font_size_lookup[$value] . ";";
|
||||
} else {
|
||||
$style .= "; font-size: $value;";
|
||||
}
|
||||
|
||||
return ltrim($style, "; ");
|
||||
}
|
||||
|
||||
protected static function _set_list_style_type(\DOMElement $node, string $value): string
|
||||
{
|
||||
$v = trim($value);
|
||||
|
||||
switch ($v) {
|
||||
case "1":
|
||||
$type = "decimal";
|
||||
break;
|
||||
case "a":
|
||||
$type = "lower-alpha";
|
||||
break;
|
||||
case "A":
|
||||
$type = "upper-alpha";
|
||||
break;
|
||||
case "i":
|
||||
$type = "lower-roman";
|
||||
break;
|
||||
case "I":
|
||||
$type = "upper-roman";
|
||||
break;
|
||||
default:
|
||||
$type = $v;
|
||||
break;
|
||||
}
|
||||
|
||||
return "list-style-type: $type;";
|
||||
}
|
||||
}
|
||||
339
vendor/dompdf/dompdf/src/Css/Color.php
vendored
Normal file
339
vendor/dompdf/dompdf/src/Css/Color.php
vendored
Normal file
@@ -0,0 +1,339 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package dompdf
|
||||
* @link https://github.com/dompdf/dompdf
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
*/
|
||||
namespace Dompdf\Css;
|
||||
|
||||
use Dompdf\Helpers;
|
||||
|
||||
class Color
|
||||
{
|
||||
static $cssColorNames = [
|
||||
"aliceblue" => "F0F8FF",
|
||||
"antiquewhite" => "FAEBD7",
|
||||
"aqua" => "00FFFF",
|
||||
"aquamarine" => "7FFFD4",
|
||||
"azure" => "F0FFFF",
|
||||
"beige" => "F5F5DC",
|
||||
"bisque" => "FFE4C4",
|
||||
"black" => "000000",
|
||||
"blanchedalmond" => "FFEBCD",
|
||||
"blue" => "0000FF",
|
||||
"blueviolet" => "8A2BE2",
|
||||
"brown" => "A52A2A",
|
||||
"burlywood" => "DEB887",
|
||||
"cadetblue" => "5F9EA0",
|
||||
"chartreuse" => "7FFF00",
|
||||
"chocolate" => "D2691E",
|
||||
"coral" => "FF7F50",
|
||||
"cornflowerblue" => "6495ED",
|
||||
"cornsilk" => "FFF8DC",
|
||||
"crimson" => "DC143C",
|
||||
"cyan" => "00FFFF",
|
||||
"darkblue" => "00008B",
|
||||
"darkcyan" => "008B8B",
|
||||
"darkgoldenrod" => "B8860B",
|
||||
"darkgray" => "A9A9A9",
|
||||
"darkgreen" => "006400",
|
||||
"darkgrey" => "A9A9A9",
|
||||
"darkkhaki" => "BDB76B",
|
||||
"darkmagenta" => "8B008B",
|
||||
"darkolivegreen" => "556B2F",
|
||||
"darkorange" => "FF8C00",
|
||||
"darkorchid" => "9932CC",
|
||||
"darkred" => "8B0000",
|
||||
"darksalmon" => "E9967A",
|
||||
"darkseagreen" => "8FBC8F",
|
||||
"darkslateblue" => "483D8B",
|
||||
"darkslategray" => "2F4F4F",
|
||||
"darkslategrey" => "2F4F4F",
|
||||
"darkturquoise" => "00CED1",
|
||||
"darkviolet" => "9400D3",
|
||||
"deeppink" => "FF1493",
|
||||
"deepskyblue" => "00BFFF",
|
||||
"dimgray" => "696969",
|
||||
"dimgrey" => "696969",
|
||||
"dodgerblue" => "1E90FF",
|
||||
"firebrick" => "B22222",
|
||||
"floralwhite" => "FFFAF0",
|
||||
"forestgreen" => "228B22",
|
||||
"fuchsia" => "FF00FF",
|
||||
"gainsboro" => "DCDCDC",
|
||||
"ghostwhite" => "F8F8FF",
|
||||
"gold" => "FFD700",
|
||||
"goldenrod" => "DAA520",
|
||||
"gray" => "808080",
|
||||
"green" => "008000",
|
||||
"greenyellow" => "ADFF2F",
|
||||
"grey" => "808080",
|
||||
"honeydew" => "F0FFF0",
|
||||
"hotpink" => "FF69B4",
|
||||
"indianred" => "CD5C5C",
|
||||
"indigo" => "4B0082",
|
||||
"ivory" => "FFFFF0",
|
||||
"khaki" => "F0E68C",
|
||||
"lavender" => "E6E6FA",
|
||||
"lavenderblush" => "FFF0F5",
|
||||
"lawngreen" => "7CFC00",
|
||||
"lemonchiffon" => "FFFACD",
|
||||
"lightblue" => "ADD8E6",
|
||||
"lightcoral" => "F08080",
|
||||
"lightcyan" => "E0FFFF",
|
||||
"lightgoldenrodyellow" => "FAFAD2",
|
||||
"lightgray" => "D3D3D3",
|
||||
"lightgreen" => "90EE90",
|
||||
"lightgrey" => "D3D3D3",
|
||||
"lightpink" => "FFB6C1",
|
||||
"lightsalmon" => "FFA07A",
|
||||
"lightseagreen" => "20B2AA",
|
||||
"lightskyblue" => "87CEFA",
|
||||
"lightslategray" => "778899",
|
||||
"lightslategrey" => "778899",
|
||||
"lightsteelblue" => "B0C4DE",
|
||||
"lightyellow" => "FFFFE0",
|
||||
"lime" => "00FF00",
|
||||
"limegreen" => "32CD32",
|
||||
"linen" => "FAF0E6",
|
||||
"magenta" => "FF00FF",
|
||||
"maroon" => "800000",
|
||||
"mediumaquamarine" => "66CDAA",
|
||||
"mediumblue" => "0000CD",
|
||||
"mediumorchid" => "BA55D3",
|
||||
"mediumpurple" => "9370DB",
|
||||
"mediumseagreen" => "3CB371",
|
||||
"mediumslateblue" => "7B68EE",
|
||||
"mediumspringgreen" => "00FA9A",
|
||||
"mediumturquoise" => "48D1CC",
|
||||
"mediumvioletred" => "C71585",
|
||||
"midnightblue" => "191970",
|
||||
"mintcream" => "F5FFFA",
|
||||
"mistyrose" => "FFE4E1",
|
||||
"moccasin" => "FFE4B5",
|
||||
"navajowhite" => "FFDEAD",
|
||||
"navy" => "000080",
|
||||
"oldlace" => "FDF5E6",
|
||||
"olive" => "808000",
|
||||
"olivedrab" => "6B8E23",
|
||||
"orange" => "FFA500",
|
||||
"orangered" => "FF4500",
|
||||
"orchid" => "DA70D6",
|
||||
"palegoldenrod" => "EEE8AA",
|
||||
"palegreen" => "98FB98",
|
||||
"paleturquoise" => "AFEEEE",
|
||||
"palevioletred" => "DB7093",
|
||||
"papayawhip" => "FFEFD5",
|
||||
"peachpuff" => "FFDAB9",
|
||||
"peru" => "CD853F",
|
||||
"pink" => "FFC0CB",
|
||||
"plum" => "DDA0DD",
|
||||
"powderblue" => "B0E0E6",
|
||||
"purple" => "800080",
|
||||
"red" => "FF0000",
|
||||
"rosybrown" => "BC8F8F",
|
||||
"royalblue" => "4169E1",
|
||||
"saddlebrown" => "8B4513",
|
||||
"salmon" => "FA8072",
|
||||
"sandybrown" => "F4A460",
|
||||
"seagreen" => "2E8B57",
|
||||
"seashell" => "FFF5EE",
|
||||
"sienna" => "A0522D",
|
||||
"silver" => "C0C0C0",
|
||||
"skyblue" => "87CEEB",
|
||||
"slateblue" => "6A5ACD",
|
||||
"slategray" => "708090",
|
||||
"slategrey" => "708090",
|
||||
"snow" => "FFFAFA",
|
||||
"springgreen" => "00FF7F",
|
||||
"steelblue" => "4682B4",
|
||||
"tan" => "D2B48C",
|
||||
"teal" => "008080",
|
||||
"thistle" => "D8BFD8",
|
||||
"tomato" => "FF6347",
|
||||
"turquoise" => "40E0D0",
|
||||
"violet" => "EE82EE",
|
||||
"wheat" => "F5DEB3",
|
||||
"white" => "FFFFFF",
|
||||
"whitesmoke" => "F5F5F5",
|
||||
"yellow" => "FFFF00",
|
||||
"yellowgreen" => "9ACD32",
|
||||
];
|
||||
|
||||
/**
|
||||
* @param array|string|null $color
|
||||
* @return array|string|null
|
||||
*/
|
||||
static function parse($color)
|
||||
{
|
||||
if ($color === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (is_array($color)) {
|
||||
// Assume the array has the right format...
|
||||
// FIXME: should/could verify this.
|
||||
return $color;
|
||||
}
|
||||
|
||||
static $cache = [];
|
||||
|
||||
$color = strtolower($color);
|
||||
|
||||
if (isset($cache[$color])) {
|
||||
return $cache[$color];
|
||||
}
|
||||
|
||||
if ($color === "transparent") {
|
||||
return $cache[$color] = $color;
|
||||
}
|
||||
|
||||
if (isset(self::$cssColorNames[$color])) {
|
||||
return $cache[$color] = self::getArray(self::$cssColorNames[$color]);
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-color-4/#hex-notation
|
||||
if (mb_substr($color, 0, 1) === "#") {
|
||||
$length = mb_strlen($color);
|
||||
$alpha = 1.0;
|
||||
|
||||
// #rgb format
|
||||
if ($length === 4) {
|
||||
return $cache[$color] = self::getArray($color[1] . $color[1] . $color[2] . $color[2] . $color[3] . $color[3]);
|
||||
}
|
||||
|
||||
// #rgba format
|
||||
if ($length === 5) {
|
||||
if (\ctype_xdigit($color[4])) {
|
||||
$alpha = round(hexdec($color[4] . $color[4])/255, 2);
|
||||
}
|
||||
return $cache[$color] = self::getArray($color[1] . $color[1] . $color[2] . $color[2] . $color[3] . $color[3], $alpha);
|
||||
}
|
||||
|
||||
// #rrggbb format
|
||||
if ($length === 7) {
|
||||
return $cache[$color] = self::getArray(mb_substr($color, 1, 6));
|
||||
}
|
||||
|
||||
// #rrggbbaa format
|
||||
if ($length === 9) {
|
||||
if (\ctype_xdigit(mb_substr($color, 7, 2))) {
|
||||
$alpha = round(hexdec(mb_substr($color, 7, 2))/255, 2);
|
||||
}
|
||||
return $cache[$color] = self::getArray(mb_substr($color, 1, 6), $alpha);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// rgb( r g b [/α] ) / rgb( r,g,b[,α] ) format and alias rgba()
|
||||
// https://www.w3.org/TR/css-color-4/#rgb-functions
|
||||
if (mb_substr($color, 0, 4) === "rgb(" || mb_substr($color, 0, 5) === "rgba(") {
|
||||
$i = mb_strpos($color, "(");
|
||||
$j = mb_strpos($color, ")");
|
||||
|
||||
// Bad color value
|
||||
if ($i === false || $j === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$value_decl = trim(mb_substr($color, $i + 1, $j - $i - 1));
|
||||
|
||||
if (mb_strpos($value_decl, ",") === false) {
|
||||
// Space-separated values syntax `r g b` or `r g b / α`
|
||||
$parts = preg_split("/\s*\/\s*/", $value_decl);
|
||||
$triplet = preg_split("/\s+/", $parts[0]);
|
||||
$alpha = $parts[1] ?? 1.0;
|
||||
} else {
|
||||
// Comma-separated values syntax `r, g, b` or `r, g, b, α`
|
||||
$parts = preg_split("/\s*,\s*/", $value_decl);
|
||||
$triplet = array_slice($parts, 0, 3);
|
||||
$alpha = $parts[3] ?? 1.0;
|
||||
}
|
||||
|
||||
if (count($triplet) !== 3) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Parse alpha value
|
||||
if (Helpers::is_percent($alpha)) {
|
||||
$alpha = (float) $alpha / 100;
|
||||
} else {
|
||||
$alpha = (float) $alpha;
|
||||
}
|
||||
|
||||
$alpha = max(0.0, min($alpha, 1.0));
|
||||
|
||||
foreach ($triplet as &$c) {
|
||||
if (Helpers::is_percent($c)) {
|
||||
$c = round((float) $c * 2.55);
|
||||
}
|
||||
}
|
||||
|
||||
return $cache[$color] = self::getArray(vsprintf("%02X%02X%02X", $triplet), $alpha);
|
||||
}
|
||||
|
||||
// cmyk( c,m,y,k ) format
|
||||
// http://www.w3.org/TR/css3-gcpm/#cmyk-colors
|
||||
if (mb_substr($color, 0, 5) === "cmyk(") {
|
||||
$i = mb_strpos($color, "(");
|
||||
$j = mb_strpos($color, ")");
|
||||
|
||||
// Bad color value
|
||||
if ($i === false || $j === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$values = explode(",", mb_substr($color, $i + 1, $j - $i - 1));
|
||||
|
||||
if (count($values) != 4) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$values = array_map(function ($c) {
|
||||
return min(1.0, max(0.0, floatval(trim($c))));
|
||||
}, $values);
|
||||
|
||||
return $cache[$color] = self::getArray($values);
|
||||
}
|
||||
|
||||
// Invalid or unsupported color format
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array|string $color
|
||||
* @param float $alpha
|
||||
* @return array
|
||||
*/
|
||||
static function getArray($color, $alpha = 1.0)
|
||||
{
|
||||
$c = [null, null, null, null, "alpha" => $alpha, "hex" => null];
|
||||
|
||||
if (is_array($color)) {
|
||||
$c = $color;
|
||||
$c["c"] = $c[0];
|
||||
$c["m"] = $c[1];
|
||||
$c["y"] = $c[2];
|
||||
$c["k"] = $c[3];
|
||||
$c["alpha"] = $alpha;
|
||||
$c["hex"] = "cmyk($c[0],$c[1],$c[2],$c[3])";
|
||||
} else {
|
||||
if (\ctype_xdigit($color) === false || mb_strlen($color) !== 6) {
|
||||
// invalid color value ... expected 6-character hex
|
||||
return $c;
|
||||
}
|
||||
$c[0] = hexdec(mb_substr($color, 0, 2)) / 0xff;
|
||||
$c[1] = hexdec(mb_substr($color, 2, 2)) / 0xff;
|
||||
$c[2] = hexdec(mb_substr($color, 4, 2)) / 0xff;
|
||||
$c["r"] = $c[0];
|
||||
$c["g"] = $c[1];
|
||||
$c["b"] = $c[2];
|
||||
$c["alpha"] = $alpha;
|
||||
$c["hex"] = sprintf("#%s%02X", $color, round($alpha * 255));
|
||||
}
|
||||
|
||||
return $c;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user