source: extensions/nbc_ThemeChanger/admin/nbc_ThemeChanger_admin.tpl @ 10161

Last change on this file since 10161 was 10161, checked in by datajulien, 13 years ago

nbc_ThemeChanger_admin

Piwigo 2.2 compatibility upgrade

url rewrite for modification and suppression actions.

Update in version 2.0.5b of jquery.tablesorter plugin and correction of the autosort js bug when the table is empty

Modified files:

main.inc.php
admin/nbc_themeChanger_admin.tpl
admin/nbc_themeChanger_admin.php
include/jquery.tablesorter.js

File size: 4.5 KB
RevLine 
[10099]1{combine_css path="plugins/nbc_ThemeChanger/theme/style.css"}
[6642]2
[10099]3{combine_script id='jquery.tablesorter' load='async' require='jquery' path='plugins/nbc_ThemeChanger/include/jquery.tablesorter.js'}
[6648]4
[10099]5{footer_script require='jquery.tablesorter'}{literal}
6jQuery(document).ready(function() {
7   // call the tablesorter plugin
[10161]8        jQuery("table#TCtablesorter").tablesorter({
[10099]9                // extend the default setting to always sort on the first column
10                sortList : [[0,0]],
11                // extend the default setting to always include the zebra widget.
12                widgets : ['zebra'],
13                // On choisi ici les colonnes 2 et 3 (l'index commence à 0) // On désactive le tri sur cette colonne
14                headers : {
15                                0 : { sorter:'text' },
16                                1 : { sorter:'text' },
17                                2: { 
[6642]18                                sorter: false 
[6648]19                                }  ,
20                                3: { 
21                                sorter: false 
[6642]22                                } 
[10099]23                        }
24        });
[6642]25});
[10099]26{/literal}{/footer_script}
[6642]27
[10099]28
29{footer_script require='jquery.tablesorter'}{literal}
30jQuery(document).ready(function() {
31  jQuery(".assocLink").tipTip({
[6648]32                maxWidth: "auto",
33                activation: "hover",
34                edgeOffset: 10,
35                defaultPosition: "top",
36                delay: 0
[10099]37  });
[6648]38});
[10099]39{/literal}{/footer_script}
[6648]40
[6642]41
[10099]42
[3893]43<div class="titrePage">
44        <h3>Theme Changer</h3>
45</div>
46
[10099]47<!--br>
[3893]48[ <a href="{$params.U_ADD_ASSOC}">{'add_assoc'|@translate}</a> ]
[10099]49<br-->
[3893]50
[10161]51<table class="table2" id="TCtablesorter">
[6642]52  <thead>
[3893]53  <tr class="throw">
[10099]54    <th>{'Albums'|@translate}</th>
55    <th>{'Themes'|@translate}</th>
56    <th>{'Action'|@translate}</th>
[6648]57        <th>{'Status'|@translate}</th>
[3893]58  </tr>
[6642]59  </thead>
[3893]60  <!-- BEGIN assoc -->
[6642]61  <tbody>
[3893]62  {foreach from=$assoc item=assoc key=i} 
[6642]63 
64<tr>
[3893]65    <td>{$assoc.CATEGORY_NAME}</td>
66    <td>{$assoc.TEMPLATE}</td>
[6648]67    <td class="TDcenter">
68      <a  href="{$assoc.U_MODIFY}"><img src="{$themeconf.icon_dir}/register.png" class="assocLink" alt="{'modify_assoc'|@translate}" title="{'modify_assoc'|@translate}"></a>
69      <a  href="{$assoc.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate}');" ><img src="{$themeconf.icon_dir}/remove_s.png" class="assocLink" alt="{'delete_assoc'|@translate}" title="{'delete_assoc'|@translate}"></a>
[3893]70    </td>
[6648]71        <td class="TDcenter">
72                {if ($assoc.STATUS=="Active")}
73                                        <img src="{$themeconf.icon_dir}/validate_s.png" class="assocLink" alt="{'Valide_assoc'|@translate}" title="{'Valide_assoc'|@translate}">               
74                {else}
75                {if ($assoc.STATUS=="Delete")}
76                        <img src="{$themeconf.icon_dir}/errors.png" class="assocLink" alt="{'ErrorDelete_assoc'|@translate}" title="{'ErrorDelete_assoc'|@translate}" >
77                {else}
78                        <img src="{$themeconf.icon_dir}/infos.png" class="assocLink"  alt="{'ErrorUnactive_assoc'|@translate}" title="{'ErrorUnactive_assoc'|@translate}">
79                {/if}
80                {/if}           
81        </td>
[3893]82       
83  </tr>
84  {/foreach}
[10161]85  </tbody>
[3893]86  <!-- END assoc -->
87</table>
88
89<!-- BEGIN formulaire -->
90<form method="post" action="{$nbc_ThemeChanger_F_ACTION}" class="general">
91  <fieldset>
92    <legend>{$formulaire.DESCRIPION}</legend>
[10161]93    <table class="table2" id="TCassoc">
94                <thead>
[3893]95      <tr class="throw">
[10099]96        <th>{'Album'|@translate}</th>
97        <th>{'Theme'|@translate}</th>
98                <th>{'subAlbumsApply'|@translate}</th>
[3893]99      </tr>
[10161]100          </thead>
101          <tbody>
[3893]102      <tr>
103        <td>
104          <!-- BEGIN categorylist -->
105          <select class="categoryDropDown" name="categorychoise">
106            <!-- BEGIN parent_option -->
107                        {foreach from=$params.Categories item=Categories key=i}
108                                {if ($formulaire.IDTOMODIFY==$Categories.id)}
109                                        <option value="{$Categories.id}" selected ="selected">{$Categories.longName}</option>   
110                                {else}
111                                        <option value="{$Categories.id}">{$Categories.longName}</option>       
112                                {/if}
113                        {/foreach}
114            <!-- END parent_option -->
115          </select>
116          <!-- END categorylist -->
117        </td>
118        <td>
119                        <select name="template" id="template">
120                        <!-- BEGIN template_option -->
121                        {foreach from=$params.Themes item=Themes key=i}
[6573]122                        {if ($formulaire.THEMETOMODIFY==$Themes.id)}
[6642]123                                        <option value="{$Themes.id}" selected ="selected">{$Themes.id}</option>
[6573]124                                       
125                                {else}
[6642]126                                        <option value="{$Themes.id}" {$Themes.id}>{$Themes.id}</option>
[6573]127                                {/if}
128                               
[3893]129            {/foreach}
130                        <!-- END template_option -->
131                        </select>
132        </td>
[3954]133                <td>
134                        <div align="center"><input type="checkbox" name="ApplySubCategories" value="true">
135                        </div>
136                </td>
137          </tr>
[10161]138          </tbody>
[3893]139    </table>
140    <div align="center"><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} /></div>
141  </fieldset>
142</form>
143<!-- END formulaire -->
Note: See TracBrowser for help on using the repository browser.