Ignore:
Timestamp:
Jun 23, 2011, 2:29:02 PM (13 years ago)
Author:
cljosse
Message:

[extensions] set_plugins add functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/set_plugins/template/admin.tpl

    r11484 r11497  
    11<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    22<meta http-equiv="X-UA-Compatible" content="IE=IE9" />
    3 {html_head}
     3
    44{if $PHPWG_VERSION < 2.2 }
    5 
    65{include file= $SET_PLUGINS_PATH_ABS|@cat:'template/header_2_1.tpl'}
    76{else}
    87{include file= $SET_PLUGINS_PATH_ABS|@cat:'template/header_2_2.tpl'}
    98{/if}
    10 {/html_head}
     9
    1110
    1211<fieldset >
     
    2423      {$nb_plugins}</label>/
    2524      <label class="cluetip" title="{'s_pl_action3'|@translate}">
    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'}
    4127 <p>
    4228{/if}
     
    4531<td width="50%" align="left" name="plugins_name" rel="actif" class="pluginBoxNameCell" >
    4632    {if $plugin.STATE == 'active'}
    47 {$plugin.NAME}
    48 {else}
    49 {/if}
     33    <span style="color: {$plugin.COLOR}" > {$plugin.NAME}
     34    </span>
     35       
     36    {/if}
    5037</td>       
    5138
     
    7966 {if $smarty.foreach.plugins_name.total==0}
    8067  [{$smarty.foreach.plugins_name.total}/{$nb_plugins}]
    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'}
    9869   <p>
    9970     {/if}
     
    10172      </form>
    10273  </fieldset>
    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}
Note: See TracChangeset for help on using the changeset viewer.