Ejemplo n.º 1
0
    echo dbh::voting_count_child($obj->id) == 0 || $obj->id_parent != 0 ? general::link_to($tpl_folder . '/delete/id/' . $obj->id, 'Удалить?', 'onclick="return confirm(\'Вы уверены?\')"') : '<a href=""></a>';
    ?>
</span>
				</span>
                <span class="name"><?php 
    echo $obj->text;
    ?>
				<br />
				<!--<strong>URL страницы</strong>: <input  value="<?php 
    // echo $obj->action;
    ?>
" class="red"></input>-->
				</span>
            </span>
			
			<?php 
    echo dbh::voting_count_child($obj->id) > 0 ? '<ul>' : '';
    ?>
				<?php 
    echo system::show_tpl(array('result' => dbh::voting_get_child($obj->id), 'tpl_folder' => $tpl_folder), $tpl_folder . '/menu.php');
    ?>
			<?php 
    echo dbh::voting_count_child($obj->id) > 0 ? '</ul>' : '';
    ?>
			
		</li>
		
	<?php 
}
?>