WBB2 ACP Template ausgabe

virus
Hi
ich bastel mir grade nen kleines addon fürs wbb2, auch mit ACP anbindung. Jedoch liegt genau dort das problem, denn das ACP will mir ein Template nicht ausgeben und ich finde den fehler einfach nicht.

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
<?php
if($_GET['action'] =="edit"){
    eval("\$dleditcat_list = \"".$tpl->get("dleditcat_list"1)."\";");
    $result $db->query("SELECT id, name FROM bb".$n."_downlodcategories ORDER by id");
    while($row $db->fetch_array($result)) {
        $catid $row['id'];
        $catname $row['name'];
        eval("\$dleditcat_bit .= \"".$tpl->get("dleditcat_bit"1)."\";");
    }
}

eval("\$tpl->output(\"".$tpl->get("dlcat"1)."\",1);");
?>

das ist der relevante php code. das in Line 8 definierte template lässt sich nicht ausführen.

hier einmal die Templates:

dlcat.htm:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">

<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset={$lang->items['LANG_GLOBAL_ENCODING']}" />
<link rel="stylesheet" href="css/main.css" />
</head>

<body>

$add_form
$dleditcat_list
</body>
</html>


dleditcat_list.htm
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<table cellpadding="4" cellspacing="1" border="0" class="tblborder" width="100%" align="center">
	<tr>
		<td colspan="2" class="tblhead">Edit Download category</td>
	</tr>
	<tr>
		<td class="firstrow"><span class="smallfont">Category</span></td>
		<td class="secondrow"><span class="smallfont">Edit Category</span></td>
	</tr>
	$dleditcat_bit
</table>



dleditcat_bit.htm (diese lässt sich nicht ausgeben)
code:
1:
2:
3:
4:
<tr>
		<td class="firstrow"><span class="smallfont">$catname</span></td>
		<td class="secondrow"><a href="dlcat.php?action=edit2&catid=$catid">Edit category</a></td>
	</tr>


wie bekomme ich es hin das mir das ACP alles richtig anzeigt
lycoos
Du must erst

php:
1:
eval("\$dleditcat_bit .= \"".$tpl->get("dleditcat_bit"1)."\";");



und dann

php:
1:
eval("\$dleditcat_list = \"".$tpl->get("dleditcat_list"1)."\";");
virus
danke daran lags