PanDuWeb/table_jqgrid.html

548 lines
24 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="shortcut icon" href="favicon.ico">
<link href="css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
<link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
<!-- jqgrid-->
<link href="css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css?v=4.1.0" rel="stylesheet">
<link href="css/plugins/blueimp/css/blueimp-gallery.min.css" rel="stylesheet">
<style>
/* Additional style to fix warning dialog position */
#alertmod_table_list_2 {
top: 900px !important;
}
.lightBoxGallery{
height: 348px;
overflow: auto;
padding: 10px;
border: 1px solid #f5f5f5;
border-radius: 10px;
}
.lightBoxGallery img {
margin: 5px;
width: 160px;
}
#copy-input {position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;}
</style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-sm-12">
<div class="ibox ">
<div class="ibox-title">
<h5>线索审核</h5>
</div>
<div class="ibox-content">
<div class="jqGrid_wrapper">
<table id="table_list_1"></table>
<div id="pager_list_1"></div>
</div>
</div>
</div>
<div class="modal inmodal" id="myModal" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content animated bounceInRight">
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<div class="m-b-md">
<h2>线索审核</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>案件编号:</dt>
<dd>xxxxxxxx</dd>
<dt>案件详情:</dt>
<dd>xxxxxx</dd>
<dt>违规类型:</dt>
<dd>xxxxxxxx</dd>
</dl>
</div>
<div class="col-sm-5">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>县/区:</dt>
<dd>xxxxxx</dd>
<dt>社区/村:</dt>
<dd>xxxxx</dd>
<dt>前影像名称:</dt>
<dd>xxxxxx</dd>
<dt>前时相:</dt>
<dd>xxxxxx</dd>
</dl>
</div>
<div class="col-sm-7">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>乡镇/街道:</dt>
<dd>xxxxxx</dd>
<dt>详细地址:</dt>
<dd>xxxxxxxx</dd>
<dt>后影像名称:</dt>
<dd>xxxxxxxx</dd>
<dt>后时相:</dt>
<dd>xxxxxxxx</dd>
</dl>
</div>
<div class="col-sm-12">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>备注:</dt>
<dd>xxxxxxxx</dd>
</dl>
</div>
<div class="col-sm-5">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>关联案件:</dt>
<dd>xxxxxx</dd>
</dl>
</div>
<div class="col-sm-7">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>标题:</dt>
<dd>xxxxxx</dd>
</dl>
</div>
<div class="col-sm-12">
<dl class="dl-horizontal">
<dt>图斑:</dt>
<dd id="map" onclick="copyText()" style="cursor: pointer;">啊手动阀手动阀啊手动阀啊手动阀</dd>
<textarea id="copy-input"></textarea>
</dl>
</div>
<div class="col-sm-12">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>图片:</dt>
<dd>
<div class="lightBoxGallery">
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
<div id="blueimp-gallery" class="blueimp-gallery">
<div class="slides"></div>
<h3 class="title"></h3>
<a class="prev"></a>
<a class="next"></a>
<a class="close">×</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
</div>
</div>
</dd>
</dl>
</div>
</div>
<div class="modal-footer" style="border-top: 0px;">
<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary">审核</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.7"></script>
<!-- Peity -->
<script src="js/plugins/peity/jquery.peity.min.js"></script>
<!-- jqGrid -->
<script src="js/plugins/jqgrid/i18n/grid.locale-cn.js?0820"></script>
<script src="js/plugins/jqgrid/jquery.jqGrid.min.js?0820"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>
<!-- Page-Level Scripts -->
<script>
function copyText(){
let text = document.getElementById("map").innerText;
let input = document.getElementById("copy-input");
input.value = text; // 修改文本框的内容
input.select(); // 选中文本
document.execCommand("copy"); // 执行浏览器复制命令
alert("复制成功");
}
$(document).ready(function () {
$.jgrid.defaults.styleUI = 'Bootstrap';
var mydata = [
{
id: "1",
invdate: "2010-05-24",
name: "test",
note: "note",
tax: "10.00",
total: "2111.00"
},
{
id: "2",
invdate: "2010-05-25",
name: "test2",
note: "note2",
tax: "20.00",
total: "320.00"
},
{
id: "3",
invdate: "2007-09-01",
name: "test3",
note: "note3",
tax: "30.00",
total: "430.00"
},
{
id: "4",
invdate: "2007-10-04",
name: "test",
note: "note",
tax: "10.00",
total: "210.00"
},
{
id: "5",
invdate: "2007-10-05",
name: "test2",
note: "note2",
tax: "20.00",
total: "320.00"
},
{
id: "6",
invdate: "2007-09-06",
name: "test3",
note: "note3",
tax: "30.00",
total: "430.00"
},
{
id: "7",
invdate: "2007-10-04",
name: "test",
note: "note",
tax: "10.00",
total: "210.00"
},
{
id: "8",
invdate: "2007-10-03",
name: "test2",
note: "note2",
amount: "300.00",
tax: "21.00",
total: "320.00"
},
{
id: "9",
invdate: "2007-09-01",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
},
{
id: "11",
invdate: "2007-10-01",
name: "test",
note: "note",
amount: "200.00",
tax: "10.00",
total: "210.00"
},
{
id: "12",
invdate: "2007-10-02",
name: "test2",
note: "note2",
amount: "300.00",
tax: "20.00",
total: "320.00"
},
{
id: "13",
invdate: "2007-09-01",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
},
{
id: "14",
invdate: "2007-10-04",
name: "test",
note: "note",
amount: "200.00",
tax: "10.00",
total: "210.00"
},
{
id: "15",
invdate: "2007-10-05",
name: "test2",
note: "note2",
amount: "300.00",
tax: "20.00",
total: "320.00"
},
{
id: "16",
invdate: "2007-09-06",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
},
{
id: "17",
invdate: "2007-10-04",
name: "test",
note: "note",
amount: "200.00",
tax: "10.00",
total: "210.00"
},
{
id: "18",
invdate: "2007-10-03",
name: "test2",
note: "note2",
amount: "300.00",
tax: "20.00",
total: "320.00"
},
{
id: "19",
invdate: "2007-09-01",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
},
{
id: "21",
invdate: "2007-10-01",
name: "test",
note: "note",
amount: "200.00",
tax: "10.00",
total: "210.00"
},
{
id: "22",
invdate: "2007-10-02",
name: "test2",
note: "note2",
amount: "300.00",
tax: "20.00",
total: "320.00"
},
{
id: "23",
invdate: "2007-09-01",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
},
{
id: "24",
invdate: "2007-10-04",
name: "test",
note: "note",
amount: "200.00",
tax: "10.00",
total: "210.00"
},
{
id: "25",
invdate: "2007-10-05",
name: "test2",
note: "note2",
amount: "300.00",
tax: "20.00",
total: "320.00"
},
{
id: "26",
invdate: "2007-09-06",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
},
{
id: "27",
invdate: "2007-10-04",
name: "test",
note: "note",
amount: "200.00",
tax: "10.00",
total: "210.00"
},
{
id: "28",
invdate: "2007-10-03",
name: "test2",
note: "note2",
amount: "300.00",
tax: "20.00",
total: "320.00"
},
{
id: "29",
invdate: "2007-09-01",
name: "test3",
note: "note3",
amount: "400.00",
tax: "30.00",
total: "430.00"
}
];
$("#table_list_1").jqGrid({
data: mydata,
datatype: "local",
height: "100%",
autowidth: true,
shrinkToFit: true,
rowNum: 14,
rowList: [10, 20, 30],
colNames: ['序号', '日期', '客户', '金额', '运费', '总额', '备注'],
colModel: [
{
name: 'id',
index: 'id',
align:'center',
width: 60,
sorttype: "int"
},
{
name: 'invdate',
index: 'invdate',
align:'center',
width: 90,
sorttype: "date",
formatter: "date"
},
{
name: 'name',
index: 'name',
align:'center',
width: 100
},
{
name: 'amount',
index: 'amount',
align:'center',
width: 80,
sorttype: "float",
formatter: "number"
},
{
name: 'tax',
index: 'tax',
width: 80,
align:'center',
sorttype: "float"
},
{
name: 'total',
index: 'total',
width: 80,
align:'center',
sorttype: "float"
},
{
name: '操作',
align: "right",
width: 80, formatter: function (value, grid, rows) {
var id = rows.id;
var button1 = "agree('" + id + "')";
var button2 = "disagree('" + id + "')";
return `<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
打开示例窗口
</button>`;
}
}
],
pager: "#pager_list_1",
viewrecords: true,
caption: "",
hidegrid: false
});
// Add responsive to jqGrid
$(window).bind('resize', function () {
var width = $('.jqGrid_wrapper').width();
$('#table_list_1').setGridWidth(width);
});
});
</script>
<!-- blueimp gallery -->
<script src="js/plugins/blueimp/jquery.blueimp-gallery.min.js"></script>
</body>
</html>