GetOne("Select * From `#@__myppttype` where id='$id'"); $typename=$row['typename']; if($typename=="") { $typename="默认分类"; } return $typename; } if(!empty($tid)) { $sql = "Select * from `#@__myppt` where typeid='{$tid}' order by orderid asc"; } else { $sql = "Select * from `#@__myppt` order by aid desc,orderid asc"; } $dlist = new DataListCP(); $dlist->SetTemplet(DEDEADMIN."/templets/ppt_main.htm"); $dlist->SetSource($sql); $dlist->display(); function TestType($tname) { if($tname=="") { return "所有栏目"; } else { return $tname; } } function TimeSetValue($ts) { if($ts==0) { return "不限时间"; } else { return "限时标记"; } } ?>