Location: PHPKode > projects > Maian Support > maian_support/templates/header.tpl.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=<?php echo $this->CHARSET; ?>" />
<title><?php echo $this->TITLE; ?></title>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/ajax.js"></script>
<script type="text/javascript" src="templates/js/javascript.js"></script>
<?php
// Only load the following javascript if the knowledge base is present..
// Prevent unecessary loading of script not used..
// Note that Dynamic Drive code MUST remain in place when editing template..
if (isset($_GET['p']) && $_GET['p']=='kbase') {
?>
<script type="text/javascript" src="templates/js/jquery.js"></script>
<script type="text/javascript" src="templates/js/animatedcollapse.js">
/***********************************************
* Animated Collapsible DIV v2.4- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<?php
}
?>
<link rel="SHORTCUT ICON" href="favicon.ico" />
</head>

<body>

<div id="header">
  <p>
    <?php
    // Only show this block if a user is logged in..
    if ($this->LOGGED_IN=='yes') {
    ?>
    <span class="dashboard">
    <?php echo $this->EMAIL; ?><br /><br />[ <a href="?p=portal" title="<?php echo $this->MY_TICKETS; ?>"><?php echo $this->MY_TICKETS; ?></a> ]&nbsp;&nbsp;&nbsp;[ <a href="#" onclick="toggleBox('searchBar');return false" title="<?php echo $this->SEARCH; ?>"><?php echo $this->SEARCH; ?></a> ]&nbsp;&nbsp;&nbsp;[ <a href="?p=logout" title="<?php echo $this->LOGOUT; ?>"><?php echo $this->LOGOUT; ?></a> ]
    </span>
    <?php
    }
    ?>
    <a href="index.php"><img src="templates/images/logo.gif" alt="<?php echo $this->TITLE; ?>" title="<?php echo $this->TITLE; ?>" /></a></p>
</div>

<?php
// The search bar is hidden until the 'Search Tickets' link is clicked..
// If you want the search box always visible, remove the style tag.. 
// Search is only available if logged into portal..
if ($this->LOGGED_IN=='yes') {
?>
<div id="searchBar" style="display:none">
 
 <form method="get" action="index.php">
  <p class="float">
   <input type="hidden" name="p" value="portal" />
   <input class="button" type="submit" value="<?php echo $this->TEXT[1]; ?>" title="<?php echo $this->TEXT[1]; ?>" />
   <input class="closebutton" type="button" value="X" title="X" onclick="toggleBox('searchBar')" />
  </p>
  <p>
   <?php echo $this->TEXT[0]; ?>: <input class="box" type="text" name="keys" value="" />
  </p>
 </form>

</div>
<?php
}
?>
Return current item: Maian Support