<?php
$site = Core::query("SELECT * FROM `user_sites` WHERE `id` = ?", array($_GET['get'])) -> fetch();
?>

<form  class="h1" method="post" action="/admin/edit_area/<?php echo $_GET['get']; ?>">
	Название сайта [2 - 50]<br />
	<input type="text" name="title" value="<?php echo Protect::title($site['title']); ?>" /><br />
	Адрес сайта [3 - 40] http://site.ru<br />
	<input type="text" name="site" value="<?php echo Protect::title($site['url']); ?>" /><br />
	Описание сайта [10 - 250]<br />
	<textarea name="opis"><?php echo Protect::title($site['opis']); ?></textarea><br />
	Выберите категорию<br />
	<select name="dir">
		<option value="0">Выберите</option>
		<?php
		$q = Core::query("SELECT * FROM `category`");
		while($post = $q -> fetch()){
			echo '<option value="'.$post['id'].'">'.Protect::title($post['name']).'</option>';
		}
		?>
	</select><br />
	Выберите счетчик<br />
	<input type="radio" name="count" value="1" <?php echo $site['count_big'] == 1 ? 'checked="checked"' : NULL; ?> /><img src="/counts/1.gif" /><br />
	<input type="radio" name="count" value="2" <?php echo $site['count_big'] == 2 ? 'checked="checked"' : NULL; ?> /><img src="/counts/2.gif" /><br />
	<input type="radio" name="count" value="3" <?php echo $site['count_big'] == 3 ? 'checked="checked"' : NULL; ?> /><img src="/counts/3.gif" /><br />
	<input type="radio" name="count" value="4" <?php echo $site['count_big'] == 4 ? 'checked="checked"' : NULL; ?> /><img src="/counts/4.gif" /><br />
	<input type="radio" name="count" value="5" <?php echo $site['count_big'] == 5 ? 'checked="checked"' : NULL; ?> /><img src="/counts/5.gif" /><br />
	<input type="radio" name="count" value="6" <?php echo $site['count_big'] == 6 ? 'checked="checked"' : NULL; ?> /><img src="/counts/6.gif" /><br />
		Выберите счетчик для остальных страниц:<br />
	<input type="radio" name="small" value="1" <?php echo $site['count_small'] == 1 ? 'checked="checked"' : NULL; ?>/><img src="/counts/11.gif" /><br />
	<input type="radio" name="small" value="2" <?php echo $site['count_small'] == 2 ? 'checked="checked"' : NULL; ?>/><img src="/counts/12.gif" /><br />
	<input type="radio" name="small" value="3" <?php echo $site['count_small'] == 3 ? 'checked="checked"' : NULL; ?>/><img src="/counts/13.gif" /><br />
	<input type="radio" name="small" value="4" <?php echo $site['count_small'] == 4 ? 'checked="checked"' : NULL; ?>/><img src="/counts/14.gif" /><br />
	<input type="radio" name="small" value="5" <?php echo $site['count_small'] == 5 ? 'checked="checked"' : NULL; ?>/><img src="/counts/15.gif" /><br />
	<input type="radio" name="small" value="6" <?php echo $site['count_small'] == 6 ? 'checked="checked"' : NULL; ?>/><img src="/counts/16.gif" /><br />
	<input type="submit" value="Изменить" /><br/><br/>
<font color="red">*</font> После изменения информации площадка должна пройти модерацию, если автомодерация отключена.
</form>