header.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?php
  2. use yii\helpers\Html;
  3. /* @var $this \yii\web\View */
  4. /* @var $content string */
  5. ?>
  6. <header class="main-header">
  7. <?= Html::a('<span class="logo-mini">APP</span><span class="logo-lg">' . Yii::$app->name . '</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
  8. <nav class="navbar navbar-static-top" role="navigation">
  9. <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
  10. <span class="sr-only">Toggle navigation</span>
  11. </a>
  12. <div class="navbar-custom-menu">
  13. <ul class="nav navbar-nav">
  14. <!-- Messages: style can be found in dropdown.less-->
  15. <li class="dropdown messages-menu">
  16. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  17. <i class="fa fa-envelope-o"></i>
  18. <span class="label label-success">4</span>
  19. </a>
  20. <ul class="dropdown-menu">
  21. <li class="header">You have 4 messages</li>
  22. <li>
  23. <!-- inner menu: contains the actual data -->
  24. <ul class="menu">
  25. <li><!-- start message -->
  26. <a href="#">
  27. <div class="pull-left">
  28. <img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle"
  29. alt="User Image"/>
  30. </div>
  31. <h4>
  32. Support Team
  33. <small><i class="fa fa-clock-o"></i> 5 mins</small>
  34. </h4>
  35. <p>Why not buy a new awesome theme?</p>
  36. </a>
  37. </li>
  38. <!-- end message -->
  39. <li>
  40. <a href="#">
  41. <div class="pull-left">
  42. <img src="<?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle"
  43. alt="user image"/>
  44. </div>
  45. <h4>
  46. AdminLTE Design Team
  47. <small><i class="fa fa-clock-o"></i> 2 hours</small>
  48. </h4>
  49. <p>Why not buy a new awesome theme?</p>
  50. </a>
  51. </li>
  52. <li>
  53. <a href="#">
  54. <div class="pull-left">
  55. <img src="<?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle"
  56. alt="user image"/>
  57. </div>
  58. <h4>
  59. Developers
  60. <small><i class="fa fa-clock-o"></i> Today</small>
  61. </h4>
  62. <p>Why not buy a new awesome theme?</p>
  63. </a>
  64. </li>
  65. <li>
  66. <a href="#">
  67. <div class="pull-left">
  68. <img src="<?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle"
  69. alt="user image"/>
  70. </div>
  71. <h4>
  72. Sales Department
  73. <small><i class="fa fa-clock-o"></i> Yesterday</small>
  74. </h4>
  75. <p>Why not buy a new awesome theme?</p>
  76. </a>
  77. </li>
  78. <li>
  79. <a href="#">
  80. <div class="pull-left">
  81. <img src="<?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle"
  82. alt="user image"/>
  83. </div>
  84. <h4>
  85. Reviewers
  86. <small><i class="fa fa-clock-o"></i> 2 days</small>
  87. </h4>
  88. <p>Why not buy a new awesome theme?</p>
  89. </a>
  90. </li>
  91. </ul>
  92. </li>
  93. <li class="footer"><a href="#">See All Messages</a></li>
  94. </ul>
  95. </li>
  96. <li class="dropdown notifications-menu">
  97. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  98. <i class="fa fa-bell-o"></i>
  99. <span class="label label-warning">10</span>
  100. </a>
  101. <ul class="dropdown-menu">
  102. <li class="header">You have 10 notifications</li>
  103. <li>
  104. <!-- inner menu: contains the actual data -->
  105. <ul class="menu">
  106. <li>
  107. <a href="#">
  108. <i class="fa fa-users text-aqua"></i> 5 new members joined today
  109. </a>
  110. </li>
  111. <li>
  112. <a href="#">
  113. <i class="fa fa-warning text-yellow"></i> Very long description here that may
  114. not fit into the page and may cause design problems
  115. </a>
  116. </li>
  117. <li>
  118. <a href="#">
  119. <i class="fa fa-users text-red"></i> 5 new members joined
  120. </a>
  121. </li>
  122. <li>
  123. <a href="#">
  124. <i class="fa fa-shopping-cart text-green"></i> 25 sales made
  125. </a>
  126. </li>
  127. <li>
  128. <a href="#">
  129. <i class="fa fa-user text-red"></i> You changed your username
  130. </a>
  131. </li>
  132. </ul>
  133. </li>
  134. <li class="footer"><a href="#">View all</a></li>
  135. </ul>
  136. </li>
  137. <!-- Tasks: style can be found in dropdown.less -->
  138. <li class="dropdown tasks-menu">
  139. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  140. <i class="fa fa-flag-o"></i>
  141. <span class="label label-danger">9</span>
  142. </a>
  143. <ul class="dropdown-menu">
  144. <li class="header">You have 9 tasks</li>
  145. <li>
  146. <!-- inner menu: contains the actual data -->
  147. <ul class="menu">
  148. <li><!-- Task item -->
  149. <a href="#">
  150. <h3>
  151. Design some buttons
  152. <small class="pull-right">20%</small>
  153. </h3>
  154. <div class="progress xs">
  155. <div class="progress-bar progress-bar-aqua" style="width: 20%"
  156. role="progressbar" aria-valuenow="20" aria-valuemin="0"
  157. aria-valuemax="100">
  158. <span class="sr-only">20% Complete</span>
  159. </div>
  160. </div>
  161. </a>
  162. </li>
  163. <!-- end task item -->
  164. <li><!-- Task item -->
  165. <a href="#">
  166. <h3>
  167. Create a nice theme
  168. <small class="pull-right">40%</small>
  169. </h3>
  170. <div class="progress xs">
  171. <div class="progress-bar progress-bar-green" style="width: 40%"
  172. role="progressbar" aria-valuenow="20" aria-valuemin="0"
  173. aria-valuemax="100">
  174. <span class="sr-only">40% Complete</span>
  175. </div>
  176. </div>
  177. </a>
  178. </li>
  179. <!-- end task item -->
  180. <li><!-- Task item -->
  181. <a href="#">
  182. <h3>
  183. Some task I need to do
  184. <small class="pull-right">60%</small>
  185. </h3>
  186. <div class="progress xs">
  187. <div class="progress-bar progress-bar-red" style="width: 60%"
  188. role="progressbar" aria-valuenow="20" aria-valuemin="0"
  189. aria-valuemax="100">
  190. <span class="sr-only">60% Complete</span>
  191. </div>
  192. </div>
  193. </a>
  194. </li>
  195. <!-- end task item -->
  196. <li><!-- Task item -->
  197. <a href="#">
  198. <h3>
  199. Make beautiful transitions
  200. <small class="pull-right">80%</small>
  201. </h3>
  202. <div class="progress xs">
  203. <div class="progress-bar progress-bar-yellow" style="width: 80%"
  204. role="progressbar" aria-valuenow="20" aria-valuemin="0"
  205. aria-valuemax="100">
  206. <span class="sr-only">80% Complete</span>
  207. </div>
  208. </div>
  209. </a>
  210. </li>
  211. <!-- end task item -->
  212. </ul>
  213. </li>
  214. <li class="footer">
  215. <a href="#">View all tasks</a>
  216. </li>
  217. </ul>
  218. </li>
  219. <!-- User Account: style can be found in dropdown.less -->
  220. <li class="dropdown user user-menu">
  221. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  222. <img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
  223. <span class="hidden-xs"><?=Yii::$app->user->identity->username?></span>
  224. </a>
  225. <ul class="dropdown-menu">
  226. <!-- User image -->
  227. <li class="user-header">
  228. <img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle"
  229. alt="User Image"/>
  230. <p>
  231. Alexander Pierce - Web Developer
  232. <small>Member since Nov. 2012</small>
  233. </p>
  234. </li>
  235. <!-- Menu Body -->
  236. <li class="user-body">
  237. <div class="col-xs-4 text-center">
  238. <a href="#">Followers</a>
  239. </div>
  240. <div class="col-xs-4 text-center">
  241. <a href="#">Sales</a>
  242. </div>
  243. <div class="col-xs-4 text-center">
  244. <a href="#">Friends</a>
  245. </div>
  246. </li>
  247. <!-- Menu Footer-->
  248. <li class="user-footer">
  249. <div class="pull-left">
  250. <a href="#" class="btn btn-default btn-flat">Profile</a>
  251. </div>
  252. <div class="pull-right">
  253. <?= Html::a(
  254. 'Sign out',
  255. ['/site/logout'],
  256. ['data-method' => 'post', 'class' => 'btn btn-default btn-flat']
  257. ) ?>
  258. </div>
  259. </li>
  260. </ul>
  261. </li>
  262. <!-- User Account: style can be found in dropdown.less -->
  263. <li>
  264. <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  265. </li>
  266. </ul>
  267. </div>
  268. </nav>
  269. </header>