[11436] | 1 | <link href="../theme.css" rel="stylesheet" type="text/css" /> |
---|
| 2 | {* $Id$ *} |
---|
| 3 | {* |
---|
| 4 | {if isset($comment.IN_EDIT)} |
---|
| 5 | <a name="edit_comment"></a> |
---|
| 6 | <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> |
---|
| 7 | <fieldset> |
---|
| 8 | <legend>{'Edit a comment'|@translate}</legend> |
---|
| 9 | <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> |
---|
| 10 | <input type="hidden" name="key" value="{$comment.KEY}"> |
---|
| 11 | <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> |
---|
| 12 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
| 13 | </fieldset> |
---|
| 14 | </form> |
---|
| 15 | {else} |
---|
| 16 | <table> |
---|
| 17 | <tr> |
---|
| 18 | <td id="des_m_p" class="padding"> |
---|
| 19 | <div class="text" id="scroll"> |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | </div> |
---|
| 23 | {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } |
---|
| 24 | |
---|
| 25 | {/if} |
---|
| 26 | </td> |
---|
| 27 | </tr> |
---|
| 28 | </table> |
---|
| 29 | |
---|
| 30 | {/if} |
---|
| 31 | </fieldset> |
---|
| 32 | </li> |
---|
| 33 | {/foreach} |
---|
| 34 | </ul> |
---|
| 35 | |
---|
| 36 | *} |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | <ul class="thumbnailCategories"> |
---|
[11346] | 41 | {foreach from=$comments item=comment name=comment_loop} |
---|
[11436] | 42 | <li> |
---|
| 43 | <fieldset> |
---|
| 44 | <legend> |
---|
| 45 | <b>{$comment.AUTHOR}</b> - {$comment.DATE} |
---|
| 46 | <spacer height="18" width="44"> </spacer> |
---|
| 47 | </legend> |
---|
| 48 | <div class="actions" style="float:right"> |
---|
[11346] | 49 | {if isset($comment.U_DELETE)} |
---|
| 50 | <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> |
---|
| 51 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" alt="[delete]"> |
---|
| 52 | </a> |
---|
| 53 | {/if} |
---|
| 54 | {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} |
---|
| 55 | <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> |
---|
| 56 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" alt="[edit]"> |
---|
| 57 | </a> |
---|
| 58 | {/if} |
---|
| 59 | {if isset($comment.U_VALIDATE)} |
---|
| 60 | <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> |
---|
| 61 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" alt="[validate]"> |
---|
| 62 | </a> |
---|
| 63 | {/if} |
---|
| 64 | </div> |
---|
[11436] | 65 | <table> |
---|
| 66 | <tbody> |
---|
| 67 | <tr> |
---|
[11346] | 68 | |
---|
[11436] | 69 | <td class="padding"> |
---|
| 70 | {* image *} |
---|
| 71 | {if isset($comment.TN_SRC)} |
---|
| 72 | <a href="{$comment.U_PICTURE}"> |
---|
| 73 | <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> |
---|
| 74 | </a> |
---|
| 75 | {else} |
---|
| 76 | <spacer height="18" width="44"> </spacer> |
---|
| 77 | {/if} </td> |
---|
| 78 | |
---|
| 79 | <td id="des_m_p" class="padding"> |
---|
| 80 | <div class="text" id="scroll"> |
---|
| 81 | {* comment *} |
---|
| 82 | {$comment.CONTENT} |
---|
| 83 | |
---|
| 84 | </div> |
---|
| 85 | </td> |
---|
| 86 | </tr> |
---|
| 87 | |
---|
| 88 | </tbody></table> |
---|
| 89 | </fieldset> |
---|
| 90 | |
---|
[11346] | 91 | </li> |
---|
| 92 | {/foreach} |
---|
[11436] | 93 | </ul> |
---|