Location: PHPKode > projects > Maian Support > maian_support/templates/knowledge-base.tpl.php
<div id="wrapper">

<?php
// The following javascript controls the changing of divs for the search help..
?>
<script type="text/javascript">
<!--
animatedcollapse.addDiv('rightBox','fade=50,speed=400,group=rightmenu');
animatedcollapse.addDiv('rightBox_search','fade=50,speed=400,hide=1,group=rightmenu');
animatedcollapse.init();
-->
</script>    

  <div id="boxes">
     
    <div id="leftBox">
      
    <h2><?php echo $this->MESSAGE[0]; ?></h2>
      
    <div class="ticketForm">
     <form method="get" action="index.php">
     
     <p>
     <label><?php echo $this->TEXT[0]; ?></label>
     <input class="box" type="text" name="q" value="<?php echo $this->KEYS; ?>" />
     </p>
     
     <p class="buttonWrapper">
      <span class="forgot"><a id="searchLink" href="#" onclick="javascript:animatedcollapse.toggle('rightBox_search');document.getElementById('searchLink').style.display='none';return false" title="<?php echo $this->TEXT[3]; ?>"><?php echo $this->TEXT[3]; ?></a></span>
      <input class="button" type="submit" value="<?php echo $this->TEXT[1]; ?> &raquo;" title="<?php echo $this->TEXT[1]; ?>" />
     </p>
     
     </form>
    </div>
      
    <br class="clear" />     
    </div>
     
    <div id="rightBox">
      
    <h2><?php echo $this->MESSAGE[1]; ?></h2>
      
    <div class="ticketForm">
     <form method="post" action="index.php">
     
     <p>
     <input type="hidden" name="create" value="1" /><input class="button" type="submit" value="<?php echo $this->TEXT[2]; ?> &raquo;" title="<?php echo $this->TEXT[2]; ?>" />
     </p>
     
     </form>
    </div>
    <br class="clear" />
    </div>    
    
    <?php
    // Search Div. Hidden until link is clicked..
    ?>
    <div id="rightBox_search" style="display:none">
      
    <h2><?php echo $this->MESSAGE[4]; ?></h2>
      
    <div class="ticketForm">
     
     <p>
      <?php echo $this->SEARCH_HELP; ?>
     </p>
     
     <p class="close">
       <a href="#" onclick="javascript:animatedcollapse.toggle('rightBox');document.getElementById('searchLink').style.display='block';return false" title="<?php echo $this->CLOSE_SEARCH_HELP; ?>"><?php echo $this->CLOSE_SEARCH_HELP; ?></a>
     </p>
     
    </div>
    
    <br class="clear" />
    </div>
  <br class="clear" />
  </div> 

  <div class="kbWrapper">

   <div id="categories">
  
    <h2><?php echo $this->MESSAGE[2]; ?></h2>
    
    <div class="kbaseWrapper">
    
      <ul class="cats">
      <?php
      // Build knowledge base categories..
      // templates/html/kbase-cat-link
      echo $this->CATEGORIES; 
      ?>
      </ul>
    
      <br class="clear" />
    </div>
  
   </div>
  
  </div> 
   
  <div class="kbWrapper">
   
    <div id="questions">
   
     <h2><?php echo $this->MESSAGE[3]; ?></h2>
     
     <div class="kbaseWrapper">
    
      <?php
      // If this is a question, show answer. Otherwise show lists..
      if ($this->IS_QUESTION=='yes') {
      ?>
      <p class="answer"><?php echo $this->ANSWER; ?></p>
      <p class="qfooter">
       <?php
       // Controls voting area..
       // templates/html/voting-links.htm
       // templates/html/voting-static.htm
       echo $this->VOTING;
       echo $this->DATE_ADDED; 
       ?>
       <span class="qfooterLinks">
       <a href="?a=<?php echo $_GET['a']; ?>" onclick="addBookmark('<?php echo $this->JS[0]; ?>',this.href);return false" title="<?php echo $this->TEXT[5]; ?>" class="bookmark"><?php echo $this->TEXT[5]; ?></a>
       <a href="javascript:window.print()" title="<?php echo $this->TEXT[6]; ?>" class="print"><?php echo $this->TEXT[6]; ?></a>
       </span>
      </p>
      <?php
      } else {
      ?>
      <ul class="ques">
      <?php
      // Links..
      // templates/html/kbase-article-link.htm
      echo $this->QUESTIONS; 
      ?>
      </ul>
      <?php
      }
      ?>
    
      <br class="clear" />
    </div>
   
   </div>
  
  </div>

</div> 

  
Return current item: Maian Support