欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

模仿OSO的論壇(四)

 更新時(shí)間:2006年10月09日 00:00:00   作者:  
reply.php(用來(lái)回復(fù)主題)
<HTML><HEAD><TITLE>疑難問(wèn)題</TITLE>
<LINK href="mypic/style.css" rel=STYLESHEET type=text/css></HEAD>
<?php
if (!$cook_user)
{echo "<script language='javascript'>";  
echo "parent.location.href='index.php'";  
echo "</script>";}
else {include ("connect.inc.php");
$query = "select * from my_user where user='".$cook_user."' and password='".$cook_password."'";  
$res = mysql_query($query);  
if (!$res)
{echo "<script language='javascript'>";  
echo "parent.location.href='index.php'";  
echo "</script>";}
include "connect.inc.php";
if ($content) {$content= str_replace ( "'","mysinglequotes",$content);  
$content=htmlspecialchars($content);
$content=nl2br($content);
$query = "INSERT INTO guestbook (name,type,content,icon,time_open,time_close,answer_count,answer_name,main_id) VALUES ('".$cook_user."',0,'".$content."',".$icon.",now(),now(),1,'".$cook_user."',".$theme_id.")";  
$res = mysql_query($query);
if ($res)  
{$query = "update guestbook set time_close=now(),answer_count=answer_count+1,answer_name='".$cook_user."' where id=".$theme_id;  
$res = mysql_query($query);  
if ($res)
{echo "<script language='javascript'>";  
echo "parent.location.href='post_end.php'";
echo "</script>";}}}}
?>
<SCRIPT language=JavaScript>
<!--
var submitcount=0;
function check_com(){
   if(document.form.theme.value.length ==0){
      submitcount--;
      alert("主題不能為空!nYou must supply a subject.");
      return false;
   }

   if(document.form.content.value.length == 0){
      submitcount--;
      alert("加貼內(nèi)容不能為空!nYou must supply a message.");
      return false;
   }
   return true;
}
//-->
</SCRIPT>
<BODY bgColor=#cccc99 bottomMargin=0 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<form method="post" action="reply.php" name="form" onSubmit="return check_com()">
<SCRIPT language=JavaScript  
src="mypic/x.js"></SCRIPT>
  <TR>
    <TD vAlign=top>
      <TABLE align=center border=0 cellPadding=4 cellSpacing=0 width=100%>
        <TBODY>
        <TR>
          <TD class=mid width=20%>回復(fù)主題<BR><BR></TD>
          <TD class=mid><A class=title  
            href="read.php?theme_id=<?php echo $theme_id ?>">
<?php  
$query = "select theme from guestbook where id=".$theme_id;
$res = mysql_query($query);  
$row = mysql_fetch_row($res);  
echo $row[0];
?>
</A><BR><BR></TD></TR>
        <TR>
          <TD class=mid vAlign=top>表情圖標(biāo)</TD>
          <TD><INPUT CHECKED name=icon type=radio value=1> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon1.gif"  
            width=18><INPUT name=icon type=radio value=2> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon2.gif"  
            width=18><INPUT name=icon type=radio value=3> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon3.gif"  
            width=18><INPUT name=icon type=radio value=4> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon4.gif"  
            width=18><INPUT name=icon type=radio value=5> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon5.gif"  
            width=18><INPUT name=icon type=radio value=6> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon6.gif"  
            width=18><INPUT name=icon type=radio value=7> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon7.gif"  
            width=18><BR><INPUT name=icon type=radio value=8> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon8.gif"  
            width=18><INPUT name=icon type=radio value=9> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon9.gif"  
            width=18><INPUT name=icon type=radio value=10> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon10.gif"  
            width=18><INPUT name=icon type=radio value=11> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon11.gif"  
            width=18><INPUT name=icon type=radio value=12> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon12.gif"  
            width=18><INPUT name=icon type=radio value=13> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon13.gif"  
            width=18><INPUT name=icon type=radio value=14> <IMG  
            align=ABSCENTER height=18  
            src="mypic/icon14.gif"  
            width=18></TD></TR>
        <TR>
          <TD class=mid vAlign=top><input type="hidden" name="theme_id" size="12" class="stedit" value="<?php echo $theme_id ?>">
          加貼內(nèi)容</TD>
          <TD><TEXTAREA cols=50 name=content rows=6></TEXTAREA> </TD></TR>
        <TR>
          <TD>&nbsp;</TD>
          <TD><INPUT name=submit onclick="return checkSubmit()" type=submit value=" 發(fā) 表 ">  
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <INPUT name=reset type=reset value=" 清 除 "> </TD></TR>
               </FORM>
        <TR>
          <TD colSpan=2><BR><BR><FONT color=#797979>
            <LI>本主題最后 5 個(gè)帖子 (按發(fā)帖時(shí)間倒序排列)</FONT></LI></TD></TR></TBODY></TABLE>
      <TABLE align=center bgColor=#000000 border=0 cellPadding=4 cellSpacing=1  
      width=100%>
        <TBODY>
        <TR bgColor=#666666>
          <TD width="10%"><FONT color=#ffffff>作 者</FONT></TD>
          <TD width="90%"><FONT color=#ffffff>內(nèi) 容</FONT></TD></TR>
