public function DelItemToNavbar($type = 'item', $id)
{
if (!$type) {
$type = 'item';
}
$m = $this->modulesbyfilename['navbar'];
$s = $m->Content;
$s = preg_replace('/<li id="navbar-' . $type . '-' . $id . '">.*?<\\/li>/', '', $s);
$m->Content = $s;
$m->Save();
}