| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/sc/ |
Upload File : |
<?php
/* Smarty version 3.1.30, created on 2026-06-27 05:56:50
from "/var/www/clients/client1/web17/web/includes/templates/templates/worktime/details.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_6a3f4a02854ce6_27306371',
'has_nocache_code' => false,
'file_dependency' =>
array (
'a489c2979d42062676aaabaac0719c987434fac6' =>
array (
0 => '/var/www/clients/client1/web17/web/includes/templates/templates/worktime/details.tpl',
1 => 1780435594,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6a3f4a02854ce6_27306371 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('employees', $_smarty_tpl->tpl_vars['worktime']->value->employees());
$_smarty_tpl->_assignInScope('hours', $_smarty_tpl->tpl_vars['worktime']->value->workHours());
?>
<div class="container-fluid p-4">
<div class="d-flex flex-wrap justify-content-between align-items-center mb-4">
<h1 class="h3 mb-0">Arbeitszeit erfassen</h1>
<a href="<?php echo @constant('SITE_URL');?>
/worktime/dashboard/" class="btn btn-outline-secondary">← Kalender</a>
</div>
<div class="card shadow-sm mb-4">
<div class="card-body">
<form id="workHoursForm" method="post" class="row g-3">
<input type="hidden" name="id" id="workHourId">
<div class="col-md-3">
<label for="selectEmployee" class="form-label">Mitarbeiter</label>
<select class="form-select" id="selectEmployee" name="employee">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['employees']->value, 'e');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['e']->value) {
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['e']->value->id;?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['e']->value->last_name, ENT_QUOTES, 'UTF-8', true);?>
, <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['e']->value->first_name, ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</select>
</div>
<div class="col-md-2">
<label for="workDate" class="form-label">Datum</label>
<input type="date" class="form-control" id="workDate" name="date" required>
</div>
<div class="col-md-2">
<label for="startTime" class="form-label">Start</label>
<input type="time" class="form-control" id="startTime" name="start_time" required>
</div>
<div class="col-md-2">
<label for="endTime" class="form-label">Ende</label>
<input type="time" class="form-control" id="endTime" name="end_time" required>
</div>
<div class="col-md-2">
<label for="breakDuration" class="form-label">Pause (Min.)</label>
<input type="number" class="form-control" id="breakDuration" name="break_duration" min="0" max="120" step="15" value="0">
</div>
<div class="col-md-1 d-flex align-items-end gap-2">
<button type="submit" class="btn btn-primary w-100" id="saveButton">Speichern</button>
<button type="button" class="btn btn-secondary" id="cancelButton" style="display:none;">Abbrechen</button>
</div>
</form>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">Erfasste Arbeitszeiten</div>
<div class="table-responsive">
<table class="table table-striped table-hover mb-0 align-middle">
<thead>
<tr>
<th>Mitarbeiter</th><th>Datum</th><th>Start</th><th>Ende</th>
<th class="text-end">Stunden</th><th>Pause</th><th class="text-end">Aktionen</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hours']->value, 'h');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['h']->value) {
?>
<tr>
<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['h']->value->last_name, ENT_QUOTES, 'UTF-8', true);?>
, <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['h']->value->first_name, ENT_QUOTES, 'UTF-8', true);?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['h']->value->date;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['h']->value->start_time;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['h']->value->end_time;?>
</td>
<td class="text-end"><?php echo sprintf("%.2f",$_smarty_tpl->tpl_vars['h']->value->work_hours);?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['h']->value->break_duration;?>
</td>
<td class="text-end text-nowrap">
<button class="btn btn-sm btn-primary btn-edit" data-id="<?php echo $_smarty_tpl->tpl_vars['h']->value->id;?>
">Bearbeiten</button>
<button class="btn btn-sm btn-danger btn-delete" data-id="<?php echo $_smarty_tpl->tpl_vars['h']->value->id;?>
">Löschen</button>
</td>
</tr>
<?php
}
} else {
?>
<tr><td colspan="7" class="text-center text-muted py-3">Noch keine Arbeitszeiten erfasst.</td></tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</tbody>
</table>
</div>
</div>
</div>
<?php echo '<script'; ?>
src="<?php echo @constant('SITE_URL');?>
/assets/js/time.js"><?php echo '</script'; ?>
>
<?php }
}