1 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
---|
2 | <meta http-equiv="X-UA-Compatible" content="IE=IE9" /> |
---|
3 | {html_head} |
---|
4 | {if $PHPWG_VERSION < 2.2 } |
---|
5 | |
---|
6 | {include file= $SET_PLUGINS_PATH_ABS|@cat:'template/header_2_1.tpl'} |
---|
7 | {else} |
---|
8 | {include file= $SET_PLUGINS_PATH_ABS|@cat:'template/header_2_2.tpl'} |
---|
9 | {/if} |
---|
10 | |
---|
11 | |
---|
12 | {/html_head} |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | {*if isset($liste_plugins)*} |
---|
17 | |
---|
18 | <fieldset > |
---|
19 | <legend class="cluetip" title="{'s_pl_action'|@translate}" |
---|
20 | |
---|
21 | |
---|
22 | > |
---|
23 | |
---|
24 | {if $state == 'active'} |
---|
25 | {'Last'|@translate} {'action'|@translate} :{'Activate'|@translate} |
---|
26 | {elseif $state == 'inactive'} |
---|
27 | {'Last'|@translate} {'action'|@translate} :{'Inactivate'|@translate} |
---|
28 | {/if} |
---|
29 | |
---|
30 | {foreach from=$liste_plugins item=plugin name=plugins_name} |
---|
31 | {if $smarty.foreach.plugins_name.first} |
---|
32 | [<label class="cluetip" title="{'s_pl_action1'|@translate}"> |
---|
33 | {$smarty.foreach.plugins_name.total}</label>/ |
---|
34 | <label class="cluetip" title="{'s_pl_action2'|@translate}"> |
---|
35 | {$nb_plugins}</label>/ |
---|
36 | <label class="cluetip" title="{'s_pl_action3'|@translate}"> |
---|
37 | {$smarty.foreach.plugins_loop.total}</label>] </legend> |
---|
38 | |
---|
39 | <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> |
---|
40 | <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" |
---|
41 | class="cluetip button" title="{'s_pl_action4'|@translate}" /> |
---|
42 | <input name="set_plugins" type="submit" value="{'Activate'|@translate}" |
---|
43 | class="cluetip" title="{'s_pl_action5'|@translate}" /> |
---|
44 | |
---|
45 | <label class="cluetip" title="{'s_pl_action6'|@translate}"> {'nb'|@translate}:</label> |
---|
46 | <input name="nb" type="text" value="{$nb}" size="5" /> |
---|
47 | |
---|
48 | <input name="list_visible" id="list_visible" type="hidden" value="{$list_visible}" /> |
---|
49 | <input name="add_plugins" type="hidden" id="add_plugins" value="{$add_plugins}" /> |
---|
50 | |
---|
51 | <input type="submit" name="init_plugins" class="cluetip" |
---|
52 | title="{'s_pl_action7'|@translate}" |
---|
53 | value="{'store'|@translate}" /> |
---|
54 | <input type="hidden" id="set" name="set" value="{$set}" /> |
---|
55 | |
---|
56 | <input class="cluetip" title="{'s_pl_action8'|@translate} {$edited_file}" type="submit" |
---|
57 | value="{'save_file'|@translate}" name="submit" /> |
---|
58 | {if isset ($restore)} |
---|
59 | <input class="cluetip" title="{'s_pl_action9'|@translate} {$edited_file}" type="submit" |
---|
60 | value="{'restore'|@translate}" name="restore" onclick="return confirm('{'restore_confirm'|@translate|escape:'javascript'}');" /> |
---|
61 | {/if} |
---|
62 | <p> |
---|
63 | {/if} |
---|
64 | |
---|
65 | <div class="pluginBox" id="{$plugin.NAME}"> |
---|
66 | <table width="100%" > <tr> |
---|
67 | <td width="50%" align="left" name="plugins_name" rel="actif" class="pluginBoxNameCell" > |
---|
68 | {if $plugin.STATE == 'active'} |
---|
69 | {$plugin.NAME} |
---|
70 | {else} |
---|
71 | {/if} |
---|
72 | </td> |
---|
73 | |
---|
74 | <td width="50%" align="left" name="plugins_name" rel="inactif" class="pluginBoxNameCell"> |
---|
75 | {if $plugin.STATE == 'inactive'} |
---|
76 | {$plugin.NAME} |
---|
77 | {else} |
---|
78 | {/if} |
---|
79 | |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | <tr> |
---|
83 | |
---|
84 | <td width="50%" align="left" rel="actif"> |
---|
85 | {if $plugin.STATE == 'active'} |
---|
86 | <a href="{$plugin.U_ACTION}&action=deactivate"> |
---|
87 | {'Deactivate'|@translate}</a> |
---|
88 | {else} {/if} |
---|
89 | </td> |
---|
90 | <td width="50%" align="left" rel="inactif"> |
---|
91 | {if $plugin.STATE == 'inactive'} |
---|
92 | <a href="{$plugin.U_ACTION}&action=activate" >{'Activate'|@translate}</a> |
---|
93 | |
---|
94 | {else} {/if} |
---|
95 | |
---|
96 | </td> |
---|
97 | </tr> </table> |
---|
98 | </div> |
---|
99 | {/foreach} |
---|
100 | |
---|
101 | {if $smarty.foreach.plugins_name.total==0} |
---|
102 | [{$smarty.foreach.plugins_name.total}/{$nb_plugins}] |
---|
103 | |
---|
104 | </legend> |
---|
105 | <form action="{$action}" method="post" name="form_set_plugins" id="form1"> |
---|
106 | <input class="button" name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> |
---|
107 | <input class="button" name="set_plugins" type="submit" value="{'Activate'|@translate}" /> |
---|
108 | <label> |
---|
109 | {'nb'|@translate}:</label><input name="nb" type="text" value="{$nb}" size="5" /> |
---|
110 | <input name="list_visible" id="Hidden1" type="hidden" value="{$list_visible}" /> |
---|
111 | <input name="add_plugins" type="hidden" id="Hidden2" value="{$add_plugins}" /> |
---|
112 | <input class="button" type="submit" name="init_plugins" value="{'init'|@translate}" /> |
---|
113 | <input type="hidden" id="Hidden3" name="set" value="{$set}" /> |
---|
114 | <p> |
---|
115 | {/if} |
---|
116 | </p> |
---|
117 | </form> |
---|
118 | </fieldset> |
---|
119 | {*/if*} |
---|
120 | |
---|
121 | |
---|