| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> php >> PHP+TEXT liu yan ben ( yi )

PHP+TEXT liu yan ben ( yi )

2008-12-28 07:39:49 编辑來源:互联网 评论
 
 
 
本文为【PHP+TEXT留言本(一)】的拼音翻译版
  da jia zhi dao , shu ju ku dui yu wang luo lai shuo de chong yao xing . you yu cgi de fu duo , xian zai asp he php+mysql yi jing cheng wei zhu liu . ji hu suo you de ge ren wang ye dou yao yong dao liu yan ben , ke shi shen qing de liu yan ben hen bu wen ding . zhe wei wang shang de jiao liu dai lai le zhu duo bu bian . suo yi , xi wang yong you zi ji de liu yan ben de peng you yue lai yue duo .
  dan shi , mian fei de ge ren zhu ye zhi chi asp he php de hen shao . bi zhe xian zai xiang nin tui jian dong zhan zhi nan ,(http://www.knowsky.com) zhi chi php. zhe yang nin bian you le neng gou yong you zi ji liu yan ben de ji chu . xian zai , wo jiu tong guo yi ge wen ben liu yan ben de li zi lai jiang shu php de jian dan shi yong .
   shou xian , wo men xian que ding , liu yan de ji ge guo cheng : xie liu yan , fa song , cha kan .( sou suo ) deng deng . er qie dui yu ban zhu lai shuo , guan li liu yan ben you shi bu ke huo que de . zhe yang wo men jiu bu fang ding wei yu 6 ge php wen jian ,1 ge wen ben wen jian .6 ge php wen jian fen bie wei :guest.php manage.php reply.php sys.php del.php edit.php,1 ge wen ben wen jian wei :guest.txt
  xian lai kan kan guest.php de nei rong , ni dang ran ke yi zhi jie jiang xia mian de nei rong fang dao nin de php wang ye li , qing zun chong zuo zhe de lao dong , xie xie .
  ----------------------
  //guest.php:<?
  require("sys.php");
  if ($B1)
  {
  if ($message=="" or $name=="")
  {
  $errorm="<font color=red> chu cuo le !!!</font> xing ming he liu yan nei rong bi tian ";
  }
  else
  {
  # xie ru shu ju
  $space = "&nbsp;";
  $time = date(Y nian m yue d ri H xiao shi i fen );
  $ip=$REMOTE_ADDR;
  $name=encode($name);
  $homepage=encode($homepage);
  $from=encode($from);
  $email=encode($email);
  $message=StripSlashes($message);
  $message=htmlspecialchars($message);
  $message=check_strlen_long($message);
  $message=nl2br($message);
  $guestcontent = "<tr><td><font color=#AB00E1> liu yan nei rong :</font><br><!--content>$message<!--endcontent> ";
  $guestcontent=$guestcontent."<br><font color=#6633FF> liu yan ren da ming :</font><!--name>$name<!--endname> ";
  if ($email !="")
  {$guestcontent=$guestcontent."<br><font color=#9900CC> dian zi xin xiang </font><a href=\"email]$email"."$space'mailto:$email\"><!--email>$email<!--endemail></a>"."$space";}
  if ($homepage !="http://")
  {$guestcontent=$guestcontent."<font color=#9900CC> zhu ye :</font>$hompage<a href=\"$homepage\"><!--homepage>$homepage<!--endhomepage></a>";}
  $guestcontent=$guestcontent."<br><font color=#0000FF> shi jian :$time lai zi :<!--from>$from<!--endfrom> $ip</font>";
  $guestcontent=ereg_replace(chr(10),"",$guestcontent);
  $guestcontent=$guestcontent."<hr size=1></td></tr>\n";
  $fp=fopen($guestfile,"a");
  fputs($fp,$guestcontent);
  fclose($fp);
  }
  }
  ?>
  <html>
  <head>
  <title>zihanonlinegbook</title>
  <style>
  <!--
  A:link {text-decoration: none ; color:0000ff}
  A:visited {text-decoration: none; color:004080}
  A:active {text-decoration: none}
  A:hover {text-decoration: underline; color:ff0000}
  BODY {FONT-SIZE:10pt}
  TH {FONT-SIZE:10 pt}
  TD {FONT-SIZE: 10pt}
  TEXTAREA
  {
  FONT-FAMILY: " song ti ";
  FONT-SIZE: 10pt;
  }
  -->
  </style>
  <body bgcolor=#FFFFFD background="bg.jpg">
  <div align="center">&nbsp;
  <? include('head.htm');?>
  <table width="68%" border="1" cellpadding="3" cellspacing="0" bordercolor="#E3E3E3">
   <form method="POST" action="guest.php">
   <?
   if ($errorm)
   {
   echo "<tr>";
   echo "<td colspan=3 height=32> ";
   echo "$errorm";
   echo "</td>";
   echo "</tr>";
   }
   ?>
   <tr>
   <td width="22%" bgcolor="#F0F0F0"><font color="#000000"> xing ming <font color="#FF0033">( bi tian )</font></font></td>
   <td colspan="2" width="78%" bgcolor="#F0F0F0"><font color="#00FF00">
   <input type="text" name="name" size="40">
   </font></td>
   </tr>
   <tr>
   <td width="22%" height="29"> zhu ye :</td>
   <td colspan="2" height="29" width="78%">
   <input type="text" name="homepage" size="40" value="http://">
   </td>
   </tr>
   <tr>
   <td width="22%" height="27" bgcolor="#F0F0F0"> lai zi :</td>
   <td colspan="2" height="27" width="78%" bgcolor="#F0F0F0">
   <input type="text" name="from" size="40">
   </td>
   </tr>
   <tr>
   <td width="22%" height="20">Email:</td>
   <td colspan="2" height="20" width="78%"><font color="#00FF00">
   <input type="text" name="email" size="40">
   </font></td>
   </tr>
   <tr>
   <td colspan="3" valign="middle" align="left">
   <div align="center"><font color="#000000"> qing liu yan </font><font color="#FF0033">( bi tian )</font><font color="#00FF00"><br>
   <textarea rows="6" name="message" cols="55" wrap="VIRTUAL"></textarea>
   </font></div>
   </td>
   </tr>
   <tr bgcolor="#F0F0F0">
   <td colspan="3" height="24">
   <div align="center"><font color="#00FF00">
   <input type="submit" value=" fa song " name="B1">
   &nbsp;&nbsp;&nbsp;
   <input type="reset" value=" chong xie " name="B2">
   </font></div>
   </td>
   </tr>
   </form>
  </table>
  <table width="68%" border="1" cellpadding="4" cellspacing="0" bordercolor="#E3E3E3">
   <tr>
   <td>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
   <form action=manage.php method=post>
   <tr>
   <td colspan="2">
   <input type=hidden name=dispflag value=show>
   guan li mi ma :
   <input type=password name=password size=8>
   &nbsp;
   <input type=submit value=" que ding " name="submit">
   </td>
   </tr>
   </form>
   </table>
   </td>
   <td>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
   <form action=guest.php method=post>
   <tr>
   <td> qing shu ru guan jian zi :
   <input type="text" name="keyword" size="10">
   <input type="submit" name="search" value=" sou suo liu yan ">
   </td>
   </tr>
   </form>
   </table>
   </td>
   </tr>
  </table>
  <?
  function search($keyword)
  {
  global $content;
  $count=count($content);
  $subscript=0;
  $ArrSearch=array();
  for ($i=0;$i<$count;$i++)
   {
   if (ereg($keyword,$content[$i]))
   {
   $ArrSearch[$subscript]=ereg_replace($keyword,"<font color=red>$keyword</font>",$content[$i]);
   $subscript++;
   }
   }
  return $ArrSearch;
  }//end function
  $one_page_line=15;
  $content = file($guestfile);
  if (isset($search) and isset($keyword) and $keyword!="")
  {
  $content=search($keyword);
  }
  $count =count($content);
  ?>
  <table width="68%" border="0">
   <tr>
   <td>
  
   <?
   $int_page_count=$count;// zong tiao shu ;
   $int_page_num=ceil($int_page_count/$one_page_line);// zong ye shu ;
   echo "<font color=#CC33FF> fen ye :";
   for ($i=1;$i<=$int_page_num;$i++)
   {
   echo "<a href=guest.php?page=$i>".$i."</a>&nbsp;";
   }
   echo "</font>";
   if (isset($search) and isset($keyword) and $keyword!="")
   {
   echo "<br><center>";
   echo " xia mian de liu yan zhong bao han guan jian zi <font color=red>$keyword</font> gong <font color=red>".$count."</font> tiao </center>";
   }
   ?>
   </td><td><p align=right> gong you <font color=red><?echo "$count"?></font> tiao </p></td>
   </tr>
  </table>
  </div>
  <br>
  <table width="68%" border="0" align="center">
  <?
   if ($page=="" or !isset($page))
   {$page=1;}
   $text="";
   $begin_line=$int_page_count-($page-1)*$one_page_line;
   if ($begin_line<$one_page_line){$one_page_line=$begin_line;}
   for ($j=$begin_line;$j>($begin_line-$one_page_line);$j--)
   {
   $text=$text."<tr><td align=right colspan=2><a href=reply.php?job=reply&record=".$j."> hui fu </a>&nbsp;<a href=edit.php?record=".$j."> bian ji </a>&nbsp;<a href=dele.php?record=".$j."> shan chu </a>&nbsp; di <font color=red>$j</font> tiao </td></tr>";
   $text.=$content[$j-1];
  
   // shu zu zhao xia biao cong 0 kai shi .
   }
  echo "$text";
  ?>
  </table>
  <?
  include('bottom.htm');
  ?>
  </body>
  </html>
  ------------------
  wei wan dai xu ...【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
da jia zhi dao , shu ju ku dui yu wang luo lai shuo de chong yao xing . you yu cgi de fu duo , xian zai asp he php+mysql yi jing cheng wei zhu liu . ji hu suo you de ge ren wang ye dou yao yong dao liu yan ben , ke shi shen qing de liu yan ben hen bu wen ding . zhe wei wang shang de jiao liu dai lai le zhu duo bu bian . suo yi , xi wang yong you zi ji de liu yan ben de peng you yue lai yue duo . dan shi , mian fei de ge ren zhu ye zhi chi asp he php de hen shao . bi zhe xian zai xiang nin tui jian dong zhan zhi nan ,([url=http://www.knowsky.com]http://www.knowsky.com[/url]) zhi chi php. zhe yang nin bian you le neng gou yong you zi ji liu yan ben de ji chu . xian zai , wo jiu tong guo yi ge wen ben liu yan ben de li zi lai jiang shu php de jian dan shi yong . shou xian , wo men xian que ding , liu yan de ji ge guo cheng : xie liu yan , fa song , cha kan .( sou suo ) deng deng . er qie dui yu ban zhu lai shuo , guan li liu yan ben you shi bu ke huo que de . zhe yang wo men jiu bu fang ding wei yu 6 ge php wen jian ,1 ge wen ben wen jian .6 ge php wen jian fen bie wei :guest.php manage.php reply.php sys.php del.php edit.php,1 ge wen ben wen jian wei :guest.txt xian lai kan kan guest.php de nei rong , ni dang ran ke yi zhi jie jiang xia mian de nei rong fang dao nin de php wang ye li , qing zun chong zuo zhe de lao dong , xie xie . ---------------------- //guest.php:<? require("sys.php"); if ($B1) { if ($message=="" or $name=="") { $errorm="<font color=red> chu cuo le !!!</font> xing ming he liu yan nei rong bi tian "; } else { # xie ru shu ju $space = "&nbsp;"; $time = date(Y nian m yue d ri H xiao shi i fen ); $ip=$REMOTE_ADDR; $name=encode($name); $homepage=encode($homepage); $from=encode($from); $email=encode($email); $message=StripSlashes($message); $message=htmlspecialchars($message); $message=check_strlen_long($message); $message=nl2br($message); $guestcontent = "<tr><td><font color=#AB00E1> liu yan nei rong :</font><br><!--content>$message<!--endcontent> "; $guestcontent=$guestcontent."<br><font color=#6633FF> liu yan ren da ming :</font><!--name>$name<!--endname> "; if ($email !="") {$guestcontent=$guestcontent."<br><font color=#9900CC> dian zi xin xiang </font><a href=\"[url=mailto:$email\]$email[/url]"."$space'mailto:$email\"><!--email>$email<!--endemail></a>"."$space";} if ($homepage !="http://") {$guestcontent=$guestcontent."<font color=#9900CC> zhu ye :</font>$hompage<a href=\"$homepage\"><!--homepage>$homepage<!--endhomepage></a>";} $guestcontent=$guestcontent."<br><font color=#0000FF> shi jian :$time lai zi :<!--from>$from<!--endfrom> $ip</font>"; $guestcontent=ereg_replace(chr(10),"",$guestcontent); $guestcontent=$guestcontent."<hr size=1></td></tr>\n"; $fp=fopen($guestfile,"a"); fputs($fp,$guestcontent); fclose($fp); } } ?> <html> <head> <title>zihanonlinegbook</title> <style> <!-- A:link {text-decoration: none ; color:0000ff} A:visited {text-decoration: none; color:004080} A:active {text-decoration: none} A:hover {text-decoration: underline; color:ff0000} BODY {FONT-SIZE:10pt} TH {FONT-SIZE:10 pt} TD {FONT-SIZE: 10pt} TEXTAREA { FONT-FAMILY: " song ti "; FONT-SIZE: 10pt; } --> </style> <body bgcolor=#FFFFFD background="bg.jpg"> <div align="center">&nbsp; <? include('head.htm');?> <table width="68%" border="1" cellpadding="3" cellspacing="0" bordercolor="#E3E3E3"> <form method="POST" action="guest.php"> <? if ($errorm) { echo "<tr>"; echo "<td colspan=3 height=32> "; echo "$errorm"; echo "</td>"; echo "</tr>"; } ?> <tr> <td width="22%" bgcolor="#F0F0F0"><font color="#000000"> xing ming <font color="#FF0033">( bi tian )</font></font></td> <td colspan="2" width="78%" bgcolor="#F0F0F0"><font color="#00FF00"> <input type="text" name="name" size="40"> </font></td> </tr> <tr> <td width="22%" height="29"> zhu ye :</td> <td colspan="2" height="29" width="78%"> <input type="text" name="homepage" size="40" value="http://"> </td> </tr> <tr> <td width="22%" height="27" bgcolor="#F0F0F0"> lai zi :</td> <td colspan="2" height="27" width="78%" bgcolor="#F0F0F0"> <input type="text" name="from" size="40"> </td> </tr> <tr> <td width="22%" height="20">Email:</td> <td colspan="2" height="20" width="78%"><font color="#00FF00"> <input type="text" name="email" size="40"> </font></td> </tr> <tr> <td colspan="3" valign="middle" align="left"> <div align="center"><font color="#000000"> qing liu yan </font><font color="#FF0033">( bi tian )</font><font color="#00FF00"><br> <textarea rows="6" name="message" cols="55" wrap="VIRTUAL"></textarea> </font></div> </td> </tr> <tr bgcolor="#F0F0F0"> <td colspan="3" height="24"> <div align="center"><font color="#00FF00"> <input type="submit" value=" fa song " name="B1"> &nbsp;&nbsp;&nbsp; <input type="reset" value=" chong xie " name="B2"> </font></div> </td> </tr> </form> </table> <table width="68%" border="1" cellpadding="4" cellspacing="0" bordercolor="#E3E3E3"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <form action=manage.php method=post> <tr> <td colspan="2"> <input type=hidden name=dispflag value=show> guan li mi ma : <input type=password name=password size=8> &nbsp; <input type=submit value=" que ding " name="submit"> </td> </tr> </form> </table> </td> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <form action=guest.php method=post> <tr> <td> qing shu ru guan jian zi : <input type="text" name="keyword" size="10"> <input type="submit" name="search" value=" sou suo liu yan "> </td> </tr> </form> </table> </td> </tr> </table> <? function search($keyword) { global $content; $count=count($content); $subscript=0; $ArrSearch=array(); for ($i=0;$i<$count;$i++) { if (ereg($keyword,$content[$i])) { $ArrSearch[$subscript]=ereg_replace($keyword,"<font color=red>$keyword</font>",$content[$i]); $subscript++; } } return $ArrSearch; }//end function $one_page_line=15; $content = file($guestfile); if (isset($search) and isset($keyword) and $keyword!="") { $content=search($keyword); } $count =count($content); ?> <table width="68%" border="0"> <tr> <td> <? $int_page_count=$count;// zong tiao shu ; $int_page_num=ceil($int_page_count/$one_page_line);// zong ye shu ; echo "<font color=#CC33FF> fen ye :"; for ($i=1;$i<=$int_page_num;$i++) { echo "<a href=guest.php?page=$i>".$i."</a>&nbsp;"; } echo "</font>"; if (isset($search) and isset($keyword) and $keyword!="") { echo "<br><center>"; echo " xia mian de liu yan zhong bao han guan jian zi <font color=red>$keyword</font> gong <font color=red>".$count."</font> tiao </center>"; } ?> </td><td><p align=right> gong you <font color=red><?echo "$count"?></font> tiao </p></td> </tr> </table> </div> <br> <table width="68%" border="0" align="center"> <? if ($page=="" or !isset($page)) {$page=1;} $text=""; $begin_line=$int_page_count-($page-1)*$one_page_line; if ($begin_line<$one_page_line){$one_page_line=$begin_line;} for ($j=$begin_line;$j>($begin_line-$one_page_line);$j--) { $text=$text."<tr><td align=right colspan=2><a href=reply.php?job=reply&record=".$j."> hui fu </a>&nbsp;<a href=edit.php?record=".$j."> bian ji </a>&nbsp;<a href=dele.php?record=".$j."> shan chu </a>&nbsp; di <font color=red>$j</font> tiao </td></tr>"; $text.=$content[$j-1]; // shu zu zhao xia biao cong 0 kai shi . } echo "$text"; ?> </table> <? include('bottom.htm'); ?> </body> </html> ------------------ wei wan dai xu ...
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
华丽的模特拍摄(8)
华丽的模特拍摄(7)
华丽的模特拍摄(6)
华丽的模特拍摄(5)
八里沟
朝阳宫
天下峨眉 云上金顶
老家(四)
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有