社区(php&&mysql)四


Posted in PHP onOctober 09, 2006

echo "<br>";
    echo "<TABLE width=85% border=0 cellPadding=0 cellSpacing=1 align=center bgcolor='#6CA6CD'>";
      echo "<tr><td>";
      echo "<TABLE width=100% cellPadding=1 cellSpacing=1 bgcolor=white class='tablefont'>";
        echo "<tr bgcolor=#F1E1FF>";
            echo "<th >夹?</th>";
            echo "<th>???</th>";
            echo "<th width=30>?莱</th>";
            echo "<th width=30>??</th>";
            echo "<th width=70>ら戳</th>";
        echo "</tr>";
        $qsql="SELECT * from bbs_subj where id='$sid' ";
        $rs=mysql_db_query($sql['db'],$qsql);
        $row=mysql_fetch_array($rs);
            $id=$row['id'];
            $banner=$row['banner'];
            $poster=$row['poster'];
            $views=$row['views'];
            $wdate=sdatetime($row['wdate']);
            $docs=reAnum($id);
            echo "<tr bgcolor='#F0F8FF'>";
                echo "<td>";
                    if($sid!=$rid) {
                    echo "<a href=$PHP_SELF?proc=view&aid=$aid&sid=$id&rid=$id>";
                    echo $banner;
                    echo "</a>";
                    } else echo "<font color=red><b>$banner</B></font>";
                echo "</td>";
                echo "<td>";
                    echo $poster;
                echo "</td>";
                echo "<td class='num'>";
                    echo $docs;
                echo "</td>";
                echo "<td class='num'>";
                    echo $views;
                echo "</td>";
                echo "<td class='num'>";
                    echo $wdate;
                echo "</td>";
            echo "</tr>";
        $qsql="SELECT * from bbs_docs where sid='$sid' order by wdate";
        $rs=mysql_db_query($sql['db'],$qsql);     
        while($row=mysql_fetch_array($rs)) {

            $id=$row['id'];
            $banner=$row['banner'];
            $poster=$row['poster'];
            $views=$row['views'];
            $wdate=sdatetime($row['wdate']);
            $docs=reAnum($id);
            echo "<tr bgcolor='#F0F0F0'>";
                echo "<td>";
                    if($sid!=$rid && $rid==$id) {
                        echo "<font color=red><b>  $banner</B></font>";
                    } else {
                        echo "<a href=$PHP_SELF?proc=view&aid=$aid&sid=$sid&rid=$id>";
                        echo "  $banner";
                        echo "</a>";
                    }
                echo "</td>";
                echo "<td>";
                    echo $poster;
                echo "</td>";
                echo "<td class='num'>";
                    echo " ";
                echo "</td>";
                echo "<td class='num'>";
                    echo $views;
                echo "</td>";
                echo "<td class='num'>";
                    echo $wdate;
                echo "</td>";
            echo "</tr>";

        }
      echo "</td></tr></table>";
    echo"</td></tr></table>";
  } // ====

    echo "<a name='re'></a>";
    if($type==1) {
        if(substr($rebanner,0,3)!="Re:")
            $rbanner="Re:".$rebanner;
        else $rbanner=$rebanner;
    }     
    echo "<FORM  name=mtab ENCTYPE=multipart/form-data METHOD=POST ACTION=$PHP_SELF?proc=post2>";
    echo "<input type='hidden' name=aid value='$aid'>";
    echo "<input type='hidden' name=sid value='$sid'>";
    echo "<input type='hidden' name=type value='$type'>";
    echo "<TABLE width=95% BORDER=0  align=center cellPadding=3 cellSpacing=0 class='tablefont'>";
        if($sid) {
            echo "<TR bgcolor='white'>";
            echo "<TH colspan=2 >";
                echo "???阶??杠?";
            echo "</TH>";

            echo "</TR>";
        }

        echo "<TR>";
            echo "<TD width=100 align=right>";
                echo "??:";
            echo "</TD>";
            echo "<TD>";
                echo "<INPUT TYPE='text' NAME='banner' size=60 value='$rbanner'>";
            echo "</TD>";
        echo "</TR>";
        echo "<TR>";
            echo "<TD width=100 align=right>";
                echo "?ē?:";
            echo "</TD>";
            echo "<TD>";
                echo "<INPUT TYPE='text' NAME='poster' size=30 value='$c_poster'>";

            echo "</TD>";
        echo "</TR>";
        echo "<TR>";
            echo "<TD width=100 align=right>";
                echo "E-Mail:";

            echo "</TD>";
            echo "<TD>";
                echo "<INPUT TYPE='text' NAME='email' size=30 value='$c_email'>";

            echo "</TD>";
        echo "</TR>";
        echo "<TR>";
            echo "<TD width=100 align=right valign=top>";
                echo "ず?:";
            echo "</TD>";
            echo "<TD>";
                echo "<font color=green>や穿??挡ノ??ㄒ:<font color=red><b>[www]http://www.jerry.com.tw[/www]</b></font></font><br>";
                echo "<TEXTAREA NAME='body' cols='80' rows='16'>";
                echo "</TEXTAREA>";
            echo "</TD>";
        echo "</TR>";
        echo "<TR>";
            echo "<TD align=center colspan=2>";
                //echo "<INPUT TYPE='checkbox' NAME='remail'>";
                //echo "?滦???";
                if($sid) {
                    $br="-----------------------------------------------------------";
                    $obody="まノ $poster ?ゅ彻n$brn".$body;
                    $obody.="n$brn?滦?阶?ず???:n";
                    echo "<input type='hidden' name=obody value="$obody">";
                    echo "<INPUT TYPE='button' value='まノ?ゅ' onClick="this.form.body.value=this.form.body.value + this.form.obody.value; this.form.obody.value='';">";
                }

                echo "    <INPUT TYPE='submit' value='??'>";
            echo "</TD>";
        echo "</TR>";
    echo "</TABLE>";

}
待续....... 

