123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?php
- use yii\helpers\Html;
- ?>
- <!-- Navbar -->
- <nav class="main-header navbar navbar-expand navbar-white navbar-light">
- <!-- Left navbar links -->
- <ul class="navbar-nav">
- <li class="nav-item">
- <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
- </li>
- <li class="nav-item d-none d-sm-inline-block">
- <a href="<?=\yii\helpers\Url::home()?>" class="nav-link">amic.ru</a>
- </li>
- </ul>
- <!-- SEARCH FORM -->
- <form class="form-inline ml-3">
- <div class="input-group input-group-sm">
- <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search" name="search">
- <div class="input-group-append">
- <button class="btn btn-navbar" type="submit">
- <i class="fas fa-search"></i>
- </button>
- </div>
- </div>
- </form>
- <form class="form-inline ml-3">
- <div class="input-group input-group-sm">
- <div class="input-group-prepend">
- <span class="input-group-text" id="basic-addon1"> <i class="fa fa-calendar"></i></span>
- </div>
- <input type="text" id="dt_list" class="col-auto" placeholder="Дата" aria-label="Дата" aria-describedby="basic-addon1" value="" name="dt">
- <div class="input-group-append">
- <button class="btn btn-outline-secondary" type="submit" id="go"><i class="fas fa-sync"></i></button>
- </div>
- </div>
- </form>
- <script>
- <?
- if( $get = Yii::$app->session->get('dt-newslistadm') ){
- $get=strtotime($get);
- }else{
- $get = time();
- }
- $setdate = (isset($_GET['dt']))?strtotime($_GET['dt']):$get;
- ?>
- $( function() {
- $( "#dt_list" ).datepicker();
- $( "#dt_list" ).datepicker("option",{ dateFormat: 'dd-mm-yy'});
- $( "#dt_list" ).datepicker( "setDate", "<?=date("d-m-Y", $setdate)?>" );
- } );
- </script>
- <!-- Right navbar links -->
- <ul class="navbar-nav ml-auto">
- <!-- Messages Dropdown Menu -->
- <li class="nav-item dropdown">
- <a class="nav-link" data-toggle="dropdown" href="#">
- <i class="far fa-comments"></i>
- <span class="badge badge-danger navbar-badge" id="user_active_count"></span>
- </a>
- <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
- <div id="user_active"></div>
- <a href="/manager/spy/view" class="dropdown-item dropdown-footer">Смотреть подробности</a>
- </div>
- </li>
- <!-- Notifications Dropdown Menu -->
- <li class="nav-item dropdown">
- <a class="nav-link" data-toggle="dropdown" href="#">
- <i class="far fa-bell"></i>
- <span class="badge badge-warning navbar-badge">15</span>
- </a>
- <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
- <span class="dropdown-header">15 Notifications</span>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="fas fa-envelope mr-2"></i> 4 new messages
- <span class="float-right text-muted text-sm">3 mins</span>
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="fas fa-users mr-2"></i> 8 friend requests
- <span class="float-right text-muted text-sm">12 hours</span>
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="fas fa-file mr-2"></i> 3 new reports
- <span class="float-right text-muted text-sm">2 days</span>
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
- </div>
- </li>
- <li class="nav-item">
- <?= Html::a('<i class="fas fa-sign-out-alt"></i>', ['/site/logout'], ['data-method' => 'post', 'class' => 'nav-link']) ?>
- </li>
- <li class="nav-item">
- <a class="nav-link" data-widget="fullscreen" href="#" role="button">
- <i class="fas fa-expand-arrows-alt"></i>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
- <i class="fas fa-th-large"></i>
- </a>
- </li>
- </ul>
- </nav>
- <!-- /.navbar -->
|