<!-- BEGIN: MAIN -->

<div class="moderation-page centerwrap clearfix pt30 pb20 page-offer">
  <div class="" style="margin: auto">
    <h1 class="semibold font-OpenSans f32">
      Модерация
    </h1>

    <div class="block-response mb15">
      <i class="ico-arrow-left dib v-align-m"></i>
      <a class="dib v-align-m f14 color-gray color-text" href="{PHP|cot_url('moderation')}">На главную</a>
    </div>

    <div class="query-card white-bg-border">
      <h1>Диалоги между пользователями</h1>

      <div class="mb20">
      	<form action="{PHP|cot_url('moderation', 'm=ds_dialogs')}" method="get">
          <input type="hidden" name="e" value="{PHP.e}" />
          <input type="hidden" name="m" value="{PHP.m}" />
      		<table width="100%" cellpadding="5" cellspacing="0">
      			<tr>
      				<td width="100">Пользователь:</td>
      				<td>{SEARCH_USERS}</td>
      			</tr>
      			<tr>
      				<td></td>
      				<td><input type="submit" name="search" class="btn green-btn" value="{PHP.L.Search}" /></td>
      			</tr>
      		</table>
      	</form>
      </div>

      <div id="listcertificates">
        <table class="table-style">
          <thead>
            <tr>
              <th style="width: 20%; text-align: center;">Диалог</th>
              <th style="width: 80%; text-align: center;">Последнее сообщение</th>
            </tr>
          </thead>
          <tbody>
            <!-- BEGIN: DS_ROW -->
            <tr>
              <td>
                <img class="rounded" alt="{DS_TO_USER_NICKNAME}" src="<!-- IF {DS_TO_USER_AVATAR_SRC} -->{DS_TO_USER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" width="30" style="vertical-align: middle;"/>
                <span>{DS_TO_USER_NAME}</span>
              </td>
              <td onclick="window.open('{DS_DIAOG_URL}','','Toolbar=0,Location=0,Directories=0,Status=0,Menubar=0,Scrollbars=1,Resizable=0,Width=750,Height=700');return false;" style="cursor: pointer">
                <div style="float: left;">
                  <img class="rounded" alt="{DS_FROM_USER_NICKNAME}" src="<!-- IF {DS_FROM_USER_AVATAR_SRC} -->{DS_FROM_USER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" width="30"/>
                </div>
                <div class="ml40">
                  {DS_FROM_USER_NAME}
                  <small class="pull-right">{DS_DATE}</small>
                  <br />
                  <small>{DS_TEXT}</small>
                </div>
              </td>
            </tr>
            <!-- END: DS_ROW -->
            <!-- IF {DS_DIALOGS_CNT} == 0 -->
            <tr>
              <td colspan="2">Диалогов не найдено</td>
            </tr>
            <!-- ENDIF -->
          </tbody>
        </table>
      </div>

      <!-- IF {PAGENAV_COUNT} > 0 -->
        <div class="paging">
          <div class="p1">
            <ul>{PAGENAV_PAGES}</ul>
          </div>
        </div>
      <!-- ENDIF -->

    </div>

  </div>
</div>

<script>
  $('.moderation-page').find('input[type="text"], select').addClass('input-styled');
</script>

<!-- END: MAIN -->