<?php

$current = site::GET($args['id']);
?>
<!-- <p><a href="/site">INDEX</a></p> -->

<h2> Просмотр [<?php 
echo $current->name;
?>
]</h2>
<?php 
global $menuHover;
$root = "/site";
$menuHover->Add("Все", $root);
$menuHover->Add("Новый", $root . "/new");
$menuHover->Add("Изменить", $root . "/edit/" . $args['id']);
$menuHover->Add("Удалить", $root . "/delete/" . $args['id'], "return confirm('Are you sure?');");
site::printOne($current);
?>
<br><br>
<!-- <p><a 	href="/site/edit/<?php 
echo $current->id;
?>
">EDIT</a></p><br> -->
<!-- <p><a href="/site/delete/<?php 
echo $current->id;
?>
" onclick="return confirm('Are you sure?');">DELETE</a></p><br> -->