Probleme mit dem Anpassen der Fehlerüberprüfung des Kontaktf

Everything related to patches, fixing bugs and contributions in general.
Webi-iTec
Junior Member
Beiträge: 3
Registriert: Fr 29. Jul 2011, 10:35

Probleme mit dem Anpassen der Fehlerüberprüfung des Kontaktf

Beitragvon Webi-iTec » Fr 29. Jul 2011, 10:49

Ich habe auf einer Kundenwebsite (Webedition 5) ein ganz normales Kontaktformular mit input’s und textareas. Jetzt möchte der Kunde gerne zwei input’s nicht mehr als Pflichtfelder haben.

Das Formular ist direkt in einem Webedition Template eingebettet und wird anscheinend doppelt überprüft vor dem versenden. Die erste Prüfung findet ebenfalls direkt in dem Template statt. Die einzelnen Input’s werden auf ihre value überprüft und wenn nicht ausgefüllt, wird ein JS alert ausgelöst. Diese Stuffe der Überprüfung ist problemlos anzupassen.
Jedoch kann ich dann wenn ich alle Pflichtfelder ausgefüllt habe das Formular immer noch nicht versenden. Es wird von einer zweiten Fehlerprüfung abgefangen und auf eine error page weitergeleitet, wo man nochmals aufgefordert wird, alle Felder korrekt auszufüllen.

Leider kann ich dem Code nicht die Logik entnehmen, wo ich diese zweite Fehlerüberprüfung abfangen und anpassen kann.
Ich hoffe sehr, ihr könnt mir weiter helfen! Ich bedanke mich schon im Voraus. im Anhang findet ihr den betroffenen Code.

LG Webi-iTec

ThomasGoebe

Re: Probleme mit dem Anpassen der Fehlerüberprüfung des Kont

Beitragvon ThomasGoebe » So 31. Jul 2011, 17:47

Hallo Webi-iTec,

schau Dir mal das Template an.

Dort wird etwas wie

Code: Alles auswählen

<we:checkform type="name" match="FormularName" />
<we:form name="FormularName" type="formmail"></we:form>
stehen.

we:checkform sorgt dabei für die JS-Fehlerprüfung.
Beide, we:checkform und we:form kennen den Parameter required. Darin werden die Felder definiert, die Pflichtfelder sind. Wenn Du die Namen der beiden Inputs da raus nimmst, sind sie keine Pflichtfelder mehr.


Gruß
Thomas

Webi-iTec
Junior Member
Beiträge: 3
Registriert: Fr 29. Jul 2011, 10:35

Re: Probleme mit dem Anpassen der Fehlerüberprüfung des Kont

Beitragvon Webi-iTec » Do 4. Aug 2011, 09:57

