You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

204 lines
6.4 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta name=”renderer” content=”webkit|ie-comp|ie-stand” />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="icon" href="~/favicon.ico">
<title>@ViewBag.Title</title>
<link href="~/lib/pace/pace-theme-minimal.css" rel="stylesheet" />
<link href="~/font/css/font-awesome.min.css" rel="stylesheet" />
<link href="~/lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
<script src="~/lib/pace/pace.min.js"></script>
<script src="~/js/jquery-1.10.2.min.js"></script>
<script src="~/lib/bootstrap/bootstrap.min.js"></script>
<script src="~/lib/jqprint/jquery.jqprint-0.3.js"></script>
<script src="~/lib/laydate/laydate.js"></script>
@Html.AppendCssFile(
"/lib/learun/style/lr-common.css",
"/lib/learun/plugin/scroll/scroll.css",
"/lib/learun/style/lr-iframe-index.css",
"/lib/learun/plugin/layout/lr-layout.css",
"/lib/learun/plugin/tree/lr-tree.css",
"/lib/learun/plugin/select/lr-select.css",
"/lib/learun/plugin/timeline/lr-timeline.css",
"/lib/learun/plugin/formselect/lr-formselect.css",
"/lib/learun/plugin/layerselect/lr-layerselect.css",
"/lib/learun/plugin/date/lr-datepicker.css",
"/lib/learun/plugin/uploader/lr-uploader.css",
"/lib/learun/plugin/grid/jfgrid.css",
"/lib/learun/plugin/gantt/lrGantt.css"
)
<!--[if lt IE 9]>
<script src="~/lib/bootstrap/html5shiv.min.js"></script>
<script src="~/lib/bootstrap/respond.min.js"></script>
<![endif]-->
<script>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 decodeURI(unescape(b[1])) } return "" };</script>
@Html.SetCurrentUrl()
</head>
<body>
@RenderBody()
@Html.AppendJsFile(
"/lib/learun/plugin/resize/resize.js",
"/lib/learun/plugin/mousewheel/mousewheel.js",
"/lib/learun/plugin/scroll/scroll.js",
"/lib/learun/plugin/layout/lr-layout.js",
"/lib/learun/plugin/tree/lr-tree.js",
"/lib/learun/plugin/select/lr-select.js",
"/lib/learun/plugin/timeline/lr-timeline.js",
"/lib/learun/plugin/formselect/lr-formselect.js",
"/lib/learun/plugin/layerselect/lr-layerselect.js",
"/lib/learun/plugin/date/lr-datepicker.js",
"/lib/learun/script/lr-validator.js",
"/lib/learun/script/lr-authorize.js",
"/lib/learun/script/lr-excel.js",
"/lib/learun/script/lr-form.js",
"/lib/learun/plugin/uploader/lr-uploader.js",
"/lib/learun/plugin/grid/jfgrid.js",
"/lib/learun/plugin/gantt/lrGantt.js"
)
<script>
$(function () {
var uitheme = top.$.cookie('lr_adms_core_ui') || '1';
var uiclass = '';
switch (uitheme) {
case "1":
uiclass = "lr-uitheme-default"; // 经典版本
break;
case "2":
uiclass = "lr-uitheme-accordion"; // 手风琴版本
break;
case "3":
uiclass = "lr-uitheme-windos"; // Windos版本
break;
case "4":
uiclass = "lr-uitheme-top"; // 顶部菜单版本
break;
default:
uiclass = "lr-uitheme-default"; // 经典版本
break;
}
$('body').addClass(uiclass);
$('#lr_layout').lrLayout();
// 翻译指定标签
$('.lrlg').each(function () {
var $this = $(this);
top.learun.language.get($this.text(), function (text) {
$this.text(text);
});
});
// 翻译表单标题
$('.lr-form-item-title').each(function () {
var $this = $(this);
var $font = $this.find('font');
$font.remove();
top.learun.language.get($this.text(), function (text) {
if ($font.length > 0) {
$this.html(text + '<font face="宋体">*</font>');
}
else {
$this.text(text);
}
});
});
// input placeholder 翻译
$('input[placeholder]').each(function () {
var $this = $(this);
var _text = $this.attr('placeholder');
top.learun.language.get(_text, function (text) {
$this.attr('placeholder', text);
});
});
if (lrCurrentMouldeCode) {
top.learun.httpAsync('GET', top.$.rootUrl + '/LR_SystemModule/Module/GetAuthorizeButtonColumnList', { code: lrCurrentMouldeCode }, function (data) {
lrModuleButtonList = data.btns;
lrModuleColumnList = data.cols;
lrModuleForms = data.forms;
lrModule = data.module;
window.bootstrap && window.bootstrap(jQuery, top.learun);
});
}
else {
lrModuleButtonList = [];
lrModuleColumnList = [];
lrModuleForms = null;
lrModule = {};
window.bootstrap && window.bootstrap(jQuery, top.learun);
}
});
//ie 下兼容 String.startsWith
String.prototype.startsWith = String.prototype.startsWith || function (str) {
var reg = new RegExp("^" + str);
return reg.test(this);
}
//ie 下兼容 String.replaceAll
String.prototype.replaceAll = String.prototype.replaceAll || function (s1, s2) {
return this.replace(new RegExp(s1, "gm"), s2); //g全局
}
//ie 下兼容 Object.assign
Object.assign = Object.assign || function (target) {
'use strict';
if (target == null) {
throw new TypeError('Cannot convert undefined or null to object');
}
target = Object(0,target);
for (var index = 1; index < arguments.length; index++) {
var source = arguments[index];
if (source != null) {
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
}
return target;
};
Date.prototype.format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
}
for (var k in o) {
if (new RegExp("(" + k + ")").test(fmt)) {
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
}
}
return fmt;
}
//if(!Array.from){
// Array.from = function (el) {
// return Array.apply(this, el);
// }
//}
</script>
</body>
</html>