1 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
---|
2 | {footer_script } |
---|
3 | {combine_script id="field_set" load="footer" path=$SET_PLUGINS_PATH|@cat:"js/field_set.js" require="jquery"} |
---|
4 | {/footer_script} |
---|
5 | |
---|
6 | {foreach from=$list item=plugin_state}1 |
---|
7 | {$list} |
---|
8 | {/foreach} |
---|
9 | |
---|
10 | {if isset($liste_plugins)} |
---|
11 | {foreach from=$plugin_states item=plugin_state} |
---|
12 | {if $plugin_state==$state} |
---|
13 | <fieldset > |
---|
14 | <legend> |
---|
15 | {if $plugin_state == 'active'} |
---|
16 | {'Last '|@translate} {'Active Plugins'|@translate} |
---|
17 | {elseif $plugin_state == 'inactive'} |
---|
18 | {'Last '|@translate} {'Inactive Plugins'|@translate} |
---|
19 | {/if} [{$nb_list}] |
---|
20 | </legend> |
---|
21 | <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> |
---|
22 | <input class="button" name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> |
---|
23 | <input class="button" name="set_plugins" type="submit" value="{'Activate'|@translate}" /> |
---|
24 | |
---|
25 | |
---|
26 | <label> {'nb'|@translate}:</label><input name="nb" type="text" value="{$nb}" size="5" /> |
---|
27 | <input name="list_visible" id="list_visible" type="hidden" value="{$list_visible}" /> |
---|
28 | |
---|
29 | <input name="add_plugins" type="hidden" id="add_plugins" value="{$add_plugins}" /> |
---|
30 | <input class="button" type="submit" name="init_plugins" value="{'init'|@translate}" /> |
---|
31 | <input type="hidden" id="set" name="set" value="{$set}" /> |
---|
32 | <p> |
---|
33 | |
---|
34 | {foreach from=$liste_plugins item=plugin name=plugins_loop} |
---|
35 | <div class="pluginBox" id="{$plugin.NAME}"> |
---|
36 | <table width="100%" > <tr> |
---|
37 | <td width="50%" align="left" name="plugins_name" rel="actif" class="pluginBoxNameCell" > |
---|
38 | {if $plugin.STATE == 'active'} |
---|
39 | {$plugin.NAME} |
---|
40 | {else} |
---|
41 | {/if} |
---|
42 | </td> |
---|
43 | |
---|
44 | <td width="50%" align="left" name="plugins_name" rel="inactif" class="pluginBoxNameCell"> |
---|
45 | {if $plugin.STATE == 'inactive'} |
---|
46 | {$plugin.NAME} |
---|
47 | {else} |
---|
48 | {/if} |
---|
49 | |
---|
50 | </td> |
---|
51 | </tr> |
---|
52 | <tr> |
---|
53 | |
---|
54 | <td width="50%" align="left" rel="actif"> |
---|
55 | {if $plugin.STATE == 'active'} |
---|
56 | <a href="{$plugin.U_ACTION}&action=deactivate"> |
---|
57 | {'Deactivate'|@translate}</a> |
---|
58 | {else} {/if} |
---|
59 | </td> |
---|
60 | <td width="50%" align="left" rel="inactif"> |
---|
61 | {if $plugin.STATE == 'inactive'} |
---|
62 | <a href="{$plugin.U_ACTION}&action=activate" >{'Activate'|@translate}</a> |
---|
63 | |
---|
64 | {else} {/if} |
---|
65 | |
---|
66 | </td> |
---|
67 | </tr> </table> |
---|
68 | </div> |
---|
69 | |
---|
70 | |
---|
71 | {/foreach} |
---|
72 | </p> |
---|
73 | </form> |
---|
74 | </fieldset> |
---|
75 | {/if} |
---|
76 | {/foreach} |
---|
77 | |
---|
78 | {/if} |
---|
79 | |
---|