-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_order.php
47 lines (46 loc) · 1.04 KB
/
view_order.php
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
<div class="container-fluid py-1">
<?php include 'receipt.php' ?>
</div>
<div class="modal-footer row display py-1">
<div class="col-lg-12">
<button class="btn float-right btn-secondary" type="button" data-dismiss="modal">Close</button>
<button class="btn float-right btn-success mr-2" type="button" id="print">Print</button>
</div>
</div>
<style>
#uni_modal .modal-footer{
display: none
}
#uni_modal .modal-footer.display{
display: block
}
.border-gradien-alert{
border-image: linear-gradient(to right, red , yellow) !important;
}
.border-alert th,
.border-alert td {
animation: blink 200ms infinite alternate;
}
@keyframes blink {
from {
border-color: white;
}
to {
border-color: red;
background: #ff00002b;
}
}
</style>
<script>
$('#print').click(function(){
start_load()
var nw = window.open('receipt.php?id=<?php echo $_GET['id'] ?>',"_blank","width=900,height=600")
setTimeout(function(){
nw.print()
setTimeout(function(){
nw.close()
end_load()
},500)
},500)
});
</script>