$array = $_POST;
foreach ($array as $item) {
$this->db->query('INSERT INTO `dayoff` (`id`, `off_date`, `off_id`) VALUES (NULL, :date, :zero)', ['date'=>$item['date'], 'zero'=>$item['zero']]);
}
foreach ($array as $item) {
'INSERT INTO `dayoff` (`id`, `off_date`, `off_id`) VALUES (NULL, '.$item['date'].', '.$item['zero'].')'
}
background-repeat: no-repeat;
background-size: cover;