- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
<?php
for($tb=0;$tb<=10;$tb++){
switch($tb){
case 0: $number_table=3; $cros_table=20;
break;
case 1:$number_table+=19; $cros_table+=20;
break;
case 2:$number_table+=20; $cros_table+=20;
break;
case 3:$number_table+=20; $cros_table+=20;
break;
case 4:$number_table+=20; $cros_table+=20;
break;
case 5:$number_table+=20; $cros_table+=20;
break;
case 6:$number_table+=20; $cros_table+=20;
break;
case 7:$number_table+=20; $cros_table+=20;
break;
case 8:$number_table+=20; $cros_table+=20;
break;
case 9:$number_table+=20; $cros_table+=20;
break;
case 10:$number_table+=20; $cros_table+=20;
break;
}
for($i=$number_table; $i<=$cros_table; $i++){
$name_detail = $data->sheets[$global_page]['cells'][$i][1];
$option_detail = $data->sheets[$global_page]['cells'][$i][2];
$mark_detail = $data->sheets[$global_page]['cells'][$i][3];
$actions = $data->sheets[$global_page]['cells'][$i][4];
$work_cost = $data->sheets[$global_page]['cells'][$i][5];
$detail_cost = $data->sheets[$global_page]['cells'][$i][6];
if($name_detail==null){break;}
?>