source: extensions/lmt/admin/plugin_admin_manageaut.tpl @ 15341

Revision 15341, 2.5 KB checked in by grum, 8 years ago (diff)

feature:2641 - Compatibility with Piwigo 2.4

Line 
1{literal}
2<script type="text/javascript">
3
4
5  function init() {
6    $("tr").filter(".TableRow_{/literal}{$themeconf.name}{literal}").bind("mouseover",
7      function (event) {
8        {/literal}
9        {if $datas.lmt_licence_logo=="80x15"}
10          txt="<img class='logo80x15' src='{$datas.img_directory}{$datas.default_licenceL}_80x15.png'>"+this.cells[1].innerHTML+"&nbsp;"+this.cells[2].innerHTML;
11        {elseif $datas.lmt_licence_logo=="88x31"}
12          txt="<table style='margin:0px;'><tr><td><img class='logo88x31' src='{$datas.img_directory}{$datas.default_licenceL}_88x31.png'></td><td>"+this.cells[1].innerHTML+"<br/>"+this.cells[2].innerHTML+"</td></tr></table>";
13        {else}
14          txt="{$datas.default_licencepublished} {$datas.default_licenceU}&nbsp;"+this.cells[1].innerHTML+"&nbsp;"+this.cells[2].innerHTML;
15        {/if}
16        {literal}
17        $("#iexample").html(txt);
18      }
19    );
20
21    $("tr").filter(".TableRow_{/literal}{$themeconf.name}{literal}").bind("mouseout",
22      function (event) {
23       // $("#iexample").html("");
24      }
25    );
26  }
27
28</script>
29{/literal}
30
31<p class="lmt">{'lmt_author_nfo'|@translate}</p>
32
33<fieldset >
34  <legend>{'lmt_author_title'|@translate}</legend>
35
36  <div style="float:left;">
37    {if $datas.nbauthor==0}
38    [{'lmt_nb_author_zero'|@translate}]
39    {elseif $datas.nbauthor==1}
40    [{'lmt_nb_author_one'|@translate}]
41    {else}
42    [{$datas.nbauthor}&nbsp;{'lmt_nb_authors'|@translate}]
43    {/if}
44    <br/>
45    <a href="{$datas.add_link}">{'lmt_add_author'|@translate}</a>
46    <table id="author_list" class="table2 littlefont">
47    <tr class="throw">
48      <th>#id</th>
49      <th>{'lmt_author_txt1'|@translate}</th>
50      <th>{'lmt_author_txt2'|@translate}</th>
51      <th>{'lmt_action'|@translate}</th>
52    </tr>
53    {foreach from=$datas.author_list key=name item=data}
54      <tr class="TableRow_{$themeconf.name}">
55        <td>{$data.id}</td>
56        <td>{$data.text1}</td>
57        <td>{$data.text2}</td>
58        <td>
59        {if $data.lnk_delete!=""}
60          <a href="{$data.lnk_delete}"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'lmt_delete'|@translate}"/></a>
61          <a href="{$data.lnk_edit}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'lmt_edit'|@translate}"/></a>
62        {/if}
63        </td>
64      </tr>
65    {/foreach}
66    </table>
67  </div>
68  <div id="iexample" style="float:left;margin:20px;text-align:left;width:50%;">
69  </div>
70</fieldset >
71
72
73<script type="text/javascript">
74  init();
75</script>
Note: See TracBrowser for help on using the repository browser.