require_once(HEADERF); // render the header (everything before the main content area) $sql = e107::getDB(); // mysql class object $tp = e107::getParser(); // parser for converting to HTML and parsing templates etc. $frm = e107::getForm(); // Form element class. $ns = e107::getRender(); // render in theme box. $text = ""; if($rows = $sql->retrieve('blank','*',false,'',true)) // combined select and fetch function - returns an array. { // print_a($rows); foreach($rows as $key=>$value) // loop throug { $text .= $tp->toHtml($value['blank_type'])."
"; } $ns->tablerender("My Caption", $text); } require_once(FOOTERF); // render the footer (everything after the main content area) exit; // For a more elaborate plugin - please see e107_plugins/gallery ?>