PHP 相关文章推荐
PHP 巧用数组降低程序的时间复杂度
Jan 01 PHP
无法在发生错误时创建会话,请检查 PHP 或网站服务器日志,并正确配置 PHP 安装最快的解决办法
Aug 01 PHP
PHP数据类型的总结分析
Jun 13 PHP
php 根据url自动生成缩略图并处理高并发问题
Jan 23 PHP
PHP中cookie和session的区别实例分析
Aug 28 PHP
PHP实现获取域名的方法小结
Nov 05 PHP
Yii2.0中的COOKIE和SESSION用法
Aug 12 PHP
深入了解PHP中的Array数组和foreach
Nov 06 PHP
ThinkPHP 3使用OSS的方法
Jul 19 PHP
php实现将数据做成json的格式给前端使用
Aug 21 PHP
PHP中number_format()函数的用法讲解
Apr 08 PHP
PHP的imageTtfText()函数深入详解
Mar 03 PHP
社区(php&amp;&amp;mysql)三
Oct 09 #PHP
利用php来自动调用不同服务器上的flash
Oct 09 #PHP
如何做到多笔资料的同步
Oct 09 #PHP
社区(php&amp;&amp;mysql)二
Oct 09 #PHP
社区(php&amp;&amp;mysql)一
Oct 09 #PHP
如何在PHP中使用Oracle数据库(6)
Oct 09 #PHP
如何在PHP中使用Oracle数据库(5)
Oct 09 #PHP
You might like
php url路由入门实例
2014/04/23 PHP
浅析PHP文件下载原理
2014/12/25 PHP
Zend Framework实现自定义过滤器的方法
2016/12/09 PHP
php删除txt文件指定行及按行读取txt文档数据的方法
2017/01/30 PHP
php+Memcached实现简单留言板功能示例
2017/02/15 PHP
由php中字符offset特征造成的绕过漏洞详解
2017/07/07 PHP
Laravel框架分页实现方法分析
2018/06/12 PHP
发布一个高效的JavaScript分析、压缩工具 JavaScript Analyser
2007/11/30 Javascript
JavaScript ( (__ = !$ + $)[+$] + ({} + $)[_/_] +({} + $)[_/_] )
2011/02/25 Javascript
js屏蔽鼠标键盘(右键/Ctrl+N/Shift+F10/F11/F5刷新/退格键)
2013/01/24 Javascript
javascript调试之DOM断点调试法使用技巧分享
2014/04/15 Javascript
Javascript仿PHP $_GET获取URL中的参数
2014/05/12 Javascript
45个JavaScript编程注意事项、技巧大全
2015/02/11 Javascript
Node.js重新刷新session过期时间的方法
2016/02/04 Javascript
node.js微信公众平台开发教程
2016/03/04 Javascript
jQuery代码实现表格中点击相应行变色功能
2016/05/09 Javascript
JS函数的定义与调用方法推荐
2016/05/12 Javascript
老生常谈JavaScript面向对象基础与this指向问题
2017/10/16 Javascript
vue.js 实现输入框动态添加功能
2018/06/25 Javascript
vue.js删除列表中的一行
2018/06/30 Javascript
解决微信小程序中转换时间格式IOS不兼容的问题
2019/02/15 Javascript
javascript实现手动点赞效果
2019/04/09 Javascript
vue中组件通信的八种方式(值得收藏!)
2019/08/09 Javascript
解决layui下拉框监听问题(监听不到值的变化)
2019/09/28 Javascript
[13:18]《一刀刀一天》之DOTA全时刻21:详解TI新赛制 A队再露獠牙
2014/06/24 DOTA
Python中关键字nonlocal和global的声明与解析
2017/03/12 Python
python2和python3在处理字符串上的区别详解
2019/05/29 Python
Melijoe美国官网:法国奢侈童装购物网站
2017/04/19 全球购物
先进集体事迹材料
2014/02/17 职场文书
活动总结报告格式
2014/05/09 职场文书
村委会贫困证明范文
2014/09/21 职场文书
卖房协议书样本
2014/10/30 职场文书
幼儿园重阳节活动总结
2015/05/05 职场文书
地道战观后感2000字
2015/06/04 职场文书
巧用 -webkit-box-reflect 倒影实现各类动效(小结)
2021/04/22 HTML / CSS
matplotlib画混淆矩阵与正确率曲线的实例代码
2021/06/01 Python