PageRenderTime 70ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/apps/frontend/modules/proyecto/templates/indexSuccess.php

https://github.com/nhpatt/gestor-de-estados
PHP | 35 lines | 33 code | 2 blank | 0 comment | 1 complexity | 619eae20ad67af4f408db602b89dda9d MD5 | raw file
  1. <h1>Listado de Proyectos</h1>
  2. <div>
  3. <table class="listados">
  4. <tr class="header">
  5. <td>Nombre</td>
  6. <td>URL</td>
  7. <td>L&iacute;neas base</td>
  8. <td>Acciones</td>
  9. </tr>
  10. <?php foreach ($proyectos as $i => $proyecto): ?>
  11. <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
  12. <td><?php echo $proyecto->getNombre() ?></td>
  13. <td class="especial"><a
  14. href="<?php echo url_for('proyecto/show?id='.$proyecto->getId()) ?>">
  15. <?php echo $proyecto->getUrl() ?> </a></td>
  16. <td class="especial"><a
  17. href="<?php echo url_for('lineaBase/index?proyectoId='.$proyecto->getId()) ?>">L&iacute;neas
  18. base</a></td>
  19. <td><a
  20. href="<?php echo url_for('proyecto/show?id='.$proyecto->getId())?>">
  21. <img title="Consultar proyecto" src="/~javgama/gestor/web/images/filter.png" />
  22. </a>
  23. &nbsp;
  24. <a
  25. href="<?php echo url_for('artefacto/index?proyectoId='.$proyecto->getId()) ?>"><img
  26. title="Nuevo artefacto" src="/~javgama/gestor/web/images/add.png" /></a></td>
  27. </tr>
  28. <?php endforeach ?>
  29. </table>
  30. </div>
  31. <?php if($sf_user->hasPermission('comite') or $sf_user->hasPermission('administrador')):?>
  32. <div style="float: right;"><?php echo button_to('Nuevo Proyecto', 'proyecto/new') ?></div>
  33. <?php endif;?>