mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Custom label option for progressbar(). Extra example code in _blank.php
This commit is contained in:
@@ -37,20 +37,29 @@ class _blank_front
|
||||
$frm = e107::getForm(); // Form element class.
|
||||
$ns = e107::getRender(); // render in theme box.
|
||||
|
||||
|
||||
$text = '';
|
||||
|
||||
|
||||
// $sc = e107::getScBatch('_blank',true, '_blank');
|
||||
// $template = e107::getTemplate('_blank','_blank','default');
|
||||
|
||||
$text = '';
|
||||
// $text = $tp->parseTemplate($template['start'],true, $sc);
|
||||
|
||||
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
|
||||
{
|
||||
// $sc->setVars($value); // if shortcodes are enabled.
|
||||
|
||||
// $sc->setVars($value); // if shortcodes are enabled.
|
||||
// $text .= $tp->parseTemplate($template['item'],true, $sc);
|
||||
|
||||
$text .= $tp->toHtml($value['blank_type'])."<br />";
|
||||
}
|
||||
|
||||
// $text .= $tp->parseTemplate($template['end'],true, $sc);
|
||||
|
||||
$ns->tablerender("My Caption", $text);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user