-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbusprint.php
124 lines (98 loc) · 2.4 KB
/
busprint.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<h1 align="center"><mark>Ticket Details</h1></mark>
<br>
<style >
$black: #343434;
.ticket {
font-family: Montserrat, sans-serif;
}
.ticketdesign {
background: linear-gradient(to bottom, #FFC107 0%, #FFC107 19%, #d9d9d9 19%, #d9d9d9 100%);
height: 30em;
float: left;
object-position: center;
padding: 1em;
margin-top: 100px;
}
.ticketstructure {
align-content: center;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
width: 75em;
}
h1 {
font-size: 40px;
margin-top: 0;
font-family: Montserrat, sans-serif;
}
h2 h3 {
font-size: 20px;
margin-top: 0;
font-family: Montserrat, sans-serif;
color:black;
}
span {
color: black;
}
#options {
align-content:center;
align-items:center;
text-align: center;
}
.printable {
padding-left:
10px;text-align:left;
}
</style>
<?php
include 'connect.php';
$pid=$_GET['pid'];
$sel="SELECT * FROM `bustransactions` WHERE `T_No.` =$pid";
$rs=$connect->query($sel);
while($row=$rs->fetch_assoc())
{
?>
<div class="ticket " id="printable">
<div class="ticketdesign ticketstructure" >
<h1 align="left"><b>BusGo</b>                          <b>Bus-Ticket</b>                  Ticket No : <?php echo $row['T_No.'] ?> </h1></span>
<div class="title">
<br>
<h1 align="center"><span><?php echo $row['source'] ?>    To    <?php echo $row['dest'] ?> </span></h1>
<h2 align="left"><span>Name :   <?php echo $row['Name'] ?></span></h2>
<h2 align="left"><span>Date & Time :   <?php echo $row['Date'] ?></span></h2>
<h2 align="left"><span>Bus No :   <?php echo $row['Bus_No'] ?></span></h2>
<h2 align="left"><span>No of Passengers :  <?php echo $row['NoOfpass'] ?> </span></h2>
<h2 align="left"><span>Amount :   ₹<?php echo $row['Amt'] ?> </span></h2>
<h2 align="center"><span>Wish you happy & safe journey</span> </h2>
</div>
</div>
</div>
<?php
}
?>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>