예제 #1
0
    printarticlelink($preview);
}
// More Articles Heading
if (count($news_others) > 0) {
    echo '	<h2>' . xml_escape($other_heading) . '</h2>' . "\n";
}
// Other News
foreach ($news_others as $other) {
    printarticlelink($other);
}
// Related Articles
if (count($main_article['related_articles']) > 0) {
    echo '	<h2>' . xml_escape($related_heading) . '</h2>' . "\n";
}
foreach ($main_article['related_articles'] as $related) {
    printarticlelink($related);
}
?>
</div>

<?php 
$this->feedback_article_heading = $main_article['heading'];
?>

<div id="MainColumn">
	<div class="BlueBox">
<?php 
if (!empty($editor_tools)) {
    ?>
		<div style="float:right;margin-bottom:0;">
			<input type="button" value="Edit Article" onclick="window.location='/office/article/<?php 
}
?>

	<div class="BlueBox">
		<h2>archive</h2>

		<?php 
echo $this->pagination->create_links();
?>
		<div>Viewing <?php 
echo ($total == 0 ? '0' : $offset + 1) . ' - ' . ($offset + 10 <= $total ? $offset + 10 : $total) . ' of ' . $total . ' articles';
?>
</div>
		<div style="border-bottom:1px #999 solid;clear:both"></div>

<?php 
foreach ($articles as $article) {
    printarticlelink($article);
}
?>

		<?php 
echo $this->pagination->create_links();
?>
		<div>Viewing <?php 
echo ($total == 0 ? '0' : $offset + 1) . ' - ' . ($offset + 10 <= $total ? $offset + 10 : $total) . ' of ' . $total . ' articles';
?>
</div>
		<div style="clear:both"></div>
	</div>
</div>