✏️ 正在编辑: ranking-vendas.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/relatorio/ranking-vendas.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Ranking de Vendas por Corretor</h1> <div id="filter_ranking_vendas"> <?php echo $this->form; ?> </div> <div id="columns_selected"> <fieldset> <legend>Selecione as colunas para exibição</legend> <dl> <dd><input type="checkbox" id="select_column1" name="select_column1" value="1" onchange="hideShowTableColumn(this)" checked="checked" /></dd> <dt><label for="select_column1">Corretor</label></dt> <dd><input type="checkbox" id="select_column2" name="select_column2" value="2" onchange="hideShowTableColumn(this)" checked="checked" /></dd> <dt><label for="select_column2">Supervisor</label></dt> </dl> </fieldset> <div class="clear"></div> </div> <div id="view-content"> <table summary="RelProducao" class="tablesorter relatorio" id="sortedTable"> <thead> <tr class="top_list"> <th>Corretor</th> <th>Supervisor</th> <?php if(isset($this->fields)):?> <?php $intervalos1 = $this->mesesIntervalo($this->fields['periodo_data1'], $this->fields['periodo_data1_a']);?> <?php $intervalos2 = $this->mesesIntervalo($this->fields['periodo_data2'], $this->fields['periodo_data2_a']);?> <?php $intervalo = array_merge($intervalos1, $intervalos2);?> <?php foreach ( $intervalo as $dt ) :?> <th colspan="2"><?php echo $dt;?></th> <?php endforeach;?> <?php endif;?> </tr> </thead> <tbody> <?php if( isset($this->producao->corretores) ? count($this->producao->corretores) <= 0 : count($this->producao) <= 0 ):?> <tr> <td colspan="3">Nenhum resultado a ser exibido.</td> </tr> <?php else: ?> <?php foreach ( $this->producao->corretores as $corretor => $meses ): ?> <?php $totalLiquido = array_sum($this->totais);?> <tr> <td><?php echo $corretor ?></td> <td><?php echo!empty($this->dados_corretores[$corretor]) ? $this->dados_corretores[$corretor]['supervisor'] : null; ?></td> <?php foreach ( $intervalo as $value ) :?> <?php $impresso = false;?> <?php foreach ($meses as $mesAno => $produzido):?> <?php $formatado = explode("/", $value); $mes = (int) $formatado[0]; $ano = (int) $formatado[1]; ?> <?php if($mesAno == "{$mes}/{$ano}"):?> <?php $impresso = true; $valor = $produzido ? $produzido : 0.0; ?> <td class="valor" data-value="<?php echo $valor ?>"> <span>R$ </span><?php echo $valor > 0 ? @number_format($produzido, 2, ',', '.') : '0,00' ?> </td> <td class="valor"> (<?php echo $valor > 0 ? @number_format($produzido * 100 / $this->totais["{$mes}/{$ano}"], 2, ',', '.') : '0,0'; ?>%) </td> <?php endif;?> <?php endforeach;?> <?php if(!$impresso):?> <td class="valor"> <span>R$ </span>0,00 </td> <td class="valor"> (0,0%) </td> <?php endif;?> <?php endforeach;?> </tr> <?php endforeach; ?> <?php endif; ?> </tbody> <tfoot> <tr> <td class="negrito">Total: <?php echo isset($this->producao->corretores) ? count($this->producao->corretores) : count($this->producao); ?></td> <td></td> <td></td> <?php if( isset($this->totais) ): ?> <?php foreach ( $this->totais as $total ): ?> <td colspan="2"> <span>R$ </span><?php echo $total ? number_format($total, 2, ',', '.') : '0,00' ?> </td> <?php endforeach; ?> <?php endif; ?> </tr> <tr> <td class="valor negrito">Total Geral: R$ <?php echo isset($totalLiquido) ? number_format($totalLiquido,2,',','.') : null; ?></td> </tr> </tfoot> </table> </div>
💾 保存文件
← 返回文件管理器