www.gusucode.com > 仿51.com的php源码 1.1 > User/MySysLog.php
<?php include("CheckLogined.php"); include("../include/dbclass.php"); include("../include/global.php"); require_once "../include/page.php"; $dbc=new DbConn(); $uid=$_COOKIE["uid"]; $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> <link href="../images/User_Main.css" rel="stylesheet" type="text/css" /> </head> <script> try{ if(top!=window){ document.domain ="www.wu-liao.com"; }else{ top.location.href="/webin.php?refer=%2FUser%2FMySysLog.php"; } }catch(e){} function showNewMessage(user){ top.showNewMessage(user); } </script> <body><div id="top"><?php require("../top.php"); ?> </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"> <link href="../images/sz.css" rel="stylesheet" type="text/css"> <div id=a4n> <div class="anphg"> <div class="a5" id="l" style="background:#ffffff">系统提示</div> </div> </div> <!-- BEGIN FieldView:UcMySysLog --> <?php $uid=$_COOKIE["uid"]; //读时更新数据 $sql="update mysyslog set readed=1 where User_Account='$uid' and readed=0"; $dbc->Execute($sql); //mysql_query("set names gb2312"); //$P = filter($_POST); //$G = filter($_GET); $page=(int)$_GET["page"]; $sql="select * from mysyslog where User_Account='$uid' order by AboutTime desc"; $news = $dbc->getGopageRs($sql,$maxline); //echo "$sql"; $gopage = new GoPage($dbc->tpages,$dbc->total);//建立翻页程序 $backurl = "MySysLog.php?".$dbc->getParameter(); for($i=0;$i<$dbc->num_rows;$i++) { if ($news[$i]['ty']==0) { ?> <table width="570" border="0" cellpadding="0" cellspacing="0" class="tb"><tr> <td height="120"> <img src="../images/system.gif" border="0" class="photo"></td> <td width="356"> <div class="fkxx"> <div class="fkx1"><strong>系统提示</strong></div> <div class="fkx2"><?php echo $news[$i]['AboutTime']; ?></div> <div class="fkx1"></div> <div class="fkx3"><span class="b">事件:</span><?php echo $news[$i]['EventTxt']; ?></div> </div> </td> <td width="100"></td> </tr></table> <?php }?> <?php if ($news[$i]['ty']==1){ ?> <table width="570" border="0" cellpadding="0" cellspacing="0" class="tb"><tr> <script src='../1e/<?php echo $news[$i]["Who_Account"]; ?>/<?php echo $news[$i]["Who_Account"]; ?>.js'></script> <script> var ImgShow='<img src=../images/loadface.gif border=0 width=80 height=90>'; if(typeof(<?php echo $news[$i]["Who_Account"]; ?>)!='undefined') { var ImgShow='<img src='+<?php echo $news[$i]["Who_Account"]; ?>_photo+' border=0 class=photo width=80 onLoad=reloadImage(this)>'; } </script> <td height="120"> <a href='http://www.wu-liao.com/home.php?user=<?php echo $news[$i]["Who_Account"]; ?>' target='_blank' title='点击查看<?php echo $news[$i]["Who_Account"]; ?>的个人主页'><script>document.write(ImgShow);</script></a></td> <td width="356"> <div class="fkxx"> <div class="fkx1"> <a href='http://www.wu-liao.com/home.php?user=<?php echo $news[$i]["Who_Account"]; ?>' target='_blank' title='点击查看<?php echo $news[$i]["Who_Account"]; ?>的个人主页'><?php echo $news[$i]["Who_Account"]; ?></a></div> <div class="fkx2"><?php echo $news[$i]['AboutTime']; ?></div> <div class="fkx1"></div> <div class="fkx3"><span class="b">事件:</span><?php echo $news[$i]["EventTxt"]; ?></div> </div> </td> <td width="100"><!--<img src="../images/xx.gif" width="14" height="13" border="0" /> <a href="#" title="发送短消息给<?php echo $username; ?>" onclick="showNewMessage('<?php echo $username; ?>')">发短消息</a>--><br><img src="../images/hy.gif" width="12" height="12" border="0" /> <a href="#" onclick="window.open('AddFriend.php?user=<?php echo $news[$i]["Who_Account"]; ?>&t=1', 'AddFriend', 'height=200, width=350, left=100, top=150, screenX=200, screenY=200, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no, z-look=yes');return false;">加为好友</a></td> </tr></table> <?php } }?> <!-- END FieldView:UcMySysLog --> <?=$gopage->style(3)?> <!--div class="plcz"> </div --> </div> </div> </div> <div id="bottom"> <div id="baidu" style="color:#a0a0a0;"><?php require("../foot.php"); ?></div> </div> <?php $dbc->Quit();?> </body> </html>