回答編集履歴
2
修正
test
CHANGED
@@ -96,12 +96,10 @@
|
|
96
96
|
|
97
97
|
$res[$row['y']][$row['m']][$row['d']][] = $row['content'];
|
98
98
|
|
99
|
-
|
100
|
-
|
101
|
-
return $res;
|
102
|
-
|
103
99
|
}
|
104
100
|
|
101
|
+
return $res;
|
102
|
+
|
105
103
|
}
|
106
104
|
|
107
105
|
|
1
修正
test
CHANGED
@@ -230,6 +230,16 @@
|
|
230
230
|
|
231
231
|
}
|
232
232
|
|
233
|
+
|
234
|
+
|
235
|
+
$sch = (isset($schedule[$objDate->format('Y')][$objDate->format('m')][$objDate->format('d')]))
|
236
|
+
|
237
|
+
? $schedule[$objDate->format('Y')][$objDate->format('m')][$objDate->format('d')]
|
238
|
+
|
239
|
+
: [];
|
240
|
+
|
241
|
+
|
242
|
+
|
233
243
|
$h[] = sprintf('<td class="%s" data-date="%s"><span class="%s">%d</span><div>%s</div></td>'
|
234
244
|
|
235
245
|
, ($today->format('Y-m-d') === $objDate->format('Y-m-d')) ? 'active' : ''
|
@@ -240,7 +250,7 @@
|
|
240
250
|
|
241
251
|
, $objDate->format('d')
|
242
252
|
|
243
|
-
, implode('<br>', $sch
|
253
|
+
, implode('<br>', $sch)
|
244
254
|
|
245
255
|
);
|
246
256
|
|
@@ -266,6 +276,4 @@
|
|
266
276
|
|
267
277
|
echo calendar(2017, 1);
|
268
278
|
|
269
|
-
|
270
|
-
|
271
279
|
```
|