navbar.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. use yii\helpers\Html;
  3. ?>
  4. <!-- Navbar -->
  5. <nav class="main-header navbar navbar-expand navbar-white navbar-light">
  6. <!-- Left navbar links -->
  7. <ul class="navbar-nav">
  8. <li class="nav-item">
  9. <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
  10. </li>
  11. <li class="nav-item d-none d-sm-inline-block">
  12. <a href="<?=\yii\helpers\Url::home()?>" class="nav-link">amic.ru</a>
  13. </li>
  14. </ul>
  15. <!-- SEARCH FORM -->
  16. <form class="form-inline ml-3">
  17. <div class="input-group input-group-sm">
  18. <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search" name="search">
  19. <div class="input-group-append">
  20. <button class="btn btn-navbar" type="submit">
  21. <i class="fas fa-search"></i>
  22. </button>
  23. </div>
  24. </div>
  25. </form>
  26. <form class="form-inline ml-3">
  27. <div class="input-group input-group-sm">
  28. <div class="input-group-prepend">
  29. <span class="input-group-text" id="basic-addon1"> <i class="fa fa-calendar"></i></span>
  30. </div>
  31. <input type="text" id="dt_list" class="col-auto" placeholder="Дата" aria-label="Дата" aria-describedby="basic-addon1" value="" name="dt">
  32. <div class="input-group-append">
  33. <button class="btn btn-outline-secondary" type="submit" id="go"><i class="fas fa-sync"></i></button>
  34. </div>
  35. </div>
  36. </form>
  37. <script>
  38. <?
  39. if( $get = Yii::$app->session->get('dt-newslistadm') ){
  40. $get=strtotime($get);
  41. }else{
  42. $get = time();
  43. }
  44. $setdate = (isset($_GET['dt']))?strtotime($_GET['dt']):$get;
  45. ?>
  46. $( function() {
  47. $( "#dt_list" ).datepicker();
  48. $( "#dt_list" ).datepicker("option",{ dateFormat: 'dd-mm-yy'});
  49. $( "#dt_list" ).datepicker( "setDate", "<?=date("d-m-Y", $setdate)?>" );
  50. } );
  51. </script>
  52. <!-- Right navbar links -->
  53. <ul class="navbar-nav ml-auto">
  54. <!-- Messages Dropdown Menu -->
  55. <li class="nav-item dropdown">
  56. <a class="nav-link" data-toggle="dropdown" href="#">
  57. <i class="far fa-comments"></i>
  58. <span class="badge badge-danger navbar-badge">3</span>
  59. </a>
  60. <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
  61. <a href="#" class="dropdown-item">
  62. <!-- Message Start -->
  63. <div class="media">
  64. <img src="<?=$assetDir?>/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
  65. <div class="media-body">
  66. <h3 class="dropdown-item-title">
  67. Brad Diesel
  68. <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
  69. </h3>
  70. <p class="text-sm">Call me whenever you can...</p>
  71. <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
  72. </div>
  73. </div>
  74. <!-- Message End -->
  75. </a>
  76. <div class="dropdown-divider"></div>
  77. <a href="#" class="dropdown-item">
  78. <!-- Message Start -->
  79. <div class="media">
  80. <img src="<?=$assetDir?>/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
  81. <div class="media-body">
  82. <h3 class="dropdown-item-title">
  83. John Pierce
  84. <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
  85. </h3>
  86. <p class="text-sm">I got your message bro</p>
  87. <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
  88. </div>
  89. </div>
  90. <!-- Message End -->
  91. </a>
  92. <div class="dropdown-divider"></div>
  93. <a href="#" class="dropdown-item">
  94. <!-- Message Start -->
  95. <div class="media">
  96. <img src="<?=$assetDir?>/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
  97. <div class="media-body">
  98. <h3 class="dropdown-item-title">
  99. Nora Silvester
  100. <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
  101. </h3>
  102. <p class="text-sm">The subject goes here</p>
  103. <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
  104. </div>
  105. </div>
  106. <!-- Message End -->
  107. </a>
  108. <div class="dropdown-divider"></div>
  109. <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
  110. </div>
  111. </li>
  112. <!-- Notifications Dropdown Menu -->
  113. <li class="nav-item dropdown">
  114. <a class="nav-link" data-toggle="dropdown" href="#">
  115. <i class="far fa-bell"></i>
  116. <span class="badge badge-warning navbar-badge">15</span>
  117. </a>
  118. <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
  119. <span class="dropdown-header">15 Notifications</span>
  120. <div class="dropdown-divider"></div>
  121. <a href="#" class="dropdown-item">
  122. <i class="fas fa-envelope mr-2"></i> 4 new messages
  123. <span class="float-right text-muted text-sm">3 mins</span>
  124. </a>
  125. <div class="dropdown-divider"></div>
  126. <a href="#" class="dropdown-item">
  127. <i class="fas fa-users mr-2"></i> 8 friend requests
  128. <span class="float-right text-muted text-sm">12 hours</span>
  129. </a>
  130. <div class="dropdown-divider"></div>
  131. <a href="#" class="dropdown-item">
  132. <i class="fas fa-file mr-2"></i> 3 new reports
  133. <span class="float-right text-muted text-sm">2 days</span>
  134. </a>
  135. <div class="dropdown-divider"></div>
  136. <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
  137. </div>
  138. </li>
  139. <li class="nav-item">
  140. <?= Html::a('<i class="fas fa-sign-out-alt"></i>', ['/site/logout'], ['data-method' => 'post', 'class' => 'nav-link']) ?>
  141. </li>
  142. <li class="nav-item">
  143. <a class="nav-link" data-widget="fullscreen" href="#" role="button">
  144. <i class="fas fa-expand-arrows-alt"></i>
  145. </a>
  146. </li>
  147. <li class="nav-item">
  148. <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
  149. <i class="fas fa-th-large"></i>
  150. </a>
  151. </li>
  152. </ul>
  153. </nav>
  154. <!-- /.navbar -->