main.php_ 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. /** @var yii\web\View $this */
  3. /** @var string $content */
  4. use app\assets\AppAsset;
  5. use app\widgets\Alert;
  6. use yii\bootstrap4\Breadcrumbs;
  7. use yii\bootstrap4\Html;
  8. use yii\bootstrap4\Nav;
  9. use yii\bootstrap4\NavBar;
  10. AppAsset::register($this);
  11. ?>
  12. <?php $this->beginPage() ?>
  13. <!DOCTYPE html>
  14. <html lang="<?= Yii::$app->language ?>" class="h-100">
  15. <head>
  16. <meta charset="<?= Yii::$app->charset ?>">
  17. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  18. <?php $this->registerCsrfMetaTags() ?>
  19. <title><?= Html::encode($this->title) ?></title>
  20. <?php $this->head() ?>
  21. </head>
  22. <body class="d-flex flex-column h-100">
  23. <?php $this->beginBody() ?>
  24. <div class="o-page__sidebar js-page-sidebar">
  25. <div class="c-sidebar" id="main-nav">
  26. <a class="c-sidebar__brand" href="#">
  27. <img class="c-sidebar__brand-img" src="img/logo.png" alt="Logo"> Dashboard
  28. </a>
  29. <h4 class="c-sidebar__title">Dashboards</h4>
  30. <ul class="c-sidebar__list">
  31. <li class="c-sidebar__item">
  32. <a class="c-sidebar__link is-active" href="index.php">
  33. <i class="fa fa-home u-mr-xsmall"></i>Overview
  34. </a>
  35. </li>
  36. <li class="c-sidebar__item">
  37. <a class="c-sidebar__link" href="weekly.php">
  38. <i class="fa fa-line-chart u-mr-xsmall"></i>Неделя метрики
  39. </a>
  40. </li>
  41. <li class="c-sidebar__item">
  42. <a class="c-sidebar__link" href="weekly2.php">
  43. <i class="fa fa-tachometer u-mr-xsmall"></i>Неделя редакция
  44. </a>
  45. </li>
  46. <li class="c-sidebar__item">
  47. <a class="c-sidebar__link" href="prez1.php">
  48. <i class="fa fa-line-chart u-mr-xsmall"></i>Месячный отчёт
  49. </a>
  50. </li>
  51. <li class="c-sidebar__item">
  52. <a class="c-sidebar__link" href="plans.php">
  53. <i class="fa fa-line-chart u-mr-xsmall"></i>Планы
  54. </a>
  55. </li>
  56. <li class="c-sidebar__item">
  57. <a class="c-sidebar__link" target="_blank" href="prez2.php">
  58. <i class="fa fa-rocket u-mr-xsmall"></i>Публикации за месяц
  59. </a>
  60. </li>
  61. <li class="c-sidebar__item">
  62. <a class="c-sidebar__link" href="2019.php">
  63. <i class="fa fa-line-chart u-mr-xsmall"></i>2019
  64. </a>
  65. </li>
  66. <li class="c-sidebar__item">
  67. <a class="c-sidebar__link" href="2018.php">
  68. <i class="fa fa-line-chart u-mr-xsmall"></i>2018
  69. </a>
  70. </li>
  71. </ul>
  72. </ul>
  73. </div><!-- // .c-sidebar -->
  74. </div><!-- // .o-page__sidebar -->
  75. <main role="main" class="o-page__content">
  76. <header class="c-navbar u-mb-medium">
  77. <button class="c-sidebar-toggle u-mr-small">
  78. <span class="c-sidebar-toggle__bar"></span>
  79. <span class="c-sidebar-toggle__bar"></span>
  80. <span class="c-sidebar-toggle__bar"></span>
  81. </button><!-- // .c-sidebar-toggle -->
  82. <div class="c-field has-icon-right c-navbar__search u-hidden-down@tablet u-ml-auto u-mr-small">
  83. <?=Yii::$app->user->identity->username?>
  84. </div>
  85. <div class="c-dropdown dropdown">
  86. <a class="c-avatar c-avatar--xsmall" href="#" id="dropdwonMenuAvatar" aria-expanded="false" data-toggle="modal" data-target="#modal2">
  87. <img class="c-avatar__img" src="" alt="User's Profile Picture">
  88. </a>
  89. </div>
  90. </header>
  91. <div class="container">
  92. <?=$content?>
  93. </div>
  94. </main>
  95. <footer class="footer mt-auto py-3 text-muted">
  96. <div class="container">
  97. </div>
  98. </footer>
  99. <?php $this->endBody() ?>
  100. </body>
  101. </html>
  102. <?php $this->endPage() ?>