TankGuageFooter.cshtml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @*
  2. For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
  3. *@
  4. @*@using MVCMovie.Models
  5. @model MVCMovie.Models.PageNavigationInfo*@
  6. @{
  7. int screenWidth = 1280;
  8. }
  9. @*油机页面网页标签*@
  10. <div id="TanksPage_Bottom" style="position: absolute; top:@(635-65)px;width:@(screenWidth)px; height: 65px;">
  11. <div id="TanksPage_Bottom_tabs_blank" style="position: relative; float: left; width: 2%; height: 100%;"></div>
  12. <div id="TanksPage_Bottom_tabs" style="position: relative; float: left; width: 73%; height: 100%;">
  13. </div>
  14. <div id="TanksPage_Bottom_pages" style="position: relative; float: left; width: 25%; height: 100%;">
  15. @{
  16. var pagePointWidth = 16;
  17. var currentpageMargintop = (65 - pagePointWidth) / 2;
  18. var marginRight = 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. <img id="TanksPage_Bottom_pages_img_@p" src="/images/smartFuel/currentpage.png" style="position:absolute; left:@((pagePointWidth+marginRight)*(p-1))px;margin-top: @(currentpageMargintop)px;visibility: @currentPageVisible;" />
  25. <img id="TanksPage_Bottom_pages_notshowed_img_@p" src="/images/smartFuel/notshowed.png" style="position:absolute; left:@((pagePointWidth+marginRight)*(p-1))px;margin-top: @(currentpageMargintop)px; visibility:@pageNotShowedVisible;" />
  26. }
  27. </div>
  28. <div id="previousPage" onclick="ShowPreviousPage()" style="position: absolute; width: 75%; height: 100%; left: 0px; top: 0px;"></div>
  29. <div id="nextPage" onclick="ShowNextPage()" style="position: absolute; width: 25%; height: 100%; left:75%; top: 0px;"></div>
  30. </div>
  31. <script>
  32. @*var imgChart = document.getElementById("PumpsPage_Bottom_tab_tables");
  33. var imgUpload = document.getElementById("PumpsPage_Bottom_tab_upload");
  34. if ((imgChart!=null &&imgChart.style.visibility==="visible")||(imgUpload!=null && imgUpload.style.visibility==="visible")) {
  35. var pagesDiv = document.getElementById("PumpsPage_Bottom_pages");
  36. if (pagesDiv != null) {
  37. pagesDiv.style.visibility = "hidden";
  38. pagesDiv.style.display = "none";
  39. }
  40. }
  41. function TabClicked(tabId) {
  42. //var tab = document.getElementById(tabId);
  43. //tab.innerHTML = "Clicked";
  44. if (tabId === "PumpsPage_Bottom_tab_tables_text")
  45. document.location = '@Url.Action("Index","OnlineMonitor",new{tab="ChartView"})';
  46. else if (tabId === "PumpsPage_Bottom_tab_nozzle_text")
  47. document.location = '@Url.Action("Index","OnlineMonitor",new{tab="NozzleView"})';
  48. else if (tabId === "PumpsPage_Bottom_tab_upload_text")
  49. document.location = '@Url.Action("Index","OnlineMonitor",new{tab="UploadView"})';
  50. else
  51. document.location = '@Url.Action("Index","OnlineMonitor")';
  52. }*@
  53. </script>