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