| 1 | {if !$readonly} |
| 2 | <form name="plug_form" method="post" action="{$post}"> |
| 3 | <input type="hidden" name="action" value="update" /> |
| 4 | <input type="hidden" name="plug_target" value="" /> |
| 5 | <input type="hidden" name="plug_page" value="{$plug_page}" /> |
| 6 | <input type="hidden" name="plug_barrel" value="{$plug_barrel}" /> |
| 7 | {/if} |
| 8 | |
| 9 | <div class="plugins"> |
| 10 | {foreach from=$plugins key=plugtype item=plugarr} |
| 11 | <table class="light" style="width:80%"> |
| 12 | <tr> |
| 13 | <th colspan="2">{$plugtype} {$msg_plugedit_plugins}</th> |
| 14 | </tr> |
| 15 | {foreach from=$plugarr item=plug} |
| 16 | <tr class="odd"> |
| 17 | <td><img class="fileicon" src="{$plug.icon}"/> {$plug.name} v{$plug.version}</td> |
| 18 | <td> |
| 19 | {if $readonly || $plug.readonly} |
| 20 | {$statusvals[$plug.status]} |
| 21 | {else} |
| 22 | <select name="{$plug.name}_status">{html_options options=$rwstatusvals selected=$plug.status}</select> |
| 23 | {/if} |
| 24 | </td> |
| 25 | </tr> |
| 26 | <tr> |
| 27 | <td><div class="description">{$plug.description}</div></td> |
| 28 | <td> |
| 29 | {if $show_params} |
| 30 | <table class="plugparams"> |
| 31 | {foreach from=$plug.params key=key item=val} |
| 32 | <tr> |
| 33 | <td>{$key}</td> |
| 34 | <td><input type="text" name="{$plug.name}_{$key}" value="{$val.value|escape}" size="30" /></td> |
| 35 | </tr> |
| 36 | {/foreach} |
| 37 | </table> |
| 38 | {else} |
| 39 | |
| 40 | {/if} |
| 41 | </td> |
| 42 | </tr> |
| 43 | {/foreach} |
| 44 | </table> |
| 45 | <br/> |
| 46 | {/foreach} |
| 47 | </div> |
| 48 | |
| 49 | {if !$readonly} |
| 50 | <p> |
| 51 | <input type="submit" value="{$msg_submit}" /> |
| 52 | </p> |
| 53 | </form> |
| 54 | {/if} |