print_express.html
1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{echo:JS::import('form');}
<style media="print" type="text/css">
.bar{display:none}
.content {
margin: 0px;
border: none;
margin-left: 0px;
margin-top: 0px;
background: none;
}
</style>
<style type="text/css">
.bar {
height: 40px;
padding-left: 60px;
line-height: 40px;
border-bottom: 1px solid #d2d2d2;
margin-bottom: 6px;
background-color: #f1f1f1;
}
.content {
margin: 4px;
position: relative;
overflow: hidden;
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
border: 1px solid #d2d2d2;
width: {$width}px;
height: {$height}px;
background: url({$background}) 0px 0px no-repeat;
}
.content .item {
line-height: 20px;
float: left;
position: absolute;
overflow: hidden;
word-wrap: break-word;
color: #000000;
font-size: 12pt;
}
.container pre {
float: left;
}
.content .item .resize {
display: none;
}
</style>
<div class="bar form2">
<form id="express_form" action="{url:/order/print_express/id/$id}" method="post">
快递单模板:<select id="template_id" name="template_id">
<option value="">选择快递单模板</option>
{query:name=express_template}
<option value="{$item['id']}">{$item['name']}</option>{/query}</select> 发货地址:<select id="ship_id" name="ship_id">
<option value="">选择发货地址</option>
{query:name=ship}
<option value="{$item['id']}">{$item['ship_name']}</option>{/query}</select> <input class="focus_button noprint" type="submit" onclick="window.print();" value=" 打 印 " /> </form> </div>
<div class="content">
{$content}
</div>
<script type="text/javascript">
var form = new Form();
form.setValue('template_id','{$template_id}');
form.setValue('ship_id','{$ship_id}');
$(document).ready(function() {
$("#template_id").add($("#ship_id")).change(function() {
$("#express_form").submit();
});
});
</script>