<?php

/* @var $item LuxContactInfo */
/* @var  $cont_list array */
?>

<div class="block-header">
    <?php 
$names = AdminFunctions::GetMenuItemNameByActionName(Yii::app()->controller->action->id);
?>
    <?php 
$name = $names[count($names) - 1];
?>
    <?php 
echo $name;
?>
    <a href="#" class="close-button"></a>
</div>
<div class="block-container">
    <table class="tbl-cont-list" cellpadding="0" cellspacing="0" border="0">

        <tr class="header-table">
            <td class="td-tbl-clr">ID</td>
            <td class="td-tbl-clr">Метка</td>
            <td class="td-tbl-clr action-td">Действия</td>
        </tr>

        <?php 
foreach ($cont_list as $item) {
    ?>
            <tr>
?>

<div class="path-line">
    <a href="#" class="path-element">Админ Панель</a>
    <a href="#" class="path-element"><?php 
echo AdminFunctions::GetControllerNameById($controller_name);
?>
</a>
    <?php 
$name_part = AdminFunctions::GetMenuItemNameByActionName($current_action);
?>
    <?php 
if (!is_array($name_part)) {
    ?>
        <a href="#" class="path-element-last"><?php 
    echo AdminFunctions::GetMenuItemNameByActionName($current_action);
    ?>
</a>
    <?php 
} else {
    ?>
        <?php 
    foreach ($name_part as $index => $value) {
        ?>
            <?php 
        $class = "path-element";
        if ($index == count($name_part) - 1) {
            $class = "path-element-last";
        }
        ?>
            <a href="#" class="<?php