<!-- not logged in - main view -->
<ul class="nav">
    <?php if ($this->gGuestsCanSubmitTickets) { ?>
        <li class="<?php echo $this->getNextPublicTabStyle();?>"><a href="index.php?fuse=support&amp;view=SubmitTicketForm"><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_submit_ticket.png" alt="<?php echo $this->lang("Submit Ticket"); ?>" class="left" /><?php echo $this->lang("Submit Ticket"); ?></a></li>
    <?php } ?>
	<li class="<?php echo $this->getNextPublicTabStyle();?>"><a href="index.php?fuse=support&amp;view=SearchTicket"><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_search_ticket.png" alt="<?php echo $this->lang("Ticket Search"); ?>" class="left" /><?php echo $this->lang("Ticket Search"); ?></a></li>
	<li class="<?php echo $this->getNextPublicTabStyle();?>"><a href="index.php?fuse=knowledgebase&amp;view=KB_MainView"><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_kb.png" alt="<?php echo $this->lang("Knowledgebase"); ?>" class="left" /><?php echo $this->lang("Knowledgebase"); ?></a></li>
	<li class="<?php echo $this->getNextPublicTabStyle();?>"><a href="index.php?fuse=admin&amp;view=Announcements"><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_announcement.png" alt="<?php echo $this->lang("Announcements"); ?>" class="left" /><?php echo $this->lang("Announcements"); ?></a></li>
	<li class="<?php echo $this->getNextPublicTabStyle();?>"><a href="index.php?fuse=files&amp;view=FileList"><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_Files.png" alt="<?php echo $this->lang("Downloads"); ?>" class="left" /><?php echo $this->lang("Downloads"); ?></a></li>
	<li class="<?php echo $this->getNextPublicTabStyle();?>"><a href="order.php"><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_order.png" alt="<?php echo $this->lang("Order"); ?>" class="left" /><?php echo $this->lang("Order"); ?></a></li>
</ul>

<div class="clear"></div>

<!-- end navigation buttons -->

<div class="leftbox left">

    <div class="boxinner">
        <h2><?php echo $this->lang("Company Announcements"); ?> &nbsp;<a href="index.php?fuse=admin&amp;view=RssAnnouncements"><img src="images/rss.gif" class="rss_add" alt="rss" /></a></h2>
        <div class="content">     
            <?php $i = 0; foreach ($this->announcements as $announcement) { ?>
               <?php if ($i != 0) { ?><div class="hr"></div><?php } ++$i; //end if ?>
               <h3><a href="index.php?fuse=admin&amp;view=Announcements&amp;ann_id=<?php echo $announcement['annid']; ?>"><?php echo $announcement['title']; ?></a></h3>
               <p class="anndesc"><strong><?php echo $this->lang("Date"); ?>:</strong> <?php echo $announcement['date'];?> &nbsp;|&nbsp; <strong><?php echo $this->lang("Posted by"); ?>:</strong> <?php echo $announcement['postedBy'];?> &nbsp;|&nbsp; <a href="index.php?fuse=admin&amp;view=Announcements&amp;ann_id=<?php echo $announcement['annid']; ?>"><?php echo $this->lang("Read Full"); ?></a></p>
               <p><?php echo $announcement['excerpt']; ?></p>
               
            <?php } //end loop announcements ?>
            <?php if (count($this->announcements)==0) { ?>
               <?php echo $this->lang("No Announcements"); ?>
            <?php } //end if ?>
        </div>
        <div class="viewall"><a href="index.php?fuse=admin&amp;view=Announcements"><?php echo $this->lang("See all announcements");?> &raquo;</a></div>
    </div>
    
</div>

<!-- end announcements box on the left -->
<div class="rightbox right">
    <?php if (count($this->snapins) > 0) { ?>
    <div class="boxinner" style="margin-bottom:20px;">
        <h2><?php echo $this->lang("Extra Services"); ?></h2>
        <ul class="articlelist">
            <?php foreach ($this->snapins as $snapin) { ?>
            <li>
                <div style="">
                    <img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_article.png" alt="icon" class="icon" /><?php echo $snapin->getURL();?>
                </div>
            </li>
            <?php } // end popular articles ?>
        </ul>
    </div>
    <?php } //end if ?>

    <div class="boxinner">
        <h2><?php echo $this->lang("Popular Articles"); ?></h2>     
        <ul class="articlelist">
            <?php foreach ($this->popularArticles as $article) { ?>
            <li>
                <div class="<?php echo $article['articleTypeClass'];?>_article">
                    <img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_article.png" alt="icon" class="icon" /><a href="index.php?fuse=knowledgebase&amp;view=KB_viewArticle&amp;articleId=<?php echo $article['articleID'];?>"><?php echo $article['articleTitle']; ?></a>
                </div>
            </li>
            <?php } // end popular articles ?>
            <?php if (count($this->popularArticles)==0) { ?>
            <li><?php echo $this->lang("No Articles"); ?></li>
            <?php } //end if ?>
        </ul>
    </div>
    
<!-- end popular articles box on the right -->

    <div class="boxinner" style="margin-top:20px;">
        <h2><?php echo $this->lang("Recent Articles"); ?></h2>      
        <ul class="articlelist">
            <?php foreach ($this->latestArticles as $article) { ?>
            <li>
                <div class="<?php echo $article['articleTypeClass'];?>_article">
                    <img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_article.png" alt="icon" class="icon" /><a href="index.php?fuse=knowledgebase&amp;view=KB_viewArticle&amp;articleId=<?php echo $article['articleID'];?>"><?php echo $article['articleTitle']; ?></a>
                </div>
            </li>
            <?php } // end recent articles ?>
            <?php if (count($this->popularArticles)==0) { ?>
            <li><?php echo $this->lang("No Articles"); ?></li>
            <?php } //end if ?>
        </ul>
    </div>
    
</div>

<!-- end recent articles box on the right -->

<div class="clear"></div>