Esempio n. 1
0
<?php

// Calculate what the header will be.
$sess = Context::session();
if (!($agency = Finder::find_by_association('Agency', get_user(), 'agency_student'))) {
    $background = "background-image: url('" . AccessHelper::get_path() . "/public/images/event_manager.png');_background-image: none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . AccessHelper::get_path() . "/public/images/event_manager.png',sizingMethod='image');";
} else {
    $agency = $agency[0];
    $background = "background-repeat: no-repeat; background-image: url('" . Agency::get_theme_image($agency->attrib($agency->id_field), 'header_logo.png') . "');_background-image: none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . Agency::get_theme_image($agency->attrib($agency->id_field), 'header_logo.png') . "',sizingMethod='image');";
}
echo "<" . "?xml version=\"1.0\" encoding=\"utf-8\"?" . ">";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <title>Event Registration <?php 
echo ($t = get("page_title")) ? ": " . $t : "";
?>
</title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <link rel="stylesheet" type="text/css" href="<?php 
echo AccessHelper::get_path();
?>
/public/style/screen.css" media="screen" />
  <link rel="stylesheet" type="text/css" href="<?php 
echo AccessHelper::get_path();
?>
/public/style/print.css" media="print" />