wyskakuje mi bład:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
class Object_web_1
{
private $body;
private $logo;
public $site_name;
public $footer;
public $web_width=1200;
public $web_txt_width=1000;
public $style;
public $menu;
public $left_column;
public $right_column;
public $status;
public $contents;
public $haed;
function __set($name, $value)
{
$this->$name = $value;
}
public function Add_logo($url)
{
$this->head .="\t<link rel=\"Shortcut icon\" href=\"".$url."\" />\n";
$this->logo ="<br><img width=\"150\" src=\"".$url."\"><br><br>";
}
public function Add_title($title)
{
$this->head .="\t<title>".$this->site_name." - ".$title."</title>\n";
}
public function Add_keywords($text)
{
$this->head .="\t<meta name=\"keywords\" content=\"".$text."\"\n";
}
public function Add_Style($object, $selector , $value)
{
$this->style .="\t\t\t ".$object." {".$selector.":".$value."}\n";
}
public function Add_Styles($object, $styl)
{
$this->style .="\t\t\t ".$object."\n";
$this->style .="\t\t\t {\n";
{
foreach($style as $selector => $value)
{
$this->style .="\t\t\t\t ".$selector.":".$value.";\n";
}
}
else $this->style .="\n".$style."\n";
$this->style .="\t\t\t }\n";
}
public function Add_Stylesif($url)
{
$this->head .="\t<link rel=\"Stylesheet\" type=\"text/css\" href=\"".$url."\" />\n";
}
public function Add_left_window($txt)
{
$this->left_column .="\t\t\t\t<div id=\"left_window\">\n";
$this->left_column .="\t\t\t\t\t".$txt."\n";
$this->left_column .="\t\t\t\t</div>\n";
}
public function Add_right_window($txt)
{
$this->right_column .="\t\t\t\t<div id=\"left_window\">\n";
$this->right_column .="\t\t\t\t\t".$txt."\n";
$this->right_column .="\t\t\t\t</div>\n";
}
public function Add_textbox($txt)
{
$this->contents .="\t\t\t\t<div id=\"textbox\">\n";
$this->contents .="\t\t\t\t\t".$txt."\n";
$this->contents .="\t\t\t\t</div>\n";
}
public function Start()
{
$this->head .="\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" >\n";
$this->body .="\t<center><table id=\"all\" width=\"".$this->web_width."\">\n";
$this->body .="\t\t<tr id=\"line_1\">\n";
$this->body .="\t\t\t<td id=\"logo\"><center>".$this->logo."</center></td>\n";
$this->body .="\t\t\t<td id=\"site_name\" width=\"".$this->web_txt_width."\"><center><h1>".$this->site_name."</h1></center></td>\n";
$this->body .="\t\t\t<td id=\"status\"><center>".$this->status."</center></td>\n";
$this->body .="\t\t</tr>\n";
$this->body .="\t\t<tr id=\"line_2\">\n";
$this->body .="\t\t\t<td colspan=\"3\" id=\"menu\">".$this->menu."</td>\n";
$this->body .="\t\t</tr>\n";
$this->body .="\t\t<tr id=\"line_3\">\n";
$this->body .="\t\t\t<td valign=\"top\" id=\"left_column\">\n".$this->left_column."\t\t\t</td>\n";
$this->body .="\t\t\t<td valign=\"top\" id=\"contents\">\n".$this->contents."\t\t\t</td>\n";
$this->body .="\t\t\t<td valign=\"top\" id=\"right_column\">\n".$this->right_column."\t\t\t</td>\n";
$this->body .="\t\t</tr>\n";
$this->body .="\t\t<tr id=\"line_4\">\n";
$this->body .="\t\t\t<td colspan=\"3\" id=\"footer\">".$this->footer."</td>\n";
$this->body .="\t\t</tr>\n";
$this->body .="\t</table></center>\n";
$style ="\t<style>\n".$this->style."\t</style>\n";
$head ="<head>\n".$this->head.$style."</head>\n\n\n\n";
$body ="<body>\n".$this->body."</body>\n";
$start ="<html>\n".$head.$body."</html>\n";
}
}
Czy mógł by mi ktoś go znaleźć ?