|
2 | 2 | <html>
|
3 | 3 | <head>
|
4 | 4 | <meta charset="utf-8" />
|
5 |
| - <title>DMARC</title> |
6 |
| - <link rel="stylesheet" type="text/css" media="screen" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> |
| 5 | + <title>Mail::DMARC::Report::View::HTTP</title> |
| 6 | + <link rel="stylesheet" type="text/css" media="screen" href="http://code.jquery.com/ui/1.10.3/themes/cupertino/jquery-ui.css" /> |
7 | 7 | <link rel="stylesheet" type="text/css" media="screen" href="/dmarc/css/ui.jqgrid.css" />
|
8 | 8 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
|
9 | 9 | <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
|
10 | 10 | <script type="text/javascript" src="/dmarc/js/i18n/grid.locale-en.js"></script>
|
11 | 11 | <script type="text/javascript" src="/dmarc/js/jquery.jqGrid.min.js"></script>
|
12 | 12 |
|
| 13 | +<style type="text/css"> |
| 14 | +html, body { |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + font-size: 80%; |
| 18 | +} |
| 19 | +</style> |
| 20 | + |
13 | 21 | <script type="text/javascript">
|
14 |
| -// Here we set the altRows option globally |
15 |
| -jQuery.extend(jQuery.jgrid.defaults, { |
16 |
| - altRows:true, |
| 22 | +// Set the options globally |
| 23 | +jQuery.extend(jQuery.jgrid.defaults, { |
| 24 | + altRows:true, |
| 25 | + datatype: "json", |
17 | 26 | height:'500',
|
| 27 | + jsonReader : { |
| 28 | + root: 'rows', |
| 29 | + page: 'cur_page', |
| 30 | + total: 'total_pages', |
| 31 | + records:'total_rows', |
| 32 | + repeatitems:false, |
| 33 | + subgrid: { |
| 34 | + root: 'rows', |
| 35 | + page: 'cur_page', |
| 36 | + total: 'total_pages', |
| 37 | + records:'total_rows', |
| 38 | + repeatitems:false, |
| 39 | + }, |
| 40 | + }, |
| 41 | + pager: '#gridpager', |
18 | 42 | });
|
19 | 43 | </script>
|
20 | 44 |
|
21 | 45 | <script type="text/javascript">
|
22 | 46 | jQuery(document).ready(function(){
|
23 | 47 | jQuery("#grid").jqGrid({
|
24 | 48 | url:'/dmarc/json/report',
|
25 |
| - datatype: "json", |
26 | 49 | mtype: 'POST',
|
27 |
| - colNames:['Id','Begin','End','Recipient','From','Org Name','UUID'], |
| 50 | + colNames:['Id','Recipient','From','Org Name','Begin','End','UUID' ], |
28 | 51 | colModel :[
|
29 | 52 | {name:'rid', index:'rid', width:30, align:'center', sortable: true },
|
30 |
| - {name:'begin', index:'begin', width:90, sorttype:'date'}, |
31 |
| - {name:'end', index:'end', width:90, sorttype:'date',}, |
32 | 53 | {name:'rcpt_domain', index:'rcpt_domain', width:135, align:'right', sortable: true},
|
33 | 54 | {name:'from_domain', index:'from_domain', width:135, align:'right', sortable: true},
|
34 | 55 | {name:'author', index:'author', width:170, align:'center' },
|
| 56 | + {name:'begin', index:'begin', width:90, sorttype:'date'}, |
| 57 | + {name:'end', index:'end', width:90, sorttype:'date',}, |
35 | 58 | {name:'uuid', index:'uuid', width:120, align:'left'},
|
36 | 59 | // {name:'type',index:'type', width:200,editable:true,edittype:'select',editoptions:{dataUrl: '/jqGridOptionData?entity=WineType'}},
|
37 | 60 | ],
|
38 |
| - jsonReader : { |
39 |
| - root: 'rows', |
40 |
| - page: 'cur_page', |
41 |
| - total: 'total_pages', |
42 |
| - records:'total_rows', |
43 |
| - repeatitems:false, |
44 |
| - subgrid: { |
45 |
| - root: 'rows', |
46 |
| - page: 'cur_page', |
47 |
| - total: 'total_pages', |
48 |
| - records:'total_rows', |
49 |
| - repeatitems:false, |
50 |
| - }, |
51 |
| - }, |
52 | 61 | rowNum: 100,
|
53 | 62 | rowList: [50,100,500],
|
54 |
| - pager: '#gridpager', |
55 | 63 | sortname: 'rid',
|
56 | 64 | viewrecords: true,
|
57 | 65 | editurl:"/dmarc/json/record/edit",
|
|
60 | 68 | subGrid: true,
|
61 | 69 | subGridUrl:'/dmarc/json/row',
|
62 | 70 | subGridModel: [
|
63 |
| - { |
64 |
| - name:['','IP','Count','Disposition','SPF','DKIM','Header From','Envelope To','Envelope From'], |
65 |
| - width:[50,100,10,30,30,40,100,100,100], |
66 |
| - align:[,'center','center','center','center','center','right','right','right'], |
| 71 | + { |
| 72 | + name:['','IP','Count','Disposition','SPF','DKIM','Envelope To','Envelope From'], |
| 73 | + width:[70,200,15,40,40,40,100,100,100], |
| 74 | + align:[,'center','center','center','center','center','right','right'], |
67 | 75 | params: ['rid'],
|
68 |
| - mapping: [,'source_ip','count','disposition','spf','dkim','header_from','envelope_to','envelope_from'], |
| 76 | + mapping: [,'source_ip','count','disposition','spf','dkim','envelope_to','envelope_from'], |
69 | 77 | },
|
70 | 78 | ],
|
71 | 79 | filterToolbar: {
|
|
84 | 92 | </head>
|
85 | 93 |
|
86 | 94 | <body>
|
87 |
| -<h2>DMARC Reports</h2> |
| 95 | +<p><a href="http://search.cpan.org/~msimerson/Mail-DMARC/">Mail::DMARC::Report::View::HTTP</a> - sponsored by <a href="http://www.colocateusa.net/">ColocateUSA</a>.</p> |
88 | 96 |
|
89 | 97 | <div id="mybutton"></div>
|
90 | 98 |
|
|
0 commit comments