Vielen Dank für den Tip aber die beiden Hooks kommen in dem Code nicht vor. :(

Code: Alles auswählen

<?php $GLOBALS["WE_HTML_HEAD_BODY"] = true; ?><?php
	// Activate the webEdition error handler
	include_once($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/we_classes/base/we_error_handler.inc.php");
	we_error_handler(false);

	include_once($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/"."we_global.inc.php");
	include_once($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/"."we_tag.inc.php");
	$GLOBALS["DB_WE"] = new DB_WE;
	if($GLOBALS["we_doc"]){
		$GLOBALS["WE_DOC_ID"] = $GLOBALS["we_doc"]->ID;
		if(!isset($GLOBALS["WE_MAIN_ID"])) $GLOBALS["WE_MAIN_ID"] = $GLOBALS["we_doc"]->ID;
		if(!isset($GLOBALS["WE_MAIN_DOC"])) $GLOBALS["WE_MAIN_DOC"] = clone($GLOBALS["we_doc"]);
		if(!isset($GLOBALS["WE_MAIN_DOC_REF"])) $GLOBALS["WE_MAIN_DOC_REF"] = &$GLOBALS["we_doc"];
		if(!isset($GLOBALS["WE_MAIN_EDITMODE"])) $GLOBALS["WE_MAIN_EDITMODE"] = isset($GLOBALS["we_editmode"]) ? $GLOBALS["we_editmode"] : "";
		$GLOBALS["WE_DOC_ParentID"] = $GLOBALS["we_doc"]->ParentID;
		$GLOBALS["WE_DOC_Path"] = $GLOBALS["we_doc"]->Path;
		$GLOBALS["WE_DOC_IsDynamic"] = $GLOBALS["we_doc"]->IsDynamic;
		$GLOBALS["WE_DOC_FILENAME"] = $GLOBALS["we_doc"]->Filename;
		$GLOBALS["WE_DOC_Category"] = isset($GLOBALS["we_doc"]->Category) ? $GLOBALS["we_doc"]->Category : "";
		$GLOBALS["WE_DOC_EXTENSION"] = $GLOBALS["we_doc"]->Extension;
		$GLOBALS["TITLE"] = $GLOBALS["we_doc"]->getElement("Title");
		$GLOBALS["KEYWORDS"] = $GLOBALS["we_doc"]->getElement("Keywords");
		$GLOBALS["DESCRIPTION"] = $GLOBALS["we_doc"]->getElement("Description");
		$GLOBALS["CHARSET"] = $GLOBALS["we_doc"]->getElement("Charset");
		$__tmp = explode("_",$GLOBALS["we_doc"]->Language);
		$__lang = strtolower($__tmp[0]);
		if ($__lang) {
			$__parts = split("_", $GLOBALS["WE_LANGUAGE"]);
			$__last = array_pop($__parts);
			// Charset of page is not UTF-8 but languge files of page are UTF-8
			// Then change language files to non UTF-8 pedant if available
			if (count($__parts) && $__last === "UTF-8" && $GLOBALS["CHARSET"] !== "UTF-8") {
				$__lang = $__parts[0];
				if (file_exists($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/we_language/".$__lang)) {
					$GLOBALS["WE_LANGUAGE"] = $__lang;
					include($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/we_language/".$GLOBALS["WE_LANGUAGE"]."/date.inc.php");
				}


			// Charset of page is  UTF-8 but languge files of page are not UTF-8
			// Then change language files to UTF-8 pedant if available
			} else if ($__last !== "UTF-8" && $GLOBALS["CHARSET"] === "UTF-8") {
				$__lang = $GLOBALS["WE_LANGUAGE"] . "_UTF-8";
				if (file_exists($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/we_language/".$__lang)) {
					$GLOBALS["WE_LANGUAGE"] = $__lang;
					include($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/we_language/".$GLOBALS["WE_LANGUAGE"]."/date.inc.php");
				}
			}
		}
	}
	?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<?php  // set charset ?> 
<?php printElement( we_tag("charset", array("defined"=>"ISO-8859-15,UTF-8"), "ISO-8859-15")); ?>
<?php if(we_tag("ifNotEditmode", array())): ?>
	<?php printElement( we_tag("setVar", array("to"=>"global","nameto"=>"MyTitle","from"=>"top","namefrom"=>"Title"), "")); ?>
	<title><?php echo $GLOBALS['MyTitle']; ?></title><?php if(isset($GLOBALS["we_baseHref"]) && $GLOBALS["we_baseHref"]): ?><base href="<?php print $GLOBALS["we_baseHref"] ?>" /><?php endif ?>
<?php else: ?>
	<?php printElement( we_tag("title", array(), "Seitentitel")); ?>
<?php endif ?>
<?php printElement( we_tag("description", array(), "")); ?>
<?php printElement( we_tag("keywords", array(), "")); ?>
<meta name="author" content="">
<meta name="publisher" content="">
<meta name="webdesign" content="">
<meta name="development" content="">
<meta name="webpublishing" content="">
<meta name="copyright" content="">
<meta name="robots" content="all">
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="5 days">
<meta name="audience" content="All"/>
<meta name="copyright" content=""/>
<meta name="Robots" content="index,follow"/>
<meta name="Language" content="Deutsch"/>
<meta name="revisit-after" content="1 Day"/>
<meta name="Content-Language" content="de"/>

<?php if(we_tag("ifNotEditmode", array())): ?>
<script type="text/javascript" src="/swfobject.js"></script>
<?php printElement( we_tag("css", array("id"=>"1096"), "")); ?>
<!--[if lt IE 7]>
<link href="/css/patches/patch_3col_fixed_seo.css" rel="stylesheet" type="text/css" />
<link href="/css/patches/patch_.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if gte IE 7]>
<link rel="stylesheet" type="text/css" href="/css/patches/patch__IE7.css" />
<![endif]-->
<?php else: ?>
<?php printElement( we_tag("css", array("id"=>"1107"), "")); ?>
<?php printElement( we_tag("css", array("id"=>"1105"), "")); ?>
<?php printElement( we_tag("css", array("id"=>"1143"), "")); ?>
<?php printElement( we_tag("css", array("id"=>"1141"), "")); ?>
<?php endif ?>
<?php if(we_tag("ifEditmode", array())): ?>
<style>
.skip {display:none;}
#col1_content{margin-left:50px;}
#col1_content td {padding: 0;}
.col2Menu {margin-left:-45px;}
input {width: auto; height: auto;}
</style>
<?php endif ?>

<?php  //Here comes meta-information for chapter etc.  ?> 
  <?php printElement( we_tag("setVar", array("to"=>"global","nameto"=>"showMeta","value"=>"1"), "")); ?>
  <?php  //Include Navigation  ?> 
	<?php printElement( we_tag("navigation", array("parentid"=>"40","navigationname"=>"mainNavigation"), "")); ?>
	 <?php if(we_tag("ifVarEmpty", array("match"=>"showMeta","type"=>"global"))): ?> 
 
 
  <?php  //Punkte Ebene 1 NICHT anzeigen  ?> 
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","level"=>"1"), "")); ?>    
  <?php  //Aktuelle Hauptebene ausgeben  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"1"), "<li id=\"title\"><we_:_navigationField name=\"text\" /></li><?php print \"\n\"; ?>	 <we_:_ifHasEntries><we_:_navigationEntries /></we_:_ifHasEntries>")); ?>  
  
  
  <?php  //Level 2 allgemein  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"false","level"=>"2"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>   
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false","level"=>"2"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>     
  <?php  //Level 2 aktiv  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"2"), "<li id=\"active\"><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	 <we_:_ifHasEntries><ul id=\"submenu_level2\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	 </li>")); ?>  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true","level"=>"2"), "<li id=\"active\"><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	 <we_:_ifHasEntries><ul id=\"submenu_level2\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	 </li>")); ?>   
  
  
  <?php  //Level 3 allgemein  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false","level"=>"3"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"false","level"=>"3"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>        
  <?php  //Level 3 aktiv  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true","level"=>"3"), "<li id=\"active\"><a style=\"color:#333366; font-weight:bold; background:transparent; padding:0;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	  <we_:_ifHasEntries><ul id=\"submenu_level3\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	  </li>")); ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"3"), "<li id=\"active\"><a style=\"color:#333366; font-weight:bold; background:transparent; padding:0;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	  <we_:_ifHasEntries><ul id=\"submenu_level3\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	  </li>")); ?>
  
  
    <?php  //Level 4 allgemein  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false","level"=>"4"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"false","level"=>"4"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>        
  <?php  //Level 4 aktiv  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true","level"=>"4"), "<li id=\"active\"><a style=\"color:#000;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"4"), "<li id=\"active\"><a style=\"color:#000;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>
  
    
  <?php  //Aktiver Menupunkt  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true"), "<li id=\"active\"><we_:_navigationField name=\"text\" /></li><?php print \"\n\"; ?>")); ?>
   <?php  //Inaktiver Menupunkt  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?> 
   
  <?php  //Menu schreiben  ?>
    <ul id="submenu">
      <?php printElement( we_tag("navigationWrite", array("navigationname"=>"mainNavigation"), "")); ?>
    </ul>



<?php else: ?>
  
	<?php  //Ausgabe im Header  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder"), "<link rel=\"chapter\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>")); ?>

  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true"), "<link rel=\"chapter\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>      <link rel=\"up\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>      <we_:_ifHasEntries><we_:_navigationEntries /></we_:_ifHasEntries>")); ?>
  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item"), "<link rel=\"section\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>")); ?>
  
  <link rel="start" href="<?php printElement( we_tag("url", array("id"=>"260"), "")); ?>" title="Top" />
  <link rel="copyright" href="<?php printElement( we_tag("url", array("id"=>"296"), "")); ?>" title="Impressum" />
  
  <?php printElement( we_tag("navigationWrite", array("navigationname"=>"mainNavigation"), "")); ?>

<?php endif ?>

  <?php printElement( we_tag("setVar", array("to"=>"global","nameto"=>"showMeta","value"=>""), "")); ?>



<?php if(isset($GLOBALS["we_editmode"]) && $GLOBALS["we_editmode"] ): ?>
<?php print STYLESHEET_BUTTONS_ONLY . SCRIPT_BUTTONS_ONLY; ?>
<script language="JavaScript" type="text/javascript" src="<?php print JS_DIR; ?>windows.js"></script>
<?php include_once($_SERVER["DOCUMENT_ROOT"]."/webEdition/we/include/we_editors/we_editor_script.inc.php"); ?>
<?php endif ?></head>

<body<?php if(isset($GLOBALS["we_editmode"]) && $GLOBALS["we_editmode"]) print ' onUnload="doUnload()"'; ?>><?php if (isset($GLOBALS["we_editmode"]) && $GLOBALS["we_editmode"]) : ?>
<form name="we_form" method="post" onsubmit="return false;"><?php $GLOBALS["we_doc"]->pHiddenTrans() ?>
<?php endif ?>
<div id="page_margins">
	<div id="page">
		<div id="topnav">
			<!-- start: skip link navigation -->
				<a class="skip" href="#navigation" title="skip link">Skip to the navigation</a><span class="hideme">.</span>
				<a class="skip" href="#content" title="skip link">Skip to the content</a><span class="hideme">.</span>
				<!-- end: skip link navigation -->
		</div>

		<div id="header">
			<div id="_logo"><a href="#"><img src="/images/_Logo.gif" alt="" border="0"  /></a></div>	
            <div id="ahv_logo"><img src="/images/AHV_Logo.gif" /></div>		
			<!-- <div class="topMenu">
					<a href="#">Home</a>
					<span class="text2"> &#124; </span><a href="#">Impressum</a>
					<span class="text2"> &#124; </span><a href="#">Kontakt</a>					
			</div> -->			
		</div>
		<!-- begin: main navigation #nav -->
		<div id="nav"> <a id="navigation" name="navigation"></a>
			<!-- skiplink anchor: navigation -->
			<div id="nav_main">
						<?php  // Start of Navigation ul/li ?> 
						<?php  // Navigationstemplate einbinden und Initialisieren	?> 	
						<?php printElement( we_tag("navigation", array("parentid"=>"40","navigationname"=>"topNavigation"), "")); ?>
						 
  <?php  //Punkte Ebene 1 NICHT anzeigen  ?> 
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"topNavigation","type"=>"folder","level"=>"1"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>    
  <?php  //Aktuelle Hauptebene ausgeben  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"topNavigation","type"=>"folder","current"=>"true","level"=>"1"), "<li id=\"current\"><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>  
  
 
    
  <?php  //Aktiver Menupunkt  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"topNavigation","type"=>"item","current"=>"true"), "<li id=\"current\"><we_:_navigationField name=\"text\" /></li><?php print \"\n\"; ?>")); ?>
   <?php  //Inaktiver Menupunkt  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"topNavigation","type"=>"item","current"=>"false"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?> 
   
  <?php  //Menu schreiben  ?>
    <ul>
      <?php printElement( we_tag("navigationWrite", array("navigationname"=>"topNavigation"), "")); ?>
    </ul>


	
			
			</div>
		
		</div>
		<!-- end: main navigation -->
		
      <div id="banner">
			<!-- box1 -->
			<?php  //Infobox auswaehlen  ?><?php if(we_tag("ifEditmode", array())): ?><br /><b>Infobox oben (Standard austauschen)</b><br /><?php endif ?>
			<?php if(we_tag("ifNotEmpty", array("match"=>"infoboxbanner"))): ?>
				<?php printElement( we_tag("href", array("name"=>"infoboxbanner","reload"=>"true","type"=>"int","size"=>"15","include"=>"true"), "")); ?>
			<?php else: ?>
				<?php
				if( ("1231" && ($GLOBALS["we_doc"]->ContentType != "text/webedition" || $GLOBALS["WE_MAIN_DOC"]->ID != "1231")) || "" != "" || "$path" != "" ){
					if (!isset($we_backVars) || !is_array($we_backVars)) {
						$we_backVars = array();
					}

					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_doc"] = clone($GLOBALS["we_doc"]);
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_IS_DYN"] = isset($GLOBALS["WE_IS_DYN"]) ? 1 : 0;
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_ID"] = $GLOBALS["WE_DOC_ID"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_ParentID"] = $GLOBALS["WE_DOC_ParentID"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_Path"] = $GLOBALS["WE_DOC_Path"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_IsDynamic"] = $GLOBALS["WE_DOC_IsDynamic"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_FILENAME"] = $GLOBALS["WE_DOC_FILENAME"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_Category"] = $GLOBALS["WE_DOC_Category"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_EXTENSION"] = $GLOBALS["WE_DOC_EXTENSION"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["TITLE"] = $GLOBALS["TITLE"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["KEYWORDS"] = $GLOBALS["KEYWORDS"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["DESCRIPTION"] = $GLOBALS["DESCRIPTION"];
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_cmd"] = isset($_REQUEST["we_cmd"]) ? $_REQUEST["we_cmd"] : "";
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["FROM_WE_SHOW_DOC"] = isset($GLOBALS["FROM_WE_SHOW_DOC"]) ? $GLOBALS["FROM_WE_SHOW_DOC"] : "";
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_transaction"] = isset($GLOBALS["we_transaction"]) ? $GLOBALS["we_transaction"] : "";
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_editmode"] = isset($GLOBALS["we_editmode"]) ? $GLOBALS["we_editmode"] : null;
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_ContentType"] = isset($GLOBALS["we_ContentType"]) ? $GLOBALS["we_ContentType"] : "text/webedition";
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["pv_id"] = isset($_REQUEST["pv_id"]) ? $_REQUEST["pv_id"] : "";
					$GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["pv_tid"] = isset($_REQUEST["pv_tid"]) ? $_REQUEST["pv_tid"] : "";
					if(isset($GLOBALS["WE_IS_DYN"])){
						unset($GLOBALS["WE_IS_DYN"]);
					}
					unset($_REQUEST["pv_id"]);
					unset($_REQUEST["pv_tid"]);

					if(""){
						$foo = "";
					}else if("1231"){
						$GLOBALS["DB_WE"]->query("SELECT Path,IsDynamic FROM ".FILE_TABLE." WHERE ID=1231");
						$GLOBALS["DB_WE"]->next_record();
						$foo = $GLOBALS["DB_WE"]->f("Path");
					}elseif(""){
						$foo = $path;
					}else{
						$foo = "";
					}
					if ($foo) {
						if ("") {
							$foo = getHTTP(SERVER_NAME, $foo, "", defined("HTTP_USERNAME") ? HTTP_USERNAME : "", defined("HTTP_PASSWORD") ? HTTP_PASSWORD : "");
						} else {
							$foo = $_SERVER["DOCUMENT_ROOT"] . $foo;
							if (file_exists($foo) && filesize($foo) > 0) {
								$fp = fopen($foo, "rb");
								$foo = fread($fp, filesize($foo));
								fclose($fp);
							} else {
								$foo = "";
							}
						}
						if (isset($_SESSION["we_mode"]) && ($_SESSION["we_mode"] == "seem") && isset($GLOBALS["we_doc"]->InWebEdition) && $GLOBALS["we_doc"]->InWebEdition) {
                        
                            $foo .= <<< ENDOF_OF_FILE
<a href="1231" seem="include"></a>
ENDOF_OF_FILE;

                            if (eregi('< ?form', $foo)) {
								$foo = eregi_replace('< ?form[^>]*>','', $foo);
								$foo = eregi_replace('< ?/ ?form[^>]*>','', $foo);
							}
						}
						eval("?>".$foo);
					}

					$GLOBALS["we_doc"] = clone($GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_doc"]);
					$GLOBALS["WE_DOC_ID"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_ID"];
					$GLOBALS["WE_DOC_ParentID"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_ParentID"];
					$GLOBALS["WE_DOC_Path"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_Path"];
					$GLOBALS["WE_DOC_IsDynamic"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_IsDynamic"];
					$GLOBALS["WE_DOC_FILENAME"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_FILENAME"];
					$GLOBALS["WE_DOC_Category"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_Category"];
					$GLOBALS["WE_DOC_EXTENSION"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_DOC_EXTENSION"];
					$GLOBALS["TITLE"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["TITLE"];
					$GLOBALS["KEYWORDS"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["KEYWORDS"];
					$GLOBALS["DESCRIPTION"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["DESCRIPTION"];
					$_REQUEST["we_cmd"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_cmd"];
					$GLOBALS["we_cmd"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_cmd"];
					$GLOBALS["FROM_WE_SHOW_DOC"]= $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["FROM_WE_SHOW_DOC"];
					$GLOBALS["we_transaction"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_transaction"];
					$GLOBALS["we_editmode"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_editmode"];
					$GLOBALS["we_ContentType"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["we_ContentType"];
					$_REQUEST["pv_id"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["pv_id"];
					$_REQUEST["pv_tid"] = $GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["pv_tid"];

					if(isset($GLOBALS["WE_IS_DYN"])){
						unset($GLOBALS["WE_IS_DYN"]);
					}
					if($GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]["WE_IS_DYN"]){
						$GLOBALS["WE_IS_DYN"] = 1;
					}
					unset($GLOBALS["we_backVars"]["59de673d1b293d2537a8b7a28f5b6283"]);
				}
			?>
			<?php endif ?>
	  </div>
	  	  
    
		<!-- begin: main content area #main -->
		<div id="main">
			<!-- begin: #col1 - first float column -->
			<div id="col1">
				<div id="col1_content" class="clearfix">
					<a id="content" name="content"></a><!-- skiplink anchor: Content -->
					<?php if(we_tag("ifEditmode", array())): ?><br><strong>Hauptüberschrift:</strong><br><?php endif ?>	
<?php if(we_tag("ifNotEmpty", array("match"=>"headline"))): ?>
	<h1><?php printElement( we_tag("input", array("name"=>"headline","type"=>"text","size"=>"35","values"=>"","php"=>"false"), "")); ?></h1>
<?php endif ?>
<?php  // Contentteile ?> 
<?php if(we_tag("ifEditmode", array())): ?>
 <br /><b>Seiteninhalte hier erfassen:</b>
<?php endif ?>
<?php printElement( we_tag("textarea", array("wysiwyg"=>"true","name"=>"text","width"=>"150","height"=>"200","xml"=>"true","removefirstparagraph"=>"false","buttonpos"=>"bottom","bgcolor"=>"#ffffff","xml"=>"true","importrtf"=>"false"), "")); ?>
<?php if(we_tag("ifEditmode", array())): ?>
 <br /><b>(Kontaktformular wird angezeigt.)</b>
<?php endif ?>
<!-- Kontaktformular -->
              <!-- we : ifEditmode>
                <br/>
				<b>Anrede und Grusstext im Bestaetigungs-Mail</b><br/>
				Anrede, Mailtext vor den übermittelten Feldern (wird auf der Website nicht angezeigt):<br>
                < we : textarea name="MailtextVorFeldern" width="500" height="100"/><br><br>
                <br/>Gruss, Signatur, Mailtext (wird auf der Website nicht angezeigt):<br>
                < we :textarea name="MailtextNachFeldern" width="500" height="100"/>
              < /we : ifEditmode> -->
              <?php if(we_tag("ifNotEditmode", array())): ?>
                <?php
                  /*
                    Die E-Mail-Adresse, die im folgenden we:form als Wert des
                    Attributs recipient eingetragen ist, muss auch hier
                    eingetragen werden:
                    (webEdition-Menü) Bearbeiten -> Formmail-Empfänger
                    Dies ist ein Schutzmechanismus, damit das interne 
                    FORMMAIL-Script von webEdition nicht durch unbefugte
                    verwendet werden kann.
                  */
                ?>
<script language="JavaScript" type="text/javascript">

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function CheckShopForm()
{
with(document.FormKundendaten) 
{
	
		if(elements["Vorname"].value.length==0)
		{
		alert("\nBitte geben Sie Ihren Vornamen an.");
		document.FormKundendaten.elements["Vorname"].focus()
		return;
		}
		
		if(elements["Nachname"].value.length==0)
		{
		alert("\nBitte geben Sie Ihren Nachnamen an.");
		document.FormKundendaten.elements["Nachname"].focus()
		return;
		}		
		
		if(elements["Strasse"].value.length==0)
		{
		alert("\nBitte geben Sie die Strasse/Anschrift an.");
		document.FormKundendaten.elements["Strasse"].focus()
		return;
		}		
		
		if(elements["PLZ"].value.length==0)
		{
		alert("\nBitte geben Sie Ihre Postleitzahl an.");
		document.FormKundendaten.elements["PLZ"].focus()
		return;
		}			
		
		if(elements["Ort"].value.length==0)
		{
		alert("\nBitte geben Sie den Ort Ihrer Adresse an.");
		document.FormKundendaten.elements["Ort"].focus()
		return;
		}		
		
		if(elements["Land"].value.length==0)
		{
		alert("\nBitte geben Sie das Land an.");
		document.FormKundendaten.elements["Land"].focus()
		return;
		}					
		
		if(elements["Telefon"].value.length==0)
		{
		alert("\nBitte geben Sie Ihre Telefonnummer an.");
		document.FormKundendaten.elements["Telefon"].focus()
		return;
		}		
		
		
		if(elements["Email"].value.length==0)
		{
		alert("\nBitte geben Sie Ihre E-Mail Adresse an.");
		document.FormKundendaten.elements["Email"].focus()
		return;
		}		
		
		if(elements["AHV_Nummer"].value.length==0)
		{
		alert("\nBitte geben Sie Ihre AHV-Nummer an.");
		document.FormKundendaten.elements["AHV_Nummer"].focus()
		return;
		}	


		if(elements["Geburtsdatum"].value == 'TT.MM.JJJJ')
		{
		alert("\nBitte geben Sie Ihr Geburtsdatum an.");
		document.FormKundendaten.elements["Geburtsdatum"].focus()
		return;
		}

		
		if(elements["Geburtsdatum"].value.length==0)
		{
		alert("\nBitte geben Sie Ihr Geburtsdatum an.");
		document.FormKundendaten.elements["Geburtsdatum"].focus()
		return;
		}					
		
		
else if(elements["Vorname"].value.length!=0 && elements["Nachname"].value.length!=0 && elements["Email"].value.length!=0 && elements["Strasse"].value.length!=0 && elements["PLZ"].value.length!=0 && elements["Ort"].value.length!=0 && elements["Land"].value.length!=0  && elements["Telefon"].value.length!=0  && elements["AHV_Nummer"].value.length!=0  && elements["Geburtsdatum"].value.length!=0)
{
MM_findObj('FormKundendaten').submit();
}
}
}
</script>
				
				<br/><!-- info@.ch | confirmmail="true" preconfirm="MailtextVorFeldern" postconfirm="MailtextNachFeldern" -->
                <?php if(!isset($GLOBALS["we_editmode"]) || !$GLOBALS["we_editmode"]): ?>
				            <form method="post" name="FormKundendaten" onsubmit=";if(self.weWysiwygSetHiddenText){weWysiwygSetHiddenText();};return true;" action="<?php print isset($GLOBALS["we_form_action"]) && $GLOBALS["we_form_action"] ? $GLOBALS["we_form_action"] : (WEBEDITION_DIR."we_formmail.php"); ?>">
				            <?php
				            	$_recipientString = "info@.ch";
				            	$_recipientArray = explode(",", $_recipientString);
				            	foreach ($_recipientArray as $_key=>$_val) {
				            		$_recipientArray[$_key] = "\"" . trim($_val) . "\"";
				            	}
				            	$_recipientString = implode(",", $_recipientArray);
				           		
				            	$_ids = array();
				            	$GLOBALS["DB_WE"]->query("SELECT * FROM " . RECIPIENTS_TABLE . " WHERE Email IN(" . $_recipientString . ")");
				            	while ($GLOBALS["DB_WE"]->next_record()) {
				            		$_ids[] = $GLOBALS["DB_WE"]->f("ID");
				            	}
				            	
				            	$_recipientIdString = "";
				            	if (count($_ids)) {
				            		$_recipientIdString = implode(",", $_ids);
				            	}
				            
				            ?>
				            <div class="weHide" style="display: none;">
                                <input type="hidden" name="order" value="<?php print "Firma,Abteilung,Anrede,Vorname,Nachname,Strasse,Nr,PLZ,Ort,Land,Telefon,Fax,Email,AHV_Nummer,Geburtsdatum,Abrechnungsnummer,GefundenUeber,Mitteilung"; ?>" />
                                <input type="hidden" name="required" value="<?php print "Anrede,Vorname,Nachname,Strasse,Nr,PLZ,Ort,Email,AHV_Nummer,Geburtsdatum,Mitteilung"; ?>" />
                                <input type="hidden" name="subject" value="<?php print "Kontakt über Website .ch"; ?>" />
                                <input type="hidden" name="recipient" value="<?php print $_recipientIdString; ?>" />
                                <input type="hidden" name="mimetype" value="<?php print ""; ?>" />
                                <input type="hidden" name="from" value="<?php print "info@.ch"; ?>" />
                                <input type="hidden" name="error_page" value="<?php print f("SELECT Path FROM ".FILE_TABLE." WHERE ID=323","Path",$GLOBALS["DB_WE"]); ?>" />
                                <input type="hidden" name="mail_error_page" value="<?php print f("SELECT Path FROM ".FILE_TABLE." WHERE ID=323","Path",$GLOBALS["DB_WE"]); ?>" />
                                <input type="hidden" name="recipient_error_page" value="" />
                                <input type="hidden" name="ok_page" value="<?php print f("SELECT Path FROM ".FILE_TABLE." WHERE ID=325","Path",$GLOBALS["DB_WE"]); ?>" />
                                <input type="hidden" name="charset" value="<?php print ""; ?>" />
                                <input type="hidden" name="confirm_mail" value="<?php print ""; ?>" />
                                <input type="hidden" name="pre_confirm" value="" />
                                <input type="hidden" name="post_confirm" value="" />
                                <input type="hidden" name="we_remove" value="" />
                                <input type="hidden" name="forcefrom" value="" />
                                <input type="hidden" name="captcha_error_page" value="" />
                                <input type="hidden" name="captchaname" value="" />
			                 </div>
				        <?php endif ?>
							
                 <table border="0">
                    <tr>
						<td><strong>Ihre Anschrift:</strong></td>
						<td>Felder mit * sind Pflichtangaben!</td>
					</tr>
                    <tr> 
                      <td nowrap>Firma:</td>
                      <td width="100%"><input name="Firma" type="text" size="20" style="width:300px;"></td>
                    </tr>
                    <tr> 
                      <td nowrap>Abteilung:</td>
                      <td width="100%"><input name="Abteilung" type="text" size="20" style="width:300px;"></td>
                    </tr>					
					<tr>
                      <td nowrap><strong>Anrede*:</strong></td>
                      <td width="100%">
                        <select name="Anrede">
                          <option value=""></option>
                          <option value="Herr">Herr</option>
                          <option value="Frau" selected="selected">Frau</option>
                        </select>
                      </td>
                    </tr>
                    <tr>
                      <td nowrap><strong>Vorname*:</strong></td>
                      <td width="100%"><input name="Vorname" type="text" size="20" style="width:300px;"></td>
                    </tr>
                    <tr> 
                      <td nowrap><strong>Nachname*:</strong></td>
                      <td width="100%"><input name="Nachname" type="text" size="20" style="width:300px;"></td>
                    </tr>
                    <tr> 
                      <td nowrap><strong>Strasse / Nr.:*</strong></td>
                      <td>
					  <input name="Strasse" type="text" size="15" style="width:245px;">
					  &nbsp;<input name="Nr" type="text" size="3" style="width:46px;">
                      </td>
                    </tr>
                    <tr> 
                      <td nowrap><strong>PLZ / Ort:*</strong></td>
                      <td>
					  <input name="PLZ" type="text" size="5" style="width:76px;">
					  &nbsp;<input name="Ort" type="text" size="12" style="width:215px;">
                      </td>
                    </tr>
                    <tr>
                      <td nowrap><strong>Land:*</strong></td>
                      <td width="100%"><input name="Land" type="text" size="20" style="width:300px;"></td>
                    </tr>					
                    <tr> 
                      <td nowrap><strong>Telefon*:</strong></td>
                      <td width="100%"><input name="Telefon" type="text" size="20" style="width:300px;"></td>
                    </tr>
                    <tr> 
                      <td nowrap>Fax:</td>
                      <td width="100%"><input name="Fax" type="text" size="20" style="width:300px;"></td>
                    </tr>					
                    <tr> 
                      <td nowrap><strong>E-Mail*:</strong></td>
                      <td width="100%"><input name="Email" type="text" size="20" style="width:300px;"></td>
                    </tr>
                    <tr> 
                      <td nowrap><strong>AHV-Nr*:</strong></td>
                      <td width="100%"><input name="AHV_Nummer" type="text" size="20" style="width:300px;"></td>
                    </tr>
                    <tr> 
                      <td nowrap><strong>Geburtsdatum*:</strong></td>
                      <td width="100%"><input name="Geburtsdatum" type="text" size="20" style="width:300px;" value="TT.MM.JJJJ"></td>
                    </tr>
                    <tr> 
                      <td nowrap>Abrechnungs-Nr.:</td>
                      <td width="100%"><input name="Abrechnungsnummer" type="text" size="20" style="width:300px;"></td>
                    </tr>															
                   	<tr>
                      <td nowrap>Wie haben Sie<br />uns gefunden?</td>
                      <td width="100%">
                        <select name="GefundenUeber">
                          <option value="" selected></option>
						  <option value="Empfehlung">Empfehlung</option>
                          <option value="Google">Google</option>
						  <option value="Yahoo">Yahoo</option>
						  <option value="Andere Suchmaschine">Andere Suchmaschine</option>
						  <option value="Telefonbuch">Telefonbuch</option>
						  <option value="Anderes">Anderes</option>
                        </select>
                      </td>
                    </tr>
					<tr><td colspan="2"><br /><strong>Was können wir für Sie tun?*:</strong></td></tr>					
                    <tr>
                      <td  colspan="2"><textarea name="Mitteilung" wrap="VIRTUAL" cols="19" rows="6" style="width:400px;"></textarea></td>
                    </tr>
                    <tr>
                       <td colspan="2">Bitte füllen Sie alle Felder aus, die mit einem * gekennzeichnet sind.</td>
                    </tr>
                  </table>
				  <div class="text_button"><a href="javascript:CheckShopForm();"><strong>Senden</strong></a></div>
                <?php if(!isset($GLOBALS["we_editmode"]) || !$GLOBALS["we_editmode"]): ?></form><?php endif ?><?php $GLOBALS["WE_FORM"] = ""; if (isset($GLOBALS["we_form_action"])) {unset($GLOBALS["we_form_action"]);} ?>
              <?php endif ?>
<!-- Ende Kontaktformular -->
	<?php  //Kontaktformular  ?>
  
					
					
				<?php  //Infobox rechts auswaehlen  ?>
				<?php if(we_tag("ifEditmode", array())): ?>
				<div style="margin-top:3em; text-align:right;">
				<p><br />
				<b>Links/Icons neben Druckersymbol einfuegen (optional)</b><br />
				</p>
				</div>
				<?php endif ?>											
					<div id="print">
						<p>
							<?php if(we_tag("ifNotEmpty", array("match"=>"fkt01"))): ?>
								<?php printElement( we_tag("link", array("name"=>"fkt01"), "")); ?>
							<?php endif ?>
							<?php if(we_tag("ifNotEmpty", array("match"=>"fkt02"))): ?>
								<?php printElement( we_tag("link", array("name"=>"fkt02"), "")); ?>
							<?php endif ?>
							<a href="javascript:print();"><img src="/images/print.gif" alt="Drucken" title="Drucken" border="0" /></a>
						</p>	
					</div>
					
					
				</div>
			</div>
			<!-- end: #col1 -->
			<!-- begin: #col2 second float column -->
			<div id="col2">
				<div id="col2_content" class="clearfix">					
					<!-- quicksearch -->
					<?php $GLOBALS["we_form_action"] = f("SELECT Path FROM ".FILE_TABLE." WHERE ID='1383'","Path",$GLOBALS["DB_WE"]); ?>
<?php if(!isset($GLOBALS["we_editmode"]) || !$GLOBALS["we_editmode"]): ?><form method="get" name="we_global_form" onsubmit=";if(self.weWysiwygSetHiddenText){weWysiwygSetHiddenText();};return true;" action="<?php print $GLOBALS["we_form_action"]; ?>"><?php endif ?>

					<div id="quicksearch">
						<span>Suchen</span><br />
						<?php printElement( we_tag("search", array("type"=>"textinput","class"=>"inputfeld","name"=>"suche","id"=>"suchbegriff","xml"=>"true"), "")); ?><input name="Suchen" type="image" value="Suchen" src="/images/btn_submit.gif" id="btn" alt="Suchen" />
					</div>
					<?php if(!isset($GLOBALS["we_editmode"]) || !$GLOBALS["we_editmode"]): ?></form><?php endif ?><?php $GLOBALS["WE_FORM"] = ""; if (isset($GLOBALS["we_form_action"])) {unset($GLOBALS["we_form_action"]);} ?>
					<!-- col2Menu -->
					<div class="col2Menu">
						<?php  // Start of Navigation ul/li ?> 
						<?php  // Navigationstemplate einbinden und Initialisieren	?> 	
						<?php printElement( we_tag("navigation", array("parentid"=>"40","navigationname"=>"mainNavigation"), "")); ?>
						 <?php if(we_tag("ifVarEmpty", array("match"=>"showMeta","type"=>"global"))): ?> 
 
 
  <?php  //Punkte Ebene 1 NICHT anzeigen  ?> 
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","level"=>"1"), "")); ?>    
  <?php  //Aktuelle Hauptebene ausgeben  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"1"), "<li id=\"title\"><we_:_navigationField name=\"text\" /></li><?php print \"\n\"; ?>	 <we_:_ifHasEntries><we_:_navigationEntries /></we_:_ifHasEntries>")); ?>  
  
  
  <?php  //Level 2 allgemein  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"false","level"=>"2"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>   
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false","level"=>"2"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>     
  <?php  //Level 2 aktiv  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"2"), "<li id=\"active\"><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	 <we_:_ifHasEntries><ul id=\"submenu_level2\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	 </li>")); ?>  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true","level"=>"2"), "<li id=\"active\"><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	 <we_:_ifHasEntries><ul id=\"submenu_level2\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	 </li>")); ?>   
  
  
  <?php  //Level 3 allgemein  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false","level"=>"3"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"false","level"=>"3"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>        
  <?php  //Level 3 aktiv  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true","level"=>"3"), "<li id=\"active\"><a style=\"color:#333366; font-weight:bold; background:transparent; padding:0;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	  <we_:_ifHasEntries><ul id=\"submenu_level3\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	  </li>")); ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"3"), "<li id=\"active\"><a style=\"color:#333366; font-weight:bold; background:transparent; padding:0;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a><?php print \"\n\"; ?>	  <we_:_ifHasEntries><ul id=\"submenu_level3\"><we_:_navigationEntries /></ul></we_:_ifHasEntries>	  </li>")); ?>
  
  
    <?php  //Level 4 allgemein  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false","level"=>"4"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"false","level"=>"4"), "<li><a style=\"color:#333366;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>        
  <?php  //Level 4 aktiv  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true","level"=>"4"), "<li id=\"active\"><a style=\"color:#000;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true","level"=>"4"), "<li id=\"active\"><a style=\"color:#000;\" href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?>
  
    
  <?php  //Aktiver Menupunkt  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"true"), "<li id=\"active\"><we_:_navigationField name=\"text\" /></li><?php print \"\n\"; ?>")); ?>
   <?php  //Inaktiver Menupunkt  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item","current"=>"false"), "<li><a href=\"<we_:_navigationField name=\"href\" />\"><we_:_navigationField name=\"text\" /></a></li><?php print \"\n\"; ?>")); ?> 
   
  <?php  //Menu schreiben  ?>
    <ul id="submenu">
      <?php printElement( we_tag("navigationWrite", array("navigationname"=>"mainNavigation"), "")); ?>
    </ul>



<?php else: ?>
  
	<?php  //Ausgabe im Header  ?>
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder"), "<link rel=\"chapter\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>")); ?>

  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"folder","current"=>"true"), "<link rel=\"chapter\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>      <link rel=\"up\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>      <we_:_ifHasEntries><we_:_navigationEntries /></we_:_ifHasEntries>")); ?>
  
  <?php printElement( we_tag("navigationEntry", array("navigationname"=>"mainNavigation","type"=>"item"), "<link rel=\"section\" href=\"<we_:_navigationField name=\"href\" />\" title=\"<we_:_navigationField name=\"text\" />\" /><?php print \"\n\"; ?>")); ?>
  
  <link rel="start" href="<?php printElement( we_tag("url", array("id"=>"260"), "")); ?>" title="Top" />
  <link rel="copyright" href="<?php printElement( we_tag("url", array("id"=>"296"), "")); ?>" title="Impressum" />
  
  <?php printElement( we_tag("navigationWrite", array("navigationname"=>"mainNavigation"), "")); ?>

<?php endif ?>

					</div>						
					
					<!-- vsig -->
					<div id="vsig">
					  <p>Eine Dienstleistung von
							<br />
						    <a href="http://www.vsig.ch/" target="_blank"><img src="/images/vsig_logo.gif" title="Eine Dienstleistung von VSIG Handel Schweiz" alt="VSIG Handel Schweiz" border="0" /></a>
						</p>
					</div>
					
				</div>
			</div>
			<!-- end: #col2 -->
			<!-- begin: #col3 static column -->
			<div id="col3">
              <div id="col3_content" class="clearfix">
                
				<!-- box02 -->
				<?php  //Infobox anzeigen  ?>
				<?php if(we_tag("ifNotEditmode", array())): ?>
					<?php printElement( we_tag("href", array("name"=>"infobox","reload"=>"true","type"=>"int","size"=>"5","include"=>"true"), "")); ?>
				<?php endif ?>
				
              </div>				
              <div id="ie_clearing">&nbsp;</div>
				<!-- End: IE Column Clearing -->
		  </div>
			<!-- end: #col3 -->
		</div>
		<!-- end: #main -->
		<!-- begin: #footer -->
		<div id="footer">
						<?php if(we_tag("ifNotEditmode", array())): ?>
						    <?php  // Footer ?> 
							<?php
				if( ("281" && ($GLOBALS["we_doc"]->ContentType != "text/webedition" || $GLOBALS["WE_MAIN_DOC"]->ID != "281")) || "" != "" || "$path" != "" ){
					if (!isset($we_backVars) || !is_array($we_backVars)) {
						$we_backVars = array();
					}

					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_doc"] = clone($GLOBALS["we_doc"]);
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_IS_DYN"] = isset($GLOBALS["WE_IS_DYN"]) ? 1 : 0;
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_ID"] = $GLOBALS["WE_DOC_ID"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_ParentID"] = $GLOBALS["WE_DOC_ParentID"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_Path"] = $GLOBALS["WE_DOC_Path"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_IsDynamic"] = $GLOBALS["WE_DOC_IsDynamic"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_FILENAME"] = $GLOBALS["WE_DOC_FILENAME"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_Category"] = $GLOBALS["WE_DOC_Category"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_EXTENSION"] = $GLOBALS["WE_DOC_EXTENSION"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["TITLE"] = $GLOBALS["TITLE"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["KEYWORDS"] = $GLOBALS["KEYWORDS"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["DESCRIPTION"] = $GLOBALS["DESCRIPTION"];
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_cmd"] = isset($_REQUEST["we_cmd"]) ? $_REQUEST["we_cmd"] : "";
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["FROM_WE_SHOW_DOC"] = isset($GLOBALS["FROM_WE_SHOW_DOC"]) ? $GLOBALS["FROM_WE_SHOW_DOC"] : "";
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_transaction"] = isset($GLOBALS["we_transaction"]) ? $GLOBALS["we_transaction"] : "";
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_editmode"] = isset($GLOBALS["we_editmode"]) ? $GLOBALS["we_editmode"] : null;
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_ContentType"] = isset($GLOBALS["we_ContentType"]) ? $GLOBALS["we_ContentType"] : "text/webedition";
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["pv_id"] = isset($_REQUEST["pv_id"]) ? $_REQUEST["pv_id"] : "";
					$GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["pv_tid"] = isset($_REQUEST["pv_tid"]) ? $_REQUEST["pv_tid"] : "";
					if(isset($GLOBALS["WE_IS_DYN"])){
						unset($GLOBALS["WE_IS_DYN"]);
					}
					unset($_REQUEST["pv_id"]);
					unset($_REQUEST["pv_tid"]);

					if(""){
						$foo = "";
					}else if("281"){
						$GLOBALS["DB_WE"]->query("SELECT Path,IsDynamic FROM ".FILE_TABLE." WHERE ID=281");
						$GLOBALS["DB_WE"]->next_record();
						$foo = $GLOBALS["DB_WE"]->f("Path");
					}elseif(""){
						$foo = $path;
					}else{
						$foo = "";
					}
					if ($foo) {
						if ("") {
							$foo = getHTTP(SERVER_NAME, $foo, "", defined("HTTP_USERNAME") ? HTTP_USERNAME : "", defined("HTTP_PASSWORD") ? HTTP_PASSWORD : "");
						} else {
							$foo = $_SERVER["DOCUMENT_ROOT"] . $foo;
							if (file_exists($foo) && filesize($foo) > 0) {
								$fp = fopen($foo, "rb");
								$foo = fread($fp, filesize($foo));
								fclose($fp);
							} else {
								$foo = "";
							}
						}
						if (isset($_SESSION["we_mode"]) && ($_SESSION["we_mode"] == "seem") && isset($GLOBALS["we_doc"]->InWebEdition) && $GLOBALS["we_doc"]->InWebEdition) {
                        
                            $foo .= <<< ENDOF_OF_FILE
<a href="281" seem="include"></a>
ENDOF_OF_FILE;

                            if (eregi('< ?form', $foo)) {
								$foo = eregi_replace('< ?form[^>]*>','', $foo);
								$foo = eregi_replace('< ?/ ?form[^>]*>','', $foo);
							}
						}
						eval("?>".$foo);
					}

					$GLOBALS["we_doc"] = clone($GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_doc"]);
					$GLOBALS["WE_DOC_ID"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_ID"];
					$GLOBALS["WE_DOC_ParentID"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_ParentID"];
					$GLOBALS["WE_DOC_Path"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_Path"];
					$GLOBALS["WE_DOC_IsDynamic"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_IsDynamic"];
					$GLOBALS["WE_DOC_FILENAME"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_FILENAME"];
					$GLOBALS["WE_DOC_Category"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_Category"];
					$GLOBALS["WE_DOC_EXTENSION"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_DOC_EXTENSION"];
					$GLOBALS["TITLE"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["TITLE"];
					$GLOBALS["KEYWORDS"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["KEYWORDS"];
					$GLOBALS["DESCRIPTION"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["DESCRIPTION"];
					$_REQUEST["we_cmd"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_cmd"];
					$GLOBALS["we_cmd"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_cmd"];
					$GLOBALS["FROM_WE_SHOW_DOC"]= $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["FROM_WE_SHOW_DOC"];
					$GLOBALS["we_transaction"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_transaction"];
					$GLOBALS["we_editmode"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_editmode"];
					$GLOBALS["we_ContentType"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["we_ContentType"];
					$_REQUEST["pv_id"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["pv_id"];
					$_REQUEST["pv_tid"] = $GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["pv_tid"];

					if(isset($GLOBALS["WE_IS_DYN"])){
						unset($GLOBALS["WE_IS_DYN"]);
					}
					if($GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]["WE_IS_DYN"]){
						$GLOBALS["WE_IS_DYN"] = 1;
					}
					unset($GLOBALS["we_backVars"]["f5ee917f73e7bf4feb551372bdc4862d"]);
				}
			?>
						<?php endif ?>			
		</div>
		<!-- end: #footer -->
		
				<?php  //Kategoriebild auswaehlen  ?>
				<?php if(we_tag("ifEditmode", array())): ?><p><br />
				<b>Kategoriebild auswaehlen</b><br />
				<?php printElement( we_tag("img", array("name"=>"kat_img","border"=>"0","id"=>"1208","startid"=>"287"), "")); ?>
				</p>
				<?php else: ?>
				<div id="kat_img"><?php printElement( we_tag("img", array("name"=>"kat_img","border"=>"0","id"=>"1208","startid"=>"287"), "")); ?></div>
				<?php endif ?>		
				
				<?php  //Infobox rechts auswaehlen  ?>
				<?php if(we_tag("ifEditmode", array())): ?><p><br />
				<b>Infobox rechts auswaehlen</b><br />
				<?php printElement( we_tag("href", array("name"=>"infobox","reload"=>"true","type"=>"int","size"=>"5","include"=>"true"), "")); ?>
				</p>
				<?php endif ?>						
		
		
	</div>
</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3459837-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

<?php if (isset($GLOBALS["we_editmode"]) && $GLOBALS["we_editmode"]) : ?>
</form>
<?php endif ?></body>
</html>
<?php if(isset($GLOBALS["we_editmode"]) && $GLOBALS["we_editmode"] ): ?><script language="JavaScript" type="text/javascript">setTimeout("doScrollTo();",100);</script><?php endif ?>

ThomasGoebe

Re: Probleme mit dem Anpassen der Fehlerüberprüfung des Kont

Beitragvon ThomasGoebe » Do 4. Aug 2011, 13:17

Hallo Webi-iTec,

hast Du Erfahrung mit webEdition oder bist Du kompletter Neueinsteiger? Davon hängt ab, wie viel ich erklären muss.

Dein Code ist das Template, das Du per FTP runterladen kannst. Dies ist jedoch schon durch webEdition geparst und sollte auch nicht mehr direkt verändert werden.

Du musst Dich daher in webEdition anmelden und das betroffene Template dort öffnen. Dann findest Du auch die beiden Elemente.

Ach und bitte nicht solche langen Code-Blöcke posten. Die liest niemand wirklich durch.

Gruß
Thomas


Zurück zu „Patches, Bugs and Contributions“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste