| 26 | | {$smarty.foreach.plugins_loop.total}</label>] </legend> |
| 27 | | <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> |
| 28 | | <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" class="cluetip button" title="{'s_pl_action4'|@translate}" /> |
| 29 | | <input name="set_plugins" type="submit" value="{'Activate'|@translate}" class="cluetip" title="{'s_pl_action5'|@translate}" /> |
| 30 | | <label class="cluetip" title="{'s_pl_action6'|@translate}"> {'nb'|@translate}:</label> |
| 31 | | <input name="nb" type="text" value="{$nb}" size="5" /> |
| 32 | | <input name="list_visible" id="list_visible" type="hidden" value="{$list_visible}" /> |
| 33 | | <input name="add_plugins" type="hidden" id="add_plugins" value="{$add_plugins}" /> |
| 34 | | <input type="submit" name="init_plugins" class="cluetip" title="{'s_pl_action7'|@translate}" value="{'store'|@translate}" /> |
| 35 | | <input type="hidden" id="set" name="set" value="{$set}" /> |
| 36 | | <input class="cluetip" title="{'s_pl_action8'|@translate} {$edited_file}" type="submit" value="{'save_file'|@translate}" name="submit" /> |
| 37 | | {if $restore} |
| 38 | | <input class="cluetip" title="{'s_pl_action9'|@translate} {$edited_file}" type="submit" |
| 39 | | value="{'restore'|@translate}" name="restore" onclick="return confirm('{'restore_confirm'|@translate|escape:'javascript'}');" /> |
| 40 | | {/if} |
| | 25 | {$smarty.foreach.plugins_loop.total}</label>] |
| | 26 | {include file=$SET_PLUGINS_PATH_ABS|@cat:'template/menu.tpl'} |
| 81 | | </legend> |
| 82 | | <form action="{$action}" method="post" name="form_set_plugins" id="form1"> |
| 83 | | <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" class="cluetip button" |
| 84 | | title="{'s_pl_action4'|@translate}" /> |
| 85 | | <input name="set_plugins" type="submit" value="{'Activate'|@translate}" class="cluetip" |
| 86 | | title="{'s_pl_action5'|@translate}" /> |
| 87 | | <label class="cluetip" title="{'s_pl_action6'|@translate}"> |
| 88 | | {'nb'|@translate}:</label> |
| 89 | | <input name="nb" type="text" value="{$nb}" size="5" /> |
| 90 | | <input name="list_visible" id="Hidden1" type="hidden" value="{$list_visible}" /> |
| 91 | | <input name="add_plugins" type="hidden" id="add_plugins" value="{$add_plugins}" /> |
| 92 | | <input type="submit" name="init_plugins" class="cluetip" title="{'s_pl_action7'|@translate}" value="{'store'|@translate}" /> |
| 93 | | <input type="hidden" id="Hidden3" name="set" value="{$set}" /> |
| 94 | | <input class="cluetip" title="{'s_pl_action8'|@translate} {$edited_file}" type="submit" value="{'save_file'|@translate}" name="submit" /> |
| 95 | | {if $restore} |
| 96 | | <input class="cluetip" title="{'s_pl_action9'|@translate} {$edited_file}" type="submit" value="{'restore'|@translate}" name="restore" onclick="return confirm('{'restore_confirm'|@translate|escape:'javascript'}');" /> |
| 97 | | {/if} |
| | 68 | {include file=$SET_PLUGINS_PATH_ABS|@cat:'template/menu.tpl'} |
| 103 | | {*/if*} |
| 104 | | |
| 105 | | {footer_script} |
| 106 | | var root = '{$SET_PLUGINS_PATH}'; |
| 107 | | var get_post = "{$SET_PLUGINS_PATH}include/set_post.php"; |
| 108 | | var list_visible = '{$list_visible}'; |
| 109 | | var nb = '{$nb}'; |
| 110 | | {if $liste_plugins} |
| 111 | | liste_plugins=new Array(); |
| 112 | | {foreach from=$liste_plugins item=plugin name=plugins_name} |
| 113 | | |
| 114 | | liste_plugins.push('{$plugin.NAME}') ; |
| 115 | | {/foreach} |
| 116 | | {else} |
| 117 | | var liste_plugins = new Array(); |
| 118 | | {/if} |
| 119 | | {literal} |
| 120 | | jQuery(document).ready(function() { |
| 121 | | jQuery.ajax({ method: 'POST', |
| 122 | | url: get_post, |
| 123 | | data: { root:root,list_visible:list_visible,nb:nb }, |
| 124 | | dataType: 'json', |
| 125 | | success: function(data) { |
| 126 | | n=data; |
| 127 | | } }); |
| 128 | | }); |
| 129 | | {/literal}{/footer_script} |