CAttribute->Items, $attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); if (empty($id)) $id = 0; if ($id == 0) { $row = $dsql->GetOne("SELECT aid FROM `#@__vote` ORDER BY aid DESC LIMIT 0,1"); if (!isset($row['aid'])) return ''; else $id = $row['aid']; } $vt = new DedeVote($id); return $vt->GetVoteForm($lineheight, $tablewidth, $titlebgcolor, $titlebackgroup, $tablebg); }