✏️ 正在编辑: index.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/cargo/index.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Cargos</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <table> <thead> <tr class="top_list"> <th>Empresa</th> <th>Nome</th> <th>Salário Bruto</th> <th>Gratificação Função</th> <th>INSS</th> <th>Total Bruto</th> <th colspan="2"></th> </tr> </thead> <tbody> <?php if( count($this->cargos) > 0 ): foreach ( $this->cargos as $cargo ): ?> <?php $soma = ($cargo['salario_bruto']); $inss = Model_Tributo::calculoDescontoInss($soma); $totalBruto = $soma - $inss; // //CÁLCULO DO INSS // $calculoInss = Model_Cargo::calculoInss($dadosCargo['salario_bruto'] + $values['gratificacao_funcao']); // $values['inss'] = $calculoInss; ?> <tr> <td><?php echo $cargo['empresa']; ?></td> <td><?php echo $cargo['nome']; ?></td> <td class="valor"><span>R$ </span><?php echo number_format($cargo['salario_bruto'], 2, ',', '.'); ?></td> <td class="valor"><span>R$ </span><?php echo number_format($cargo['gratificacao_funcao'], 2, ',', '.'); ?></td> <td class="valor despesa"><span>R$ </span><?php echo number_format($inss, 2, ',', '.'); ?></td> <td class="valor"><span>R$ </span><?php echo number_format($totalBruto, 2, ',', '.'); ?></td> <td><a href="<?php echo $this->url(array( 'action' => 'save', 'id' => $cargo['id'] )); ?>" class="link_edit" title="Editar"></a></td> <td><a href="<?php echo $this->url(array( 'action' => 'delete', 'id' => $cargo['id'] )); ?>" class="link_remove" title="Excluir"></a></td> </tr> <?php endforeach; endif; ?> </tbody> <tfoot> <?php $qtdeCargos = count($this->cargos); if( $qtdeCargos > 0 ): ?> <tr> <td>Total <?php echo $qtdeCargos; ?></td> <?php endif ?> </tr> </tfoot> </table> </div>
💾 保存文件
← 返回文件管理器