Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<h1>Optionen auf alle Artikel in diesem Ordner kopieren</h1>
{if $error}
    <div class="error">{$meld}</div>
{else}
    <form method="post">
    <table width="100%">
        <tr class="links">
            <td>Option</td>
            <td>Werte</td>
        </tr>
{foreach from=$features key=f_ind item=feature}
        <tr class="{cycle values='rechts,links'}">
            <td valign="top">
                <input type="hidden" name="Option[{$feature.ID}]" value="0">
                <input type="checkbox" name="Option[{$feature.ID}]" value="1" {if $artikel.features[$feature.ID].Feature == $feature.ID}checked="checked"{/if} id="Option_{$feature.ID}" class="option">{$feature.Name}
            </td>
            <td id="Option_{$feature.ID}_Values" {if $artikel.features[$feature.ID].Feature == $feature.ID}style="display:;"{else}style="display:none;"{/if}>
            {section loop=$feature.options name=fo_ind}
                <input type="checkbox" name="Value[{$feature.ID}][]" value="{$feature.options[fo_ind].bit_input}" {if $artikel.features[$feature.ID].values[fo_ind] == $feature.options[fo_ind].bit_input && $artikel.features[$feature.ID].Feature == $feature.ID}checked="checked"{/if}>{$feature.options[fo_ind].Value}<br>
            {/section}
            </td>
        </tr>
{/foreach}
        <tr>
            <td colspan="2">
                <center>
                    <input type="submit" value="Optionen kopieren">
                </center>
            </td>
        </tr>
    </table>
    <input type="hidden" name="dir" value="{$dir}">
    <input type="hidden" name="mode" value="save">
    </form>
{/if}