´ó¼ÒºÃ£¬ÎÒÓÐÒ»¸öÎÊÌâÏò´ó¼ÒÇë½Ì¡£ÎÒÃǹ«Ë¾µÄÍøÕ¾ÊÇÓÃPHP¿ª·¢µÄ£¬ÏÖÔÚÎÒÃÇÐèÒª¸ü¸ÄÒ³ÃæµÄ²¼¾Ö£¬µ«ÊÇÓÃDREAMWEAVER2004MX´ò¿ªPHP´úÂëºó£¬ÔÚÉè¼ÆÀ¸Ö»¿´µ½¼¸¸ö×Ö·û£¬Í¼Æ¬¡¢²¼¾Ö¶¼²»ÏÔʾ£¬Õ¦»ØÊ£¿´úÂëÈçÏ£º <? if(!session_is_registered("user_session")) { session_start(); //session_start()ҪдÔÚÊ×Ò³µÄµÚÒ»ÐУ¬ÒòΪÔÚËû֮ǰ²»ÄÜÓÐÈκÎhtml±ê¼Ç£¬·ñÔòPHPÌáʾ³ö´í¡£ } ?> <? include("./manager/dbclass.php"); $dbobj=new DBclass; $dbobj->connect(); function Gettime($JKLDate) { $date_array = explode("-",$JKLDate); $var_year = $date_array[0]; $var_month = $date_array[1]; $var_day = $date_array[2]; $var_time = mktime(0,0,0,$var_month,$var_day,$var_year); return($var_time); } function ConvertTime($strTime) { $strCovertTime = trim($strTime); $strCovertTime = substr($strCovertTime,0,4)."-".substr($strCovertTime,4,2)."-".substr($strCovertTime,6,2); return($strCovertTime); } function ConvertType($strType) { $strCovertType = trim($strType); $strCovertType = substr($strCovertType,0,4)."½»Ò×"; return($strCovertType); } function ConvertTime1($strTime) { $strCovertTime = trim($strTime); $strCovertTime = substr($strCovertTime,0,4)."-".substr($strCovertTime,5,2)."-".substr($strCovertTime,8,2); return($strCovertTime); } ?> <html> <head> <title> ºÏ·Ê¼¼Êõ²úȨ½»Ò×Ëù </title> <style type="text/css"> a {color:#000000;text-decoration:none;font-size:9pt;} a:hover {color:#FF0000;text-decoration:none;font-size:9pt;} a.bt1 {color:#000000;text-decoration:none;font-size:9pt;letter-spacing:0.1em;} a.daohang {color:#F9CD3D;text-decoration:none;font-size:9pt;} a.daohang:hover {color:#FF0000;text-decoration:none;font-size:9pt;} a.foot {color:#ffffff;text-decoration:none;font-size:10pt;} a.foot:hover {color:#ffffff;text-decoration:none;font-size:10pt;} td.xgjs {padding-left:25px;font-size:9pt;padding-top:4px;background-image:url('./images/xgjsbg.jpg');background-repeat:no-repeat;} td.xgjs1 {padding-left:25px;font-size:9pt;padding-top:4px;} td.login {font-size:9pt;padding-top:4px;color:666666;} td.foot1 {font-size:9pt;padding-top:4px;color:#6A0035;} td.foot {font-size:9pt;padding-top:4px;color:000000;} </style> </head> <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> ÇëÖ¸½Ì£¡ÿ
|