【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-js.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<?
include './global.php';
function indexnews(){
global $db,$sortid,$sortname;
$show="<table width='100%'>";
$query=$db->query("select * from lfj_artic where sortid='$sortid' and sortname='$sortname' order by list desc limit 0,9");
while($array=$db->fetch_array($query)){
$posttime=$array['posttime'];
$title=$array['title'];
$id=$array['id'];
$time=date("Y-m-d",$posttime);
$show.="<tr><td>◇<A href=# onclick=window.open('show.php?id=$id','','scrollbars,width=580,height=500,top=20,left=120')>{$title}</A> </td> </tr> ";
}
$show.="</table>";
return $show;
}
$show=indexnews();
echo 'document.write("'.$show.'");';
?>