<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="catalog-section">
<?if($arParams["DISPLAY_TOP_PAGER"]):?>
	<?=$arResult["NAV_STRING"]?><br />
<?endif;?>
<table cellpadding="0" cellspacing="0" class="page_tab" width="100%">
	<tr class="head">
		<td style="width:110px;"><div class="tab_r"><?=GetMessage('DATE_TIME')?></div></td>
		<td><div><?=GetMessage('COURCE')?></div></td>
		<td style="width:70px;"><div><?=GetMessage('DURATION')?></div></td>
		<td  style="width:90px;"><div class="tab_l"><?=GetMessage('PRICE')?></div></td>
	</tr>
	<?foreach($arResult["ITEMS"] as $cell=>$arElement):?>
		<?
		$this->AddEditAction($arElement['ID'], $arElement['EDIT_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_EDIT"));
		$this->AddDeleteAction($arElement['ID'], $arElement['DELETE_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BCS_ELEMENT_DELETE_CONFIRM')));
		?>
		
		<tr id="<?=$this->GetEditAreaId($arElement['ID']);?>">				
					<td valign="top" >
						<?=$arElement['COURSE_DATES']?>
						<br/>
						<?if($arElement['COURSE_DATES']):?>
							<a href="<?=SITE_DIR?>training/booking/<?=$arElement['SECTION_CODE']?>/<?=$arElement['CODE']?>/" title="<?=GetMessage('booking')?>"><?=GetMessage('booking')?></a>
						<?endif?>					
					</td>					
					<td valign="top">
						<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><?=$arElement["NAME"]?></a><br />						
						<?=$arElement["PREVIEW_TEXT"]?>
					</td>
					<td valign="top" style="text-align:center;">					
						<?=$arElement["DISPLAY_PROPERTIES"]['CLASS']['DISPLAY_VALUE']?>
					</td>
					<td valign="top" style="text-align:center;">					
						<?=$arElement["DISPLAY_PROPERTIES"]['PRICE']['DISPLAY_VALUE']?>
					</td>
		</tr>

	<?endforeach; // foreach($arResult["ITEMS"] as $arElement):?>
		
</table>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]):?>
	<br /><?=$arResult["NAV_STRING"]?>
<?endif;?>
</div>
