示例#1
0
            //to fetch First Element from array////
            $optionValueDateArr = explode("-", $optionValueDateNoTime);
            //break string into array////
            $revArr = array_reverse($optionValueDateArr);
            // to reverse the array ////
            //To check If date is Modified and SET it to Modified Date If True//////
        }
        if (stristr($optionTitle, "Shipping Type") == TRUE) {
            $shippingType = $option['value'];
        }
        if (stristr($optionTitle, "Delivery City") == TRUE) {
            $DeliveryCity = $option['value'];
        }
    }
}
$specialInst = explode(':', fetchCommentOnOrderId($orderId));
//echo $specialInst[1];
$subject = "Floshowers order for delivery in " . $city . " on " . $date . "-" . $orderId;
//BODY START HERE....
$body = "\n<html>           \n<body>\n\tHello<br/><br/>\n\tPlease acknowledge the below order along with the cost :- <br/><br/>\n\t<b>Order No.: - </b><font color='red'>" . $orderId . "</font><br/><br/>";
if (!is_null($recipientName)) {
    $body .= "<br/><br/><b>Recipient Name : </b>" . $recipientName;
} else {
    $body .= "<br/><br/><b>Recipient Name : </b>" . $name;
}
if (!is_null($cardMessage)) {
    $body .= "<br/><br/><b>Message On Card</b> : " . $cardMessage;
} else {
    $body .= "<br/><br/><b>Message On Card</b> : Best Wishes!";
}
if (!is_null($senderName)) {
示例#2
0
    echo "<br/><br/><b>Recipient Name : </b>" . $recipientName;
} else {
    echo "<br/><br/><b>Recipient Name : </b>" . $name;
}
if (!is_null($cardMessage)) {
    echo "<br/><br/><b>Message On Card</b> : " . $cardMessage;
} else {
    echo "<br/><br/><b>Message On Card</b> : Best Wishes!";
}
if (!is_null($senderName)) {
    echo "<br/><br/><b>Sender Name : </b>" . $senderName;
}
//else
//echo "<br/><br/><b>Sender Name : </b>";
echo "<br/><br/><b>Delivery Address:</b><br/>" . $name . "<br/>" . $recipientStreet . "<br/>" . $city . "-" . $pin . "<br/><br/>\r\n<b>Recipient Contact No.</b>: " . $recipientTelephone . "</br></br></br>\r\n<b>Date Of Delivery : </b><font color='red'><b>" . $date . "</b></font></br></br>";
echo "<table><td><b>Special Instructions:</b></br>\r\n<textarea name='specialInst' cols='50' rows='5'>" . fetchCommentOnOrderId($orderId) . "</textarea></br></br></br>\r\n<b>Product Description: </b></br>\r\n<textarea name='productDesc' cols='50' rows='5'>" . $vendorDescriptions . "</textarea></br></br></br></td><td>";
echo $productImg;
echo "</td>";
if ($stypeFromOrder == $customShippingMethod) {
    $deliveryType = $customShippingMethod;
    echo "Select Delivery Type : <select id='dilType' name='dilType'>\r\n\t<option value='" . $deliveryType . "' selected>" . $deliveryType . "</option>\r\n\t<option value='Daytime'>Daytime</option>\r\n\t<option value='Midnight'>Midnight</option>";
} else {
    if (stristr($stypeFromOrder, 'Midnight') == TRUE) {
        echo "<b>Order Shipping Method : </b><font color='red'>" . $stypeFromOrder . "</font></br>";
    } else {
        echo "<b>Order Shipping Method : </b>" . $stypeFromOrder . "</br>";
    }
    if (stristr($customShippingMethod, 'Midnight') == TRUE) {
        echo "<b>Custom Shipping Method : </b><font color='red'>" . $customShippingMethod . "</font></br></br>";
    } else {
        echo "<b>Custom Shipping Method : </b>" . $customShippingMethod . "</br></br>";