| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:01:47 2008 ] | [ N/X CMS 4.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?PHP 2 require_once "nxheader.inc.php"; 3 $cds->layout->addStyleSheet("css/styles.css"); 4 $cds->layout->htmlHeader(); 5 include "modules/siteheader.php"; 6 7 echo $cds->content->get("Headline"); 8 br(); 9 br(); 10 11 $articles = $cds->channel->get("Stage"); 12 $article = value("article", "NUMERIC", $articles[0]); 13 14 $position = 1; 15 16 for ($i=0; $i < count($articles); $i++) { 17 if ($article == $articles[$i]) { 18 $position = $i + 1; 19 } 20 } 21 22 if ($position == 0) { 23 $article = $articles[0]; 24 $position = 1; 25 } 26 27 echo '<div align="center">'; 28 if ($position > 1) { 29 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[0].'"><<</a>'; 30 echo ' '; 31 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[$position-2].'"><</a>'; 32 echo ' '; 33 } else { 34 echo '<<'; 35 echo ' '; 36 echo '<'; 37 echo ' '; 38 } 39 40 echo $position.'/'.count($articles); 41 42 if ($position < count($articles)) { 43 echo ' '; 44 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[$position].'">></a>'; 45 echo ' '; 46 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[count($articles)-1].'">>></a>'; 47 } else { 48 echo ' '; 49 echo '>'; 50 echo ' '; 51 echo '>>'; 52 } 53 echo '</div>'; 54 br();br(); 55 56 // Article 57 echo $cds->cluster->draw($article); 58 59 //code duplication. not the clean way. 60 br(); br(); 61 echo '<div align="center">'; 62 63 if ($position > 1) { 64 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[0].'"><<</a>'; 65 echo ' '; 66 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[$position-2].'"><</a>'; 67 echo ' '; 68 } else { 69 echo '<<'; 70 echo ' '; 71 echo '<'; 72 echo ' '; 73 } 74 75 echo $position.'/'.count($articles); 76 77 if ($position < count($articles)) { 78 echo ' '; 79 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[$position].'">></a>'; 80 echo ' '; 81 echo '<a href="'.$cds->getPageURL().'?v='.$cds->variation.'&page='.$cds->pageId.'&article='.$articles[count($articles)-1].'">>></a>'; 82 } else { 83 echo ' '; 84 echo '>'; 85 echo ' '; 86 echo '>>'; 87 } 88 89 echo '</div>'; 90 include "modules/sitefooter.php"; 91 require_once "nxfooter.inc.php"; 92 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |