define("ROOT_FOLDER_ID", 1016);
define("WEBPATH", "http://www.vater-gruppe.de");
define("INCLUDE_PHP_FOLDER", "system/include/php/");
define("countOfDisplayedComboBoxes",5);
define("ROOT_FOLDER_CORECLASSES_ID",1025);
define("ROOT_FOLDER_REPOSITORYCLASSES_ID",1026);
//define("ROOT_FOLDER_REPOSITORYCLASSES_ID",1398);
define("TABLE_PREFIX","vatergruppe");
define("TABLE_CATEGORIES",TABLE_PREFIX."tblCategorys");
define("TABLE_CONTENT",TABLE_PREFIX."tblContent");
define("TABLE_FILE",TABLE_PREFIX."tblFile");
define("TABLE_LINK",TABLE_PREFIX."tblLink");
define("TABLE_INDEX",TABLE_PREFIX."tblIndex");
define("TABLE_CATEGORY",TABLE_PREFIX."tblCategorys");
define ("ABSOLUTE_PATH","/webserver/customer/v/vagruppe/www.vater-gruppe.de/htdocs");
// ID's der Hauptmenüpunkte, die im Banner rechts unter den Bildern stehen sollen
$mainMenuRightItemIDArray = array(1048, 1049);
// 1048 = Kontakt
// 1049 = Suche
/*
* Including the core and repository classes
*/
$db2 = & new DB_WE();
/*
* Including the core classes
*/
$sqlSelectIncludes = " Select Path from ".TABLE_FILE." where ParentID = ".ROOT_FOLDER_CORECLASSES_ID;
$db2->query($sqlSelectIncludes);
while ($db2->next_record() == TRUE)
{
include_once ($_SERVER["DOCUMENT_ROOT"].$db2->Record["Path"]);
//echo "
Included1:".$_SERVER["DOCUMENT_ROOT"].$db2->Record["Path"];
}
/*
* Including the repository classes
*/
$sqlSelectIncludes = " Select Path from ".TABLE_FILE." where ParentID = ".ROOT_FOLDER_REPOSITORYCLASSES_ID;
$db2->query($sqlSelectIncludes);
while ($db2->next_record() == TRUE)
{
include_once ($_SERVER["DOCUMENT_ROOT"].$db2->Record["Path"]);
//echo "
Included2:".$_SERVER["DOCUMENT_ROOT"].$db2->Record["Path"];
}
?>
class HtmlHelperClass
{
function createHtmlFBComboBoxes($count, $alignment)
{
//$controlerFactory = new ControlerFactory();
//$controler = $controlerFactory->getInstance();
$controler = &ControlerFactory::getInstance();
//$options = "";
for ($i=0; $i < $count; $i++)
{
$options = $controler->getRegisteredClassesAsOptions($alignment);
$tempAlign = $alignment;
if (strtolower($alignment)=="right")
$tempAlign = "";
printElement( we_tag("select", array("name"=>"FB".$tempAlign.$i), $options ));
echo "
";
}
}
function showFBComboBoxes($count, $alignment)
{
//$controlerFactory = new ControlerFactory();
//$controler = &$controlerFactory->getInstance();
$controler = &ControlerFactory::getInstance();
//echo "
Anzuzeigende Funktionsblöcke
";
$tempAlign = $alignment;
if (strtolower($alignment)=="right")
$tempAlign = "";
for ($i=0; $ielements["FB".$tempAlign .$i]);
if ($GLOBALS["we_doc"]->elements["FB".$tempAlign .$i]!=null)
{
$element = $GLOBALS["we_doc"]->elements["FB".$tempAlign .$i];
if ($element["dat"]!="Leer")
{
//echo " ## ".$element["dat"]." ## ";
$class = $controler->getClassByName ($element["dat"]);
echo $class->run($alignment);
}
}
}
}
}
$htmlHelper = new HtmlHelperClass();
?>
| =$layout->getLogo();?> |
|
=$layout->getMainMenu($menuItems);?>
|
| A |
$menue->showSubMenu($menuItems); ?>
|
|
$htmlHelper->showFBComboBoxes(countOfDisplayedComboBoxes, FB_ALIGNEMENT_CENTER); ?>
Vater Unternehmensgruppe - News
$maxChars = 2;
$comeFromSearch = false;
foreach($HTTP_GET_VARS as $key => $value)
{
$pos = mb_strpos(strtolower($key),"we_from_search");
if ($pos===false)
{}
else
$comeFromSearch = true;
}
?>
if ($comeFromSearch && strlen($GLOBALS["HTTP_GET_VARS"]["we_lv_search_0"])>$maxChars)
{
?>
Zeige Eintrag 1 bis 5 von 352 gefundenen Einträgen |
|
weiter
}
else if (isset($GLOBALS["HTTP_GET_VARS"]["we_lv_search_0"]))
{
?>
Ihr Suchbegriff muss bitte aus mehr als echo $maxChars; ?> Zeichen bestehen!
}
?>
|
|
=$htmlHelper->showFBComboBoxes(countOfDisplayedComboBoxes, FB_ALIGNEMENT_RIGHT);?>
if ($hasRelatedPages > 0)
{
?>
}
?>
if ($hasRelatedPages > 0)
{
?>
}
?>
|
|