188 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			188 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="zh-cn">
 | |
| 
 | |
| <head>
 | |
| 
 | |
|     <meta charset="utf-8">
 | |
|     <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1">
 | |
|     <meta name="description" content="">
 | |
|     <meta name="author" content="">
 | |
| 
 | |
|     <title>反诈预警平台</title>
 | |
| 
 | |
|     <!-- Bootstrap Core CSS -->
 | |
|     <link href="/static/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
 | |
| 
 | |
|     <!-- MetisMenu CSS -->
 | |
|     <link href="/static/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
 | |
| 
 | |
|     <!-- DataTables CSS -->
 | |
|     <link href="/static/vendor/datatables-plugins/dataTables.bootstrap.css" rel="stylesheet">
 | |
| 
 | |
|     <!-- DataTables Responsive CSS -->
 | |
|     <link href="/static/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">
 | |
| 
 | |
|     <!-- Custom CSS -->
 | |
|     <link href="/static/dist/css/sb-admin-2.css" rel="stylesheet">
 | |
| 
 | |
|     <!-- Custom Fonts -->
 | |
|     <link href="/static/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
 | |
| 
 | |
|     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
 | |
|     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
 | |
|     <!--[if lt IE 9]>
 | |
|         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
 | |
|         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
 | |
|     <![endif]-->
 | |
| 
 | |
| </head>
 | |
| 
 | |
| <body onload="showUsername()">
 | |
| 
 | |
|     <div id="wrapper">
 | |
| 
 | |
|         <!-- Navigation -->
 | |
|         <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
 | |
|             <div class="navbar-header">
 | |
|                 <a class="navbar-brand" href="index.html">反诈预警平台</a>
 | |
|                 <img style="height: 55px" src="https://www.huel.edu.cn/__local/E/AE/EA/61886FF3FB31C22763281F1F743_8589C3F2_26D84.png"/>
 | |
|             </div>
 | |
|             <ul class="nav navbar-top-links navbar-right">
 | |
|                 <li class="dropdown">
 | |
|                     <a class="dropdown-toggle" data-toggle="dropdown" href="#">
 | |
|                         <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
 | |
|                     </a>
 | |
|                     <ul class="dropdown-menu dropdown-user">
 | |
|                         <li><a href="#"><i class="fa fa-user fa-fw"></i><label id="usernameShow">None</label></a>
 | |
|                         </li>
 | |
|                         <li class="divider"></li>
 | |
|                         <li><a href="/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
 | |
|                         </li>
 | |
|                     </ul>
 | |
|                     <!-- /.dropdown-user -->
 | |
|                 </li>
 | |
|             </ul>
 | |
|             <div class="navbar-default sidebar" role="navigation">
 | |
|                 <div class="sidebar-nav navbar-collapse">
 | |
|                     <ul class="nav" id="side-menu">
 | |
|                         <li>
 | |
|                             <a href="/"><i class="fa fa-dashboard fa-fw"></i> 概览</a>
 | |
|                         </li>
 | |
|                         <li>
 | |
|                             <a href="/show"><i class="fa fa-table fa-fw"></i> 诈骗信息</a>
 | |
|                         </li>
 | |
|                     </ul>
 | |
|                 </div>
 | |
|                 <!-- /.sidebar-collapse -->
 | |
|             </div>
 | |
|             <!-- /.navbar-static-side -->
 | |
|         </nav>
 | |
| 
 | |
|         <div id="page-wrapper">
 | |
|             <div class="row">
 | |
|                 <div class="col-lg-12">
 | |
|                     <h1 class="page-header">诈骗信息</h1>
 | |
|                 </div>
 | |
|                 <!-- /.col-lg-12 -->
 | |
|             </div>
 | |
|             <!-- /.row -->
 | |
|             <div class="row">
 | |
|                 <div class="col-lg-12">
 | |
|                     <div class="panel panel-default">
 | |
|                         <div class="panel-heading">
 | |
|                             数据展示
 | |
|                         </div>
 | |
|                         <!-- /.panel-heading -->
 | |
|                         <div class="panel-body" style="width: 100%;overflow: auto;">
 | |
|                             <table width="100%" class="table table-striped table-bordered table-hover"
 | |
|                                 id="dataTables-example" style="overflow-x: scroll;">
 | |
|                                 <thead>
 | |
|                                     <tr>
 | |
|                                         <th>UUID</th>
 | |
|                                         <th>受害人号码</th>
 | |
|                                         <th>诈骗方式</th>
 | |
|                                         <th>诈骗类型</th>
 | |
|                                         <th>预警时间</th>
 | |
|                                         <th>预警等级</th>
 | |
|                                         <th>APP/URL名称</th>
 | |
|                                         <th>诈骗电话</th>
 | |
|                                         <th>通话时长</th>
 | |
|                                         <th>诈骗人账号</th>
 | |
|                                         <th>转账金额</th>
 | |
|                                         <th>机构授权码</th>
 | |
|                                         <th>学号</th>
 | |
|                                     </tr>
 | |
|                                 </thead>
 | |
|                                 <tbody>
 | |
|                                     {% for item in data %}
 | |
|                                     <tr class="odd gradeX">
 | |
|                                         {% for v in item %}
 | |
|                                         {% if v == None %}
 | |
|                                         <td>-</td>
 | |
|                                         {% else %}
 | |
|                                         <td>{{v}}</td>
 | |
|                                         {% endif %}
 | |
|                                         {% endfor %}
 | |
|                                     </tr>
 | |
|                                     {% endfor %}
 | |
|                                 </tbody>
 | |
|                             </table>
 | |
|                             <!-- /.table-responsive -->
 | |
|                         </div>
 | |
|                         <!-- /.panel-body -->
 | |
|                     </div>
 | |
|                     <!-- /.panel -->
 | |
|                 </div>
 | |
|                 <!-- /.col-lg-12 -->
 | |
|             </div>
 | |
|         </div>
 | |
|         <!-- /#page-wrapper -->
 | |
| 
 | |
|     </div>
 | |
|     <!-- /#wrapper -->
 | |
| 
 | |
|     <!-- jQuery -->
 | |
|     <script src="/static/vendor/jquery/jquery.min.js"></script>
 | |
| 
 | |
|     <!-- Bootstrap Core JavaScript -->
 | |
|     <script src="/static/vendor/bootstrap/js/bootstrap.min.js"></script>
 | |
| 
 | |
|     <!-- Metis Menu Plugin JavaScript -->
 | |
|     <script src="/static/vendor/metisMenu/metisMenu.min.js"></script>
 | |
| 
 | |
|     <!-- DataTables JavaScript -->
 | |
|     <script src="/static/vendor/datatables/js/jquery.dataTables.min.js"></script>
 | |
|     <script src="/static/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
 | |
|     <script src="/static/vendor/datatables-responsive/dataTables.responsive.js"></script>
 | |
| 
 | |
|     <!-- Custom Theme JavaScript -->
 | |
|     <script src="/static/dist/js/sb-admin-2.js"></script>
 | |
| 
 | |
|     <!-- Page-Level Demo Scripts - Tables - Use for reference -->
 | |
|     <script>
 | |
|         $(document).ready(function () {
 | |
|             $('#dataTables-example').DataTable({
 | |
|                 responsive: true
 | |
|             });
 | |
|         });
 | |
| 
 | |
|         function getCookie(cname) {
 | |
|             var name = cname + "=";
 | |
|             var ca = document.cookie.split(';');
 | |
|             for (var i = 0; i < ca.length; i++) {
 | |
|                 var c = ca[i].trim();
 | |
|                 if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
 | |
|             }
 | |
|             return "";
 | |
|         }
 | |
| 
 | |
|         function showUsername() {
 | |
|             var a = document.getElementById("usernameShow")
 | |
|             a.innerText = "" + getCookie("user")
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
| </body>
 | |
| 
 | |
| </html> |