You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.8KB

  1. <?php
  2. use yii\bootstrap\Nav;
  3. use yii\bootstrap\NavBar;
  4. use yii\widgets\Breadcrumbs;
  5. use common\widgets\Alert;
  6. use common\helpers\Url;
  7. \common\assets\CommonAsset::register($this);
  8. \producer\assets\AppAsset::register($this);
  9. $producer = $this->getProducer() ;
  10. ?>
  11. <?php $this->beginPage() ?>
  12. <!DOCTYPE html>
  13. <head>
  14. <title><?= Html::encode($producer->nom); ?> &bull; <?= $this->getTitle(); ?></title>
  15. <meta charset="utf-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1">
  17. <?= Html::csrfMetaTags() ?>
  18. <link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/favicon4.png" />
  19. <!--[if IE]><link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico" /><![endif]-->
  20. <?php $this->head() ?>
  21. <!--[if lt IE 9]>
  22. <script src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/js/html5shiv.min.js"></script>
  23. <link href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/css/ie.css" rel="stylesheet">
  24. <![endif]-->
  25. <!--[if IE 7]>
  26. <link href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/css/ie7.css" rel="stylesheet">
  27. <![endif]-->
  28. </head>
  29. <body class="">
  30. <?php $this->beginBody() ?>
  31. <header id="header">
  32. <div class="container">
  33. <h1><?= Html::encode($producer->nom); ?></h1>
  34. <h2>Boulangerie à <?= Html::encode($producer->ville); ?> (<?= Html::encode($producer->code_postal); ?>)</h2>
  35. <div id="credit"><span>Crédit :</span> 31,90 €</div>
  36. </div>
  37. </header>
  38. <div id="main">
  39. <div class="container">
  40. <nav id="main-nav">
  41. <a id="user" href="#"><span class="glyphicon glyphicon-user"></span> <span class="caret"></span></a>
  42. <ul class="nav nav-pills">
  43. <li><a href="<?php echo Yii::$app->urlManager->createUrl(['producer/index']); ?>"><span class="glyphicon glyphicon-th-large"></span> Accueil</a></li>
  44. <li><a href="<?php echo Yii::$app->urlManager->createUrl('commande/index'); ?>"><span class="glyphicon glyphicon-plus"></span> Commander</a></li>
  45. <li><a href="<?php echo Yii::$app->urlManager->createUrl('producer/index'); ?>"><span class="glyphicon glyphicon-folder-open"></span> Historique</a></li>
  46. <li><a href="<?php echo Yii::$app->urlManager->createUrl('producer/index'); ?>"><span class="glyphicon glyphicon-euro"></span> Crédit</a></li>
  47. <li><a href="<?php echo Yii::$app->urlManager->createUrl('producer/index'); ?>"><span class="glyphicon glyphicon-cog"></span> Paramètres</a></li>
  48. <li><a href="<?php echo Yii::$app->urlManager->createUrl('producer/index'); ?>"><span class="glyphicon glyphicon-envelope"></span> Contact</a></li>
  49. </ul>
  50. </nav>
  51. <section id="content">
  52. <?php if (Yii::$app->session->hasFlash('error')): ?>
  53. <div class="alert alert-danger" role="alert">
  54. <?= Yii::$app->session->getFlash('error') ?>
  55. </div>
  56. <?php endif; ?>
  57. <?php if (Yii::$app->session->hasFlash('success')): ?>
  58. <div class="alert alert-success" role="alert">
  59. <?= Yii::$app->session->getFlash('success') ?>
  60. </div>
  61. <?php endif; ?>
  62. <?= $content ?>
  63. </section>
  64. </div>
  65. </div>
  66. <footer id="footer">
  67. <div class="container">
  68. <div class="overflow"></div>
  69. <div class="content">
  70. <p>Propulsé par <a href="#">La boîte à pain</a></p>
  71. </div>
  72. </div>
  73. </footer>
  74. <?php $this->endBody() ?>
  75. </body>
  76. </html>
  77. <?php $this->endPage() ?>