<?if($this->getList){?>
	<div class="bttns-wrap">
		<div class="bttns_left">
			<a href="#loginfoAll" class="btn">Развернуть все</a>
			<a href="#verified_open_ok" data-project_id="<?=$this->project_id?>" data-log_page="true" class="btn">Установить "Все Ok!" для открытых</a>
		</div>
	</div>
  <table class="tbl-base tbl-log __no-brd __tggl-rows">
		<?foreach ($this->getList['result'] as $val) {?>
          <tbody data-project_id="<?=$val['project_id']?>" data-scan_id="<?=$val['id']?>">
          <?switch($val['status']){
						case 'error':
							?>
				        <tr <?=$val['is_verified']=="no" ? 'class="__disabled"' : ''?>>
				            <td nowrap><?=$val['date']?>
											<br><small style="font-size:11px;">Папок: <?=$val['dir_c']?> / Файлов: <?=$val['file_c']?> / Шагов: <?=$val['step']?></small>
										</td>
				            <td colspan="5" <?=$val['is_verified']=="no" ? 'class="disabled-wrap"' : ''?>>
				                <span class="ic_warning"></span> <?=$val['error_msg']?>
				                <?if($val['is_verified']=="no"){?>
				                <a href="#verified_error" data-project_id="<?=$val['project_id']?>" class="btn">Всё OK!</a>
				                <?}?>
				            </td>
				        </tr>
							<?
						break;
						default:?>
	            <tr>
	                <td nowrap><?=$val['date']?>
										<br><small style="font-size:11px;">Папок: <?=$val['dir_c']?> / Файлов: <?=$val['file_c']?> / Шагов: <?=$val['step']?></small>
									</td>
	                <td>
										<?=$val['new_c']>0 ? 'Добавлено: '.$val['new_c'].'<br>' : ''?>
									  <?=$val['change_c']>0 ? 'Изменено: '.$val['change_c'].'<br>' : ''?>
									  <?=$val['delete_c']>0 ? 'Удалено: '.$val['delete_c'].'<br>' : ''?>
									  <?=$val['status']=="ok" ? 'Скан прошел, все Ok!' : ''?>
									</td>
	                <td class="bttns-wrap">
	                	<?if($val['new_c']>0 || $val['change_c']>0 || $val['delete_c']>0){?>
	                    <a href="#loginfo" data-project_id="<?=$val['project_id']?>" data-scan_id="<?=$val['id']?>" class="btn __base-inverse tggl-btn ic_arr-bot">Развернуть</a>
	                  <?}?>
	                </td>
	            </tr>
	            <tr class="tggl-block hidden">
	            	<td colspan="5" data-id="loginfo" valign="top">
									
								</td>		            
	            </tr>
						<?
					}?>
          </tbody>
      <?}?>
  </table>
  <?$this->display("block/pages",false);?>
<?}else{?>
	<center><p>- нет данных -</p></center>
<?}?>