Exemplo n.º 1
0
                    ?>
		</td>
		<td>
		<?php 
                    echo $name;
                    ?>
		</td>
		<?php 
                    if ($timberInoutDetail != null && count($timberInoutDetail) > 0) {
                        ?>
				
					<?php 
                        foreach ($timberInoutDetail as $treeId => $InOutDetail) {
                            $previousDetail = array();
                            if ($pointId == -1 || $pointId == 0) {
                                $previousDetail = $markDetail->getForestPrevInOut($markDetailId, $detail1['vc_month'], $detail1['vc_year'], $treeId);
                            } else {
                                $previousDetail = $markDetail->getPointPrevInOut($markDetailId, $detail1['vc_month'], $detail1['vc_year'], $pointId, $treeId);
                            }
                            ?>
					</tr>
					<tr>
					<td colspan="2"></td>
					
					
					<td><?php 
                            echo $treeList[$InOutDetail['i_tree_id']]->vc_name;
                            ?>
</td>
					<td >
					 <?php 
Exemplo n.º 2
0
                        $previousDetailYear1 = $markDetail->getPointPrevInOutY($key, $month, $year, $id, $treeId);
                    }
                    $previousDetailYearResult[$treeId][$id] = $previousDetailYear1;
                }
                $previousDetailYear = $previousDetailYearResult[$treeId][$id];
                $previousYearTotal = display_float(display_float($previousDetailYear[$treeId]['InVolume'], 3) - display_float($previousDetailYear[$treeId]['OutVolume'], 3));
                $previousYearTotalCount = display_float(display_float($previousDetailYear[$treeId]['InCount'], 3) - display_float($previousDetailYear[$treeId]['OutCount'], 3));
                //*/
                if ($id == '-1' || $id == '0') {
                    $timberInoutDetail = $markDetail->getForestInOut($key, $month, $year);
                } else {
                    $timberInoutDetail = $markDetail->getPointInOut($key, $month, $year, $id);
                }
                $previousDetail = array();
                if ($id == '-1' || $id == '0') {
                    $previousDetail = $markDetail->getForestPrevInOut($key, $month, $year, $treeId);
                } else {
                    $previousDetail = $markDetail->getPointPrevInOut($key, $month, $year, $id, $treeId);
                }
                ?>
				<tr>
					<td><?php 
                echo $name;
                ?>
</td>
					 
					<td >
					 <?php 
                if ($previousDetail != '') {
                    echo display_float($previousDetail[$treeId]['InVolume'], 3);
                }