File:  [Local Repository] / db / prgsrc / drupal / modules / chgk_db / templates / chgk_db_fb2.xml
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Apr 24 13:36:29 2010 UTC (14 years ago) by roma7
Branches: MAIN
CVS tags: HEAD
fb2 fix

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
<!DOCTYPE body [
<!ENTITY reg "®">
<!ENTITY mdash "—">
<!ENTITY nbsp " ">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY trade "™">
<!ENTITY euro "€">
<!ENTITY yen "¥">
<!ENTITY copy "©"> ]>

<?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>
                  <first-name/>
                   <last-name>База вопросов Интернет-клуба "Что? Где? Когда?"</last-name>
              </author>
              <book-title><?php print $tournament->getFullTitle();?></book-title>
              <document-info>
                  <author>
                      <first-name/>
                      <last-name>База вопросов Интернет-клуба "Что? Где? Когда?"</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>
	      <lang>ru</lang>
          </title-info>
      </description>
      <body>
          <title><?php print $tournament->getTitle();?></title>
              <?php if ($tournament->hasEditor()) {?>
		<p><?php print $tournament->getEditorHtml();?></p>
              <?php }?>
	  
              <?php if ($tournament->hasInfo()) :?><annotation>
                  <p>
                  <?php print $tournament->getInfo()."\n";?>
                  </p>
               </annotation>
              <?php endif;?>
              <?php print $tournament->getFb2MainPart();?>

      </body>
      <binary>
<?php print_r($tournament->getImagesBinaries());?>
      </binary>
</FictionBook>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>