[Phplib-users] script.php/template.tpl - Question
Brought to you by:
nhruby,
richardarcher
From: Markus H. <Mar...@Sy...> - 2001-09-20 13:55:00
|
template.tpl: ------------------ <tr> <th><span style="text-decoration:underline">Datum</span></th> <th><span style="text-decoration:underline">Status</span></th> <th><span style="text-decoration:underline">Autor</span></th> <th><span style="text-decoration:underline">Versions-Nr.</span></th> <th><span style="text-decoration:underline">Checkout-Status</span></th> <th><span style="text-decoration:underline">Funktionen</span></th> </tr> <!-- Begin AccessBlock --> <tr> <td align="center">{Datum}</td> <td align="center">{Status}</td> <td align="center">{Autor}</td> <td align="center">{Versions-Nr.}</td> <td align="center">{Checkout-Status}</td> <td align="center">{Buttons}</td> </tr> <!-- End AccessBlock --> </table> ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- --------------------------- script.php(template.inc is included): -------------------------------------------------- ........$t = new template(); $t ->set_file("Out", "template.tpl"); $t ->set_block("Out", "AccessBlock", "tBlock"); //The execution of my php-script only works, if i rename my "AccessBlock" in my set_block in "OUT". .......$t ->set_var("Datum",$row['Date']); $t ->set_var("Status",$row["Status"]); $t ->set_var("Autor",$row["User_ID"]); $t ->set_var("Versions-Nr.",$row["Version_ID"]); $t ->set_var("Checkout-Status",$checkOutStatus); ......$t ->set_var("Buttons",$buttonString); $t->parse("tBlock", "AccessBlock", true); //Here i also have to rename the "AccessBlock" "Out".-> And then i only get one row out of my database into my table. . ......$t-> pparse("Output","Out"); //This is the final parse-order. Is anybody in the position to help me by fixing my problem??? ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------------------ |