Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        function showTopAngebot()
        {

                $template = loadTemplates($_SESSION['INI']['TEMPLATE']['topAngebot']);
                $buffer = array();
        
                if ($buffer=getAktionItems(getCurrentAktion()))
                {
                        $topAngebotItem = $buffer[array_rand($buffer)]; 
                        
                        $topAngebotItem["itemImage"] = templateContent($topAngebotItem, $template["itemImage"]);
                        
                        $topAngebotItem["Lieferstatus"] = templateContent
                                                                        (
                                                                                array("LieferstatusText" => $topAngebotItem["LieferstatusText"]),
                                                                                $template["lieferstatus".$topAngebotItem["LieferstatusValue"]]
                                                                        );
                                                                        
                        echo
                                templateContent
                                (
                                        array
                                        (
                                                "topAngebotItem" => templateContent
                                                                                        (
                                                                                                $topAngebotItem,
                                                                                                $template["topAngebotItem"]
                                                                                        )
                                        ),
                                        $template["topAngebotContainer"]
                                );
                }
                else
                {
                        return false;
                }
        }
?>