Пример #1
0
$site = new Design();
$tags = new Tags();
?>

<?php 
$site->header();
?>


<body>
	<div id="dialog">
		<div class='content'></div>
	</div>
    <div id="menu"><h2>iZwei</h2>
    <?php 
echo $site->form(FORM_SIMPLESEARCH);
echo $site->form(FORM_UPLOAD);
?>
    </div>
    <div id="content">
    <?php 
// will be moved to design later on
$s = new Search();
$s->order(SORT_NEWEST);
$s->range(0, 12);
$res = $s->search();
while ($image = $res->fetch_object()) {
    echo $site->imageBlock($image);
}
?>
    </div>