403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/sc/b18c369ce7758f57caa6f435a722e42b97a1ac11_0.file.day.tpl.php
<?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/day.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_6a3f4a0286d8d1_75424042',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b18c369ce7758f57caa6f435a722e42b97a1ac11' => 
    array (
      0 => '/var/www/clients/client1/web17/web/includes/templates/templates/worktime/day.tpl',
      1 => 1780435612,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6a3f4a0286d8d1_75424042 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('day', $_GET['date']);
$_smarty_tpl->_assignInScope('employees', $_smarty_tpl->tpl_vars['worktime']->value->employees());
$_smarty_tpl->_assignInScope('hours', $_smarty_tpl->tpl_vars['worktime']->value->workHours(array('date'=>$_smarty_tpl->tpl_vars['day']->value)));
?>
<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">Arbeitszeiten am <?php echo $_smarty_tpl->tpl_vars['day']->value;?>
</h1>
    <a href="<?php echo @constant('SITE_URL');?>
/worktime/dashboard/" class="btn btn-outline-secondary">&larr; 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">
        <input type="hidden" name="date" id="workDate" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['day']->value, ENT_QUOTES, 'UTF-8', true);?>
">
        <div class="col-md-4">
          <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="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-2 d-flex align-items-end gap-2">
          <button type="submit" class="btn btn-primary w-100" id="saveButton">Hinzufügen</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>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->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">
              <a href="<?php echo @constant('SITE_URL');?>
/worktime/employee/?id=<?php echo $_smarty_tpl->tpl_vars['h']->value->employee_id;?>
" class="btn btn-sm btn-info">Mitarbeiter</a>
              <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="6" class="text-center text-muted py-3">Für diesen Tag wurden 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 }
}

Youez - 2016 - github.com/yon3zu
LinuXploit