<title>留言本</title>
<body bgcolor=white>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">

<!--
td { font-f " /> 99视频网站,69夫妻交友网,2019在秋霞理论

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

挑戰(zhàn)最棒的留言本的源碼(五)

<html>
<title>留言本</title>
<body bgcolor=white>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">

<!--
td {  font-family: "宋體", "serif"; font-size: 9pt; font-weight: normal}
a:link {  text-decoration: none}
a:hover {  color: #999999}
a:visited {  text-decoration: none; font-weight: normal}
body {  font-family: "宋體", "serif"; font-size: 11pt}
tr {  font-family: "宋體", "serif"; font-size: 11pt}
.unnamed1 {  font-size: 9pt; font-weight: bold}
.p9 {  font-family: "宋體"; font-size: 11pt}
.unnamed2 {  font-size: 11pt}
-->
</style>
</head>
<h1><center><font color="green" size=7>留言信息</font></center></h1>

<?php  
      require('config.php');  
?>


<?php


$initial_record=0;
$sort_field='key_liuyan';
$sort_direction='DESC';

if (strlen($arr_request['initial_record']))
   {  
     $initial_record=$arr_request['initial_record'];
     $sort_field=$arr_request['sort_field'];
     $sort_direction=$arr_request['sort_direction'];

   }


$str_sql_all="select count(*) as number_of_records from $table_name ";

$result=mysql_db_query($db_name,$str_sql_all,$id_link);

if (!result)
   { affy_error_exit('SQL select execution has failed.');}

$record=@mysql_fetch_object($result);

$number_of_records=$record->number_of_records;

if (strlen($sort_field)==0)
  {
    $str_sql="select * from $table_name  
              limit $initial_record,$number_records_to_display ";

  }

else  
{

   $str_sql="select * from $table_name order by $sort_field $sort_direction
             limit $initial_record,$number_records_to_display ";
}


$result=mysql_db_query($db_name,$str_sql,$id_link);

if (!$result)
   { affy_error_exit('SQL select execution has failed.');}

$number_of_records_on_current_page=@mysql_num_rows($result);

if ($number_of_records<1)
  {  echo '<p>表中沒(méi)有數(shù)據(jù)!<p>';}
else
  {
    $next_index=$initial_record+$number_records_to_display;

    if ($next_index>$number_of_records)
         $next_index=$number_of_records;

     

    $prev_index=$initial_record-$number_records_to_display;

    if ($prev_index<0)
       {
          $prev_index=0;
       }  


  }

echo "<center>";
echo "<table border=0><tr bgcolor=#f1f1f1><td width=24% align=left>";

if ($initial_record!=0)
   {
     $t1="initial_record=$prev_index";
     $sort="sort_field=$sort_field";
     $asc="sort_direction=$sort_direction";
     echo "<a href="$php_SELF?$asc&$sort&$t1 ">";
     echo "<<前 $number_records_to_display 條留言</a>";

   }

else
  {
     echo "|前面沒(méi)有留言了";

  }

echo "</td><td width=52% align=center>";

    $t2=$initial_record+1;

    echo "本頁(yè)顯示第 <font color=green>$t2</font> 到 <font color=green>$next_index</font>
條留言,共<font color=blue>$number_of_records</font>條留言";

echo "</td><td width=24% align=right>";

if ($next_index!=$number_of_records)

  {
     $t1="initial_record=$next_index";
     $sort="sort_field=$sort_field";
     $asc="sort_direction=$sort_direction";
     echo "    <a href="$php_SELF?$asc&$sort&$t1 ">";
     echo "后 $number_records_to_display 條留言>></a>";
  }  
else
  {
     echo "后面沒(méi)有留言了|";

  }

echo "</td></tr></table>";
echo "</center><p>";

?>

<center>

<a href=index.html><h4>[我也要留言]</h4></a>
<p>

<table border="0",width="95%" cellspacing="0" cellpadding="0">
<?php
for ($iindex=0;$iindex<$number_of_records_on_current_page;$iindex++)
{
$record=mysql_fetch_object($result);
require('display.inc');
}

?>
</table>
</center>

<p>
<?php  
echo "<center>";
echo "<table border=0><tr><td>";
echo "轉(zhuǎn)到第";

if (($number_of_records % $number_records_to_display)==0)
   {
     $number_of_pages=$number_of_records / $number_records_to_display;

      
   }

else  
   {
     $number_of_pages=($number_of_records-($number_of_records % $number_records_to_display))/$number_records_to_display+1;

   }


     $sort="sort_field=$sort_field";
     $asc="sort_direction=$sort_direction";


for ($ii=1;$ii<=$number_of_pages;$ii++)

{
     $yeshu=($ii-1)*$number_records_to_display ;
     $t1="initial_record=$yeshu ";

     if ($initial_record!=$yeshu)
       {

         echo "<a href="$php_SELF?$asc&$sort&$t1 ">";
         echo "[ $ii ]</a>";
       }
     else
         echo "[ $ii ]";



}












echo "頁(yè)  共<font color=blue> $number_of_pages </font>頁(yè)";
echo "</td></tr></table>";
echo "</center><p>";

?>

<hr></hr>
<center>免費(fèi)留言本由<a href="http://little.oso.com.cn" >小熊</a>提供技術(shù)支持</center>


</body>
</html>


【本文版權(quán)歸作者與奧索網(wǎng)共同擁有,如需轉(zhuǎn)載,請(qǐng)注明作者及出處】    

php技術(shù)挑戰(zhàn)最棒的留言本的源碼(五),轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 亚洲精品电影久久久影院 | 国产亚洲精品久久久无码狼牙套 | xx69中国| 最新亚洲一区二区三区四区 | 老司机午夜影院试看区 | 国产女人与黑人在线播放 | 伊人久久伊人 | 边摸边吃奶边做激情叫床视 | 国产在线精品视亚洲不卡 | 麻豆精品人妻一区二区三区蜜桃 | 超碰caopro熟女m超碰分类 | 国产探花在线精品一区二区 | 91免费网站在线看入口黄 | 最新 国产 精品 精品 视频 | 精品国产乱码久久久久久夜深人妻 | 九色PORNY真实丨首页 | 999在线观看精品免费 | 久久秋霞理论电影 | 漂亮的保姆6在线观看中文 漂亮的保姆5电影免费观看完整版中文 | 亚洲中文日韩日本在线视频 | 佐山爱巨大肥臀在线 | X8X8拨牐拨牐X8免费视频8午夜 | 国产揄拍国产精品 | 在线亚洲黄色 | 日韩中文字幕亚洲无线码 | 国产午夜小视频 | 妈妈的朋友6未删减版完整在线 | 97在线观看免费 | 日产国产欧美韩国在线 | 网友自拍成人在线视频 | 午夜神器18以下不能进免费 | 性欧美video另类hd高清 | 中文字幕 人妻熟女 | 国产在线公开视频 | 精品香蕉99久久久久网站 | 天天躁躁水汪汪人碰人 | 色欲精品久久人妻AV中文字幕 | 四虎影视国产精品亚洲精品hd | 旧里番ovaの催○セイ活指导 | 交换邻居波多野结衣中文字幕 | 91看片淫黄大片.在线天堂 |