SmartFuelFooter.cshtml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @*
  2. For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
  3. *@
  4. @*油机页面网页标签*@
  5. <div id="PumpsPage_Bottom" style="position: absolute; top:88.516%;width:100%; height: 11.484%;">
  6. <div id="PumpsPage_Bottom_tabs_blank" style="position: relative; float: left; width: 2%; height: 100%;"></div>
  7. <div id="PumpsPage_Bottom_tabs" style="position: relative; float: left; width: 73%; height: 100%;">
  8. <img id="PumpsPage_Bottom_tab_nozzle" src="~/images/onlineMonitor/footer/pagTab.png" style="position: absolute;left: 1.07%; top: 23.077%; width: 14.983%; height: 56.923%;" />
  9. <div id="PumpsPage_Bottom_tab_nozzle_text" style="position: absolute; left: 2.14%; top: 23.077%; width: 13.913%; height:56.923%; display: table-cell;text-align: center; color:white; font-size: 1.8rem;">
  10. 油枪查看
  11. </div>
  12. <img id="PumpsPage_Bottom_pages_img_previous_page" onclick="ShowPreviousPage()" src="images/smartFuel/prePage.png" style="position: absolute; right: 2%; top: 14.615%; width: 4.816%; height: 70.769%;visibility: visible;" />
  13. </div>
  14. <div id="PumpsPage_Bottom_pages" style="position: relative; float: left; width: 25%; height: 100%;">
  15. @{
  16. var pagePointWidth = 5;//5;//16;
  17. var currentpageMargintop = 37.692;//37.692;//(65 - pagePointWidth) / 2;//37.692
  18. var marginRight = 12.5;//12.5;//40;
  19. }
  20. @for (var p = 1; p < 6; p++)
  21. {
  22. //var currentPageVisible = (p == 1) ? "visible" : "hidden";
  23. //var pageNotShowedVisible = (p == 1) ? "hidden" : "visible";
  24. var currentPageVisible = "visible";
  25. var pageNotShowedVisible = "visible";
  26. <img id="PumpsPage_Bottom_pages_img_@p" src="/images/smartFuel/currentpage.png" style="position:absolute; left: @((pagePointWidth+marginRight)*(p-1))%;top:@(currentpageMargintop)%; width: @(pagePointWidth)%; height: 24.615%;visibility: @currentPageVisible;" />
  27. <img id="PumpsPage_Bottom_pages_notshowed_img_@p" src="/images/smartFuel/notshowed.png" style="position:absolute; left: @((pagePointWidth+marginRight)*(p-1))%; top:@(currentpageMargintop)%; width: @(pagePointWidth)%; height: 24.615%;visibility:@pageNotShowedVisible;" />
  28. }
  29. <img id="PumpsPage_Bottom_pages_img_next_page" onclick="ShowNextPage()" src="/images/smartFuel/nextPage.png" style="position: absolute; right:3%;top: 14.615%; width: 14.063%;height: 70.769%;visibility:visible;" />
  30. </div>
  31. @*<div id="previousPage" onclick="ShowPreviousPage()" style="position: absolute; width: 75%; height: 100%; left: 0px; top: 0px;"></div>
  32. <div id="nextPage" onclick="ShowNextPage()" style="position: absolute; width: 25%; height: 100%; left:75%; top: 0px;"></div>*@
  33. </div>
  34. <script>
  35. @*var imgChart = document.getElementById("PumpsPage_Bottom_tab_tables");
  36. var imgUpload = document.getElementById("PumpsPage_Bottom_tab_upload");
  37. if ((imgChart!=null &&imgChart.style.visibility==="visible")||(imgUpload!=null && imgUpload.style.visibility==="visible")) {
  38. var pagesDiv = document.getElementById("PumpsPage_Bottom_pages");
  39. if (pagesDiv != null) {
  40. pagesDiv.style.visibility = "hidden";
  41. pagesDiv.style.display = "none";
  42. }
  43. }
  44. function TabClicked(tabId) {
  45. //var tab = document.getElementById(tabId);
  46. //tab.innerHTML = "Clicked";
  47. if (tabId === "PumpsPage_Bottom_tab_tables_text")
  48. document.location = '@Url.Action("Index","OnlineMonitor",new{tab="ChartView"})';
  49. else if (tabId === "PumpsPage_Bottom_tab_nozzle_text")
  50. document.location = '@Url.Action("Index","OnlineMonitor",new{tab="NozzleView"})';
  51. else if (tabId === "PumpsPage_Bottom_tab_upload_text")
  52. document.location = '@Url.Action("Index","OnlineMonitor",new{tab="UploadView"})';
  53. else
  54. document.location = '@Url.Action("Index","OnlineMonitor")';
  55. }*@
  56. </script>