source: extensions/mypolls/admin/plugin_admin_list.tpl @ 16308

Last change on this file since 16308 was 3397, checked in by grum, 15 years ago

Add plugin MyPolls - this release is not published in PEM (functionnal but not tested yet...)

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1{literal}
2<script type="text/javascript">
3
4  function load_poll_detail(poll_id)
5  {
6    var doc = document.getElementById("idetail"+poll_id);
7
8    if(doc.innerHTML == '')
9    {
10      http_request=create_httpobject('get', '', '{/literal}{$datas.MYPOLLS_AJAX_URL_POLL_DETAIL}{literal}'+poll_id, false);
11      http_request.send(null);
12      doc.innerHTML=http_request.responseText;
13    }
14    else
15    {
16      doc.innerHTML = '';
17    }
18  }
19
20</script>
21{/literal}
22
23{$datas.MYPOLLS_NB_POLLS}<br>
24
25<a href="{$datas.LNK_CREATE}" title="{'mypolls_new_poll'|@translate}">{'mypolls_new_poll'|@translate}</a>
26
27<table class="table2 littlefont" id="polls_list">
28  <tr class="throw">
29    <th>{'mypolls_list_id'|@translate}</th>
30    <th>{'mypolls_list_date'|@translate}</th>
31    <th>{'mypolls_list_title'|@translate}</th>
32    <th>{'mypolls_list_enabled'|@translate}</th>
33    <th>{'mypolls_list_visible'|@translate}</th>
34    <th>{'mypolls_list_nbquestions'|@translate}</th>
35    <th>{'mypolls_list_total'|@translate}</th>
36    <th>{'mypolls_list_last_vote'|@translate}</th>
37    <th colspan=2>{'mypolls_list_actions'|@translate}</th>
38  </tr>
39  {if isset($mypolls_nb_polls_rows) and count($mypolls_nb_polls_rows)}
40    {foreach from=$mypolls_nb_polls_rows key=name item=mypolls_nb_polls_row}
41      <tr class="TableRow" style="cursor:pointer;" onclick="load_poll_detail({$mypolls_nb_polls_row.ID});">
42        <td>{$mypolls_nb_polls_row.ID}</a></td>
43        <td>{$mypolls_nb_polls_row.DATE}</td>
44        <td>{$mypolls_nb_polls_row.TITLE}</td>
45        <td>{$mypolls_nb_polls_row.ENABLED}</td>
46        <td>{$mypolls_nb_polls_row.VISIBLE}</td>
47        <td>{$mypolls_nb_polls_row.NBQUESTIONS}</td>
48        <td>{$mypolls_nb_polls_row.TOTAL}</td>
49        <td>{$mypolls_nb_polls_row.LAST_VOTE}</td>
50        <td><a href="{$mypolls_nb_polls_row.LNK_VIEW}" title="{'mypolls_list_lnk_view'|@translate}">
51          <img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'mypolls_list_lnk_view'|@translate}"/></a></td>
52        <td><a href="{$mypolls_nb_polls_row.LNK_MODIFY}" title="{'mypolls_list_lnk_modify'|@translate}">
53          <img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'mypolls_list_lnk_modify'|@translate}"/></a></td>
54      </tr>
55      <tr style="height:0px;"><td colspan=10 id="idetail{$mypolls_nb_polls_row.ID}"></td></tr>
56    {/foreach}
57  {/if}
58</table>
59
Note: See TracBrowser for help on using the repository browser.