Advertisement
Guest User

Layout Admin

a guest
Jun 18th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.99 KB | None | 0 0
  1. @using QLBH_MVC.Helpers
  2. <!DOCTYPE html>
  3.  
  4. <html>
  5. <head runat="server">
  6.  
  7.     <title>Website bán hàng</title>
  8.  
  9.     <!-- Bootstrap Core CSS -->
  10.     <link rel="stylesheet" href="~/assets/css/bootstrap.min.css" />
  11.  
  12.     <script src="~/Scripts/jquery-2.1.4.min.js"></script>
  13.     <script src="~/assets/bootstrap-3.3.4-dist/js/bootstrap.min.js"></script>
  14.     <!-- Customizable CSS giao diện chính của web-->
  15.     <link rel="stylesheet" href="~/assets/css/main.css" />
  16.     <link rel="stylesheet" href="~/assets/css/owl.carousel.css" />
  17.     <link rel="stylesheet" href="~/assets/css/owl.transitions.css" />
  18.     <link rel="stylesheet" href="~/assets/css/animate.min.css" />
  19.  
  20.     <link href="~/assets/css/main.css" rel="stylesheet" />
  21.     <link href="~/assets/css/owl.carousel.css" rel="stylesheet" />
  22.     <link href="~/assets/css/owl.transitions.css" rel="stylesheet" />
  23.     <link href="~/assets/css/animate.min.css" rel="stylesheet" />
  24.  
  25.     <!-- Màu cho trang web -->
  26.     @*<link href="assets/css/orange.css" rel="stylesheet" />--%>*@
  27.     @*<%--<link href="assets/css/dark-green.css" rel="stylesheet" />--%>
  28.          <%--<link href="assets/css/navy.css" rel="stylesheet" />--%>*@
  29.  
  30.     @* <%--<link href="assets/css/green.css" rel="stylesheet" />--%>
  31.          <%--<link href="assets/css/red.css" rel="stylesheet" />--%>*@
  32.     <link href="~/assets/css/blue.css" rel="stylesheet" />
  33.  
  34.  
  35.     <!-- Demo Purpose Only. Should be removed in production -->
  36.     <link href="~/assets/css/config.css" rel="stylesheet" />
  37.  
  38.     <!-- Fonts -->
  39.     <link href="~/fonts.googleapis.com/OpenSans.css" rel="stylesheet" />
  40.  
  41.     <!-- Icons/Glyphs -->
  42.     <link href="~/assets/css/font-awesome.min.css" rel="stylesheet" />
  43.     <link href="~/assets/zontal-admin/css/style.css" rel="stylesheet" />
  44.     <!-- Favicon logo tab brower-->
  45.     <link rel="shortcut icon" href="~/assets/images/icon.ico" />
  46.     @RenderSection("css", required: false)
  47. </head>
  48. <body>
  49.  
  50.     <div class="wrapper">
  51.         <!-- ============================================================= TOP NAVIGATION ============================================================= -->
  52.         <nav class="top-bar animate-dropdown">
  53.             <div class="container">
  54.  
  55.                 <div class="col-xs-12 col-sm-6 no-margin">
  56.                 </div>
  57.                 <!-- /.col -->
  58.  
  59.  
  60.                 <div class="col-xs-12 col-sm-6 no-margin">
  61.  
  62.  
  63.                     <ul class="right">
  64.                         @if (CurrentContext.IsLogged() == false)
  65.                         {
  66.                             <li><a href="@Url.Action("Register", "Account")">Đăng Ký</a></li>
  67.                             <li><a href="@Url.Action("Login", "Account")">Đăng Nhập</a></li>  
  68.                         }
  69.                         else
  70.                         {
  71.                             if (CurrentContext.GetCurUser().Permission == 1)
  72.                             {
  73.                             <li class="dropdown">
  74.                                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  75.                                     <i class="fa fa-user"></i>@CurrentContext.GetCurUser().Name </a>
  76.                                 <ul class="dropdown-menu" role="menu">
  77.                                     <li><a href="@Url.Action("Dashboard", "Admin")"><i class="fa fa-user"></i>Trang quản lý</a></li>
  78.                                     <li class="divider"></li>
  79.                                     <li>
  80.                                         <a href="@Url.Action("Logout", "Account")">
  81.                                             <i class="fa fa-sign-out"></i>
  82.                                             Thoát
  83.                                         </a>
  84.                                     </li>
  85.                                 </ul>
  86.                             </li>
  87.                             }
  88.                             else
  89.                             {
  90.                             <li class="dropdown">
  91.                                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  92.                                     <i class="fa fa-user"></i>@QLBH_MVC.Helpers.CurrentContext.GetCurUser().Name </a>
  93.                                 <ul class="dropdown-menu" role="menu">
  94.                                     <li><a href="@Url.Action("Profile", "Account")"><i class="fa fa-user"></i>Trang cá nhân</a></li>
  95.                                     <li><a href="@Url.Action("ViewAllOrder", "Account")"><i class="fa fa-shopping-cart"></i> Lịch sử mua hàng</a></li>
  96.                                     <li class="divider"></li>
  97.                                     <li>
  98.                                         <a href="@Url.Action("Logout", "Account")">
  99.                                             <i class="fa fa-sign-out"></i>
  100.                                             Thoát
  101.                                         </a>
  102.                                     </li>
  103.                                 </ul>
  104.                             </li>
  105.                             }
  106.                         }
  107.                     </ul>
  108.  
  109.                 </div>
  110.             </div>
  111.             <!-- /.container -->
  112.         </nav>
  113.         <!-- /.top-bar -->
  114.  
  115.         <!-- HEADER END-->
  116.         <div class="navbar navbar-inverse set-radius-zero">
  117.             <div class="container">
  118.                 <div class="navbar-header">
  119.                     <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  120.                         <span class="icon-bar"></span>
  121.                         <span class="icon-bar"></span>
  122.                         <span class="icon-bar"></span>
  123.                     </button>
  124.  
  125.                     <img src="~/assets/zontal-admin/img/logo.png" />
  126.  
  127.  
  128.                 </div>
  129.  
  130.                 <div class="left-div">
  131.                     <div class="user-settings-wrapper">
  132.                     </div>
  133.                 </div>
  134.             </div>
  135.         </div>
  136.         <!-- LOGO HEADER END-->
  137.         <section class="menu-section">
  138.             <div class="container">
  139.                 <div class="row">
  140.                     <div class="col-md-12">
  141.                         <div class="navbar-collapse collapse ">
  142.                             <ul id="menu-top" class="nav navbar-nav navbar-right">
  143.                                 <li><a class="menu-top-active" href="@Url.Action("Manage_Categories", "Admin")">Quản lý danh mục</a></li>
  144.                                 <li><a href="@Url.Action("Manage_Producers", "Admin")">Quản lý nhà sản xuất</a></li>
  145.                                 <li><a href="@Url.Action("Manage_Products", "Admin")">Quản lý sản phẩm</a></li>
  146.                                 <li><a href="@Url.Action("Manage_Orders", "Admin")">Quản lý đơn hàng</a></li>
  147.  
  148.                             </ul>
  149.                         </div>
  150.                     </div>
  151.  
  152.                 </div>
  153.             </div>
  154.         </section>
  155.  
  156.  
  157.         @RenderBody()
  158.  
  159.  
  160.         <footer id="footer" class="color-bg">
  161.  
  162.             <!--Button Scroll On Top, class ScrollToTop in main.css-->
  163.             <a href="#" class="scrollToTop">
  164.                 <img src="~/Imgs/Arrow-Up.png" /></a>
  165.             <!--end Button scroll on top--->
  166.  
  167.             <div class="copyright-bar">
  168.                 <div class="container">
  169.                     <center><b><font color="white">&copy; Bản quyền thuộc về Tập đoàn thương mại điện tử TKS</font></b></center>
  170.                 </div>
  171.                 <!-- /.copyright-bar -->
  172.             </div>
  173.  
  174.         </footer>
  175.         <!-- /#footer -->
  176.  
  177.         <!-- JavaScripts placed at the end of the document so the pages load faster -->
  178.  
  179.  
  180.         @RenderSection("js", required: false)
  181.  
  182.  
  183.  
  184.         <!-- For demo purposes – can be removed on production -->
  185.  
  186.  
  187.         <script src="~/switchstylesheet/switchstylesheet.js"></script>
  188.  
  189.         <script>
  190.             $(document).ready(function () {
  191.                 $(".changecolor").switchstylesheet({ seperator: "color" });
  192.                 $('.show-theme-options').click(function () {
  193.                     $(this).parent().toggleClass('open');
  194.                     return false;
  195.                 });
  196.             });
  197.  
  198.             $(window).bind("load", function () {
  199.                 $('.show-theme-options').delay(2000).trigger('click');
  200.             });
  201.  
  202.             //function scroll on top button
  203.             $(window).scroll(function () {
  204.                 if ($(this).scrollTop() > 500) {
  205.                     $('.scrollToTop').fadeIn();
  206.                 } else {
  207.                     $('.scrollToTop').fadeOut();
  208.                 }
  209.             });
  210.  
  211.             //Click event to scroll to top
  212.             $('.scrollToTop').click(function () {
  213.                 $('html, body').animate({ scrollTop: 0 }, 800);
  214.                 return false;
  215.             });
  216.             //end function scroll on top button
  217.  
  218.         </script>
  219. </body>
  220. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement