</a>
          <?php 
                } else {
                    echo $area;
                }
                $nowArea = $area;
                ?>
        </td>
      <?php 
            }
            ?>
      <?php 
            if ($nowRegion != $region) {
                ?>
        <td class="text-center" rowspan="<?php 
                echo getArrayDeepCount($spsareaList, 1, 1);
                ?>
">
          <?php 
                if (in_array($this->user['userRole'], array(3, 4, 5, 6))) {
                    ?>
            <a href="<?php 
                    echo printUrl('Main', 'adminDetail', array('area' => urlencode($area), 'region' => urlencode($region), 'year' => $year, 'timeUnit' => $timeUnit, 'fundType' => $fundType));
                    ?>
"><?php 
                    echo $region;
                    ?>
</a>
          <?php 
                } else {
                    echo $region;
Exemplo n.º 2
0
$nowArea = '';
//当前循环地区
$nowRegion = '';
//当前循环大区
foreach ($placeTree as $area => $regionList) {
    foreach ($regionList as $region => $spsareaList) {
        //大区汇总
        $regionStoreIds = isset($regionToStoreList[$region]) ? array_keys($regionToStoreList[$region]) : array();
        $regionTotal = $this->areaProcessModel->countTotalListByStoreIds($regionStoreIds, $procList);
        ?>
    <tr>
      <?php 
        if ($nowArea != $area) {
            ?>
        <td class="text-center" rowspan="<?php 
            echo getArrayDeepCount($regionList, 1, 1);
            ?>
">
          <?php 
            if (in_array($this->user['userRole'], array(3, 4, 5, 6))) {
                ?>
            <a href="<?php 
                echo printUrl('Main', 'adminDetail', array('area' => urlencode($area), 'year' => $year, 'timeUnit' => $timeUnit, 'fundType' => $fundType));
                ?>
"><?php 
                echo $area;
                ?>
</a>
          <?php 
            } else {
                echo $area;