www.gusucode.com > 仿51.com的php源码 1.1 > User/MyFeedback.php

    <?php
include("../user/CheckLogined.php");
include("../include/dbclass.php");
require_once "../include/page.php";
$dbc=new DbConn();
$uid=$_COOKIE["uid"];
$page=(int)$_GET["page"];
$maxline = 10;
?>
<!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=gb2312" />
<title>客服</title>
<script>
try{
	if(top!=window){
		document.domain	="www.wu-liao.com";		
	}else{
		top.location.href="/webin.php?refer=%2FUser%2FMyFeedback.php";
	}
}catch(e){}
function showNewMessage(user){
	top.showNewMessage(user);
}

</script>
<link href="../images/User_Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">
<div id="logo"><a href="/User/Main.php"></a></div>
<div id="topr">
<div id="exit"><?php require("../menu.php"); ?>
<div id="menu">
<div class="m2">
<div class="mg"><a href="/User/Main.php">用户管理中心</a></div>
<div class="mh"><a href="/Diary/DiaryList.php">日记文集</a></div>
<div class="ma" ><a href="PhotoList.php">相册</a></div>
<div class="ma"><a href="/Image/ImageList.php">图库</a></div>
<div class="mb"><a href="/Music/MusicList.php">音乐</a></div>
<div class="mc"><div id="ms"><a href="/Memo/MemoList.php"><img src="../images/suo2.gif" width="10" height="12" />&nbsp;秘密记事本</a></div>
</div>
<div class="me"><a href="/Fav/FavList.php">网址收藏夹</a></div>
<div class="mf"><a href="/Addr/AddrList.php">通讯录</a></div>
</div>
</div>
</div>
<div id="nav">
<div id="navt"></div>
</div>

<div id="mjx"></div>
<div id="main">


<div id=left>
<div id=leph>
<div class=phff>
<div class=phtt>收件箱</div>
<?php include("../ToMeMenu.php"); ?>
</div>
</div>
</div>
<div id="right">
<div id="fenle">
<DIV id=a4n>
<DIV class=anphg>
<DIV  id=l style="BACKGROUND: #ffffff"><a href="../yijian/index.php"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align:left;"><span style="font-size:18px; font-family:'黑体';" >客服</span></td>
<td width="100"><a href="../yijian/index.php" class="phtt" style="text-decoration:underline;" target="_blank">填写问题</a></td>
</tr>
</table>
</DIV>
</DIV></DIV>
<style>
table {
table-layout: fixed;
word-wrap:break-word;
}
div {
word-wrap:break-word;
}
</style>
<!-- BEGIN FieldView:UcMyFeedback -->

<?php
//更新数据库把没有看的都设为看了
$sqlread="update yijian set replayed='0' where User_Account='$uid'";
$dbc->Execute($sqlread);


$sql="select id,memo,AddDate,replay from yijian where User_Account='$uid' order by AddDate desc";

$news = $dbc->getGopageRs($sql,$maxline);
  //echo "$sql";
$gopage = new GoPage($dbc->tpages,$dbc->total);//建立翻页程序
$backurl = "MyFeedback.php?".$dbc->getParameter();
for($i=0;$i<$dbc->num_rows;$i++)
{?>

<TABLE class=tb cellSpacing=0 cellPadding=0 width=570 border=0 >
<TBODY>
<TR>
<TD width="100%" style=" text-align:left; padding:5px 0 5px 5px; color:#000;"><a href="MyFeedbackInfo.php?id=<?php echo $news[$i]["id"];?>" style="text-decoration:none;"><?php echo substr($news[$i]["memo"],0,35);?></a>
<?php echo date("m-d ",$news[$i]["AddDate"]);?>
<?php if($news[$i]["replay"]!=null){?>
<hr size="0" color="#aaaaaa">
管理员回复:<font color="red"><?php echo $news[$i]["replay"]; ?></font>
<?php }?>
</TD>
</TR>

</TBODY>
</TABLE>

<?php }?>


<!-- END FieldView:UcMyFeedback -->
<!-- 分页 -->
<div class="stsc">
<div class="fenye">
<?=$gopage->style(3)?>&nbsp;&nbsp;</div>
</div>
<div style="color:red; margin-top:20px;">
提示:由于咨询量过大,VIP的问题将会优先及时处理。普通会员有问题请查看"<a href='/Help/faq.php' target='_blank' style='text-decoration:underline;color:blue;'>帮助中心</a>".
</div>
</div>
</div>
</div>
<div id="bottom">
<div id="baidu" style="color:#a0a0a0;"><?php require("../foot.php"); ?></div>
</div>
</body>
</html>