<?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
<?php setlocale(LC_ALL, 'ru_RU.UTF8');?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"
xmlns:l="http://www.w3.org/1999/xlink">
<description>
<title-info>
<genre>nonfiction</genre>
<author><?php print $tournament->getEditor(); ?></author>
<book-title><?php print $tournament->getTitle();?></book-title>
<document-info>
<author><first-name/><last-name>Question Database</last-name></author>
<program-used>php, Drupal</program-used>
<date value='<?php print strftime("%Y-%m-%d", time());?>'><?php print strftime("%x", time());?></date>
</document-info>
</title-info>
</description>
<body>
<title><?php print $tournament->getTitle();?></title>
<?php if ($tournament->hasInfo()) :?><annotation>
<p>
<?php print $tournament->getInfo()."\n";?>
</p>
</annotation>
<?php endif;?>
<?php foreach ($tournament->getTours() as $t) :?>
<?php if(!$tournament->isSingleTour()) :?>
<section>
<title><p><?php print $t->getTitle(); ?></p></title>
<?php echo theme('chgk_db_tour_fb2', $t, FALSE); ?>
</section>
<?php else:?>
<?php echo theme('chgk_db_tour_fb2', $t, FALSE); ?>
<?php endif;?>
<?php endforeach;?>
</body>
<binary>
<?php print_r($tournament->getImagesBinaries());?>
</binary>
</FictionBook>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>