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, 2 months ago) by roma7
Branches: MAIN
CVS tags: HEAD
fb2 fix

    1: <?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
    2: <!DOCTYPE body [
    3: <!ENTITY reg "®">
    4: <!ENTITY mdash "—">
    5: <!ENTITY nbsp " ">
    6: <!ENTITY ldquo "“">
    7: <!ENTITY rdquo "”">
    8: <!ENTITY pound "£">
    9: <!ENTITY trade "™">
   10: <!ENTITY euro "€">
   11: <!ENTITY yen "¥">
   12: <!ENTITY copy "©"> ]>
   13: 
   14: <?php setlocale(LC_ALL, 'ru_RU.UTF8');?>
   15: <FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"
   16:   xmlns:l="http://www.w3.org/1999/xlink">
   17:       <description>
   18:           <title-info>
   19:               <genre>nonfiction</genre>
   20:               <author>
   21:                   <first-name/>
   22:                    <last-name>База вопросов Интернет-клуба "Что? Где? Когда?"</last-name>
   23:               </author>
   24:               <book-title><?php print $tournament->getFullTitle();?></book-title>
   25:               <document-info>
   26:                   <author>
   27:                       <first-name/>
   28:                       <last-name>База вопросов Интернет-клуба "Что? Где? Когда?"</last-name>
   29:                    </author>
   30:                   <program-used>php, Drupal</program-used>
   31:                   <date value='<?php print strftime("%Y-%m-%d", time());?>'><?php print strftime("%x", time());?></date>
   32:               </document-info>
   33: 	      <lang>ru</lang>
   34:           </title-info>
   35:       </description>
   36:       <body>
   37:           <title><?php print $tournament->getTitle();?></title>
   38:               <?php if ($tournament->hasEditor()) {?>
   39: 		<p><?php print $tournament->getEditorHtml();?></p>
   40:               <?php }?>
   41: 	  
   42:               <?php if ($tournament->hasInfo()) :?><annotation>
   43:                   <p>
   44:                   <?php print $tournament->getInfo()."\n";?>
   45:                   </p>
   46:                </annotation>
   47:               <?php endif;?>
   48:               <?php print $tournament->getFb2MainPart();?>
   49: 
   50:       </body>
   51:       <binary>
   52: <?php print_r($tournament->getImagesBinaries());?>
   53:       </binary>
   54: </FictionBook>

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