PageRenderTime 63ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/apps/frontend/templates/layout.php

https://github.com/frhumanes/PLM
PHP | 105 lines | 96 code | 9 blank | 0 comment | 2 complexity | 7ecc27a0ad75307be847aadec659c4f1 MD5 | raw file
  1. <!-- apps/frontend/templates/layout.php -->
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
  5. <head>
  6. <title><?php include_slot('title', 'Price-Roch >>>> PLM') ?></title>
  7. <link rel="shortcut icon" href="/favicon.ico" />
  8. <?php echo include_http_metas() ?>
  9. <?php use_stylesheet('cupertino/jquery-ui-1.8.1.custom.css') ?>
  10. <?php include_stylesheets() ?>
  11. <?php use_javascript('jquery-1.4.2.min.js') ?>
  12. <?php use_javascript('jquery-ui-1.8.1.custom.min.js') ?>
  13. <?php use_javascript('flot/jquery.flot.js') ?>
  14. <?php use_javascript('flot/jquery.flot.min.stack.js') ?>
  15. <?php include_javascripts() ?>
  16. <?php use_helper('Text') ?>
  17. </head>
  18. <body>
  19. <div id="container">
  20. <div id="header">
  21. <div class="content">
  22. <h1><a href="<?php echo url_for('homepage') ?>">
  23. <img title="Pincha aquí para ir al inicio" src="images/logo.png" alt="Price Roch Logo" />
  24. </a></h1>
  25. <h2><a id="salir" class="boton" href="<?php echo url_for('sf_guard_signout') ?>">
  26. Cerrar sesión
  27. </a></h2>
  28. <div id="sub_header">
  29. <ul>
  30. <li><a class="boton" href="<?php echo url_for('homepage') ?>">Mi panel</a></li>
  31. <li><a class="boton" href="<?php echo url_for('oferta') ?>">Ofertas</a></li>
  32. <li><a class="boton" href="<?php echo url_for('proyecto') ?>">Proyectos</a></li>
  33. <li><a class="boton" href="<?php echo url_for('factura') ?>">Facturas</a></li>
  34. </ul>
  35. <div class="search">
  36. <form action="<?php echo url_for('buscar') ?>" method="get">
  37. <input type="text" name="query"
  38. id="search_keywords" />
  39. <input type="submit" value="search" />
  40. <div class="help">
  41. Introduzca alguna palabra clave (código, cliente, título, estado, responsable,...)
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <div id="content">
  49. <?php if ($sf_user->hasFlash('notice')): ?>
  50. <div id="notice" class="flash_notice ui-state-highlight ui-corner-all">
  51. <?php echo $sf_user->getFlash('notice') ?>
  52. </div>
  53. <script type="text/javascript">
  54. $('#notice').show('blind',{},500).delay(3000).hide('highlight',{},500);
  55. </script>
  56. <?php endif ?>
  57. <?php if ($sf_user->hasFlash('error')): ?>
  58. <div id="error" class="flash_error ui-state-error ui-corner-all">
  59. <?php echo $sf_user->getFlash('error') ?>
  60. </div>
  61. <script type="text/javascript">
  62. $('#error').show('blind',{},500).delay(5000).hide('highlight',{},500);
  63. </script>
  64. <?php endif ?>
  65. <div class="content">
  66. <?php echo $sf_content ?>
  67. </div>
  68. </div>
  69. <div id="footer">
  70. <div class="content">
  71. <span class="symfony">
  72. <a href="http://www.price-roch.com/"><img src="/images/price-mini.png" /></a>
  73. powered by <a href="http://www.symfony-project.org/">
  74. <img src="/images/symfony.gif" alt="symfony framework" />
  75. </a>
  76. </span>
  77. </div>
  78. </div>
  79. </div>
  80. <script type="text/javascript">
  81. $(function() {
  82. $(".boton").button();
  83. $("#dialog-signin").dialog({
  84. width: 400,
  85. modal: true,
  86. buttons: {
  87. 'Acceder': function() {
  88. $(this).submit();
  89. $(this).dialog('close');
  90. }
  91. }
  92. });
  93. });
  94. </script>
  95. </body>
  96. </html>