1 {include file="header.tpl" title="Admin - handle themes for $mainlcd"}
3 <h1>Manage themes for {$mainlcd}</h1>
5 <a href="{$smarty.server.SCRIPT_NAME}?target={$smarty.request.target}&approved=any">Show{if $approved=="any"}ing{/if} all</a>
6 | <a href="{$smarty.server.SCRIPT_NAME}?target={$smarty.request.target}&approved=approved">Show{if $approved=="approved"}ing{/if} approved</a>
7 | <a href="{$smarty.server.SCRIPT_NAME}?target={$smarty.request.target}&approved=hidden">Show{if $approved=="hidden"}ing{/if} hidden</a>
9 {if count($themes) == 0}
10 <p>No themes match your selection</p>
12 <form method="POST" action="{$smarty.server.SCRIPT_NAME}">
13 <input type="hidden" name="target" value="{$smarty.request.target}" />
14 <input type="hidden" name="approved" value="{$smarty.request.approved}" />
16 {section name=mysec loop=$themes}
18 <td>{html_image file="`$datadir`/`$mainlcd`/`$themes[mysec].shortname`/`$themes[mysec].sshot_wps`" href="`$datadir`/`$mainlcd`/`$themes[mysec].shortname`/`$themes[mysec].zipfile`"}</td>
19 <td>{$themes[mysec].name}</td>
21 <input type="hidden" name="id[]" value="{$themes[mysec].id}" />
22 <input type="hidden" name="prevstatus[]" value="{$themes[mysec].approved}" />
23 Approved <input type="radio" name="status[]" value="1" {if $themes[mysec].approved == 1}checked="checked" {/if}/><br />
24 Hidden <input type="radio" name="status[]" value="0" {if $themes[mysec].approved == 0}checked="checked" {/if}/><br />
25 Delete <input type="radio" name="status[]" value="-1" />
28 <textarea rows="10" cols="40" name="reason[]">{$themes[mysec].reason}</textarea>
34 <p><input type="submit" name="changestatuses" value="Update all themes" /></p>
37 {include file="footer.tpl"}