2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
2021-11-28 16:44:22 +03:00
|
|
|
{block title}{_menu_help}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
|
|
|
{$ticket->getName()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
<div class="post-author">
|
|
|
|
<a href="#" style="font-size:13px;">
|
|
|
|
<b>
|
|
|
|
{$ticket->getName()}
|
|
|
|
</b>
|
|
|
|
</a>
|
2021-11-28 16:44:22 +03:00
|
|
|
<br></b>{_author}: <a href="/id{$ticket->getUser()->getId()}">{$ticket->getUser()->getFullName()}</a> | {$ticket->getUser()->getRegistrationIP()} | {_status}: {$ticket->getStatus()}.
|
2020-06-07 19:04:43 +03:00
|
|
|
</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()} |
|
2021-11-28 16:44:22 +03:00
|
|
|
<a href="/support/delete/{$id}?hash={$csrfToken}">{_delete}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div><br/>
|
|
|
|
<div>
|
|
|
|
<form action="/al_comments.pl/create/support/reply/{$id}" method="post" style="margin:0;">
|
2021-12-26 20:15:32 +03:00
|
|
|
<textarea name="text" id="answer_text" style="width: 100%;resize: vertical;"></textarea>
|
2020-06-07 19:04:43 +03:00
|
|
|
<div>
|
|
|
|
<!-- padding to fix <br/> bug -->
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
2021-12-26 20:15:32 +03:00
|
|
|
<br />
|
|
|
|
<div style="float: left;">
|
|
|
|
<input type="submit" value="{_write}" class="button">
|
|
|
|
<select name="status" style="width: unset;">
|
|
|
|
<option value="1">{_support_status_1}</option>
|
|
|
|
<option value="2">{_support_status_2}</option>
|
|
|
|
<option value="0">{_support_status_0}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div n:if="!is_null($fastAnswers)" style="float: right;">
|
|
|
|
<a class="button" href="javascript:showSupportFastAnswerDialog(fastAnswers)">{_fast_answers}</a>
|
|
|
|
</div>
|
|
|
|
<br />
|
2020-06-07 19:04:43 +03:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2021-11-28 16:44:22 +03:00
|
|
|
<p n:if="!$comments">{_no_comments}</p>
|
2021-11-25 22:20:52 +03:00
|
|
|
{var $printedSupportGreeting = false}
|
2020-06-07 19:04:43 +03:00
|
|
|
<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()}
|
2021-11-28 16:44:22 +03:00
|
|
|
</b></a> {($comment->getUser()->isFemale() ? tr("post_writes_f") : tr("post_writes_m"))}<br>
|
2020-06-07 19:04:43 +03:00
|
|
|
<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">
|
2021-12-07 21:05:04 +03:00
|
|
|
{var lastName = $comment->getUser()->getLastName()}
|
2021-12-07 21:50:14 +03:00
|
|
|
{if empty(trim($lastName))}
|
2021-12-07 21:11:51 +03:00
|
|
|
({$comment->getUser()->getFirstName()})
|
2021-12-07 21:05:04 +03:00
|
|
|
{else}
|
|
|
|
({$comment->getUser()->getFirstName()} {iconv_substr($lastName, 0, 1)}.)
|
|
|
|
{/if}
|
2020-07-16 23:09:48 +03:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{/if}
|
2021-11-28 16:44:22 +03:00
|
|
|
{_post_writes_m}<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-25 22:23:08 +03:00
|
|
|
{if $comment->getUType() === 1 && !$printedSupportGreeting}
|
2021-11-25 22:20:52 +03:00
|
|
|
{var $printedSupportGreeting = true}
|
2021-11-28 16:44:22 +03:00
|
|
|
{tr("support_greeting_hi", $ticket->getUser()->getFullName())}
|
2021-11-25 22:20:52 +03:00
|
|
|
<br/>
|
|
|
|
<br/>
|
2021-12-26 20:15:32 +03:00
|
|
|
|
2021-11-25 22:20:52 +03:00
|
|
|
{$comment->getText()|noescape}
|
|
|
|
<br/>
|
|
|
|
<br/>
|
2021-12-26 20:15:32 +03:00
|
|
|
|
2021-11-28 16:44:22 +03:00
|
|
|
{tr("support_greeting_regards", OPENVK_ROOT_CONF["openvk"]["appearance"]["name"])|noescape}
|
2021-11-25 22:20:52 +03:00
|
|
|
{else}
|
|
|
|
{$comment->getText()|noescape}
|
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-12-26 20:15:32 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{if $comment->getUType() === 0}
|
2021-11-25 22:20:52 +03:00
|
|
|
<div class="post-menu">
|
2021-11-28 16:44:22 +03:00
|
|
|
<a href="/support/comment/{$comment->getId()}/delete">{_delete}</a>
|
2021-11-25 22:20:52 +03:00
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
2021-12-15 01:56:23 +03:00
|
|
|
|
2021-12-18 17:17:18 +03:00
|
|
|
{if $comment->getUType() === 1 && !is_null($comment->isLikedByUser())}
|
2021-12-15 01:56:23 +03:00
|
|
|
<div class="post-menu">
|
|
|
|
<strong>
|
|
|
|
{if $comment->isLikedByUser()}
|
|
|
|
{_support_good_answer_agent}
|
|
|
|
{else}
|
|
|
|
{_support_bad_answer_agent}
|
|
|
|
{/if}
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-12-26 20:15:32 +03:00
|
|
|
|
|
|
|
<script>
|
|
|
|
const fastAnswers = [
|
|
|
|
{foreach $fastAnswers as $answer}
|
|
|
|
{$answer},
|
|
|
|
{/foreach}
|
|
|
|
];
|
|
|
|
</script>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|