<?if(empty($_GET['ajax'])){?><div class="content structure"><?}?>
<?if($this->getList){?>
	<?if(is_array($this->getList['dir']) || is_array($this->getList['file'])){?>
		<table class="structure_tbl">
			<?if(is_array($this->getList['dir'])){foreach($this->getList['dir'] as $v){?>
				<tr class="dir">
					<td colspan="3"><a href="#open_dir_structure" class="open_dir_structure" style="<?=$v['is_change']=="yes" ? 'color:red;font-weight: bold;' : ''?>" data-project_id="<?=$this->project_id?>" data-level="<?=($v['level']+1)?>" data-path="<?=$v['path']?>"><?=$v['path']?></a></td>
				</tr>            
			<?}}?>
			<?if(is_array($this->getList['file'])){foreach($this->getList['file'] as $v){?>
			  <tr class="file">
			  	<td style="<?=$v['status']!="ok" ? 'color:red;font-weight: bold;' : ''?>"><?=$v['path']?></td> 
					<td><?=_filesize($v['size'])?></td>
					<td><?switch($v['status']){
						case 'new':
							?>новый<?
						break;
						case 'change':
							?>изменен<?
						break;
						case 'delete':
							?>удален<?
						break;
					}?>
					</td>
				</tr>
			<?}}?>
		</table>
	<?}else{?>
	<table class="structure_tbl">
		<tr>
			<td><div id="error">-нет файлов для сканирования-</div></td>
		</tr>
	</table>
	<?}?>
<?}else{?>
	<table class="structure_tbl">
		<tr>
			<td><div id="error">-структура пока не создана-</div></td>
		</tr>
	</table>
<?}?>
<?if(empty($_GET['ajax'])){?></div><?}?>