source: trunk/admin/themes/default/template/comments.tpl @ 5931

Last change on this file since 5931 was 5931, checked in by nikrou, 14 years ago

Fix some errors in generated html

  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1{literal}
2<script type="text/javascript">
3$(document).ready(function(){
4  $(".checkComment").click(function(event) {
5    if (event.target.type !== 'checkbox') {
6      var checkbox = $(this).children("input[type=checkbox]");
7      $(checkbox).attr('checked', !$(checkbox).is(':checked'));
8    }
9  });
10
11  $("#commentSelectAll").click(function () {
12    $(".checkComment input[type=checkbox]").attr('checked', true);
13    return false;
14  });
15
16  $("#commentSelectNone").click(function () {
17    $(".checkComment input[type=checkbox]").attr('checked', false);
18    return false;
19  });
20
21  $("#commentSelectInvert").click(function () {
22    $(".checkComment input[type=checkbox]").each(function() {
23      $(this).attr('checked', !$(this).is(':checked'));
24    });
25    return false;
26  });
27
28});
29</script>
30{/literal}
31
32<div class="titrePage">
33  <h2>{'Waiting'|@translate} {$TABSHEET_TITLE}</h2>
34</div>
35
36<h3>{'User comments validation'|@translate}</h3>
37
38{if !empty($comments) }
39<form method="post" action="{$F_ACTION}">
40 
41<table width="99%">
42  {foreach from=$comments item=comment name=comment}
43  <tr valign="top" class="{if $smarty.foreach.comment.index is odd}row2{else}row1{/if}">
44    <td style="width:50px;" class="checkComment">
45      <input type="checkbox" name="comments[]" value="{$comment.ID}">
46    </td>
47    <td>
48  <div class="comment">
49    <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}"></a>
50    <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>
51    <blockquote>{$comment.CONTENT}</blockquote>
52  </div>
53    </td>
54  </tr>
55  {/foreach}
56</table>
57
58  <p class="checkActions">
59    {'Select:'|@translate}
60    <a href="#" id="commentSelectAll">{'All'|@translate}</a>,
61    <a href="#" id="commentSelectNone">{'None'|@translate}</a>,
62    <a href="#" id="commentSelectInvert">{'Invert'|@translate}</a>
63  </p>
64
65  <p class="bottomButtons">
66    <input class="submit" type="submit" name="validate" value="{'Validate'|@translate}" {$TAG_INPUT_ENABLED}>
67    <input class="submit" type="submit" name="reject" value="{'Reject'|@translate}" {$TAG_INPUT_ENABLED}>
68  </p>
69
70</form>
71{/if}
Note: See TracBrowser for help on using the repository browser.