<h2>Новый</h2><br>

<form method="post">
	siteID:		<select name="siteID">
		<option disabled selected>Выберите сайт</option>
		<?php 
$sites = site::GETALL();
foreach ($sites as $site) {
    echo " <option ";
    echo ' value="' . $site->id . '" ';
    echo " > ";
    echo $site->name;
    echo " </option> ";
}
?>
	</select>
	
	phoneID:	<select name="phoneID">
		<option disabled selected>Выберите телефон</option>
		<?php 
$phones = phone::GETALL();
foreach ($phones as $phone) {
    echo " <option ";
    echo ' value="' . $phone->id . '" ';
    echo " > ";
    echo $phone->name;
    echo " </option> ";
}
?>
	</select>
	<input type="submit">
<h2>INDEX</h2>
<?php 
global $menuHover;
$root = "/site";
$menuHover->Add("Новый", $root . "/new");
?>
<!-- <a href="/site/new">ADD</a><br><br> -->
<?php 
site::printArray(site::GETALL());