+ config->attend->workingDays > 7)
+ {
+ $startDate = strtotime("$currentYear-$currentMonth-01");
+ $startDate = date('w', $startDate) == 0 ? $startDate : strtotime("last Sunday", $startDate);
+ $endDate = strtotime("next month -1 day $currentYear-$currentMonth-01");
+ $endDate = date('w', $endDate) == 6 ? $endDate : strtotime("next Saturday", $endDate);
+ $firstDayIndex = 0;
+ $lastDayIndex = 6;
+ }
+ else
+ {
+ $startDate = strtotime("$currentYear-$currentMonth-01");
+ $startDate = date('w', $startDate) == 1 ? $startDate : strtotime("last Monday", $startDate);
+ $endDate = strtotime("next month -1 day $currentYear-$currentMonth-01");
+ $endDate = date('w', $endDate) == 0 ? $endDate : strtotime("next Sunday", $endDate);
+ $firstDayIndex = 1;
+ $lastDayIndex = 0;
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | attend->weeks[$weekIndex];?> | +attend->dayName;?> | +attend->signIn;?> | +attend->signOut;?> | +actions . '/' . $lang->attend->status;?> | +
|---|---|---|---|---|
| + | datepicker->abbrDayNames[$dayIndex]?> | ++ signIn, 0, 5);?> + attend->statusList[$status];?> + attend->statusList['late'];?> + + | ++ signOut, 0, 5);?> + attend->statusList[$status];?> + attend->statusList['early'];?> + + | +
+ attend->edited : $lang->attend->edit;
+ $leave = $reason == 'leave' ? $lang->attend->leaved : $lang->attend->leave;
+ $makeup = $reason == 'makeup' ? $lang->attend->makeuped : $lang->attend->makeup;
+ $overtime = $reason == 'overtime' ? $lang->attend->overtimed : $lang->attend->overtime;
+ $lieu = $reason == 'lieu' ? $lang->attend->lieud : $lang->attend->lieu;
+ $trip = $reason == 'trip' ? $lang->attend->triped : $lang->attend->trip;
+ $egress = $reason == 'egress' ? $lang->attend->egress : $lang->attend->egress;
+ ?>
+ hoursList):?>
+ hoursList as $status => $hours)
+ {
+ if($index > 1) $statusLabel .= ' '; + $statusLabel .= $lang->attend->statusList[$status] . $hours . 'h'; + $index++; + } + ?> +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ createLink('attend', 'edit', "date=" . $date), $edit, "data-toggle='modal' data-width='500px'");?>
+
+
+ actions;?>
+
+
+
+
+
+ attend->overtime, "data-toggle='modal' data-width='700px'");?>
+
+
+ attend->statusList[$status];?>
+
+ |
+
| + | datepicker->abbrDayNames[$dayIndex]?> | ++ | + | + |