$dat['text'],'text'=>$dat['text2']); break; case "picture": $cell="file.php?image=".$dat['id']; break; case "pdffile": $cell=array('link'=>"file.php?pdf=".$dat['id'],'text'=>$dat['text']); break; } } if ($cell) $result[$dat[system]][$dat[row]][$dat['var']]=$cell; // print '$result['. $dat[system].' ][ '.$dat[row].' ]
';; } include('Smarty/Smarty.class.php'); $smarty = new Smarty; foreach ($result as $k=>$v) { foreach ($v as $key=>$value) { $ret[]=$value; } $smarty->assign($k,SortAssocArray($ret,$systemer[$k][sortby])); unset($ret); } //print_r($test); if ($_REQUEST['tpl']) { $smarty->display(getcwd().'/tpl/'.$_REQUEST[tpl].".tpl"); } else { $smarty->display(getcwd().'/tpl/index.tpl'); } ?>