include
<?php
$mail_registros ="
[email protected]";
?>
register_thanksSucces.php
Código PHP:
<?php
//Store Google Spreadhsheet as an array -
# set your csv spreadsheet url here
//Get Email Text Table
$csv = "https://spreadsheets.google.com/pub?key=0AtuBbaBHTzIQdFZFbzdNVV9QNHUzT2tTajQ4Q0RZdXc&hl=en&output=csv";
# Open the File.
if (($handle = fopen($csv, "r")) !== FALSE) {
# Set the parent multidimensional array key to 0.
$nn = 0;
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
# Count the total keys in the row.
$c = count($data);
# Populate the multidimensional array.
for ($x=0;$x<$c;$x++)
{
if ($x == 0){ $email_text[$nn]["Site"] = $data[$x];}
else if ($x == 1){ $email_text[$nn]["Item"] = $data[$x];}
else if ($x == 2){ $email_text[$nn]["Value"] = $data[$x];}
}
$nn++;
}
# Close the File.
fclose($handle);
}
foreach ($email_text as $i => $value)
{
if ($email_text[$i]["Site"] == "Viña del Mar Pub Crawl" and $email_text[$i]["Item"] == "Registration Email")
{$custom_email_text = $email_text[$i]["Value"];}
if ($email_text[$i]["Site"] == "Viña del Mar Pub Crawl" and $email_text[$i]["Item"] == "Paypal Text")
{$custom_paypal_text = $email_text[$i]["Value"];}
if ($email_text[$i]["Site"] == "Viña del Mar Pub Crawl" and $email_text[$i]["Item"] == "Paypal Link")
{$custom_paypal_link = $email_text[$i]["Value"];}
}
?>
<link href="/calendar/css/register.css" rel="stylesheet" type="text/css" media="screen" />
<div id="content_top_div">
<div class="register_block">
<p class="title"><?php echo $custom_email_text ?></p>
<p class="subtitle">Event name: <?php echo $course->getName(); ?></p>
</div>
<div class="register_block last">
<p class="subtitle"><a href="<?php echo $custom_paypal_link; ?>"><?php echo $custom_paypal_text;?></a></p>
<p class="subtitle">Please meet at <?php echo $course->getLocation(); ?> on <?php echo $course->get_course_date_string(); ?> at <?php echo $course->get_course_time_string(); ?></p>
<p class="text">If you have <span class="white bold">any questions</span> please email us at <b>Mail to:</b> <a href="mailto:<?php echo $mail_registros?>"><?php echo $mail_registros?></a></p>
<p class="text bold team">The Pub Crawl Team</p>
</div>
</div>
el cinclude lo pongo en el index.php o en el frontend_dev.php