source: extensions/Comments_on_Albums/template/coa_admin.tpl @ 9624

Last change on this file since 9624 was 9624, checked in by mistic100, 13 years ago

[plugins] Comments on Albums

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                $("#commentSelectAll").click(function () {
11                        $(".checkComment input[type=checkbox]").attr('checked', true);
12                        return false;
13                });
14                $("#commentSelectNone").click(function () {
15                        $(".checkComment input[type=checkbox]").attr('checked', false);
16                        return false;
17                });
18                $("#commentSelectInvert").click(function () {
19                        $(".checkComment input[type=checkbox]").each(function() {
20                                $(this).attr('checked', !$(this).is(':checked'));
21                        });
22                        return false;
23                });
24        });
25</script>
26{/literal}
27
28<div class="titrePage">
29        <h2>{'Waiting'|@translate} {$TABSHEET_TITLE}</h2>
30</div>
31
32<h3>{'User comments validation'|@translate}</h3>
33
34{if !empty($comments) }
35<form method="post" action="{$F_ACTION}">
36
37        <table width="99%">
38        {foreach from=$comments item=comment name=comment}
39                <tr valign="top" class="{if $smarty.foreach.comment.index is odd}row2{else}row1{/if}">
40                        <td style="width:50px;" class="checkComment">
41                                <input type="checkbox" name="comments[]" value="{$comment.ID}">
42                        </td>
43                        <td>
44                                <div class="comment">
45                                        <a class="illustration" href="{$comment.CAT_URL}">{$comment.CAT_NAME}</a>
46                                        <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>
47                                        <blockquote>{$comment.CONTENT}</blockquote>
48                                </div>
49                        </td>
50                </tr>
51        {/foreach}
52        </table>
53
54        <p class="checkActions">
55                {'Select:'|@translate}
56                <a href="#" id="commentSelectAll">{'All'|@translate}</a>,
57                <a href="#" id="commentSelectNone">{'None'|@translate}</a>,
58                <a href="#" id="commentSelectInvert">{'Invert'|@translate}</a>
59        </p>
60
61        <p class="bottomButtons">
62                <input class="submit" type="submit" name="validate_albums" value="{'Validate'|@translate}">
63                <input class="submit" type="submit" name="reject_albums" value="{'Reject'|@translate}">
64        </p>
65
66</form>
67{/if}
Note: See TracBrowser for help on using the repository browser.