社区(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实现jQuery扩展函数
Oct 30 PHP
PHP编码转换函数 自动转换字符集支持数组转换
Dec 16 PHP
基于php socket(fsockopen)的应用实例分析
Jun 02 PHP
PHP字符串的递增和递减示例介绍
Feb 11 PHP
php实现粘贴截图并完成上传功能
May 17 PHP
Laravel5.1数据库连接、创建数据库、创建model及创建控制器的方法
Mar 29 PHP
[原创]PHP字符串中插入子字符串方法总结
May 06 PHP
Laravel日志用法详解
Oct 09 PHP
利用php的ob缓存机制实现页面静态化方法
Jul 09 PHP
PHP实现mysqli批量执行多条语句的方法示例
Jul 22 PHP
php 替换文章中的图片路径,下载图片到本地服务器的方法
Feb 06 PHP
PHP PDOStatement::execute讲解
Jan 31 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
ThinkPHP使用getlist方法实现数据搜索功能示例
2017/05/08 PHP
laravel5.6 框架操作数据 Eloquent ORM用法示例
2020/01/26 PHP
node.js中的fs.realpathSync方法使用说明
2014/12/16 Javascript
javascript面向对象之对象的深入理解
2015/01/13 Javascript
深入理解JavaScript系列(49):Function模式(上篇)
2015/03/04 Javascript
node.js微信公众平台开发教程
2016/03/04 Javascript
AngularJS基础 ng-cut 指令介绍及简单示例
2016/08/01 Javascript
基于jQuery的AJAX和JSON实现纯html数据模板
2016/08/09 Javascript
浅谈js函数三种定义方式 &amp; 四种调用方式 &amp; 调用顺序
2017/02/19 Javascript
浅谈Vuejs Prop基本用法
2017/08/17 Javascript
node通过express搭建自己的服务器
2017/09/30 Javascript
深入了解query和params的使用区别
2019/06/24 Javascript
vue-cli3项目打包后自动化部署到服务器的方法
2020/09/16 Javascript
uni-app使用countdown插件实现倒计时
2020/11/01 Javascript
python操作xml文件详细介绍
2014/06/09 Python
Python数据可视化编程通过Matplotlib创建散点图代码示例
2017/12/09 Python
Python编程产生非均匀随机数的几种方法代码分享
2017/12/13 Python
Python简单计算给定某一年的某一天是星期几示例
2018/06/27 Python
浅谈python opencv对图像颜色通道进行加减操作溢出
2020/06/03 Python
python自动提取文本中的时间(包含中文日期)
2020/08/31 Python
AmazeUI图片轮播效果的示例代码
2020/08/20 HTML / CSS
Probikekit日本:自行车套件,跑步和铁人三项装备
2017/04/03 全球购物
职业教育毕业生求职信
2013/11/09 职场文书
税务专业毕业生自荐信
2013/11/10 职场文书
商务英语本科生的自我评价分享
2013/11/15 职场文书
单位提档介绍信
2014/01/17 职场文书
2014年公司迎新年活动方案
2014/02/24 职场文书
新学期标语
2014/06/30 职场文书
中学生2014国庆节演讲稿:不屈的民族
2014/09/21 职场文书
2015年幼儿园保育员工作总结
2015/04/23 职场文书
公司年夜饭通知
2015/04/25 职场文书
未婚证明范本
2015/06/15 职场文书
2016年先进教师个人事迹材料
2016/02/26 职场文书
只需要这一行代码就能让python计算速度提高十倍
2021/05/24 Python
图文详解nginx日志切割的实现
2022/01/18 Servers
Redis监控工具RedisInsight安装与使用
2022/03/21 Redis