diff --git a/daily_reports_with_image.php b/daily_reports_with_image.php
index 4ac5570..853683e 100644
--- a/daily_reports_with_image.php
+++ b/daily_reports_with_image.php
@@ -48,649 +48,254 @@ $array_orders = getSubItem($dateToday);
-
- | |
-
-
-
-
-
-
-
-
-
-
- Daily Reports
-
-
- 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,
- o.DateCreated, pd.InvoiceNumber, pd.Payer_Email FROM orders AS o
- INNER JOIN payment_details AS pd ON pd.CartKey = o.CartKey
- INNER JOIN teamstores AS t ON t.Id = o.StoreId
- WHERE o.DateCreated BETWEEN '$dateToday 00:00:00' AND '$dateToday 23:59:00'
- GROUP BY o.ProductId
- ORDER BY o.DateCreated");
- $q->execute();
- $result = $q->rowCount();
+
+
+ | |
+
+
+
+
+
+
+
+
+
+
+ Daily Reports
+
+ 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,
+ o.DateCreated, pd.InvoiceNumber, pd.Payer_Email FROM orders AS o
+ INNER JOIN payment_details AS pd ON pd.CartKey = o.CartKey
+ INNER JOIN teamstores AS t ON t.Id = o.StoreId
+ WHERE o.DateCreated BETWEEN '$dateToday 00:00:00' AND '$dateToday 23:59:00'
+ GROUP BY o.ProductId
+ ORDER BY o.DateCreated");
+ $q->execute();
+ $result = $q->rowCount();
- if($result > 0){
- // $i = 1;
- while ($row = $q->fetch()) {
-
- ?>
-
+ if($result > 0){
+ while ($row = $q->fetch()) {
+ ?>
+
+
+
+
+
+ Store:
+ |
+
+
+ |
+
+
+
+
+
+ $thumb_val){
+ echo '  ';
+ }
+ ?>
+
+
+
+
+ | # |
+ Name |
+ Number |
+ Jersey Size |
+ Shorts Size |
+ Quantity |
+
+
+
+ | # |
+ Size |
+ Quantity |
+
+
+
+ | # |
+ Quantity |
+
+
+
+ | # |
+ Name |
+ Number |
+ Quantity |
+
+
+
+ | # |
+ Name |
+ Number |
+ Size |
+ Quantity |
+
+
+
+ | # |
+ Number |
+ Quantity |
+
+
+
+ | # |
+ Gamer Tag |
+ Name |
+ Size |
+ Quantity |
+
+
+
+ | # |
+ Name |
+ Size |
+ Quantity |
+
+
+
+ | # |
+ Jersey Size |
+ Shorts Size |
+ Quantity |
+
+
+
+ | # |
+ Number |
+ Jersey Size |
+ Shorts Size |
+ Quantity |
+
+
-
-
-
- Store:
- |
-
-
- |
-
-
-
-
-
-
- $thumb_val){
- // echo $thumb_val['Image'];
- echo '  ';
- }
- ?>
-
-
-
-
- | # |
- Name |
- Number |
- Jersey Size |
- Shorts Size |
- Quantity |
-
-
-
- | # |
- Size |
- Quantity |
+ foreach($array_orders as $key => $val){
+ if($val['ProductId'] == $row['ProductId']){
+ if($row['FormUsed']=="jersey-and-shorts-form"){ ?>
+
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | |
+ |
+ |
+
+
+
+ | |
+ |
+
+
+
+ | |
+ |
+ |
+ |
+
+
+
+ | |
+ |
+ |
+ |
+ |
+
+
+
+ | |
+ |
+ |
+
+
+
+ | |
+ |
+ |
+ |
+ |
+
+
+
+ | |
+ |
+ |
+ |
+
+
+
+ | |
+ |
+ |
+ |
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
- |
-
-
- | # |
- Quantity |
-
-
-
- | # |
- Name |
- Number |
- Quantity |
-
-
-
- | # |
- Name |
- Number |
- Size |
- Quantity |
-
-
-
- | # |
- Number |
- Quantity |
-
-
-
- | # |
- Name |
- Size |
- Quantity |
-
-
-
-
- | # |
- Jersey Size |
- Shorts Size |
- Quantity |
-
-
- $val){
- if($val['ProductId'] == $row['ProductId']){
-
- if($row['FormUsed']=="jersey-and-shorts-form"){
- ?>
-
- |
-
- |
-
-
- |
- |
- |
- |
- |
-
-
-
- | |
- |
- |
-
-
-
- | |
- |
-
-
-
- | |
- |
- |
- |
-
-
-
-
- | |
- |
- |
- |
- |
-
-
-
- | |
- |
- |
-
-
-
- | |
- |
- |
- |
-
-
-
- | |
- |
- |
- |
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
- |
- |
-
-
+
+
+
+
+
+