ComplianceServer/oldcode/WEB/Views/Shared/_Index_Layout2.cshtml

182 lines
7.0 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<title>Index</title>
<meta http-equiv="X-UA-Compatible" content="IE=11;IE=10; IE=9; IE=8; IE=7; IE=EDGE">
<script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>
<script src="~/Scripts/op/jquery.rewrite.js"></script>
<script src="~/Scripts/json2.js"></script>
<script src="@Url.Content("~/Scripts/jquery.easyui.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.easyui.plus.js")"></script>
<script src="@Url.Content("~/Scripts/op/datagrid_op.js")"></script>
<script src="@Url.Content("~/Scripts/op/main_op.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.form.js")"></script>
<script src="~/Scripts/op/jquery.tablegrid.js?_=@DateTime.Now.ToString("yyMMddHHmmss")"></script>
<script src="~/Scripts/My97DatePicker/WdatePicker.js"></script>
<script src="~/Scripts/op/UserComBoxByRole.js"></script>
<script src="@Url.Content("~/Scripts/common.js")"></script>
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Common.css")" />
@Styles.Render("~/Content/themes/blue/css")
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" />
@Scripts.Render("~/bundles/common")
@Styles.Render("~/Content/data_grid_list.css")
<link href="~/layui-v2.5.4/css/layui _up.css" rel="stylesheet" />
<link href="~/layui-v2.5.4/css/common.css" rel="stylesheet" />
<style>
.bodyDiv {
margin: 7px 5px 0px 0px;
padding-left: 15px;
padding-right: 15px;
overflow: hidden;
background-color: white;
}
body {
background-color: #eff0f4;
}
.layui-table th {
word-wrap: normal;
}
.layui-table td {
word-break: break-all;
word-wrap: break-word;
padding: 9px 5px;
display:table-cell;
}
.window-header {
border: unset;
}
</style>
<style>
/*.grid_table table {
width: 100%;
}
.grid_table thead {
width: 100%;
border-top: 1px solid #c5d9f1;
border-left: 1px solid #c5d9f1;
}
.grid_table tbody td, .tableBox thead th {
height: 30px;
line-height: 30px;
text-align: center;
font-size: 12px;
color: #404040;
}
.grid_table thead th {
background-color: #d8e5f4;
border-bottom: 1px solid #c5d9f1;
border-right: 1px solid #c5d9f1;
}
.grid_table tbody {
border-left: 1px solid #dcdddd;
}
.grid_table tbody td {
border-bottom: 1px solid #dcdddd;
border-right: 1px solid #dcdddd;
background-color: #FFFFFF;
}
.grid_table tbody tr:nth-child(even) td {
background-color: #f9f9f9;
}
.grid_table table td, .tableBox table th {
vertical-align: middle;
}*/
</style>
<script>
$(function () {
var mm22 = $("#btnQuery");
if ($(mm22).length > 0) {
mm22.remove();
var searchHtml='<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="search" id="btnQuery">'
+'<span class="csicon2 icon-search"></span>'
+ '<span class="csicontitle">搜索</span>'
+'</button>';
var html = '<li class="show_condition"><input id="btnQuery" class="layui-btn layui-btn-sm layui-btn-ok" data-method="search" type="button" value="查询"><input class="layui-btn layui-btn-sm layui-btn-reset" type="reset" value="清空"></li>';
//var html = '<li class="show_condition">' + searchHtml+'<input class="layui-btn layui-btn-sm layui-btn-reset" type="reset" value="清空"></li>';
$(".grid_toolbar .toolBar_ul").append(html);
}
var tttbar = $(".grid_toolbar");
if (tttbar.length > 0) {
$(tttbar).wrapAll("<form></form>");
}
$(".mvctool .datagrid-btn-separator").remove();
var toolbartitle = $(".mvctool .mvctool_mytitle");
if (toolbartitle.length == 0) {
var defaulttitle = "@Html.Raw(Request.QueryString["urlTitle"])";
var titlehtml = '<div class="mvctool_mytitle">数据列表</div >';
if (defaulttitle != "") {
titlehtml = '<div class="mvctool_mytitle">' + defaulttitle+'</div >'
}
$(".mvctool:not([noControl])").prepend(titlehtml);
}
$(".mvctool .l-btn-plain").each(function (x, a) {
var icon = $(this).find(".l-btn-text").attr("class");
if (icon != null) {
icon = icon.replace("l-btn-text","");
}
var buttonhtml = '<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="' + $(this).attr("id") + '" ' + ($(this).attr("onclick") != null ? 'onclick="' + $(this).attr("onclick") + '"' : '') + '" id="' + $(this).attr("id") + '" >'
buttonhtml += '<span class="csicon2 ' + icon+'"></span>';
buttonhtml += '<span class="csicontitle">' + $(this).find(".l-btn-text").text()+'</span>';
buttonhtml += "</button>";
$(this).after(buttonhtml);
$(this).remove();
});
//tableHeader();
});
//function tableHeader() {
// console.log("处理表格");
// $("#tablist").parent().prepend(
// '<table id="tablist_" border="0" class="layui-table" lay-size="sm" cellspacing="0" cellpadding="0"><thead>' + $("#tablist thead").html() + '</thead></table>'
// ).css({
// 'position': 'relative',
// 'height': '300px',
// 'overflow-y': 'auto'
// })
// $("#tablist_").find('th').each(function (i) {
// $(this).css('width', $('#tablist').find('th:eq(' + i + ')').width());
// });
// $("#tablist_").css({
// 'position': 'absolute',
// 'top': '0',
// 'left': 0,
// 'z-index': 2
// })
// $("#tablist").css({
// 'position': 'absolute',
// 'top': 0,
// 'left': 0
// })
// $('.grid_table').scroll(function () {
// if ($('.grid_table').scrollTop() > 0) {
// $("#tablist_").css('top', $('.grid_table').scrollTop());
// } else {
// $("#tablist_").css('top', 0);
// }
// });
//}
</script>
</head>
<body>
<div class="bodyDiv">
@RenderBody()
<div id="modalwindow" class="easyui-window" data-options="modal:true,closed:true,minimizable:false,shadow:false"></div>
</div>
</body>
</html>