| <?php | |
| require_once('../../template.php'); | |
| require_once('ArticleReader.php'); | |
| require_once(Epsilon::getIncludeLocation().'/doc/publications/PublicationsManager.php'); | |
| $articleId = strip_tags($_GET['articleId']); | |
| $articleReader = new ArticleReader(); | |
| $article = $articleReader->readArticle($articleId); | |
| h($article->getTitle()); | |
| ?> | |
| <div class="row"> | |
| <!-- main part --> | |
| <div class="span8"> | |
| <div class="row"> | |
| <div class="span12"> | |
| <?if($article){?> | |
| <?=$article->getContent()?> | |
| <p> | |
| <div style="float:right"><i class="icon-print"></i> <a target="_blank" href="../print.php?articleId=<?=$articleId?>">Printer-friendly version</a></div> | |
| </p> | |
| <?} else {?> | |
| <div class="alert alert-block"> | |
| <h4 class="alert-heading">Warning</h4> | |
| Article <?=$articleId?> not found. Go back to the <a href="..">index of articles</a>. | |
| </div> | |
| <?}?> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- end main part --> | |
| </div> | |
| <?php | |
| f(array( | |
| '<script> | |
| prettyPrint(); | |
| </script>' | |
| )); | |
| ?> |