/**
* The required files
*/
require_once(HTML_MENU_PAGE_PATH.'/MenuVertical.php');
/**
* Generates a list of links, like in an Index
* <code>
* Usage:
* $rows = array( 'b'=>array('tab'=>'b',...),array('tab'=>'b',...));
* $datareader = DatareaderFactory::newDatareader($rows);
* $menu = new Index($datareader,$text,$width,$class,$border,
* $cellpadding,$cellspacing,$summary,$caption);
* print $menu->getHtml();
* Or
* Index:display($datareader,$text,$width,$class,$border,
* $cellpadding,$cellspacing,$summary,$caption);
* </code>
* @package tab
*/
class Index extends MenuVertical {
/**
* Constructor
* @param DataReader $datareader The Data Reader object
* @param String $text The text header for the table
* @param String $width The Width for the table
* @param String $class The Class
* @param String $border The Border
* @param String $cellpadding The CellSpacing
* @param String $cellspacing The CellPadding
* @param String $summary The Summary
* @param String $caption The Caption
*/
function Index($datareader='',$text='',$width='',$class='',$border='',$cellpadding='',$cellspacing='',$summary='',$caption='') {
$theText = $text !=''?$text :TAB_INDEX_TEXT;
$theWidth = $width!=''?$width:TAB_INDEX_VIEW_WIDTH;
$theClass = $class!=''?$class:TAB_INDEX_VIEW_CLASS;
$theBorder = TAB_INDEX_VIEW_BORDER;
$theCellpadding = TAB_INDEX_VIEW_CELLPADDING;
$theCellspacing = TAB_INDEX_VIEW_CELLSPACING;
$this->layout = LINK_LAYOUT_INDEX | LINK_LAYOUT_LI | LINK_LAYOUT_TRIANGLE;
$this->MenuVertical($datareader,$theText,$theWidth,$theClass,$theBorder,$theCellpadding,$theCellspacing,$summary,$caption);
}
/**
* Get the CSS class Name for this component
* @return String The CSS class name
*/
function getCssClass() {
return CSS_TAB_MENU;
}
/**
* Toogle the request parameters which will minimize or maximize this component
* @return array The array of key=>value pair
*/
function getMinimize() {
return $this->getToogle(REQUEST_TAB_SHOW, TAB_SHOW, TAB_SHOW_MENU_INDEX);
}
/**
* Returns the html for the Index
* @return String the complete html
*/
function getHtml() {
$html = $this->html;
if (defined('TAB_SHOW') && TAB_SHOW & TAB_SHOW_MENU_INDEX) {
if (CACHE_TAB && $this->getCacheFileName(CACHE_TAB_PATH)!='' && file_exists($this->getCacheFileName(CACHE_TAB_PATH))) {
$html .= $this->content($this->getCacheFileName(CACHE_TAB_PATH));
} else {
$html .= "<!-- Index -->\r\n";;
$html .= $this->getColumns();
if (CACHE_TAB) {
$this->save($html, CACHE_TAB_PATH);
}
}
} else {
$html .= $this->getMaximize();
}
return $html;
}
/**
* Display the html
* <code>
* Usage:
* Index::display($datareader,$text,$width,$class,$border,
* $cellpadding,$cellspacing,$summary,$caption);
* </code>
* @static
* @param DataReader $datareader The Data Reader object
* @param String $text The text header for the table
* @param String $width The Width for the table
* @param String $class The Class
* @param String $border The Border
* @param String $cellpadding The CellSpacing
* @param String $cellspacing The CellPadding
* @param String $summary The Summary
* @param String $caption The Caption
*/
function display($datareader='',$text='',$width='',$class='',$border='',$cellpadding='',$cellspacing='',$summary='',$caption='') {
$html = new Index($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
$html->addHtml();
}
}
?>
<!-- Kontakt os --> <li class="tabMenu"><a id="Link40" class="tabMenu" href="http://www.hvepseeksperten.dk/FormMail/?baseEMNE=" title="Kontakt os via email
">Kontakt os</a></li>
<!-- Kontakt os --> <li class="tabMenu"><a id="Link44" class="tabMenu" href="http://www.hvepseeksperten.dk/FormMail/?baseEMNE=" title="Kontakt os via email
">Kontakt os</a></li>