✏️ 正在编辑: index.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/cidade/index.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Cidades</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <?php if( $this->cidades ): ?> <form id="f_cidadess" method="post" onsubmit=" return validarChecks(this)" action="<?php echo $this->url(array( 'action' => 'delete' )); ?>"> <table> <thead> <tr class="top_list"> <th>UF</th> <th>Nome</th> <th>Cidade pai</th> <th colspan="2"></th> <th class="check_control"><input type="checkbox" name="control" id="control" value="all" onclick="myOptions.check(this)" /></th> </tr> </thead> <tfoot> <tr> <td colspan="5"><?php echo $this->cidades ?></td> </tr> </tfoot> <tbody> <?php if( $this->cidades->getTotalItemCount() == 0 ): ?> <tr> <td colspan="6">Nenhum registro encontrado.</td> </tr> <?php else: foreach ( $this->cidades as $cidade ): ?> <?php $cidadePai = $cidade->findParentRow('Model_DbTable_Cidade'); if($cidadePai['uf']){ $cidadePai['nome'] .= ' - '. $cidadePai['uf']; } ?> <tr> <td><?php echo $cidade['uf'] ?></td> <td><?php echo $cidade['nome'] ?></td> <td><?php echo $cidadePai['nome'] ?></td> <td align="center"><a href="<?php echo $this->url(array( 'action' => 'save', 'id' => $cidade['id'] )) ?>" class="link_edit"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'action' => 'delete', 'id' => $cidade['id'] )) ?>" class="link_remove"></a></td> <td align="center"><input type="checkbox" name="cidades[]" id="checks[]" value="<?php echo $cidade['id'] ?>" /></td> </tr> <?php endforeach; endif ?> <tr> <td colspan="6"><input type="submit" value="Excluir Selecionados" alt="1" name="remove_all" class="bt_delete" style="float: right;" /></td> </tr> </tbody> </table> </form> <?php endif; ?> </div>
💾 保存文件
← 返回文件管理器