require ("../../conn.php");
require ("../../fun_liu.php");
$id=$HTTP_GET_VARS['id'];
$now=date(Y)."-".date(m)."-".date(d)." ".date(h).":".date(m).":".date(s);
$id0=$HTTP_POST_VARS[id0];
$reid=$HTTP_POST_VARS[reid];
$type=$HTTP_POST_VARS[type];
$content=$HTTP_POST_VARS[content];
$username=$HTTP_POST_VARS[username];
if($reid){
$wtime=date("Y-m-d")." ".date("H:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re) values('$username','$content',9,$id0,'$wtime',$reid)";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}else{
if($type=="add"){
$wtime=date("Y-m-d")." ".date("H:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re) values('$username','$content',9,$id0,'$wtime',0)";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}
}
?>
Sympatex详细介绍
require("../../top1.php");?>
『 新 闻 』
getzantailist(485,200,50); ?>
$sql="select * from pinglun where branch_id=$id and type=9 order by id desc limit 0,10";
$query=mysql_query($sql,$conn);
$i=0;
while($array=mysql_fetch_array($query)){
($i % 2 ==0)?$color="#EDF0F5":$color="#E8E7E2";
echo "";
$str=" ";
echo "作者:".$array[send_name]." ";
echo $str;
echo $array[content]." ";
$i++;
}
echo "更多评论...
";
?>
require("../../bottom.php");
?>