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