www.gusucode.com > 仿51.com的php源码 1.1 > User/MyFeedbackInfo.php
<?php include("../user/CheckLogined.php"); include("../include/dbclass.php"); require_once "../include/page.php"; $dbc=new DbConn(); $uid=$_COOKIE["uid"]; $id=(int)$_GET["id"]; $sql="select * from yijian where id='$id' and User_Account='$uid'"; $row=$dbc->getRs($sql); if($row==null) { echo "参数不对"; exit(); } if($_GET["action"]=="add") { $new_content=$_POST["new_content"]; $content=$row["memo"].$new_content; $sqlup="update yijian set memo='$content'where id='$id' and User_Account='$uid'"; $dbc->Execute($sqlup); echo "<script>alert('你的问题已提交!');location.href='MyFeedback.php';</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=gb2312" /> <title>客服</title> <script> try{ if(top!=window){ document.domain ="www.wu-liao.com"; }else{ top.location.href="/webin.php?refer=%2FUser%2FMyFeedbackInfo.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" /> 秘密记事本</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> <style> table { table-layout: fixed; word-wrap:break-word; } div { word-wrap:break-word; } </style> <DIV id=l style="BACKGROUND: #ffffff"> <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" target="_blank" class="phtt" style="text-decoration:underline;">填写问题</a></td> </tr> </table> </DIV> </DIV></DIV> <TABLE class=tb cellSpacing=0 cellPadding=0 width=570 border=0 > <TBODY> <TR> <TD style=" text-align:left; padding:15px 5px 10px 5px ; color:#000; border:none;"> <p style="margin-bottom:10px;"><strong>我的问题:</strong><?php echo $row["memo"];?><span style='color:#888;'>[<?php echo date("m-d h:i",$row["AddDate"]); ?>]</span> </p> <hr size="1" color="#aaaaaa"> <p>管理员回复:<font color="#FF0000"><?php echo $row["replay"];?></font> </p> <?php if($row["replay"]==""){?> <form action="" method="post"> <div id=""><strong>如果您对该问题还有什么疑问,可以直接在下面提交您的问题,我们将尽快给您回复。</strong><br> <textarea name="new_content" cols="80" rows="6" style="margin:8px 0;"></textarea> <br> <input type="hidden" name="action" value="add"> <input type="submit" name="Submit" value=" 提 交 "> </div> </form> <?php }?> </TD> </TR> </TBODY> </TABLE> </div> </div> </div> <div id="bottom"> <div id="baidu" style="color:#a0a0a0;"><?php require("../foot.php"); ?></div> </div> </body> </html>