Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
2
	function showAddonItems($Id = false)
3
	{
4
		if ($Id == false) { return false; }
5
		if (is_array($Id))
6
			{ $addOnItems = $Id; }
7
		else
8
			{ $addOnItems = getAddOnItems($Id); }
9
 
10
		$template = loadTemplates($_SESSION['INI']['TEMPLATE']['addOnItem']);
11
		$buffer = array();
12
 
13
		foreach($addOnItems as $addOnItem)
14
		{
15
			$addOnItem["addOnItemImage"] = templateContent($addOnItem, $template["addOnItemImage"]);
16
 
17
			$addOnItem["Lieferstatus"] = templateContent
18
									(
19
										array("LieferstatusText" => $addOnItem["LieferstatusText"]),
20
										file_get_contents($_SESSION['INI']['TEMPLATE']['addOnItem']["lieferstatus".$addOnItem["LieferstatusValue"]])
21
									);
22
 
23
			$buffer[] = templateContent($addOnItem, $template["addOnItem"]);
24
		}
25
 
26
		if (count($addOnItems) > 0)
27
		{
28
			echo templateContent(array("AddOnItems" => implode("", $buffer)) , $template["addOnItemContainer"]);
29
			return true;
30
		}
31
		else
32
		{
33
			return false;
34
		}
35
	}
36
?>