1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>考生考场座位贴</title>
- <style>
- .room{
- width: 100%;
- }
- .room h2{
- text-align: center;
- }
- .room .list .item{
- width: 200px;
- text-align: center;
- line-height: 40px;
- font-weight: bold;
- font-size: 20px;
- float: left;
- }
- .room .list .item .avatar{
- width: 180px;
- height: 253px;
- }
- .room .list .item .text{
- font-weight: normal;
- }
- </style>
- </head>
- <body>
- @foreach($data as $k=>$v)
- <div class="room clearfix">
- <h2>
- 考生进出考场签到表
- </h2>
- <div class="list">
- @foreach($v as $key => $val)
- <div class="item">
- <div class="avatar">
- <img src="{{$val['avatar']}}" width="170" height="247" />
- </div>
- <div class="info">
- {{$val['seat']}} {{$val['realname']}}
- </div>
- <div class="text">
- 进场:__________
- </div>
- <div class="text">
- 离场:__________
- </div>
- </div>
- @endforeach
- </div>
- </div>
- <div class="print" style="margin: 10px 0;text-align: center">
- <button class="print_page btn btn-sm btn-info" style="width: 200px;height: 60px;font-size: 30px;line-height: 40px">打印此页</button>
- </div>
- @endforeach
- <div id="print_body" ></div>
- <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/polyfill.min.js') }}"></script>
- <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/hiprint.bundle.js') }}"></script>
- <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/plugins/JsBarcode.all.min.js') }}"></script>
- <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/plugins/qrcode.js') }}"></script>
- <script type="text/javascript" src="{{ theme_asset('app/js/jQuery.print.js') }}"></script>
- <script>
- $(".print_page").on('mouseover',function(){
- var dom = $(this).parent().prev();
- $(dom).addClass('selected')
- });
- $(".print_page").on('mouseout',function(){
- var dom = $(this).parent().prev();
- $(dom).removeClass('selected')
- });
- $(".print_page").on('click',function(){
- var dom = $(this).parent().prev();
- console.log(dom)
- $(dom).print()
- });
- </script>
- </body>
- </html>
|