2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
|
|
|
{block title}Помощь{/block}
|
|
|
|
|
|
|
|
{block header}
|
|
|
|
{$ticket->getName()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
<div class="post-author">
|
|
|
|
<a href="#" style="font-size:13px;">
|
|
|
|
<b>
|
|
|
|
{$ticket->getName()}
|
|
|
|
</b>
|
|
|
|
</a>
|
|
|
|
<br></b>Автор: <a href="/id{$ticket->getUser()->getId()}">{$ticket->getUser()->getFullName()}</a> | {$ticket->getUser()->getRegistrationIP()} | Статус: {$ticket->getStatus()}
|
|
|
|
</div>
|
|
|
|
<div class="text" style="padding-top: 10px;border-bottom: #ECECEC solid 1px;">
|
2021-11-17 22:39:22 +03:00
|
|
|
{$ticket->getText()|noescape}
|
2020-06-07 19:04:43 +03:00
|
|
|
<br></br>
|
|
|
|
</div>
|
|
|
|
<div style="padding-top: 5px;">
|
|
|
|
{$ticket->getTime()} |
|
|
|
|
<a href="/support/delete/{$id}?hash={$csrfToken}">Удалить</a>
|
|
|
|
</div><br/>
|
|
|
|
<div>
|
|
|
|
<form action="/al_comments.pl/create/support/reply/{$id}" method="post" style="margin:0;">
|
|
|
|
<textarea name="text" style="width: 100%;resize: vertical;"></textarea>
|
|
|
|
<div>
|
|
|
|
<!-- padding to fix <br/> bug -->
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<br>
|
|
|
|
<input type="submit" value="Ответить" class="button">
|
|
|
|
<select name="status" style="width: unset;">
|
|
|
|
<option value="1">Есть ответ</option>
|
|
|
|
<option value="2">Закрыто</option>
|
|
|
|
<option value="0">Вопрос на рассмотрении</option>
|
|
|
|
</select>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<p n:if="!$comments">Комментарии отсутствуют</p>
|
|
|
|
<table n:foreach="$comments as $comment" border="0" style="font-size: 11px;" class="post">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
{if $comment->getUType() === 0}
|
|
|
|
<td width="54" valign="top">
|
|
|
|
<img src="{$comment->getUser()->getAvatarUrl()}" width="50">
|
|
|
|
</td>
|
|
|
|
{else}
|
|
|
|
<td width="54" valign="top">
|
2020-07-16 23:09:48 +03:00
|
|
|
<img
|
2021-10-14 13:35:17 +03:00
|
|
|
src="{$comment->getAvatar()}"
|
2020-07-16 23:09:48 +03:00
|
|
|
style="max-width: 50px; filter: hue-rotate({$comment->getColorRotation()}deg);" />
|
2020-06-07 19:04:43 +03:00
|
|
|
</td>
|
|
|
|
{/if}
|
|
|
|
<td width="645" valign="top">
|
|
|
|
{if $comment->getUType() === 0}
|
|
|
|
<div class="post-author">
|
|
|
|
<a href="{$comment->getUser()->getURL()}"><b>
|
|
|
|
{$comment->getUser()->getFullName()}
|
|
|
|
</b></a> написал<br>
|
|
|
|
<a href="#" class="date">{$comment->getTime()}</a>
|
|
|
|
</div>
|
|
|
|
{elseif ($comment->getUType() === 1)}
|
|
|
|
<div class="post-author">
|
2020-07-16 23:09:48 +03:00
|
|
|
<a href="javascript:false">
|
|
|
|
<b>
|
2021-10-14 13:35:17 +03:00
|
|
|
{$comment->getAuthorName()}
|
2020-07-16 23:09:48 +03:00
|
|
|
</b>
|
|
|
|
</a>
|
|
|
|
{if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
|
|
|
<a href="{$comment->getUser()->getURL()}">
|
|
|
|
<span class="nobold">
|
|
|
|
({$comment->getUser()->getFirstName()} {iconv_substr($comment->getUser()->getLastName(), 0, 1)}.)
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
написал<br>
|
2020-06-07 19:04:43 +03:00
|
|
|
<a href="#" class="date">{$comment->getTime()}</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<div class="post-content" id="{$comment->getId()}">
|
|
|
|
<div class="text" id="text{$comment->getId()}">
|
2021-11-17 22:39:22 +03:00
|
|
|
{$comment->getText()|noescape}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
{if $comment->getUType() === 0}
|
|
|
|
<div class="post-menu">
|
|
|
|
<a href="/support/comment/{$comment->getId()}/delete">Удалить</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{/block}
|