X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fdelivery.php;h=574094ada01704f4d684b03be6458c59e62225dd;hb=refs%2Ftags%2F2022-10-31;hp=9cdd3385e0ed814ea1a2d789923db78c1b2e386f;hpb=f181270af10ecded4b40d9ad3f838216835eb5f4;p=readifood.git diff --git a/lib/delivery.php b/lib/delivery.php index 9cdd338..574094a 100644 --- a/lib/delivery.php +++ b/lib/delivery.php @@ -122,15 +122,17 @@ } if ($count > 1) { - echo "
\n"; + echo "

$count orders

"; echo "

Drag delivery details to reorder the schedule.

\n"; + echo "
\n"; } + else echo "

1 order

"; foreach ($orders as $order) { $contact = get_contact_by_id($order->getBeneficiaryId()); if (! $contact) continue; - echo "\n"; + echo "
"; $phones = array(); $area = get_contact_area($contact); @@ -154,12 +156,11 @@ } $area = get_address_area($address); - echo " in " . htmlspecialchars($area->getName()) . " at:
"; + echo " in " . htmlspecialchars($area->getName()) . " at:"; $city = get_area_city($area); - echo "\n
" . htmlspecialchars($address->getLine()); - echo "\n
" . htmlspecialchars($city->getName()); - echo "\n
" . htmlspecialchars($address->getPostcode()); - if (count($phones)) echo "\n

Telephone " . implode(" or ", $phones) . ""; + echo "\n" . htmlspecialchars($address->getLine()); + echo ",\n" . htmlspecialchars($address->getPostcode()); + if (count($phones)) echo ";\nTelephone " . implode(" or ", $phones) . ""; echo "

\n"; $notes = $order->getNotes(); @@ -170,7 +171,7 @@ } echo "
\n"; - echo "\n\n"; + echo "
\n\n"; } if ($count > 1) echo "
\n";