- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
foreach ($shops as $shop) {
if($merch["id"] == $shop["id_user"]){
switch ($shop["weekday"]){
case 0: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
case 1: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
case 2: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
case 3: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
case 4: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
case 5: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
case 6: if($shop["status"] == 1) $temp[$shop["weekday"]]["done"] += 1;$temp[$shop["weekday"]]["total"] += 1;break;
}
}
}
Коммерческий продукт.
FUUU~~~