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