회사소개
$employee_name,
'dates' => array()
);
}
$employee_data[$employee_id]['dates'][$work_date] = array(
'in' => $work_intime,
'out' => $work_outtime
);
}
// 월별 데이터 구분 및 정렬
$current_year = date('Y');
$current_month = isset($_GET['month']) ? $_GET['month'] : date('m');
$sorted_data = array();
foreach ($employee_data as $employee_name => $dates) {
ksort($dates);
$sorted_data[$employee_name] = $dates;
}
$current_month = date('m');
$current_year = date('Y');
if (isset($_GET['month'])) {
$current_month = $_GET['month'];
$current_year = date('Y', strtotime($current_year . '-' . $current_month . '-01'));
}
echo "◀";
echo "" . date('Y년 m월', strtotime($current_year . '-' . $current_month . '-01')) . "";
echo "▶";
?>
엑셀 다운로드
" . $weekday . "";
} elseif ($weekday == '일') {
echo "";
} else {
echo "";
}
}
?>
$employee_info) {
echo "";
echo "";
for ($i = 1; $i <= 31; $i++) {
$date = date('Y-m-d', strtotime($current_year . "-" . $current_month . "-" . sprintf('%02d', $i)));
if (isset($employee_info['dates'][$date])) {
if ($employee_info['dates'][$date]['out'] == '') {
echo "";
echo "";
} else {
echo "";
echo "";
}
} else {
echo "";
}
}
echo "";
}
?>
$attendance_count";
}
?>
요일 | " . $weekday . " | " . $weekday . " | ||||
날짜 | ||||||
구분 | 출 | 퇴 | ||||
" . $employee_info['name'] . " | " . date('H:i', strtotime($employee_info['dates'][$date]['in'])) . " |
X
| " . date('H:i', strtotime($employee_info['dates'][$date]['in'])) . " | " . date('H:i', strtotime($employee_info['dates'][$date]['out'])) . " | ||
출근인원 |