質問編集履歴
2
yambejp 様からアドバイスいただき、頭の中での進捗状況追記。
test
CHANGED
File without changes
|
test
CHANGED
@@ -325,3 +325,25 @@
|
|
325
325
|
|
326
326
|
|
327
327
|
何卒よろしくお願いいたします。
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
### データイメージ
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|ユーザー名|年齢|(event_id)|(attendance)|
|
336
|
+
|
337
|
+
|:--:|:--:|:--:|:--:|
|
338
|
+
|
339
|
+
|一郎|30|1,2,,,,6|出席,出席,,,,出席|
|
340
|
+
|
341
|
+
|次郎|29|,,,,,|,,,,,|
|
342
|
+
|
343
|
+
|三郎|28|1,,,,,|出席,,,,,|
|
344
|
+
|
345
|
+
|四子|27|,,3,,,|,,出席,,,|
|
346
|
+
|
347
|
+
|五子|26|1,2,,,5,|欠席,出席,,,出席|
|
348
|
+
|
349
|
+
|六子|25|,2,,,5,|,欠席,,,欠席,|
|
1
add, attendance 誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -208,7 +208,7 @@
|
|
208
208
|
|
209
209
|
#各行列の配置
|
210
210
|
|
211
|
-
|
211
|
+
//1行目は必要なイベント名を出力
|
212
212
|
|
213
213
|
$column_name_1 = array('', '');
|
214
214
|
|
@@ -232,11 +232,9 @@
|
|
232
232
|
|
233
233
|
while ($i < $count) {
|
234
234
|
|
235
|
-
$add
|
235
|
+
$add = '出欠';
|
236
|
-
|
236
|
+
|
237
|
-
$column_name_2[] = $add
|
237
|
+
$column_name_2[] = $add;
|
238
|
-
|
239
|
-
$column_name_2[] = $add_second;
|
240
238
|
|
241
239
|
$i++;
|
242
240
|
|
@@ -280,7 +278,7 @@
|
|
280
278
|
|
281
279
|
foreach ($download_event_users as $download_event_user => $event_user) {
|
282
280
|
|
283
|
-
$add_attendance_status = mb_convert_encoding($event_user->attendance
|
281
|
+
$add_attendance_status = mb_convert_encoding($event_user->attendance, 'SJIS-win', 'UTF-8');//出欠状態
|
284
282
|
|
285
283
|
//出欠状態 CSVへ追記
|
286
284
|
|