Code: Alles auswählen
if (!is_object($tpl)) {
$tpl = new Template;
}
$tpl->reset();
$list_1 = new UI_List();
$list_1->setPadding(2);
$list_1->setCell("0","kat","Kategorie");
$list_1->setCell("0","beschreibung","Beschreibung");
$list_1->setExtra("0","beschreibung","style='font-weight:bold'");
while ($branche_kat->next_record())
{
$i++;
$kname = $branche_kat->f("kategorie");
$beschr = ($branche_kat->f("katBeschr"));
if($i%2==0)$list_1->setBgColor($i,"#ffffff");
else $list_1->setBgColor($i,"#fafafa");
$list_1->setCell($i,"kat","$kname");
$list_1->setExtra($i,"");
$list_1->setCell($i,"beschreibung","$beschr");
}
#echo $list_1->render();
$tpl->set('s','KAT',$list_1->render());
$tpl->next();
$tpl->generate($cfg['plugins']['branchenbuch'] . $cfg['path']['templates'] .$cfg['templates']['branchenbuch_kat_insert']);
Code: Alles auswählen
<table cellspacing="0" cellpadding="2" style="border: 0px; border-color:#747488; border-style: solid; width: 100%;">
<tr bgcolor="#E8E8EE" {EXTRA}>
<td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap">Kategorie</td> <td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap">Beschreibung</td>
</tr>
<tr bgcolor="#fafafa" {EXTRA}>
<td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap">Ärzte & Apotheken</td> <td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap"></td>
</tr>
<tr bgcolor="#ffffff" {EXTRA}>
<td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap">Auto & Verkehr</td> <td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap">Alles über Automobile</td>
</tr>
<tr bgcolor="#fafafa" {EXTRA}>
<td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap">Bauen & Renovieren</td> <td align="left" valign="top" class="text_medium" style="{EXTRA} white-space:nowrap;" nowrap="nowrap"></td>
</tr>
</table>