1: <?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
2: <?php setlocale(LC_ALL, 'ru_RU.UTF8');?>
3: <FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"
4: xmlns:l="http://www.w3.org/1999/xlink">
5: <description>
6: <title-info>
7: <genre>nonfiction</genre>
8: <author><?php print $tournament->getEditor(); ?></author>
9: <book-title><?php print $tournament->getTitle();?></book-title>
10: <document-info>
11: <author><first-name/><last-name>Question Database</last-name></author>
12: <program-used>php, Drupal</program-used>
13: <date value='<?php print strftime("%Y-%m-%d", time());?>'><?php print strftime("%x", time());?></date>
14: </document-info>
15: </title-info>
16: </description>
17: <body>
18: <title><?php print $tournament->getTitle();?></title>
19: <?php if ($tournament->hasInfo()) :?><annotation>
20: <p>
21: <?php print $tournament->getInfo()."\n";?>
22: </p>
23: </annotation>
24: <?php endif;?>
25: <?php foreach ($tournament->getTours() as $t) :?>
26: <?php if(!$tournament->isSingleTour()) :?>
27: <section>
28: <title><p><?php print $t->getTitle(); ?></p></title>
29: <?php echo theme('chgk_db_tour_fb2', $t, FALSE); ?>
30: </section>
31: <?php else:?>
32: <?php echo theme('chgk_db_tour_fb2', $t, FALSE); ?>
33: <?php endif;?>
34:
35: <?php endforeach;?>
36: </body>
37: <binary>
38: <?php print_r($tournament->getImagesBinaries());?>
39: </binary>
40: </FictionBook>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>