';
for ($week = 0;$week <= 6;$week ++){
if($number < 10){
$numbera = '0' . $number;
}else{
$numbera = $number;
}
if($number <= $this_month_days){
if ($number < 10) {
$zero = '0';
}else {
$zero = '';
}
if($row == 1){
if($week >= $this_month_one_n){
if (in_array($number, $post['post'])) {
$calendar .= '' . '' . $number . '' . ' | ';
}else {
$calendar .= '' . $number . ' | ';
}
$flag = 1;
}else{
$calendar .= ' | ';
}
}else{
if (in_array($number, $post['post'])) {
$calendar .= '' . '' . $number . '' . ' | ';
}else {
$calendar .= '' . $number . ' | ';
}
}
if($flag){
$number ++;
}
}else{
$calendar .= ' | ';
}
}
$calendar .= '
';
}
$calendar .= '