It also has a __toString() method which gives
// an HTML formatted
// output of the full order
if ($orderObj->Save())
{
echo "
Order Placed!
";
echo $orderObj;
echo "
Your order will soon be on its way. Payment
on delivery.
";
$_SESSION["orderInfo"] = null;
}
else
{
echo "
Sorry, the order could not be placed. Please
try again.
";
}
?>
That completes the ordering process! Luigi and his team will now make some
delicious pizzas and deliver them in a few minutes!
Chapter 3
[ 69 ]
Special Effects with CSS
Luigi wants to run discount offers on the mobile store. He also wants to display the
offers with some special effects! Since we can't be sure about how many people will
have Flash support in their mobile browsers, we need to do something simpler. We
can use animated GIFs to draw attention. But WCSS can do a few tricks that will
come to our rescue! We can slide some content and show it like a marquee. That
should make Luigi happy!
Here's the style sheet and XHTML code for creating a marquee.