added name and size table

This commit is contained in:
franknstayn
2019-12-05 18:17:42 +08:00
parent 659ad69995
commit 573d9b7f6d

View File

@@ -43,7 +43,8 @@ $array_orders = getSubItem($dateToday);
?>
<!doctype html>
<html>
<head>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Order Details</title>
@@ -191,13 +192,14 @@ $array_orders = getSubItem($dateToday);
width: 100%;
}
.btn > tbody > tr > td {
.btn>tbody>tr>td {
padding-bottom: 15px;
}
.btn table {
width: auto;
}
.btn table td {
background-color: #ffffff;
border-radius: 5px;
@@ -296,6 +298,7 @@ $array_orders = getSubItem($dateToday);
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
@@ -304,28 +307,35 @@ $array_orders = getSubItem($dateToday);
table[class=body] a {
font-size: 12px !important;
}
table[class=body] .wrapper,
table[class=body] .article {
padding: 10px !important;
}
table[class=body] .content {
padding: 0 !important;
}
table[class=body] .container {
padding: 0 !important;
width: 100% !important;
}
table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class=body] .btn table {
width: 100% !important;
}
table[class=body] .btn a {
width: 100% !important;
}
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
@@ -340,6 +350,7 @@ $array_orders = getSubItem($dateToday);
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
@@ -348,6 +359,7 @@ $array_orders = getSubItem($dateToday);
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
@@ -356,9 +368,11 @@ $array_orders = getSubItem($dateToday);
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #34495e !important;
}
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
@@ -366,7 +380,8 @@ $array_orders = getSubItem($dateToday);
}
.table-bordered td, th {
.table-bordered td,
th {
border: 1px solid black;
padding: 2px;
}
@@ -379,22 +394,24 @@ $array_orders = getSubItem($dateToday);
@media print {
.items tr {
page-break-inside:avoid;
position:relative;
page-break-inside: avoid;
position: relative;
}
}
@page {
size: 18cm 26.7cm;
margin: 1cm;
}
#tbl_subitem tr td{
#tbl_subitem tr td {
text-align: center;
}
</style>
</head>
<body class="" onload="window.print()">
</head>
<body class="" onload="window.print()">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
@@ -409,7 +426,8 @@ $array_orders = getSubItem($dateToday);
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<h3 class="align-center" style="font-size: 15px;"><b>Daily Reports <?php echo $dateToday ?></b> </h3>
<h3 class="align-center" style="font-size: 15px;"><b>Daily Reports
<?php echo $dateToday ?></b> </h3>
<br>
<?php
$q = $conn->prepare("SELECT t.StoreName, o.ProductId, o.FormUsed, o.ProductName, o.NAME, o.NUMBER, o.Size, o.JerseySize, o.ShortsSize, o.Price, o.Quantity, (o.Price * o.Quantity) AS TotalPrice, ((o.Price * o.Quantity) * 0.10) AS Tax,
@@ -427,9 +445,11 @@ $array_orders = getSubItem($dateToday);
while ($row = $q->fetch()) {
?>
<div class="items-parent" style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
<div class="items-parent"
style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
<table class="items" role="presentation" border="0" cellpadding="0" cellspacing="0" >
<table class="items" role="presentation" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td>
@@ -456,7 +476,9 @@ $array_orders = getSubItem($dateToday);
}
?>
</div>
<table id="tbl_subitem" class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse;">
<table id="tbl_subitem"
class="table table-condensed table-bordered"
style="width: 100%; border-collapse: collapse;">
<?php
if($row['FormUsed']=="jersey-and-shorts-form"){
@@ -512,6 +534,18 @@ $array_orders = getSubItem($dateToday);
<th>Quantity</th>
</tr>
<?php
}elseif($row['FormUsed']=="name-size-form"){
?>
<tr>
<td><b>#</b></td>
<th>Name</th>
<th>Size</th>
<th>Price</th>
<th>Quantity</th>
</tr>
<?php
}else{
// else
}
@@ -579,11 +613,18 @@ $array_orders = getSubItem($dateToday);
<td><?php echo $val['Quantity'] ?> </td>
</tr>
<?php
}elseif($row['FormUsed']=="name-size-form"){
?>
<tr>
<td><?php echo $i++ ?> </td>
<td><?php echo $val['Name'] ?> </td>
<td><?php echo $val['Size'] ?> </td>
<td><?php echo $val['Quantity'] ?> </td>
</tr>
<?php
}else{
}
}
}
@@ -618,7 +659,9 @@ $array_orders = getSubItem($dateToday);
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<span class="apple-link">Copyright &copy 2019 <a href="https://crewsportswear.com">crewsportswear.com</a>. All rights reserved.</span>
<span class="apple-link">Copyright &copy 2019 <a
href="https://crewsportswear.com">crewsportswear.com</a>. All rights
reserved.</span>
</td>
</tr>
</table>
@@ -629,5 +672,6 @@ $array_orders = getSubItem($dateToday);
<td>&nbsp;</td>
</tr>
</table>
</body>
</body>
</html>