function flush() { $thisclass_string = wra_adminmenu::getbaseclass(); $saveid = -1; if (WRA::ir('id')) { $saveid = WRA::r('id'); } $pid = -1; if (WRA::ir('pid')) { $pid = WRA::r('pid'); } if ($thisclass_string != '') { if (wra_adminpage::isedit()) { $languages = wra_lang::getlist(); // WRA::debug($languages); // die(); wra_admintable::flusheditHead($this); foreach ($languages as $l0) { $code = '$wt=' . $thisclass_string . '::edittable(' . $saveid . ',' . $pid . ',' . $l0->alias . ');'; eval($code); $wt->flushedit($this); if (count($wt->subtables) > 0) { foreach ($wt->subtables as $st) { if ($st->subtypeedit) { $st->subtable = true; $st->flushedit($this); } else { $st->subtable = true; $st->flush(); } } } } } else { $code = '$wt=' . $thisclass_string . '::admintable(' . $saveid . ',' . $pid . ');'; eval($code); if ($wt->headertext != '') { WRA::e('<h2>' . $wt->headertext); if ($pid != -1 && $pid != 0) { } WRA::e('</h2>'); } $wt->flush(); if (count($wt->subtables) > 0) { foreach ($wt->subtables as $st) { $st->useheader = false; $st->subtable = true; $st->flush(); } } } } }