Beim laden von seite verschiedene templates
Verfasst: 20.07.2003 20:44
Hi! ich wollt so ne seite machen, da wird geguckt was für eine religion (hab das feld location umbenannt) jemand hat und dann das entsprechende Template für die seite laden ... leider kommt dann immer das ich code als letztes erwähnte .tpl
Kann da jemand nen fehler entdecken ???
DAnke!
Code: Alles auswählen
if ($userdata['user_from'] =Buddhist)
{
$template->set_filenames(array(
'body' => 'buildings_buddhisten.tpl'));
};
if ($userdata['user_from'] =Christ)
{
$template->set_filenames(array(
'body' => 'buildings_christen.tpl'));
};
if ($userdata['user_from'] =Jude)
{
$template->set_filenames(array(
'body' => 'buildings_juden.tpl'));
};
if ($userdata['user_from'] =Germane)
{
$template->set_filenames(array(
'body' => 'buildings_germanen.tpl'));
};
if ($userdata['user_from'] =Moslem)
{
$template->set_filenames(array(
'body' => 'buildings_moslems.tpl'));
};
if ($userdata['user_from'] =Satanist)
{
$template->set_filenames(array(
'body' => 'buildings_satanisten.tpl'));
};
if ($userdata['user_from'] =Ungläubiger)
{
$template->set_filenames(array(
'body' => 'buildings_unglaubige.tpl'));
};
Kann da jemand nen fehler entdecken ???
DAnke!