File:  [Local Repository] / db / prgsrc / drupal / modules / chgk_db / templates / chgk_db_fb2.xml
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Mar 21 18:06:04 2010 UTC (14 years, 3 months ago) by roma7
Branches: MAIN
CVS tags: HEAD
FB2 export

<?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>