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

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

NBC_ThemeChanger
Version 2.2.0.a
Piwigo 2.2 compatibility upgrade

File size: 4.6 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("#tablesorter").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<ul class="categoryActions">
47        <!--li><a href="{$params.U_HELP}" onclick="popuphelp(this.href); return false;" title="{'HELP'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li-->
48</ul>
49
50<!--br>
51[ <a href="{$params.U_ADD_ASSOC}">{'add_assoc'|@translate}</a> ]
52<br-->
53
54<table class="table2" id="tablesorter">
55  <thead>
56  <tr class="throw">
57    <th>{'Albums'|@translate}</th>
58    <th>{'Themes'|@translate}</th>
59    <th>{'Action'|@translate}</th>
60        <th>{'Status'|@translate}</th>
61  </tr>
62  </thead>
63  <!-- BEGIN assoc -->
64  <tbody>
65  {foreach from=$assoc item=assoc key=i} 
66 
67<tr>
68    <td>{$assoc.CATEGORY_NAME}</td>
69    <td>{$assoc.TEMPLATE}</td>
70    <td class="TDcenter">
71      <a  href="{$assoc.U_MODIFY}"><img src="{$themeconf.icon_dir}/register.png" class="assocLink" alt="{'modify_assoc'|@translate}" title="{'modify_assoc'|@translate}"></a>
72      <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>
73    </td>
74        <td class="TDcenter">
75                {if ($assoc.STATUS=="Active")}
76                                        <img src="{$themeconf.icon_dir}/validate_s.png" class="assocLink" alt="{'Valide_assoc'|@translate}" title="{'Valide_assoc'|@translate}">               
77                {else}
78                {if ($assoc.STATUS=="Delete")}
79                        <img src="{$themeconf.icon_dir}/errors.png" class="assocLink" alt="{'ErrorDelete_assoc'|@translate}" title="{'ErrorDelete_assoc'|@translate}" >
80                {else}
81                        <img src="{$themeconf.icon_dir}/infos.png" class="assocLink"  alt="{'ErrorUnactive_assoc'|@translate}" title="{'ErrorUnactive_assoc'|@translate}">
82                {/if}
83                {/if}           
84        </td>
85       
86  </tr>
87  {/foreach}
88 
89  <!-- END assoc -->
90</table>
91
92<!-- BEGIN formulaire -->
93<form method="post" action="{$nbc_ThemeChanger_F_ACTION}" class="general">
94  <fieldset>
95    <legend>{$formulaire.DESCRIPION}</legend>
96    <table class="table2">
97      <tr class="throw">
98        <th>{'Album'|@translate}</th>
99        <th>{'Theme'|@translate}</th>
100                <th>{'subAlbumsApply'|@translate}</th>
101      </tr>
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         
139    </table>
140       
141    <div align="center"><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} /></div>
142
143  </fieldset>
144</form>
145<!-- END formulaire -->
Note: See TracBrowser for help on using the repository browser.