Guest User

layout.cshtml

a guest
Mar 7th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>@ViewBag.Title</title>
  7.  
  8. <link href="~/Content/css/main.css" rel="stylesheet" />
  9. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
  10. <script src="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.js"></script>
  11. <link type="text/css" rel="stylesheet" href="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.css" />
  12. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  13. </head>
  14. <body>
  15. <header>
  16. <div class="logoWrapper">
  17. <img src="~/Content/img/fisk_logo.png" alt="">
  18. </div>
  19.  
  20.  
  21. <form action="~/home/Soeg" method="post">
  22. <span><input class="searchFieldInput" type="search" value="" name="Soegetxt" id="Soegetxt" placeholder="Search" aria-label="Search"><button type="submit">Søg</button></span>
  23. </form>
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. <nav>
  33.  
  34. <ul class="navMenu">
  35. <li class="active">@Html.ActionLink("Forsiden", "Index", "Home")</li>
  36. <li >@Html.ActionLink("Produkter", "Produkter", "Home", new { @id = "produkter-li" })</li>
  37. <li>@Html.ActionLink("Tilbud", "Tilbud", "Home")</li>
  38. <li>@Html.ActionLink("Afhentning", "Afhentning", "Home")</li>
  39. <li>@Html.ActionLink("Hjælp", "Hjælp", "Home")</li>
  40. <li>@Html.ActionLink("Vilkår", "Vilkår", "Home")</li>
  41. <li>@Html.ActionLink("Kontakt", "Kontakt", "Home")</li>
  42. @if (Session["UserName"] != null)
  43. {
  44. <li>@Html.ActionLink("Log ud", "logOut", "Home")<i class="fas fa-fish"></i></li>
  45. }
  46. @if (Session["UserName"] == null)
  47. {
  48. <li>@Html.ActionLink("Log in", "Login", "Home")<i class="fas fa-fish"></i></li>
  49.  
  50. }
  51.  
  52.  
  53.  
  54.  
  55.  
  56. </ul>
  57.  
  58. @if (Session["RankId"].ToString() == "1")
  59. {
  60. <ul class="navMenu">
  61. <li class="active">@Html.ActionLink("Produkt oversigt", "Index", "Products")</li>
  62. <li>@Html.ActionLink("Kategori oversigt", "Index", "Kategoriers")</li>
  63. <li>@Html.ActionLink("Bruger oversigt", "Index", "users")</li>
  64. <li>@Html.ActionLink("Kommentar oversigt", "Index", "Comments")</li>
  65. <li>@Html.ActionLink("Afhentning oversigt", "Index", "Home")</li>
  66. <li>@Html.ActionLink("Hjælp.. oversigt", "Index", "Home")</li>
  67. <li>@Html.ActionLink("Vilkår.. oversigt", "Index", "Home")</li>
  68. <li>@Html.ActionLink("Kontakt oversigt", "Index", "Home")</li>
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75. </ul>
  76. }
  77.  
  78.  
  79.  
  80. <ul class="kat-dropdown">
  81. @{Html.RenderAction("PartialDropdown", "home");}
  82.  
  83. </ul>
  84.  
  85.  
  86. </nav>
  87. </header>
  88. <main>
  89. @RenderBody()
  90. </main>
  91. <footer>
  92.  
  93. <p>Fisk.nu, Silovej 2. DK-8000 Århus C, Tlf +45 87 11 12 13, info@fisk.nu </p>
  94.  
  95. </footer>
  96.  
  97. <script src="~/Content/js/dropdown.js"></script>
  98.  
  99. </body>
  100. </html>
Add Comment
Please, Sign In to add comment