✏️ 正在编辑: aniversariantes.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/index/aniversariantes.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h2>Aniversariantes do dia</h2> <div class="container-box"> <table class="aniversariantes-do-dia"> <?php foreach ( $this->aniversariantes as $tipo => $aniversariantes ): if( $aniversariantes && count($aniversariantes) > 0 ): ?> <thead> <tr> <th colspan="2"><?php echo $tipo; ?></th> <th>UF</th> </tr> </thead> <tbody> <?php $data = Zend_Date::now(); foreach ( $aniversariantes as $aniversariante ): $dataNascimento = new Zend_Date($aniversariante['data_nascimento'], 'yyyy-MM-dd'); if( $dataNascimento->compareDay($data) == 1 ): $data->setDay($dataNascimento->getDay()); ?> <tr> <th colspan="2"><?php echo $data->get(Zend_Date::WEEKDAY); ?></th> <th></th> </tr> <?php endif; ?> <tr> <td<?= $tipo != 'corretores' ? ' colspan="2"' : ''; ?>> <?php $controller = 'cliente'; ?> <?php if( $tipo == 'corretores' ): ?> <?php $controller = 'corretor'; ?> <?php elseif( $tipo == 'funcionarios' ): ?> <?php $controller = 'funcionario'; ?> <?php endif; ?> <a href="<?php echo $this->url(array("controller" => $controller, 'action' => 'save', 'id' => $aniversariante['id'])); ?>" title="Ir para o cadastro" > <?= $this->escape($aniversariante['nome']); ?> </a> </td> <?php if( $tipo == 'corretores' ): ?> <td><?= $this->escape($aniversariante['apelido'])." - ".$aniversariante['supervisor'] ; ?></td> <?php endif; ?> <td><?= $aniversariante['uf']?></td> </tr> <?php endforeach; ?> </tbody> <?php endif; ?> <?php endforeach; ?> </table> </div>
💾 保存文件
← 返回文件管理器