⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 seemeet.php

📁 php做的一个同学录网站,功能齐全. 后台管理非常方便,有需要的同学可以下载测试.
💻 PHP
字号:
<?php
include("pwdsuper.php");
include("connect.inc.php");
include("char.inc.php");
?>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
 <!--
 function dispfile(vid,usid) {
   window.open('dispmeet.php?id='+vid+'&userid='+usid,'supermeet','resizable=1,scrollbars=1,width=450,height=400');
 }
 function openw(url,n,w,h) {
   window.open(url,n,'resizable=1,scrollbars=1,width='+w+',height='+h)
 }
 function high(which2){
 theobject=which2
 highlighting=setInterval("highlightit(theobject)",50)
 }
 function low(which2){
 clearInterval(highlighting)
 which2.filters.alpha.opacity=60
 }
 function highlightit(cur2){
 if (cur2.filters.alpha.opacity<100)
 cur2.filters.alpha.opacity+=10
 else if (window.highlighting)
 clearInterval(highlighting)
 }
 //-->
 </script>
<style type="text/css">
<!--
td{font-size:12px;line-height:17px;}
a:active {text-decoration: none;}
a:link {text-decoration: none;}
a:hover{text-decoration: underline;}
a:visited {text-decoration: none;}
BODY{font-size:12px;line-height:17px;SCROLLBAR-FACE-COLOR: #83d160; SCROLLBAR-HIGHLIGHT-COLOR: #CCFF00; SCROLLBAR-SHADOW-COLOR: #CCFF00; SCROLLBAR-3DLIGHT-COLOR: #009900; SCROLLBAR-ARROW-COLOR:  #006600; SCROLLBAR-TRACK-COLOR: ##99FF00; SCROLLBAR-DARKSHADOW-COLOR: #009900; }
-->
</style>
<title>聚会查看</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<p>聚会查看<br>
<?php
  $pagesize=15; //一页显示记录数
  $querytext='select * from meet ORDER BY pubdate DESC, id desc';
  $meetquery=mysql_query($querytext,$conn);
  $recordcount = mysql_num_rows($meetquery);
  $pagecount = bcdiv($recordcount+$pagesize-1,$pagesize,0); //算出总页数
  if(!isset($page)) $page = 1; //如果没有指定显示页码,缺省为显示第一页
  if($page<1) $page = 1; //如果页码比1小,则显示第一页
  if($page>$pagecount) $page = $pagecount; //如果页码比总页数大,则显示最后一页
  if($pagecount>0){
  if($page>0){ //页码比0大,表示有数据
     echo '<form action=seemeet.php method=GET><input type=hidden name="userid" value='.$userid.'>';
     echo '>> 分页 ';
     echo '<a href="' . $PHP_SELF . '?page=1&userid='.$userid.'">首页</a> ';
     if($page>1){
        echo '<a href="' . $PHP_SELF . '?page='. ($page-1) . '&userid='.$userid.'">前页</a> ';
     }
     else{
        echo '前页 ';
     }
     if($page<$pagecount){
        echo '<a href="' . $PHP_SELF . '?page='. ($page+1) . '&userid='.$userid.'">后页</a> ';
     }
     else{
        echo '后页 ';
     }
     echo '<a href="' . $PHP_SELF . '?page=' . $pagecount . '&userid='.$userid.'">尾页</a> ';
     echo '页次: ' . $page . '/' . $pagecount . '页 ';
     echo '输入页码:<input type=text name=page size=2>';
     echo $pagesize . '条/页 ';
     echo '共' . $recordcount . '条 ';
     echo '</form>';
  }
  echo '<table width="550" border="1" cellspacing="0" cellpadding="0">';
  echo '<tr><td width="32">编号</td><td width="223">标题</td><td width="56">发起人</td><td width="137">聚会时间</td><td width="90">聚会城市</td></tr>';
  //$rowi = ($page-1)*$pagesize+1;
  $rowi = ($page-1)*$pagesize;
  for($i=0;$i<$pagesize;$i++){
  if($rowi>($recordcount-1)){
  echo "</table>";
  }else{
  mysql_data_seek($meetquery,$rowi);
  $meetarray=mysql_fetch_array($meetquery);
 $no=$rowi+1;
  echo '<tr><td width="32">'.$no.'</td>';
  //echo '<td width="205">'.$meetarray["title"].'</td>';
  echo '<td width="223"><a href="javascript:dispfile('.$meetarray["id"].','.$userid.')">'.$meetarray["title"].'</a></td>';
  echo '<td width="56">'.$meetarray["initiator"].'</td>';
  echo '<td width="137">'.$meetarray["meetdt"].'</td>';
  echo '<td width="90">'.$meetarray["address"].'</td>';
  //$meetarray["readed"]?$readflag="已读":$readflag="未读";
  //echo '<td width="48">'.$readflag.'</td>';
  //echo '<td width="11"> ';
  //echo '<a href=seemeet.php?op=delete&id='.$meetarray["id"].'&userid='.$userid.'>X</a>';
  echo '</tr>';
  $rowi = $rowi+1;
  }
  }
  }else{    
  echo "<center>没有数据!!</center>";
  }
  ?>
<p>&nbsp; </p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -