gdoo/resources/views/layouts/print.blade.php

251 lines
5.2 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['title']}}</title>
<link href="{{mix('/assets/dist/vendor.min.css')}}" rel="stylesheet" type="text/css">
<link href="{{mix('/assets/dist/gdoo.min.css')}}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{{mix('/assets/dist/vendor.min.js')}}"></script>
<script type="text/javascript" src="{{$public_url}}/common?s={{time()}}"></script>
<script type="text/javascript" src="{{mix('/assets/dist/gdoo.min.js')}}"></script>
<style type="text/css">
body {
background: -webkit-linear-gradient(right, #198fb4, #0b6fab);
background: -o-linear-gradient(right, #198fb4, #0b6fab);
background: linear-gradient(to left, #198fb4, #0b6fab);
background-color: #3586b7;
}
.table {
border: 1px solid #58585C;
color: #000;
width: 100%;
margin: 5px 0;
}
.table .left { text-align:left; }
.table .center { text-align:center; }
.table .right { text-align:right; }
.table p { text-align:center; }
.table img { border:0; }
.table td {
border: 1px solid #58585C;
padding: 3px;
color: #000;
vertical-align: middle;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 3px;
}
.table th {
font-weight: normal;
color: #000;
border: 1px solid #58585C;
padding: 3px;
/*
white-space: nowrap;
*/
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid #58585C;
}
.table>thead>tr>th {
border-bottom: 1px solid #58585C;
}
.title {
text-align: center;
font-size: 18px;
font-weight: 400;
color: #333;
padding-bottom: 10px;
/*
border-bottom: 1px solid #333;
*/
}
.main-container {
margin:0 auto;
font:14px '微软雅黑', '黑体', 'Lucida Grande', Verdana, sans-serif;
background: #fff;
position: relative;
}
.main-container h3 {
padding-top:12px;
font-size:15px;
text-align:center;
}
.main-container p {
text-align:left;
padding-top:6px;
}
.panel {
width: 1000px;
margin: 15px auto;
border-radius: 0;
border-color: #eee;
}
.table.no-border,
.table.no-border td,
.table.no-border th {
border: 0;
}
@media screen {
.main {
width: 1000px;
margin: 15px auto;
padding: 50px 0;
background-color: #fff;
border: solid 1px #eee;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.main-container {
width: 880px;
}
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
.main-container {
font:12px 'SimSun', 'Microsoft YaHei';
}
}
.text-muted {
color: #333;
}
.b-t {
border-top: 1px solid #333;
}
.row {
border: 1px solid #333;
border-top: 0;
padding: 5px;
color: #333;
margin-left: 0;
margin-right: 0;
}
.row > div {
padding: 3px 8px;
}
.row:first-child {
border-top: 1px solid #333;
}
.row.no-border {
border: 0;
padding: 0;
}
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
.i-checks>i {
border: 1px solid #333;
}
.i-checks input:checked+i {
border-color: #333;
}
.i-checks input:checked+i:before {
background-color: #333;
}
@page {
margin: 10mm;
size: 210mm 297mm;
}
</style>
</head>
<body>
<div class="panel panel-default">
<div class="panel-body">
<div class="pull-right">
<a class="btn btn-default" href="javascript:window.print();"><i class="icon icon-print"></i> 打印</a>
<a class="btn btn-default" href="javascript:window.close();"><i class="icon icon-remove"></i> 关闭</a>
</div>
<h4><i class="icon icon-note"></i> 打印预览</h4>
</div>
</div>
<div class="main">
<div class="main-container">
<div class="title">{{$setting['print_title']}}{{$form['template']['name'] ? $form['template']['name'] : $template['name']}}</div>
<div>
{{$content}}
</div>
</div>
</div>
</body>
</html>