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.
152 lines
5.3 KiB
152 lines
5.3 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="~/font/css/font-awesome.min.css" rel="stylesheet" />
|
|
<link href="~/lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
@Html.AppendCssFile(
|
|
"/lib/learun/style/lr-common.css",
|
|
"/lib/learun/plugin/scroll/scroll.css",
|
|
"/lib/learun/style/lr-iframe-form.css",
|
|
|
|
"/lib/learun/plugin/wizard/wizard.css",
|
|
"/lib/learun/plugin/tree/lr-tree.css",
|
|
"/lib/learun/plugin/select/lr-select.css",
|
|
"/lib/learun/plugin/layerselect/lr-layerselect.css",
|
|
"/lib/learun/plugin/timeline/lr-timeline.css",
|
|
"/lib/learun/plugin/formselect/lr-formselect.css",
|
|
"/lib/learun/plugin/inputsearch/lr-isearch.css",
|
|
"/lib/learun/plugin/grid/jfgrid.css",
|
|
"/lib/learun/plugin/uploader/lr-uploader.css",
|
|
"/lib/learun/plugin/date/lr-datepicker.css"
|
|
)
|
|
<script src="~/js/jquery-1.10.2.min.js"></script>
|
|
<script src="~/js/jquery.md5.min.js"></script>
|
|
<script src="~/lib/jqprint/jquery.jqprint-0.3.js"></script>
|
|
<script src="~/lib/laydate/laydate.js"></script>
|
|
<script src="~/lib/ueditor/ueditor.config.js"></script>
|
|
<script src="~/lib/ueditor/ueditor.all.min.js"></script>
|
|
<script src="~/lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
|
|
|
<!--[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>
|
|
<style>
|
|
body {
|
|
background-color:#fff;
|
|
}
|
|
.edui-editor.edui-default {
|
|
width:100% !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="lr_form_bg" class="lr-form-bg">
|
|
</div>
|
|
|
|
@RenderBody()
|
|
@Html.AppendJsFile(
|
|
"/lib/learun/plugin/resize/resize.js",
|
|
"/lib/learun/plugin/mousewheel/mousewheel.js",
|
|
"/lib/learun/plugin/scroll/scroll.js",
|
|
|
|
"/lib/learun/script/lr-validator.js",
|
|
"/lib/learun/script/lr-form.js",
|
|
"/lib/learun/plugin/wizard/wizard.js",
|
|
"/lib/learun/plugin/tree/lr-tree.js",
|
|
"/lib/learun/plugin/select/lr-select.js",
|
|
"/lib/learun/plugin/layerselect/lr-layerselect.js",
|
|
"/lib/learun/plugin/timeline/lr-timeline.js",
|
|
"/lib/learun/plugin/formselect/lr-formselect.js",
|
|
"/lib/learun/plugin/inputsearch/lr-isearch.js",
|
|
"/lib/learun/script/lr-fileupload.js",
|
|
"/lib/learun/plugin/uploader/lr-uploader.js",
|
|
"/lib/learun/plugin/date/lr-datepicker.js",
|
|
"/lib/learun/plugin/grid/jfgrid.js"
|
|
)
|
|
|
|
<script>
|
|
$(function () {
|
|
$('#lr_form_bg').fadeOut();
|
|
// 翻译指定标签
|
|
$('.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 (!!window.bootstrap) {
|
|
bootstrap(jQuery, top.learun);
|
|
|
|
var lrForm = top.learun.frameTab.currentIframe().lrModuleForms;
|
|
if (lrForm != null) {
|
|
$('[formAuth="yes"]').find('input,select,textarea,.lr-select,.lr-formselect,.lrUploader-wrap,.lr-radio,.lr-checkbox,.edui-default').each(function () {
|
|
var $this = $(this);
|
|
var id = $this.attr("id");
|
|
if (!lrForm[id]) {
|
|
$('#' + id).parents('.lr-form-item').remove();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
|
|
//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;
|
|
};
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|