✏️ 正在编辑: campanha-rank.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/relatorio/campanha-rank.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Relatório de Campanhas</h1> <div id="filter"> <?= $this->form; ?> <div class="clear"></div> </div> <div id="content"> <table> <thead> <tr class="top_list"> <th>Faixa</th> <th>Ranking na Faixa</th> <th>Corretor</th> <th>Vl. Produção</th> </tr> </thead> <tbody> <?php $auth = Yuppie_Auth::getIdentity(); if($this->rank): $ranks = $this->rank; $rankNome = $this->rank[0]['nome']; $i = 0; foreach ($ranks as $key => $rank): if($rank['nome'] == $rankNome){ $i++; }else{ $i = 1; $rankNome = $rank['nome']; } ?> <?php if($auth->grupo == 'Corretor'){ if($auth->id == $rank['corretor_id']){ ?> <tr> <td align="center"><?= $rank['nome'] ?></td> <td><?= $i?>º</td> <td><?= $rank['corretor'] ?></td> <td><span>R$ </span><?= number_format($rank['valor_liquido'],2,',','.') ?></td> </tr> <?php } }else{ ?> <tr> <td align="center"><?= $rank['nome'] ?></td> <td><?= $i?>º</td> <td><?= $rank['corretor'] ?></td> <td><span>R$ </span><?= number_format($rank['valor_liquido'],2,',','.') ?></td> </tr> <?php } ?> <?php endforeach; endif;?> </table> </div> <?php if( isset($this->regras) && $this->regras ): ?> <div id="regras" style="width:500px; margin-top:7%; margin-left:1%;border-radius: 5px; box-shadow: 10px 10px 5px #888888; padding: 8px; border:solid 1px #888888; "> <?php if( $auth->grupo == 'Corretor' || $auth->grupo == 'Supervisor'){ echo "<h1>Regras da campanha</h1>"; if(!empty($this->regras['anexo'])){ echo "<a href='". $this->baseUrl()."/uploads/".$this->regras['anexo']."' target='_blank'> Visualizar Anexo</a>"; } echo "<br><br>"; echo $this->regras['regras']; } ?> </div> <?php endif; ?>
💾 保存文件
← 返回文件管理器