require_once ("engine.php"); class site extends engine { ################################################################################################### ################################################################################################### ################################################################################################### function draw_content() { $this->set_mark(); if ($_SESSION["_screen_alert_"]) { $html_screen_alert = ""; $_SESSION["_screen_alert_"] = ""; } echo "
\n"; if ($this->obj_nav->get_field("dologin")=="yes") $this->dologin(); if ($this->obj_nav->get_field("dologout")=="yes") $this->dologout(); echo "\n"; echo "";
echo "";
echo "";
echo " ";
echo " ";
echo "
";
$this->draw_object('');
echo " ";
echo "";
$this->draw_object('');
echo " ";
$item2 = $this->get_item(3031);
echo "";
echo "".$item2["TITLE"]."";
echo " ";
$item2 = $this->get_item(C_ID_FORM_SUGIRA);
echo "";
echo "".$item2["TITLE"]."";
echo " ";
echo " | ";
echo "";
echo " ";
if ($this->obj_nav->get_field("search_words"))
{
$this->draw_object('');
}
elseif ($this->obj_nav->get_field("sitemap"))
{
$this->draw_object('');
}
elseif ($this->id==3550)
{
$this->call_template("newsletter1");
}
elseif ($this->id==3551)
{
$this->call_template("newsletter2");
}
elseif ($this->id == $this->start_id)
{
$this->draw_homepage();
}
else
{
if (!$template = $this->item["TAG"])
{
$template = $this->mark["TAG"];
}
$this->call_template($template);
}
echo " ";
echo " | ";
echo ""; echo " "; echo " | "; echo "||
";
echo "
"; echo " | ";
echo "
"; echo " | "; echo "
"; echo " | "; echo "
";
$id1 = $row[$i]["ID"];
if ($row[$i]["EXPAND"] && $this->mark_id != 3011 && $this->mark_id != 2141 )
{
$row2 = $this->get_list_item($id1,"","AVAILABLE=1");
$id1 = $row2[0]["ID"];
}
$mouse = "onclick=\"location='?id=".$id1."'\"";
echo " ";
for ($i2=0;$i2 \n";
if (in_array($id2,$arr_tree) && $row2[$i2]["EXPAND"])
{
echo "\n";
$row3 = $this->get_list_item($row2[$i2]["ID"],"","AVAILABLE=1");
for ($i3=0;$i3 \n";
}
}
echo "\n";
}
}
echo "\n";
}
}
echo " | ";
}
echo " ";
##### o plano de acções é diferente
if ($this->mark_id == 3010 || $this->mark_id == 3012 || $this->mark_id == 7246 )
{
if (in_array($row[$i]["ID"],$arr_tree) && $row[$i]["EXPAND"] )
{
echo "