[5381] | 1 | {literal} |
---|
[5931] | 2 | <script type="text/javascript"> |
---|
[5381] | 3 | $(document).ready(function(){ |
---|
[5569] | 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 | } |
---|
[5381] | 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 | |
---|
[2531] | 32 | <div class="titrePage"> |
---|
[5021] | 33 | <h2>{'Waiting'|@translate} {$TABSHEET_TITLE}</h2> |
---|
[2531] | 34 | </div> |
---|
| 35 | |
---|
| 36 | <h3>{'User comments validation'|@translate}</h3> |
---|
| 37 | |
---|
| 38 | {if !empty($comments) } |
---|
| 39 | <form method="post" action="{$F_ACTION}"> |
---|
| 40 | |
---|
[5381] | 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> |
---|
[2531] | 48 | <div class="comment"> |
---|
[3185] | 49 | <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}"></a> |
---|
[2531] | 50 | <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p> |
---|
| 51 | <blockquote>{$comment.CONTENT}</blockquote> |
---|
[2944] | 52 | </div> |
---|
[5381] | 53 | </td> |
---|
| 54 | </tr> |
---|
[2531] | 55 | {/foreach} |
---|
[5381] | 56 | </table> |
---|
[2531] | 57 | |
---|
[5381] | 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 | |
---|
[2531] | 65 | <p class="bottomButtons"> |
---|
[5381] | 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}> |
---|
[2531] | 68 | </p> |
---|
| 69 | |
---|
| 70 | </form> |
---|
[3185] | 71 | {/if} |
---|