Exemple #1
0
<table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th>Удаление</th>
		<th>Наименование</th>
		<th>Опубликован?</th>
		<th>Операции</th>
	</tR>

	
<?php 
foreach ($result as $obj) {
    ?>
	
	<tr>
		<td><?php 
    echo dbh::content_count_child($obj->id) == 0 ? general::link_to($tpl_folder . '/delete/id/' . $obj->id . '/tablename/' . $_GET['tablename'], 'Удалить?', 'onclick="return confirm(\'Вы уверены?\')"') : '';
    ?>
</td>
		<td><?php 
    echo $obj->pole;
    ?>
</td>
		<td><a href="#" data-id="<?php 
    echo $obj->id;
    ?>
" class="setStatus"><?php 
    echo $obj->status == 1 ? '<span style="color:#39C;">Да</span>' : '<span style="color:red;">Нет</span>';
    ?>
</a></td>		
		<td><?php 
    echo general::link_to($tpl_folder . '/new/id/' . $obj->id . '/tablename/' . $_GET['tablename'], 'Редактировать');
Exemple #2
0
				    <?else:?>
                        <span class="ps_coll"></span>
                    <?endif?>
                </span>
                <span class="name"><?php 
    echo $obj->name_ru;
    ?>
				<br />
				<!--<strong>URL страницы</strong>: <input  value="<?php 
    // echo $obj->action;
    ?>
" class="red"></input>-->
				</span>
            </span>
			
			<?php 
    echo dbh::content_count_child($obj->id) > 0 ? '<ul>' : '';
    ?>
				<?php 
    echo system::show_tpl(array('result' => dbh::content_get_child($obj->id), 'tpl_folder' => $tpl_folder), $tpl_folder . '/menu.php');
    ?>
			<?php 
    echo dbh::content_count_child($obj->id) > 0 ? '</ul>' : '';
    ?>
			
		</li>
		
	<?php 
}
?>