Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/gnomephp/res/view/crud/header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>GnomePHP - CRUD</title>
<style type="text/css">
body {
	text-align: center;
}

#wrapper {
	margin-left: auto;
	margin-right: auto;
	width: 960px;
}

#content {
	text-align: left;
}

.msg {
	padding: 20px;
	width: 100%;
	min-height: 50px;
}

.msg.error {
	border: 1px dashed red;
	background-color: #FF6666;
}

.msg.success {
	border: 1px dashed green;
	background-color: #66FF66;
}

#crumbs a {
	margin-right: 20px;
	color: white;
}

#header {
	background-color: #282828;
	height: 150px;
}

#header a {
	color: white;
}

input,textarea {
	width: 400px;
}

textarea {
	height: 300px;
}

table {
	text-align: center;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-size: 11px;
	color: #fff;
	width: 280px;
	background-color: #666;
	border: 0px;
	border-collapse: collapse;
	border-spacing: 0px;
}

table td {
	background-color: #CCC;
	color: #000;
	padding: 4px;
	text-align: left;
	border: 1px #fff solid;
}

table th {
	background-color: #666;
	color: #fff;
	padding: 4px;
	text-align: left;
	border-bottom: 2px #fff solid;
	font-size: 12px;
	font-weight: bold;
}
</style>
</head>

<body>

<div id="wrapper">

<div id="header">
	<h1><a href="<?php echo $view->url->linkTo('crud_home') ?>">Database manager</a></h1>
	<div id="crumbs">
	<a href="<?php echo $view->url->linkTo('crud_home') ?>">Entities</a>
	<?php if (isset($entity)):?>
	<a href="<?php echo $view->url->linkTo('crud_entity', array('name' => $entity))?>"><?php echo str_replace('-', '\\', $entity);?></a>
	<?php endif;?>
	</div>
</div>

<div id="content">
<?php if (count($view->getMessages()) > 0):?>
<?php foreach($view->getMessages() as $message):?>
	<?php if ($message instanceof \gnomephp\message\ErrorMessage):?>
	<div class="msg error">
	<?php echo $message; ?>
	</div>
	<?php endif;?>
	<?php if ($message instanceof \gnomephp\message\SuccessMessage):?>
	<div class="msg success">
	<?php echo $message; ?>
	</div>
	<?php endif;?>
<?php endforeach;?>
<?php endif;?>


<?php echo $view->getExtend('content')?>

<?php echo $view->import('crud/footer')?>
Return current item: GnomePHP