_Form.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @using WMS.BZWeb;
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta name=”renderer” content=”webkit|ie-comp|ie-stand” />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <meta name="renderer" content="webkit">
  10. <link rel="icon" href="~/favicon.ico">
  11. <title>@Common.GetWMSTile()| @ViewBag.Title</title>
  12. <link href="~/Content/font/css/font-awesome.min.css" rel="stylesheet" />
  13. <link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" />
  14. @Html.AppendCssFile(
  15. "/wwwroot/Content/wms/style/wms-common.css",
  16. "/wwwroot/Content/wms/plugin/scroll/scroll.css",
  17. "/wwwroot/Content/wms/style/wms-iframe-form.css",
  18. "/wwwroot/Content/wms/plugin/wizard/wizard.css",
  19. "/wwwroot/Content/wms/plugin/tree/wms-tree.css",
  20. "/wwwroot/Content/wms/plugin/select/wms-select.css",
  21. "/wwwroot/Content/wms/plugin/timeline/wms-timeline.css",
  22. "/wwwroot/Content/wms/plugin/formselect/wms-formselect.css",
  23. "/wwwroot/Content/wms/plugin/inputsearch/wms-isearch.css",
  24. "/wwwroot/Content/wms/plugin/grid/jfgrid.css",
  25. "/wwwroot/Content/wms/plugin/uploader/wms-uploader.css"
  26. )
  27. <script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
  28. <script src="~/Content/jquery/jquery.md5.min.js"></script>
  29. <script src="~/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
  30. <script src="~/Content/datepicker/WdatePicker.js"></script>
  31. <script src="~/Content/ueditor/ueditor.config.js"></script>
  32. <script src="~/Content/ueditor/ueditor.all.min.js"></script>
  33. <script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script>
  34. <script src="~/Content/linq/linq.min.js"></script>
  35. <script src="~/Content/linq/linq.jquery.js"></script>
  36. <script src="~/Content/echarts/echarts.min.js"></script>
  37. <!--[if lt IE 9]>
  38. <script src="~/Content/bootstrap/html5shiv.min.js"></script>
  39. <script src="~/Content/bootstrap/respond.min.js"></script>
  40. <![endif]-->
  41. <script>
  42. function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };
  43. </script>
  44. </head>
  45. <body class="@Common.GetClientBrowser() @Common.GetBodyUITheme()">
  46. <div id="lr_form_bg" class="lr-form-bg">
  47. </div>
  48. @RenderBody()
  49. @Html.AppendJsFile(
  50. "/wwwroot/Content/wms/plugin/resize/resize.js",
  51. "/wwwroot/Content/wms/plugin/mousewheel/mousewheel.js",
  52. "/wwwroot/Content/wms/plugin/scroll/scroll.js",
  53. "/wwwroot/Content/wms/script/wms-validator.js",
  54. "/wwwroot/Content/wms/script/wms-form.js",
  55. "/wwwroot/Content/wms/plugin/wizard/wizard.js",
  56. "/wwwroot/Content/wms/plugin/tree/wms-tree.js",
  57. "/wwwroot/Content/wms/plugin/select/wms-select.js",
  58. "/wwwroot/Content/wms/plugin/timeline/wms-timeline.js",
  59. "/wwwroot/Content/wms/plugin/formselect/wms-formselect.js",
  60. "/wwwroot/Content/wms/plugin/inputsearch/wms-isearch.js",
  61. "/wwwroot/Content/wms/plugin/uploader/wms-uploader.js",
  62. "/wwwroot/Content/wms/plugin/grid/jfgrid.js"
  63. )
  64. <script>
  65. $.lrToken = $('@Html.AntiForgeryToken()').val();
  66. $(function () {
  67. $('#lr_form_bg').fadeOut();
  68. $('#form').lrscroll();
  69. // 翻译指定标签
  70. $('.lrlg').each(function () {
  71. var $this = $(this);
  72. top.learun.language.get($this.text(), function (text) {
  73. $this.text(text);
  74. });
  75. });
  76. // 翻译表单标题
  77. $('.lr-form-item-title').each(function () {
  78. var $this = $(this);
  79. var $font = $this.find('font');
  80. $font.remove();
  81. top.learun.language.get($this.text(), function (text) {
  82. if ($font.length > 0) {
  83. $this.html(text + '<font face="宋体">*</font>');
  84. }
  85. else {
  86. $this.text(text);
  87. }
  88. });
  89. });
  90. // input placeholder 翻译
  91. $('input[placeholder]').each(function () {
  92. var $this = $(this);
  93. var _text = $this.attr('placeholder');
  94. top.learun.language.get(_text, function (text) {
  95. $this.attr('placeholder', text);
  96. });
  97. });
  98. if (!!window.bootstrap) {
  99. bootstrap(jQuery, top.learun);
  100. }
  101. });
  102. </script>
  103. </body>
  104. </html>