<!-- 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>

      {FILE "{PHP.cfg.themes_dir}/{PHP.theme}/warnings.tpl"}

    	<script type="text/javascript">
    		$(document).ready(function()
    		{
    			$('.moreinfo').hide();
    			$(".mor_info_on_off").click(function()
    			{
    				var kk = $(this).attr('id');
    				$('#'+kk).children('.moreinfo').slideToggle(100);
    			});
    		});
    	</script>

      <form id="form_valqueue" name="form_valqueue" method="post" action="{ADMIN_PAGE_FORM_URL}">
        <input type="hidden" name="paction" value="" />

      	<table width="100%" cellpadding="5" cellspacing="0">
      		<tr>
      			<td width="100">Фильтр:</td>
      			<td>
              {ADMIN_PAGE_FILTER}
            </td>
      		</tr>
          <!-- IF {ADMIN_PAGE_TOTALITEMS} > 1 -->
      		<tr>
      			<td width="100">Сортировка:</td>
      			<td>
              <div>
                {ADMIN_PAGE_ORDER}
              </div>
              <div class="mt10">
                {ADMIN_PAGE_WAY}
              </div>
            </td>
      		</tr>
          <!-- ENDIF -->
      		<tr>
      			<td></td>
      			<td><input type="submit" name="paction" class="btn green-btn" value="{PHP.L.Search}" onclick="this.form.paction.value=this.value"/></td>
      		</tr>
      	</table>

  			<table class="table-style response-table">
  				<tr>
  					<td class="coltop width5">
  						<!-- IF {PHP.cfg.jquery} -->
  						<input name="allchek" class="checkbox" type="checkbox" value="" onclick="$('.checkbox').attr('checked', this.checked);" />
  						<!-- ENDIF -->
  					</td>
  					<td class="coltop width5">{PHP.L.Id}</td>
  					<td class="coltop width65">{PHP.L.Title}</td>
  					<td class="coltop width25">{PHP.L.Action}</td>
  				</tr>
          <!-- BEGIN: PAGE_ROW -->
  				<tr>
  					<td class="centerall {ADMIN_PAGE_ODDEVEN}">
  						<input name="s[{ADMIN_PAGE_ID}]" type="checkbox" class="checkbox" />
  					</td>
  					<td class="centerall {ADMIN_PAGE_ODDEVEN}">
  						{ADMIN_PAGE_ID}
  					</td>
  					<td class="{ADMIN_PAGE_ODDEVEN}">
  						<div id="mor_{PHP.ii}" class='mor_info_on_off'>
  							<span class="strong" style="cursor:hand;">{ADMIN_PAGE_SHORTTITLE}</span>
  							<div class="moreinfo">
  								<hr />
  								<table class="flat">
  									<tr>
  										<td class="width20">{PHP.L.Category}:</td>
  										<td class="width80">{ADMIN_PAGE_CATPATH_SHORT}</td>
  									</tr>
  									<tr>
  										<td>{PHP.L.Description}:</td>
  										<td>{ADMIN_PAGE_DESC}</td>
  									</tr>
  									<tr>
  										<td>{PHP.L.Text}:</td>
  										<td>{ADMIN_PAGE_TEXT}</td>
  									</tr>
  								</table>
  							</div>
  						</div>
  					</td>
  					<td class="action {ADMIN_PAGE_ODDEVEN}">
  						<!-- IF {PHP.row.page_state} == 1 --><a title="{PHP.L.Validate}" href="{ADMIN_PAGE_URL_FOR_VALIDATED}" class="confirmLink button">{PHP.L.Validate}</a><!-- ENDIF -->
  						<a title="{PHP.L.Delete}" href="{ADMIN_PAGE_URL_FOR_DELETED}" class="confirmLink button">{PHP.L.short_delete}</a>
  						<a title="{PHP.L.Open}" href="{ADMIN_PAGE_ID_URL}" target="_blank" class="button special">{PHP.L.short_open}</a>
  						<a title="{PHP.L.Edit}" href="{ADMIN_PAGE_URL_FOR_EDIT}" target="_blank" class="button">{PHP.L.Edit}</a>
  					</td>
  				</tr>
          <!-- END: PAGE_ROW -->
          <!-- IF {PHP.is_row_empty} -->
  				<tr>
  					<td class="centerall" colspan="4">{PHP.L.None}</td>
  				</tr>
          <!-- ENDIF -->
  				<tr>
  					<td class="valid" colspan="4">
  						<!-- IF {PHP.filter} != 'validated' --><input name="paction" type="submit" value="{PHP.L.Validate}" onclick="this.form.paction.value=this.value" class="confirm" /><!-- ENDIF -->
  						<input name="paction" type="submit" value="{PHP.L.Delete}" onclick="this.form.paction.value=this.value" />
  					</td>
  				</tr>
  			</table>
  		</form>

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

    </div>

  </div>
</div>

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

<!-- END: MAIN -->