12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?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="CommentsSearch[message]">
- <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="CommentsSearch[created_at]">
- <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: 'yy-mm-dd'});
- $( "#dt_list" ).datepicker( "setDate", "<?=date("Y-m-d", $setdate)?>" );
- } );
- </script>
- <!-- Right navbar links -->
- <ul class="navbar-nav ml-auto">
- <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>
- </ul>
- </nav>
- <!-- /.navbar -->
|