{**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
{* Вывод фотографии *}
<img src="{$photo.Photo.path}" width="{$photo.Photo.width}" height="{$photo.Photo.height}">
<br>
{if not $photo._Voted}
{* Если человек еще не проголосовал, выводим голосование *}
<form name="ratingForm" method="POST" action="{$_THE.REQUEST_URI}">
<input name="action" value="voteForm" type="hidden">
{foreach from=$ratingScale item="score"}
<input type="radio" name="Score" value="{$score.value}">{$score.NName}
{/foreach}
<input type="submit" value="Проголосовать">
</form>
{else}
{* Если человек уже проголосовал, показываем оценку *}
Текущая оценка: {$photo.Rating|string_format:"%.2f"}
{/if}
{* /Вывод фотографии *}
{* Вывод комментариев *}
{xs2GetChildren var="comments" ParId=$photo.NodId}
{foreach from=$comments item="comment"}
<p>
<b>{$comment.CDate}</b><br>
{$comment.Text}
</p>
{/foreach}
{* Конец вывода комментариев *}
{* Форма добавления комментария *}
<form name="commentForm" method="POST" action="{$_THE.REQUEST_URI}">
<input name="action" value="commentForm" type="hidden">
<textarea name="Text"></textarea>
<input type="submit" value="Отправить">
</form>
{* Конец формы добавления комментария *}
|
|