<?php
$query = "select * from guestbook where main_id=".$theme_id." or id=".$theme_id." order by time_open DESC limit 5 ";
$res = mysql_query($query);  
function TdBackColor() {
  static $ColorStr;
  if ($ColorStr=="#ededed") {
    $ColorStr="#dedede";
  } else {
    $ColorStr="#ededed";
  }
  return($ColorStr);
}
for ($i=1;$i<=5;$i++)
{$row = @mysql_fetch_array($res);  
if (!$row) break;  
$ColorStr=TdBackColor();
echo "<TR bgColor=".$ColorStr.">";
echo "<TD vAlign=top>".$row['name']."</td>";  
$content= str_replace ( "mysinglequotes","'",$row['content']);  
echo "<td>".$content."</td></tr>";  
}
?>      
</TBODY></TABLE>
</TBODY></TABLE>
</FORM>
</html>  

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

相關(guān)文章

  • 整合了前面的PHP數(shù)據(jù)庫(kù)連接類~~做成一個(gè)分頁(yè)類!

    整合了前面的PHP數(shù)據(jù)庫(kù)連接類~~做成一個(gè)分頁(yè)類!

    整合了前面的PHP數(shù)據(jù)庫(kù)連接類~~做成一個(gè)分頁(yè)類!...
    2006-11-11
  • php-5.2下php.ini 中文版配置說(shuō)明

    php-5.2下php.ini 中文版配置說(shuō)明

    方便學(xué)習(xí)php.ini配置的朋友,以便充分發(fā)揮他的功能 該文件的語(yǔ)法非常簡(jiǎn)單??瞻鬃址鸵苑痔?hào)開(kāi)始的行被簡(jiǎn)單地忽略。
    2008-08-08
  • 3

    3

    3...
    2006-10-10
  • PHP中strtotime函數(shù)使用方法分享

    PHP中strtotime函數(shù)使用方法分享

    在PHP中有個(gè)叫做strtotime的函數(shù)。strtotime 實(shí)現(xiàn)功能:獲取某個(gè)日期的時(shí)間戳,或獲取某個(gè)時(shí)間的時(shí)間戳。strtotime 將任何英文文本的日期時(shí)間描述解析為Unix時(shí)間戳[將系統(tǒng)時(shí)間轉(zhuǎn)化成unix時(shí)間戳]
    2012-01-01
  • php的大小寫(xiě)敏感問(wèn)題整理

    php的大小寫(xiě)敏感問(wèn)題整理

    今天在開(kāi)發(fā)php的過(guò)程中,因?yàn)槊笮?xiě)的問(wèn)題導(dǎo)致代碼錯(cuò)誤,所以從網(wǎng)上整理了php的大小寫(xiě)敏感的一些資料,需要的朋友可以參考下。
    2011-12-12
  • 如何獲得PHP相關(guān)資料

    如何獲得PHP相關(guān)資料

    如何獲得PHP相關(guān)資料...
    2006-10-10
  • 模仿OSO的論壇(一)

    模仿OSO的論壇(一)

    模仿OSO的論壇(一)...
    2006-10-10
  • php sybase_fetch_array使用方法

    php sybase_fetch_array使用方法

    本函數(shù)用來(lái)將查詢結(jié)果 result 拆到數(shù)組變量中。若 result 沒(méi)有資料,則返回 false 值。而本函數(shù)可以說(shuō)是 sybase_fetch_row() 的加強(qiáng)函數(shù),除可以將返回列及數(shù)字索引放入數(shù)組之外,還可以將文字索引放入數(shù)組中
    2014-04-04
  • 壞狼php學(xué)習(xí) 計(jì)數(shù)器實(shí)例代碼

    壞狼php學(xué)習(xí) 計(jì)數(shù)器實(shí)例代碼

    首先進(jìn)入phpmyadmin建立1個(gè)數(shù)據(jù)庫(kù)命名為db,然后建立幾個(gè)表.name是用戶badwolf的訪問(wèn)記數(shù),IP是存來(lái)訪IP,new是存數(shù).
    2008-06-06
  • PHP入門(mén)

    PHP入門(mén)

    PHP入門(mén)...
    2006-10-10

最新評(píng)論