<article class="content-page story">
	<div class="box_in">
		<h1 class="title h1">Личные сообщения</h1>
		<div class="pm-box">
			<nav id="pm-menu">
				[inbox]<span>Входящие</span>[/inbox]
				[outbox]<span>Отправленные</span>[/outbox]
				[new_pm]<span>Написать новое сообщение</span>[/new_pm]
			</nav>
			<div class="pm_status">
				{pm-progress-bar}
				{proc-pm-limit} % / ({pm-limit} сообщений)
			</div>
		</div>
		[pmlist]
		<div class="pmlist">
			{pmlist}
		</div>
		[/pmlist]
		[newpm]
		<h4 class="heading">Создать сообщение</h4>
		<div class="addform addpm">
			<ul class="ui-form">
				<li class="form-group combo">
					<div class="combo_field">
						<input placeholder="Имя адресата" type="text" name="name" value="{author}" class="wide" required>
					</div>
					<div class="combo_field">
						<input placeholder="Тема сообщения" type="text" name="subj" value="{subj}" class="wide" required>
					</div>
				</li>
				<li id="comment-editor">{editor}</li>
				<li><input type="checkbox" id="outboxcopy" name="outboxcopy" value="1" /> <label for="outboxcopy">Сохранить сообщение в папке "Отправленные"</label></li>  
			[recaptcha]
				<li>{recaptcha}</li>
			[/recaptcha]
			[question]
				<li class="form-group">
					<label for="question_answer">Вопрос: {question}</label>
					<input placeholder="Ответ" type="text" name="question_answer" id="question_answer" class="wide" required>
				</li>
			[/question]
			</ul>
			<div class="form_submit">
				[sec_code]
					<div class="c-captcha">
						{sec_code}
						<input placeholder="Повторите код" title="Введите код указанный на картинке" type="text" name="sec_code" id="sec_code" required>
					</div>
				[/sec_code]
				<button class="btn btn-big" type="submit" name="add"><b>Отправить</b></button>
				<button class="btn-border btn-big" type="button" onclick="dlePMPreview()">Предпросмотр</button>
			</div>
		</div>
		[/newpm]
	</div>
	[readpm]

<div id="{comment-id}" class="comment">
  <div class="comment__body">
    <div class="comment__head">
      <span class="comment__user"><img src="{foto}" class="comment__avatar"> <span class="comment__username text-truncate">[online]<span class="com_online" data-balloon-pos="up" data-balloon="{login} - онлайн"></span>[/online] {author}</span></span>
      <time class="comment__date-time">
        {date}
      </time>
    </div>
    
    <div class="comment__content">
      <h4 class="title">{subj}</h4>
      <div>{text}</div>

    </div>
    <!---->
    <div class="comment__controls">
      <div class="button_link">
          
          	[reply]
          	<span class="Comments_iconButton" data-balloon-pos="up" data-balloon="Ответить"><i class="fa-regular fa-comment-plus"></i></span>
            [/reply] 
            
            [ignore]
          	<span class="Comments_iconButton" data-balloon-pos="up" data-balloon="Игнорировать"><i class="fa-regular fa-comment-quote"></i></span>
            [/ignore] 
            
            [complaint]
			<span class="Comments_iconButton" data-balloon-pos="up" data-balloon="Жалоба"><i class="fa-regular fa-brake-warning"></i></span>
            [/complaint] 
            
            [not-group=5] 

            [del]
            <span class="Comments_iconButton" data-balloon-pos="up" data-balloon="Удалить"><i class="fa-regular fa-delete-left"></i></span>
            [/del]

			[/not-group]
      </div>

      
    </div>

  </div>

</div>




	[/readpm]
</article>