46 lines
877 B
PHP
46 lines
877 B
PHP
<?php
|
|
|
|
namespace goeranh;
|
|
|
|
class Seite
|
|
{
|
|
private $title, $inhalt;
|
|
|
|
public function __construct($title = "")
|
|
{
|
|
$this->title = $title;
|
|
$this->inhalt = '';
|
|
}
|
|
|
|
public function setInhalt($inhalt){
|
|
$this->inhalt = $inhalt;
|
|
}
|
|
|
|
public function addInhalt($inhalt){
|
|
$this->inhalt .= $inhalt;
|
|
}
|
|
|
|
public function augeben(){
|
|
$page = '<html>
|
|
<head>
|
|
<style>
|
|
table{
|
|
width: 100%;
|
|
}
|
|
input{
|
|
width: 100%;
|
|
}
|
|
td{
|
|
white-space:nowrap;
|
|
}
|
|
</style>
|
|
<title>'.$this->title.'</title>
|
|
</head>
|
|
<body>
|
|
'.$this->inhalt.'
|
|
</body>
|
|
</html>';
|
|
echo $page;
|
|
}
|
|
|
|
} |