Microsoft Office Tutorials and References
In Depth Information
Adding the New Design to Drupal
The use of <<<EOD and EOD ; is a technique known as heredoc and is a
specific "string literal"; in the instances following it is particularly useful
to avoid the need to omit the " and ' characters.
if ($print_mode)
{
$output .= <<<EOD
<html>
<head>
<style type="text/css" media="all">@import url('$css');</
style>
</head>
<body>
EOD;
}
Our new code specifies a DOCTYPE for the HTML and a page title.
if ($print_mode)
{
$output .= <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Invoice $txn->txnid</title>
<style type="text/css">
#invwrapper
{
margin: 0 auto;
width: 500px;
text-align: center;
}
#invheader img
{
align: left;
}
#invmain table
{
width: 500px;
}
.floatr
{
float:right;
}
.textr
 
Search JabSto ::




Custom Search