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

Last change on this file since 26871 was 26871, checked in by ddtddt, 10 years ago

Checked compatibility with Piwigo 2.6

File size: 4.5 KB
Line 
1{combine_css path="plugins/nbc_ThemeChanger/theme/style.css"}
2
3{combine_script id='jquery.tablesorter' load='async' require='jquery' path='plugins/nbc_ThemeChanger/include/jquery.tablesorter.js'}
4
5{footer_script require='jquery.tablesorter'}{literal}
6jQuery(document).ready(function() {
7   // call the tablesorter plugin
8        jQuery("table#TCtablesorter").tablesorter({
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: { 
18                                sorter: false 
19                                }  ,
20                                3: { 
21                                sorter: false 
22                                } 
23                        }
24        });
25});
26{/literal}{/footer_script}
27
28
29{footer_script require='jquery.tablesorter'}{literal}
30jQuery(document).ready(function() {
31  jQuery(".assocLink").tipTip({
32                maxWidth: "auto",
33                activation: "hover",
34                edgeOffset: 10,
35                defaultPosition: "top",
36                delay: 0
37  });
38});
39{/literal}{/footer_script}
40
41
42
43<div class="titrePage">
44        <h3>Theme Changer</h3>
45</div>
46
47<!--br>
48[ <a href="{$params.U_ADD_ASSOC}">{'add_assoc'|@translate}</a> ]
49<br-->
50
51<table class="table2" id="TCtablesorter">
52  <thead>
53  <tr class="throw">
54    <th>{'Albums'|@translate}</th>
55    <th>{'Themes'|@translate}</th>
56    <th>{'Action'|@translate}</th>
57        <th>{'Status'|@translate}</th>
58  </tr>
59  </thead>
60  <!-- BEGIN assoc -->
61  <tbody>
62  {foreach from=$assoc2 item=assoc key=i} 
63 
64<tr>
65    <td>{$assoc.CATEGORY_NAME}</td>
66    <td>{$assoc.TEMPLATE}</td>
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>
70    </td>
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>
82       
83  </tr>
84  {/foreach}
85  </tbody>
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>
93    <table class="table2" id="TCassoc">
94                <thead>
95      <tr class="throw">
96        <th>{'Album'|@translate}</th>
97        <th>{'Theme'|@translate}</th>
98                <th>{'subAlbumsApply'|@translate}</th>
99      </tr>
100          </thead>
101          <tbody>
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}
122                        {if ($formulaire.THEMETOMODIFY==$Themes.id)}
123                                        <option value="{$Themes.id}" selected ="selected">{$Themes.id}</option>
124                                       
125                                {else}
126                                        <option value="{$Themes.id}" {$Themes.id}>{$Themes.id}</option>
127                                {/if}
128                               
129            {/foreach}
130                        <!-- END template_option -->
131                        </select>
132        </td>
133                <td>
134                        <div align="center"><input type="checkbox" name="ApplySubCategories" value="true">
135                        </div>
136                </td>
137          </tr>
138          </tbody>
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.