Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<script>
    $(function(){
        $('#reiter').tabs();
    })
</script>
<div id="reiter">
    <ul>
        <li>
            <a href="#ausgabe">Ausgabe</a>
        </li>
        <li>
            <a href="#roh">Rohdaten</a>
        </li>
    </ul>
    <div id="ausgabe">
{if $xml["@"]["ErrorMessage"]}
    {include file="meld.tpl" meld=$xml["@"]["ErrorMessage"] error=true}
{else}
    <table width="100%" border="1" cellspacing="0" cellpadding="3">
        <tr class="links">
            <td>Feld</td>
            <td>Wert</td>
        </tr>
        <tr>
            <td class="links">Hersteller</td>
            <td class="rechts">{$xml["Supplier"]["@"]["Name"]}</td>
        </tr>
        <tr>
            <td class="links">Bezeichnung</td>
            <td class="rechts">{$xml["@"]["Name"]} {$xml["@"]["Category"]}</td>
        </tr>
        <tr>
            <td class="links">EAN</td>
            <td class="rechts">{$xml["EANCode"]["@"]["EAN"]}</td>
        </tr>
        <tr>
            <td class="links">Beschreibung</td>
            <td class="rechts">{$beschreibung}</td>
        </tr>
        <tr>
            <td class="links">Bilder</td>
            <td class="rechts">
                <div style="float: left;">
                    <a target="_blank" href="{$xml["@"]["HighPic"]}">
                        <img src="{$xml["@"]["ThumbPic"]}">
                    </a>
                </div>
                {if isset($xml["ProductGallery"]["ProductPicture"][0])}
                {foreach $xml["ProductGallery"]["ProductPicture"] as $b_id => $bild}
                <div style="float: left;">
                    <a target="_blank" href="{$bild["@"]["Pic"]}">
                        <img src="{$bild["@"]["ThumbPic"]}">
                    </a>
                </div>
                {/foreach}
                {else}
                <div style="float: left;">
                    <a target="_blank" href="{$xml["ProductGallery"]["ProductPicture"]["@"]["Pic"]}">
                        <img src="{$xml["ProductGallery"]["ProductPicture"]["@"]["ThumbPic"]}">
                    </a>
                </div>
                {/if}
                <div style="float: none;clear:both;"></div>
            </td>
        </tr>
        <tr>
            <td class="links">Produkteigenschaften</td>
            <td class="rechts">
                <table>
                {foreach $groups as $g_id => $group}
                {if ( is_array( $group["sub"] ) )}
                    <tr class="links">
                        <td colspan="2">{$group["name"]}</td>
                    </tr>
                    {foreach $group["sub"] as $eigenschaft => $wert}
                    <tr>
                        <td class="links">{$eigenschaft}</td>
                        <td class="rechts">{$wert}</td>
                    </tr>
                    {/foreach}
                {/if}
                {/foreach}
                </table>
            </td>
        </tr>
    </table>
{/if}
    </div>
    <div id="roh">
        <pre>
            {$roh_xml}
        </pre>
    </div>
</div>