<div>
<?=form::open("index.php/pages")?>
<table>
<?= formr::input("title")?>
<?= formr::textarea("content")?>
<tr><td style="color:#ED1288; font-weight:bold;"><?= gen::lang("Language")?> :
</td><td><?= form::select('comb',array('tr' => 'tr','en'=>'en','de'=>'de'))?></td></tr>
<tr><td><?= formr::submit("Save")?></td></tr>
</table>


<?=form::close()?>
</div>
<h3>Dikkat !!! yeni dilde <span style="color:#ed1288;"><?=$orm->title?></span> sayfası oluşturuyorsunuz.</h3>
<div>
	<h2><?= gen::lang("pages")?></h2>
	<div id="grid">
	<table>
		<thead>
			<tr>
				<th><?= gen::lang("page")?></th>
				<th><?= gen::lang("actions")?></th>
			</tr>
		</thead>
		<tbody>
			<? foreach($pages as $page): ?>
			<tr>
				<td><?= html::anchor("index.php/page/index/".$page->slug, $page->title, array("target"=>"_blank")) ?></td>
				<td align="center"><?= template::aimg("index.php/pages/edit/".$page->id,"edit.gif", array("alt"=>"edit")) ?> 
				<?= template::aimg("index.php/pages/del/".$page->id,"del.gif", array("alt"=>"delete")) ?>
				<?= template::aimg("index.php/pages/create/".$page->id,"lang.png", array("alt"=>"delete")) ?></td>
			</tr>
			<? endforeach; ?>
		</tbody>
		<tfoot>
			<tr><th colspan="2"><?=$pagination?></th><td colspan="6"></td></tr>
		</tfoot>
	</table>
	</div>
</div>