<?php
define("INCLUDE_CHECK",1);
require 'connect.php';
require 'functions.php';
mysql_query("DELETE FROM wave_comments WHERE id>5 AND dt<SUBTIME(NOW(),'0 1:0:0')");
$comments_result = mysql_query("SELECT * FROM wave_comments ORDER BY id ASC");
$comments=array();
$js_history='';
while($row=mysql_fetch_assoc($comments_result))
{
if($row['parent']==0)
$comments[$row['id']] = $row;
else
{
if(!$comments[$row['parent']]) continue;
$comments[$row['parent']]['replies'][] = $row;
}
$js_history.='addHistory({id:"'.$row['id'].'"});'.PHP_EOL;
}
$js_history='<script type="text/javascript">
'.$js_history.'
</script>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Google Wave-like中文版</title>
<link rel="stylesheet" type="text/css" href="demo.css" />
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-lightness/jquery-ui.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<?php echo $js_history; ?>
</head>
<body>
<div id="main">
<h1>Google Wave-like</h1>
<div id="wave">
<div id="topBar">Your Demo Wave</div>
<div id="subBar">
<img src="img/codefans.net.png" alt="codefans.net" /><img src="img/demo.png" alt="Demo" /><img src="img/curious.png" alt="Curious" />
</div>
<div id="sliderContainer">
<div id="slider"></div>
<div class="clear"></div>
</div>
<div id="commentArea">
<?php
foreach($comments as $c)
{
showComment($c);
}
?>
</div>
<input type="button" class="waveButtonMain" value="Add a comment" onclick="addComment()" />
<div id="bottomBar">
</div>
</div>
<div class="container tutorial-info">
Google Wave-like中文译版 <a href="http://www.codefans.net" target="_blank">CodeFans.net</a>. </div>
</div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的GoogleWave-like中文翻译版源码.zip
共15个文件
php:4个
jpg:4个
png:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 47 浏览量
2023-08-26
21:50:15
上传
评论
收藏 17KB ZIP 举报
温馨提示
基于PHP的GoogleWave-like中文翻译版源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的GoogleWave-like中文翻译版源码.zip (15个子文件)
132707310438670545
GoogleWave
demo.php 2KB
demo.css 3KB
ajax
saveComment.php 463B
img
ajax_load.gif 1KB
button_bg.jpg 355B
curious.png 2KB
page_bg.jpg 415B
codefans.net.png 3KB
dark_bg.jpg 343B
bg.jpg 378B
demo.png 876B
connect.php 555B
functions.php 1KB
table.sql 2KB
script.js 3KB
共 15 条
- 1
资源评论
易小侠
- 粉丝: 6475
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功