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> <!doctype html>
<html> <html>
<head>
<head>
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Order Details</title> <title>Order Details</title>
@@ -191,13 +192,14 @@ $array_orders = getSubItem($dateToday);
width: 100%; width: 100%;
} }
.btn > tbody > tr > td { .btn>tbody>tr>td {
padding-bottom: 15px; padding-bottom: 15px;
} }
.btn table { .btn table {
width: auto; width: auto;
} }
.btn table td { .btn table td {
background-color: #ffffff; background-color: #ffffff;
border-radius: 5px; border-radius: 5px;
@@ -296,6 +298,7 @@ $array_orders = getSubItem($dateToday);
font-size: 28px !important; font-size: 28px !important;
margin-bottom: 10px !important; margin-bottom: 10px !important;
} }
table[class=body] p, table[class=body] p,
table[class=body] ul, table[class=body] ul,
table[class=body] ol, table[class=body] ol,
@@ -304,28 +307,35 @@ $array_orders = getSubItem($dateToday);
table[class=body] a { table[class=body] a {
font-size: 12px !important; font-size: 12px !important;
} }
table[class=body] .wrapper, table[class=body] .wrapper,
table[class=body] .article { table[class=body] .article {
padding: 10px !important; padding: 10px !important;
} }
table[class=body] .content { table[class=body] .content {
padding: 0 !important; padding: 0 !important;
} }
table[class=body] .container { table[class=body] .container {
padding: 0 !important; padding: 0 !important;
width: 100% !important; width: 100% !important;
} }
table[class=body] .main { table[class=body] .main {
border-left-width: 0 !important; border-left-width: 0 !important;
border-radius: 0 !important; border-radius: 0 !important;
border-right-width: 0 !important; border-right-width: 0 !important;
} }
table[class=body] .btn table { table[class=body] .btn table {
width: 100% !important; width: 100% !important;
} }
table[class=body] .btn a { table[class=body] .btn a {
width: 100% !important; width: 100% !important;
} }
table[class=body] .img-responsive { table[class=body] .img-responsive {
height: auto !important; height: auto !important;
max-width: 100% !important; max-width: 100% !important;
@@ -340,6 +350,7 @@ $array_orders = getSubItem($dateToday);
.ExternalClass { .ExternalClass {
width: 100%; width: 100%;
} }
.ExternalClass, .ExternalClass,
.ExternalClass p, .ExternalClass p,
.ExternalClass span, .ExternalClass span,
@@ -348,6 +359,7 @@ $array_orders = getSubItem($dateToday);
.ExternalClass div { .ExternalClass div {
line-height: 100%; line-height: 100%;
} }
.apple-link a { .apple-link a {
color: inherit !important; color: inherit !important;
font-family: inherit !important; font-family: inherit !important;
@@ -356,9 +368,11 @@ $array_orders = getSubItem($dateToday);
line-height: inherit !important; line-height: inherit !important;
text-decoration: none !important; text-decoration: none !important;
} }
.btn-primary table td:hover { .btn-primary table td:hover {
background-color: #34495e !important; background-color: #34495e !important;
} }
.btn-primary a:hover { .btn-primary a:hover {
background-color: #34495e !important; background-color: #34495e !important;
border-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; border: 1px solid black;
padding: 2px; padding: 2px;
} }
@@ -379,22 +394,24 @@ $array_orders = getSubItem($dateToday);
@media print { @media print {
.items tr { .items tr {
page-break-inside:avoid; page-break-inside: avoid;
position:relative; position: relative;
} }
} }
@page { @page {
size: 18cm 26.7cm; size: 18cm 26.7cm;
margin: 1cm; margin: 1cm;
} }
#tbl_subitem tr td{ #tbl_subitem tr td {
text-align: center; text-align: center;
} }
</style> </style>
</head> </head>
<body class="" onload="window.print()">
<body class="" onload="window.print()">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body"> <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
<tr> <tr>
@@ -409,7 +426,8 @@ $array_orders = getSubItem($dateToday);
<table role="presentation" border="0" cellpadding="0" cellspacing="0"> <table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td> <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> <br>
<?php <?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, $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()) { 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> <tbody>
<tr> <tr>
<td> <td>
@@ -456,7 +476,9 @@ $array_orders = getSubItem($dateToday);
} }
?> ?>
</div> </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 <?php
if($row['FormUsed']=="jersey-and-shorts-form"){ if($row['FormUsed']=="jersey-and-shorts-form"){
@@ -512,6 +534,18 @@ $array_orders = getSubItem($dateToday);
<th>Quantity</th> <th>Quantity</th>
</tr> </tr>
<?php <?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{
// else // else
} }
@@ -579,11 +613,18 @@ $array_orders = getSubItem($dateToday);
<td><?php echo $val['Quantity'] ?> </td> <td><?php echo $val['Quantity'] ?> </td>
</tr> </tr>
<?php <?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{ }else{
} }
} }
} }
@@ -618,7 +659,9 @@ $array_orders = getSubItem($dateToday);
<table role="presentation" border="0" cellpadding="0" cellspacing="0"> <table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td class="content-block"> <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> </td>
</tr> </tr>
</table> </table>
@@ -629,5 +672,6 @@ $array_orders = getSubItem($dateToday);
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
</table> </table>
</body> </body>
</html> </html>