PHP的页面布局用什么设计 你的网页本身就没有内容,当然也就没有内容啦。[PHP部分DREAMWEAVER是不会显示出来的] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 底下还有:<SCRIPT LANGUAGE="JavaScript"> function win_open() { board = window.open("board.php?id=1",'重要通知一',"toolbar=no,location=no,directories=no,status=no,menbar=no,scrollbars=yes,resizable=no,copyhistory=no,width=282,height=280"); board.moveTo(0,0); } function win_open1() { board = window.open("board.php?id=2",'重要通知二',"toolbar=no,location=no,directories=no,status=no,menbar=no,scrollbars=yes,resizable=no,copyhistory=no,width=282,height=280"); board.moveTo(400,0); }</SCRIPT><? $dbobj->strsql="select count(*) from tb_news where disp = 1 and type_name='公告'"; $dbobj->exec(); $arr=$dbobj->getarray(); if ($arr[0]==0) { echo "<body leftmargin=0 topmargin=0 valign=top>"; } if ($arr[0]!=0) { echo "<body leftmargin=0 topmargin=0 valign=top onload=\"javascript:win_open();\">";} //if ($arr[0]>=2) //{ echo "<body leftmargin=0 topmargin=0 valign=top onload=\"javascript:win_open1();win_open();\">";}?><body topmargin=0 style="background-image:url(./images/bg_body.gif);background-repeat:repeat-xy;"><center><table border=0 cellspacing=0 cellpadding=0 ><tr><td><!-- 题头--><?include("./manager/head.php");?><!-----主体------><table height="755px" border=0 cellspacing=0 cellpadding=0 style="background-image:url(./images/bg_repeat.gif);background-repeat:repeat-y;" valign=top align=center width=766px> <tr> <!----- 链接 -----> <td width="165px" height="755px" align="left" > <table style="background-image:url(./images/bg_qytj4_repeat.gif);background-repeat:repeat-y;" .gif width=165px border=0 cellspacing=0 cellpadding=0 valign=top align=left> <tr> <td><a href="./cqzr/index1.php"><img border=0 src=./images/link_cqzr.gif border=0></a></td> </tr> <tr> <td><a href="./kjcg/index1.php"><img border=0 src=./images/link_kjcg.gif border=0></a></td> </tr> <tr> <td><a href="./zljs/index1.php"><img border=0 src=./images/link_zljs.gif border=0></a></td> </tr> <tr> <td><a href="./tzrz/index1.php"><img border=0 src=./images/link_tzrz.gif border=0></a></td> </tr> </tr> <tr> <td style="background-image:url(./images/bg_qytj.gif);background-repeat:no-repeat;" width=165px height=264px valign=top> <table border=0 cellspacing=0 cellpadding=0> <tr> <td > <table height=264px cellspacing=0 cellpadding=0 border=0px valign=top > <tr><td height=5px ></td></tr> <tr><td style="background-image:url(./images/bg_qytj4.gif);background-repeat:no-repeat;padding-left:15px" height=264px valign=top> <table cellspacing=0 cellpadding=0 valign=top > <tr><td height=48px> </td></tr> <? $dbobj->strsql="select * from tb_qytj where disp = 1 order by bh"; $dbobj->exec(); for ($i=1;$i<=10;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=qytj/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>"; $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $totallen=20; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-3;} else {$num=$totallen-2;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:19px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; } $dbobj->clearresult(); ?> <tr><td valign=top height=0px style="padding-top:0px;padding-left:85px"><a href="./qytj/index.php" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a> </table> </td> </tr> </table> </td></tr> </td> </tr> </table> </td> </tr> <tr> <td style="padding-left:11px"><a href="http://www.haee.com.cn" title="合肥市产权交易中心" target=_blank><img border=0 src="./images/haee.gif"></a></td> </tr> <tr> <td style="padding-left:11px"><a href="http://www.gqtg.com.cn" title="合肥股权托管交易所" target=_blank><img border=0 src="./images/gqtg.gif"></a></td> </tr> <tr> <td style="padding-left:2px; background-image:url(./images/bg_left_botton2.gif);background-repeat:no-repeat;" width=165px height=197px valign=top> <table border=0 cellspacing=0 cellpadding=0> <tr> <td style="padding-top:0px"><a href="./lyb/lyb.php"><img border=0 src=./images/link_gwly.gif border=0></a></td> </tr> <tr> <td style="padding-top:0px"><a href="http://mail.haee.com.cn"><img border=0 src=./images/link_email.gif border=0></a></td> </tr> <tr> <td align=center style="padding-top:13px;padding-left:80px;padding_right:5px" > <? $counterfile="access.txt"; if (file_exists($counterfile)) { $fp=fopen($counterfile,"r+"); $access=fgets($fp,8); //echo $user_session; //echo "dddd"; if(!session_is_registered("user_session")) {//有问题,找出合适的条件,如果是新的会话(sesion)则执行+1操作; $access+=1; rewind($fp); fputs($fp,$access,8); //session_start(); //session_start()要写在首页的第一行,因为在他之前不能有任何html标记,否则PHP提示出错。 session_unregister("user_session"); session_register("user_session"); $user_session=""; } fclose($fp); } else { $fp=fopen($counterfile,"w"); $access="1"; fputs($fp,$access,8); fclose($fp); } ?> <font color=#0034BA><?=$access?> </td> </tr> </table> </td> </tr> </table> </td><!---- 右框架 -----> <td width=601px align=center height="755px" border=0 style="background-image:url();background-repeat:no-repeat;padding-left:0px;" valign=top> <table width=601px border=0 cellspacing=0 cellpadding=0 valign=top style="background-image:url(./images/bg_right.gif);background-repeat:no-repeat;"> <tr > <td colspan=2 style="padding-top:8px;padding-left:5px" width=586px height=158px valign=top > <table cellspacing=0 cellpadding=0 border=0 > <tr> <td width=586px height=146px style="background-image:url(./images/bg_kjdt1.gif);background-repeat:no-repeat;" cellspacing=0 cellpadding=0 valign=top> <table cellspacing=0 cellpadding=0 border=0> <tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:518px"><a href="./zxzx/index.php?type=科技动态" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px;">更多 >>></font></a> </td></tr> <tr><td height=0px> </td></tr> <? $dbobj->strsql="select top 5 * from tb_news where disp = 1 and type_name = '科技动态' order by info_time desc"; $dbobj->exec(); for ($i=1;$i<=5;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=zxzx/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>"; $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $totallen=64; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG algin=middle SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=500px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; echo "<td width=100px align=center ><font style='font-size:9pt'>".$strTime."</font></td></tr>\n"; } $dbobj->clearresult(); ?> </table> </td> </tr> </table> </td> </tr> <tr> <td width=433px height=597 valign=top> <table cellspacing=0 cellpadding=0 border=0 > <tr> <td style="background-image:url(./images/bg_zdtj1.gif);background-repeat:no-repeat;" width=430px height=146px valign=top> <table cellspacing=0 cellpadding=0 valign=top > <tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./zdtj/index.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a> </td></tr> <tr><td> <marquee direction=up height=110 id=scrollArea onMouseOut=scrollArea.start() onMouseOver=scrollArea.stop() scrollamount=1 scrolldelay=60 width="100%" border="0"> <table cellspacing=0 cellpadding=0 > <tr><td height=0px> </td></tr> <? $dbobj->strsql="select top 12 * from tb_zdtj where disp = 1 order by info_time desc"; $dbobj->exec(); for ($i=1;$i<=12;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=zdtj/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>"; $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $totallen=44; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; echo "<td width=100px align=center ><font style='font-size:9pt'></font></td></tr>\n"; } $dbobj->clearresult(); ?> </table> </marquee></td></tr> </table> </td> </tr> <tr> <td style="background-image:url(./images/bg_swzc1.gif);background-repeat:no-repeat;" width=430px height=146px valign=top> <table cellspacing=0 cellpadding=0 valign=top> <tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./cqzr/index1.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a> </td></tr> <tr><td height=0px> </td></tr> <? $dbobj->strsql = "select jyh,code,title,type,info_time from tb_fcjy where disp = 1"; $dbobj->strsql = $dbobj->strsql." union "; $dbobj->strsql = $dbobj->strsql."select jyh,code,title,type,info_time from tb_sbjy where disp = 1"; $dbobj->strsql = $dbobj->strsql." union "; $dbobj->strsql = $dbobj->strsql."select jyh,code,title,type,info_time from tb_cljy where disp = 1"; $dbobj->strsql = $dbobj->strsql." order by info_time desc"; $dbobj->exec(); for ($i=1;$i<=5;$i++) { if (!$array=$dbobj->getarray()) {break;} if(substr($array["type"],0,4)=="房产") $ptype="房产交易"; if(substr($array["type"],0,4)=="设备") $ptype="设备交易"; if(substr($array["type"],0,4)=="车辆") $ptype="车辆交易"; $thisbg="<a class=bt1 href=cqzr/detail.php?code=".$array["code"]."&type=".$ptype." target=_blank title=".$array["title"]." border=0>"; // $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $strType=" [" . $array["jyh"] ."]"; $totallen=44; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; //echo "<td width=100px align=center ><font style='font-size:9pt'>".$strTime."</font></td></tr>\n"; echo "<td width=100px align=center ><font style='font-size:9pt'>".$strType."</font></td></tr>\n"; } $dbobj->clearresult(); ?> </table> </td> </tr> <tr> <td style="background-image:url(./images/bg_kjcg1.gif);background-repeat:no-repeat;" width=430px height=146px valign=top> <table cellspacing=0 cellpadding=0 valign=top> <tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./kjcg/index1.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a> </td></tr> <tr><td height=0px> </td></tr> <? $dbobj->strsql="select top 5 * from tb_kjcg where disp = 1 order by info_time desc"; $dbobj->exec(); for ($i=1;$i<=5;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=kjcg/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>"; $strType=" [" . $array["bh"] ."]"; $totallen=44; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; echo "<td width=100px align=center ><font style='font-size:9pt'>".$strType."</font></td></tr>\n"; } $dbobj->clearresult(); ?> </table> </td> </tr> <tr> <td style="background-image:url(./images/bg_zljs1.gif);background-repeat:no-repeat;padding-left:2px" width=430px height=146px valign=top> <table cellspacing=0 cellpadding=0 valign=top> <tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./zljs/index1.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a> </td></tr> <tr><td height=0px> </td></tr> <? $dbobj->strsql="select top 6 * from tb_zljs where disp = 1 order by info_time desc"; $dbobj->exec(); for ($i=1;$i<=6;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=zljs/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>"; $strType=" [" . $array["bh"] ."]"; $totallen=44; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; echo "<td width=100px align=center ><font style='font-size:9pt'>".$strType."</font></td></tr>\n"; } $dbobj->clearresult(); ?> </table> </td> </tr> </table> </td> <td width=166px height=597px valign=top style="background-image:url(./images/bg_right_botton4.gif);background-repeat:no-repeat;padding-left:0px"> <table width=166px height=597px style="padding-left:15px" height=597px cellspacing=0 cellpadding=0 valign=top border=0px> <tr><td valign=top height=240px> <table height=260px cellspacing=0 cellpadding=0 border=0px valign=top > <tr><td height=5px ></td></tr> <tr><td style="background-image:url();background-repeat:no-repeat;" height=240px valign=top> <table cellspacing=0 cellpadding=0 valign=top > <tr><td height=25px> </td></tr> <? $dbobj->strsql="select top 11 * from tb_xmxq order by info_time desc"; $dbobj->exec(); for ($i=1;$i<=11;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=xmxq/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>"; $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $totallen=20; $str=$array["title"]; if (strlen($array["title"])>$totallen) { if(strlen($array["title"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["title"],0,$num)."..."; } else $num=strlen($array["title"]); echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:19px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; } $dbobj->clearresult(); ?> <tr><td valign=top height=0px style="padding-top:0px;padding-left:90px"><a href="./xmxq/index.php" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a> </td></tr> </table> </td> </tr> </table> </td></tr> <tr><td style="background-image:url();background-repeat:no-repeat;" height=140px valign=top> <table cellspacing=0 cellpadding=0 valign=top > <tr><td height=34px> </td></tr> <? $dbobj->strsql="select top 5 * from tb_zllm order by sort"; $dbobj->exec(); for ($i=1;$i<=4;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=".$array["address"]." target=_blank title=".$array["name"]." border=0>"; $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $totallen=20; $str=$array["name"]; if (strlen($array["name"])>$totallen) { if(strlen($array["name"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["name"],0,$num)."..."; } else $num=strlen($array["name"]); echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; } $dbobj->clearresult(); ?> <tr><td valign=top height=0px style="padding-top:0px;padding-left:90px"><a href="./xmxq/index1.php?type=战略联盟" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a> </table> </td> </tr> <tr> <td style="background-image:url();background-repeat:no-repeat;" height=190px valign=top> <table cellspacing=0 cellpadding=0 valign=top > <tr><td height=30px> </td></tr> <? $dbobj->strsql="select top 7 * from tb_yqlj order by sort"; $dbobj->exec(); for ($i=1;$i<=6;$i++) { if (!$array=$dbobj->getarray()) {break;} $thisbg="<a class=bt1 href=".$array["address"]." target=_blank title=".$array["name"]." border=0>"; $strTime=" [" . ConvertTime($array["info_time"]) ."]"; $totallen=20; $str=$array["name"]; if (strlen($array["name"])>$totallen) { if(strlen($array["name"])%2=='1') {$num=$totallen-4;} else {$num=$totallen-3;}; $str=wordscut($array["name"],0,$num)."..."; } else $num=strlen($array["name"]); echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>"; } $dbobj->clearresult(); ?> <tr><td valign=top height=0px style="padding-top:0px;padding-left:90px"><a href="./xmxq/index1.php?type=友情链接" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a> </table> </td> </tr> </table > </td> </tr> </table> </td> </tr> </table><?include("./manager/foot.php");?></td></tr></table></center></body></html>以上就是全部代码,用DW打开什么也看不见。DW是DREAMWEAVERMX2004吧? 混合编排的用dw可以看见界面的如果看不见的话就说明你的html标签有问题 在开头加个<meta http-equiv="Content-Type" content="text/html; charset=gb2312">看看可能是你html标签混乱,其实用php的代码不需要在DW里面打开看的,眼睛看看就可以了 我试了,在开头加上了<meta http-equiv="Content-Type" content="text/html; charset=gb2312">但是没有用。“其实用php的代码不需要在DW里面打开看的,眼睛看看就可以了”?请教这句话什么意思,怎么可以看到版面布局? 笨办法:现在的页面另存下来,DW之类打开调整,再完善php 似乎可行,但是一般人用PHP开发网站,页面布局都是用什么工具的呢?不会从头到尾都是用Editplus写代码的吧? ......应该试着不用可视化IDE写HTML。修改静态部分,完全可以在任何编辑器中修改,不一定非在DW等可视化编辑器中修改。看到HTML,你应该知道这些代码生成的页面具体是什么样子,然后再修改细部。说了一大堆废话 -_-#,不能解决目前的实际问题。 我感觉比较明智的选择是用模板。我一直用PHPLIB的模板类,HTML和PHP分开写,先做好静态部分,然后写动态 请教高手,PHPLIB是什么东东?哪儿可以找到?具体怎么用?有礼了! 其实就是把页面输出来,看一下就可以了.有不满意的再改就是了phplib: 7.2版本在超越php里有下,7.4在http://sourceforge.net/index.php不建议仅仅是为了HTML和PHP分开写而使用phplib phplib是不是只能运行在linux平台下 你的问题如果用phpdesign2005这个工具打开的话在里面有预缆的 DW MX,可以在站点管理设置脚本类型服务器。如果你在本机有测试平台,并,你的平台URL前缀无误,你可以通过,测试脚本(一个带闪电的符号)预览PHP整体部局,如果是带变量的测试页会提示你输入。不过我个人是先作HTML布局完成了再写脚本的。 现在用模版是主流。phplib fast template smarty网上介绍很多。但你拿到的是一个写好的程序。混编的代码在dw下有的时候是无法正常的显示的。如果你有时间可以考虑把脚本和html分离,便于以后的开发和维护。 phpexcel中如何设置单元格自动换行?? foreach问题 php mail 发送邮件 钻牛角尖,如果取得函数参数的原型. 主页和封面频道页是同一个模板,但是有些信息不同 php有没有办法更改本地DNS解析文件? php怎么接收jsp页面传过来的参数? 求解答 有关php编写SOAP服务器端的问题 求用PHP将MySQL数据表转换为Excel表的方法! 问一个时髦问题,关于信息抓取?老大们来。 关于require 和 路径
<SCRIPT LANGUAGE="JavaScript">
function win_open()
{
board = window.open("board.php?id=1",'重要通知一',"toolbar=no,location=no,directories=no,status=no,menbar=no,scrollbars=yes,resizable=no,copyhistory=no,width=282,height=280");
board.moveTo(0,0);
}
function win_open1()
{
board = window.open("board.php?id=2",'重要通知二',"toolbar=no,location=no,directories=no,status=no,menbar=no,scrollbars=yes,resizable=no,copyhistory=no,width=282,height=280");
board.moveTo(400,0);
}
</SCRIPT>
<?
$dbobj->strsql="select count(*) from tb_news where disp = 1 and type_name='公告'";
$dbobj->exec();
$arr=$dbobj->getarray();
if ($arr[0]==0)
{ echo "<body leftmargin=0 topmargin=0 valign=top>"; }
if ($arr[0]!=0)
{
echo "<body leftmargin=0 topmargin=0 valign=top onload=\"javascript:win_open();\">";}
//if ($arr[0]>=2)
//{ echo "<body leftmargin=0 topmargin=0 valign=top onload=\"javascript:win_open1();win_open();\">";}
?>
<body topmargin=0 style="background-image:url(./images/bg_body.gif);background-repeat:repeat-xy;">
<center>
<table border=0 cellspacing=0 cellpadding=0 >
<tr><td>
<!-- 题头-->
<?include("./manager/head.php");?>
<!-----主体------>
<table height="755px" border=0 cellspacing=0 cellpadding=0 style="background-image:url(./images/bg_repeat.gif);background-repeat:repeat-y;" valign=top align=center width=766px>
<tr>
<!----- 链接 ----->
<td width="165px" height="755px" align="left" >
<table style="background-image:url(./images/bg_qytj4_repeat.gif);background-repeat:repeat-y;" .gif width=165px border=0 cellspacing=0 cellpadding=0 valign=top align=left>
<tr>
<td><a href="./cqzr/index1.php"><img border=0 src=./images/link_cqzr.gif border=0></a></td>
</tr>
<tr>
<td><a href="./kjcg/index1.php"><img border=0 src=./images/link_kjcg.gif border=0></a></td>
</tr>
<tr>
<td><a href="./zljs/index1.php"><img border=0 src=./images/link_zljs.gif border=0></a></td>
</tr>
<tr>
<td><a href="./tzrz/index1.php"><img border=0 src=./images/link_tzrz.gif border=0></a></td>
</tr>
</tr>
<tr>
<td style="background-image:url(./images/bg_qytj.gif);background-repeat:no-repeat;" width=165px height=264px valign=top>
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td >
<table height=264px cellspacing=0 cellpadding=0 border=0px valign=top >
<tr><td height=5px ></td></tr>
<tr><td style="background-image:url(./images/bg_qytj4.gif);background-repeat:no-repeat;padding-left:15px" height=264px valign=top>
<table cellspacing=0 cellpadding=0 valign=top >
<tr><td height=48px> </td></tr>
<?
$dbobj->strsql="select * from tb_qytj where disp = 1 order by bh";
$dbobj->exec();
for ($i=1;$i<=10;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=qytj/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>";
$strTime=" [" . ConvertTime($array["info_time"]) ."]";
$totallen=20;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-3;}
else
{$num=$totallen-2;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:19px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
}
$dbobj->clearresult();
?>
<tr><td valign=top height=0px style="padding-top:0px;padding-left:85px"><a href="./qytj/index.php" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a>
</table>
</td>
</tr>
</table>
</td></tr> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-left:11px"><a href="http://www.haee.com.cn" title="合肥市产权交易中心" target=_blank><img border=0 src="./images/haee.gif"></a></td>
</tr>
<tr>
<td style="padding-left:11px"><a href="http://www.gqtg.com.cn" title="合肥股权托管交易所" target=_blank><img border=0 src="./images/gqtg.gif"></a></td>
</tr>
<tr>
<td style="padding-left:2px; background-image:url(./images/bg_left_botton2.gif);background-repeat:no-repeat;" width=165px height=197px valign=top>
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td style="padding-top:0px"><a href="./lyb/lyb.php"><img border=0 src=./images/link_gwly.gif border=0></a></td>
</tr>
<tr>
<td style="padding-top:0px"><a href="http://mail.haee.com.cn"><img border=0 src=./images/link_email.gif border=0></a></td>
</tr>
<tr>
<td align=center style="padding-top:13px;padding-left:80px;padding_right:5px" >
<?
$counterfile="access.txt";
if (file_exists($counterfile)) {
$fp=fopen($counterfile,"r+");
$access=fgets($fp,8);
//echo $user_session;
//echo "dddd";
if(!session_is_registered("user_session")) {//有问题,找出合适的条件,如果是新的会话(sesion)则执行+1操作;
$access+=1;
rewind($fp);
fputs($fp,$access,8);
//session_start(); //session_start()要写在首页的第一行,因为在他之前不能有任何html标记,否则PHP提示出错。
session_unregister("user_session");
session_register("user_session");
$user_session="";
}
fclose($fp);
}
else {
$fp=fopen($counterfile,"w");
$access="1";
fputs($fp,$access,8);
fclose($fp);
}
?>
<font color=#0034BA><?=$access?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<!---- 右框架 ----->
<td width=601px align=center height="755px" border=0 style="background-image:url();background-repeat:no-repeat;padding-left:0px;" valign=top>
<table width=601px border=0 cellspacing=0 cellpadding=0 valign=top style="background-image:url(./images/bg_right.gif);background-repeat:no-repeat;">
<tr >
<td colspan=2 style="padding-top:8px;padding-left:5px" width=586px height=158px valign=top >
<table cellspacing=0 cellpadding=0 border=0 >
<tr>
<td width=586px height=146px style="background-image:url(./images/bg_kjdt1.gif);background-repeat:no-repeat;" cellspacing=0 cellpadding=0 valign=top>
<table cellspacing=0 cellpadding=0 border=0>
<tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:518px"><a href="./zxzx/index.php?type=科技动态" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px;">更多 >>></font></a>
</td></tr>
<?
$dbobj->strsql="select top 5 * from tb_news where disp = 1 and type_name = '科技动态' order by info_time desc";
$dbobj->exec();
for ($i=1;$i<=5;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=zxzx/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>";
$strTime=" [" . ConvertTime($array["info_time"]) ."]";
$totallen=64;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG algin=middle SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=500px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
echo "<td width=100px align=center ><font style='font-size:9pt'>".$strTime."</font></td></tr>\n"; }
$dbobj->clearresult();
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=433px height=597 valign=top>
<table cellspacing=0 cellpadding=0 border=0 >
<tr>
<td style="background-image:url(./images/bg_zdtj1.gif);background-repeat:no-repeat;" width=430px height=146px valign=top>
<table cellspacing=0 cellpadding=0 valign=top >
<tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./zdtj/index.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a>
</td></tr>
<tr><td>
<marquee direction=up height=110 id=scrollArea onMouseOut=scrollArea.start() onMouseOver=scrollArea.stop() scrollamount=1 scrolldelay=60 width="100%" border="0">
<table cellspacing=0 cellpadding=0 >
<tr><td height=0px> </td></tr>
<?
$dbobj->strsql="select top 12 * from tb_zdtj where disp = 1 order by info_time desc";
$dbobj->exec();
for ($i=1;$i<=12;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=zdtj/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>";
$strTime=" [" . ConvertTime($array["info_time"]) ."]";
$totallen=44;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
echo "<td width=100px align=center ><font style='font-size:9pt'></font></td></tr>\n"; }
$dbobj->clearresult();
?>
</table>
</marquee></td></tr>
</table>
</td>
</tr>
<tr>
<td style="background-image:url(./images/bg_swzc1.gif);background-repeat:no-repeat;" width=430px height=146px valign=top>
<table cellspacing=0 cellpadding=0 valign=top>
<tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./cqzr/index1.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a>
</td></tr>
<tr><td height=0px> </td></tr>
<?
$dbobj->strsql = "select jyh,code,title,type,info_time from tb_fcjy where disp = 1";
$dbobj->strsql = $dbobj->strsql." union ";
$dbobj->strsql = $dbobj->strsql."select jyh,code,title,type,info_time from tb_sbjy where disp = 1";
$dbobj->strsql = $dbobj->strsql." union ";
$dbobj->strsql = $dbobj->strsql."select jyh,code,title,type,info_time from tb_cljy where disp = 1";
$dbobj->strsql = $dbobj->strsql." order by info_time desc";
$dbobj->exec();
for ($i=1;$i<=5;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
if(substr($array["type"],0,4)=="房产") $ptype="房产交易";
if(substr($array["type"],0,4)=="设备") $ptype="设备交易";
if(substr($array["type"],0,4)=="车辆") $ptype="车辆交易";
$thisbg="<a class=bt1 href=cqzr/detail.php?code=".$array["code"]."&type=".$ptype." target=_blank title=".$array["title"]." border=0>";
// $strTime=" [" . ConvertTime($array["info_time"]) ."]";
$strType=" [" . $array["jyh"] ."]";
$totallen=44;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
//echo "<td width=100px align=center ><font style='font-size:9pt'>".$strTime."</font></td></tr>\n";
echo "<td width=100px align=center ><font style='font-size:9pt'>".$strType."</font></td></tr>\n";
}
$dbobj->clearresult();
?>
</table>
</td>
</tr>
<td style="background-image:url(./images/bg_kjcg1.gif);background-repeat:no-repeat;" width=430px height=146px valign=top>
<table cellspacing=0 cellpadding=0 valign=top>
<tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./kjcg/index1.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a>
</td></tr>
<tr><td height=0px> </td></tr>
<?
$dbobj->strsql="select top 5 * from tb_kjcg where disp = 1 order by info_time desc";
$dbobj->exec();
for ($i=1;$i<=5;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=kjcg/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>";
$strType=" [" . $array["bh"] ."]";
$totallen=44;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
echo "<td width=100px align=center ><font style='font-size:9pt'>".$strType."</font></td></tr>\n";
}
$dbobj->clearresult();
?>
</table>
</td>
</tr>
<tr>
<td style="background-image:url(./images/bg_zljs1.gif);background-repeat:no-repeat;padding-left:2px" width=430px height=146px valign=top>
<table cellspacing=0 cellpadding=0 valign=top>
<tr><td colspan=3 valign=middle height=25px style="padding-top:0px;padding-left:365px"><a href="./zljs/index1.php" border=0 target=_blank ><font color=red style="font-size:10pt;">更多 >>></font></a>
</td></tr>
<tr><td height=0px> </td></tr>
<?
$dbobj->strsql="select top 6 * from tb_zljs where disp = 1 order by info_time desc";
$dbobj->exec();
for ($i=1;$i<=6;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=zljs/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>";
$strType=" [" . $array["bh"] ."]";
$totallen=44;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td align=left style='padding-left:20px;padding-right:10px'><IMG SRC='images/arrow.gif' BORDER=0 ALT=''></td><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
echo "<td width=100px align=center ><font style='font-size:9pt'>".$strType."</font></td></tr>\n";
}
$dbobj->clearresult();
?>
</table>
</td>
</tr>
</table>
</td>
<td width=166px height=597px valign=top style="background-image:url(./images/bg_right_botton4.gif);background-repeat:no-repeat;padding-left:0px">
<table width=166px height=597px style="padding-left:15px" height=597px cellspacing=0 cellpadding=0 valign=top border=0px>
<tr><td valign=top height=240px>
<table height=260px cellspacing=0 cellpadding=0 border=0px valign=top >
<tr><td height=5px ></td></tr>
<tr><td style="background-image:url();background-repeat:no-repeat;" height=240px valign=top>
<table cellspacing=0 cellpadding=0 valign=top >
<tr><td height=25px> </td></tr>
<?
$dbobj->strsql="select top 11 * from tb_xmxq order by info_time desc";
$dbobj->exec();
for ($i=1;$i<=11;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=xmxq/detail.php?code=".$array["code"]." target=_blank title=".$array["title"]." border=0>";
$strTime=" [" . ConvertTime($array["info_time"]) ."]";
$totallen=20;
$str=$array["title"];
if (strlen($array["title"])>$totallen)
{
if(strlen($array["title"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["title"],0,$num)."...";
}
else
$num=strlen($array["title"]);
echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:19px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
}
$dbobj->clearresult();
?>
<tr><td valign=top height=0px style="padding-top:0px;padding-left:90px"><a href="./xmxq/index.php" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a>
</td></tr>
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td style="background-image:url();background-repeat:no-repeat;" height=140px valign=top>
<table cellspacing=0 cellpadding=0 valign=top >
<tr><td height=34px> </td></tr>
<?
$dbobj->strsql="select top 5 * from tb_zllm order by sort";
$dbobj->exec();
for ($i=1;$i<=4;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=".$array["address"]." target=_blank title=".$array["name"]." border=0>";
$strTime=" [" . ConvertTime($array["info_time"]) ."]";
$totallen=20;
$str=$array["name"];
if (strlen($array["name"])>$totallen)
{
if(strlen($array["name"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["name"],0,$num)."...";
}
else
$num=strlen($array["name"]);
echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
}
$dbobj->clearresult();
?>
<tr><td valign=top height=0px style="padding-top:0px;padding-left:90px"><a href="./xmxq/index1.php?type=战略联盟" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a>
</td>
</tr>
<tr>
<td style="background-image:url();background-repeat:no-repeat;" height=190px valign=top>
<table cellspacing=0 cellpadding=0 valign=top >
<tr><td height=30px> </td></tr>
<?
$dbobj->strsql="select top 7 * from tb_yqlj order by sort";
$dbobj->exec();
for ($i=1;$i<=6;$i++)
{
if (!$array=$dbobj->getarray()) {break;}
$thisbg="<a class=bt1 href=".$array["address"]." target=_blank title=".$array["name"]." border=0>";
$strTime=" [" . ConvertTime($array["info_time"]) ."]";
$totallen=20;
$str=$array["name"];
if (strlen($array["name"])>$totallen)
{
if(strlen($array["name"])%2=='1')
{$num=$totallen-4;}
else
{$num=$totallen-3;};
$str=wordscut($array["name"],0,$num)."...";
}
else
$num=strlen($array["name"]);
echo "<tr ><td width=300px style=\"font-size:8pt\">".$thisbg."<font style=\"color=#00549A;line-height:22px;letter-spacing:0.06em;font-size:9pt\">".$str."</a></font>";
}
$dbobj->clearresult();
?>
<tr><td valign=top height=0px style="padding-top:0px;padding-left:90px"><a href="./xmxq/index1.php?type=友情链接" border=0 target=_blank ><font color=red style="font-size:10pt;line-height:0px">更多 >>></font></a>
</table>
</td>
</tr>
</table >
</td>
</tr>
</table>
</td>
</tr>
</table>
<?include("./manager/foot.php");?>
</td></tr>
</table>
</center>
</body>
</html>以上就是全部代码,用DW打开什么也看不见。DW是DREAMWEAVERMX2004吧?
如果看不见的话就说明你的html标签有问题
看看
可能是你html标签混乱,其实用php的代码不需要在DW里面打开看的,眼睛看看就可以了
但是没有用。
“其实用php的代码不需要在DW里面打开看的,眼睛看看就可以了”?
请教这句话什么意思,怎么可以看到版面布局?
phplib fast template smarty
网上介绍很多。
但你拿到的是一个写好的程序。
混编的代码在dw下有的时候是无法正常的显示的。
如果你有时间可以考虑把脚本和html分离,便于以后的开发和维护。