Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. @model _5thSemesterProject.Models.Employee
  2.  
  3. @{
  4. ViewBag.Title = "Home Page";
  5. }
  6. <link rel="stylesheet" href="~/Content/bootstrap.min.css">
  7. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700">
  8. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic">
  9. <link rel="stylesheet" href="~/Content/font-awesome-4.7.0/css/font-awesome.min.css">
  10. <link rel="stylesheet" href="~/Content/css/column.css">
  11. <link rel="stylesheet" href="~/Content/css/buttonCss.css">
  12. <link rel="stylesheet" href="~/Content/Features-Boxed.css">
  13. <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
  14. <script src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script>
  15. <script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
  16.  
  17.  
  18.  
  19. <link rel="stylesheet" href="https://cdn.datatables.net/1.10.15/css/dataTables.bootstrap.min.css">
  20.  
  21. <script>
  22. window.onload = function () {
  23.  
  24. var chart = new CanvasJS.Chart("chartContainer", {
  25. animationEnabled: true,
  26. theme: "light2", // "light1", "light2", "dark1", "dark2"
  27. title: {
  28. text: "Arbejdstimer denne måned"
  29. },
  30.  
  31. data: [{
  32. type: "pie",
  33. indexLabel: "{y}",
  34. indexLabelPlacement: "outside",
  35. indexLabelOrientation: "horizontal",
  36. indexLabelFontSize: 25,
  37. indexLabelFontWeight: "bold",
  38. showInLegend: "true",
  39. legendText: "{label}",
  40.  
  41. dataPoints: [
  42. { y: @ViewBag.firstWeek, label: "Uge 1" },
  43. { y: 25, label: "Uge 2" },
  44. { y: 42, label: "Uge 3" },
  45. { y: 40, label: "Uge 4" },
  46.  
  47.  
  48.  
  49.  
  50.  
  51. ]
  52. }]
  53. });
  54. chart.render();
  55.  
  56. };
  57. </script>
  58.  
  59.  
  60. <div class="features-boxed">
  61. <div class="container">
  62. <div class="row justify-content-center features">
  63.  
  64. <div class="col-sm-6 col-md-6 col-lg-6 item">
  65. <div class="box" style="height:335px; ">
  66. <div id="chartContainer" style="height: 300px; width: 100%;"></div>
  67. <script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
  68.  
  69. </div>
  70.  
  71. </div>
  72.  
  73. <div class="col-sm-6 col-md-6 col-lg-6 item">
  74. <div class="box" style="height:335px; ">
  75. <dl class="dl-horizontal">
  76.  
  77. <dt>
  78. @Html.DisplayName("Navn")
  79. </dt>
  80. <dd>
  81. @Html.DisplayFor(model => model.firstname)
  82. @Html.DisplayFor(model => model.lastname)
  83. </dd>
  84.  
  85. <dt>
  86. @Html.DisplayName("Initialer")
  87. </dt>
  88.  
  89. <dd>
  90. @Html.DisplayFor(model => model.initials)
  91. </dd>
  92.  
  93. <dt>
  94. @Html.DisplayName("Stilling")
  95. </dt>
  96.  
  97. <dd>
  98. @Html.DisplayFor(model => model.Position.name)
  99. </dd>
  100.  
  101. <dt>
  102. @Html.DisplayName("Ændre oplysninger")
  103. </dt>
  104.  
  105. <dd>
  106. @Html.ActionLink("Ændre Kodeord", "Edit", "ChangePassword", null, new { @class = "nav-link" })
  107. @Html.ActionLink("Ændre Oplysninger", "Edit", "Employees", new { id = Session["employeeId"] }, new { @class = "nav-link" } )
  108.  
  109. </dd>
  110. </dl>
  111.  
  112. </div>
  113.  
  114. </div>
  115.  
  116. <div class="col-sm-6 col-md-6 col-lg-6 item">
  117. <div class="box" style="height:335px; ">
  118.  
  119.  
  120. </div>
  121.  
  122. </div>
  123.  
  124.  
  125. <div class="col-sm-6 col-md-6 col-lg-6 item">
  126. <div class="box" style="height:335px; ">
  127.  
  128.  
  129. </div>
  130.  
  131. </div>
  132.  
  133. </div>
  134.  
  135. </div>
  136.  
  137. </div>
  138.  
  139. <script src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script>
  140. <script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement