实例介绍
【实例简介】
【实例截图】
【实例截图】
【核心代码】
<?php require_once("include/global.php"); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title><?php echo $db->ly_system("system",2)?></title> <META name=keywords content="<?php echo $db->ly_system("system",3)?>"> <meta name="description" content="<?php echo $db->ly_system("system",4)?>"> <link href="image/style.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="196"><a href="<?php echo $db->ly_system("system",5)?>" title="<?php echo $db->ly_system("system",1)?>" target="_blank"><img src="image/xxcms_logo.jpg" width="196" height="73" border="0"></a></td> <td width="616" align="center"><img src="image/xxcms_ad.jpg" width="540" height="73"></td> <td width="188"><table width="90%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td width="49%" align="center">[<a href="index.php" class="xx_menu_top">返回首页 </a>]</td> <td width="51%" align="center">[<a href="group/2.html" target="_blank" class="xx_menu_top">版权声明</a>]</td> </tr> <tr> <td align="center">[<a href="#" class="xx_menu_top">加入收藏</a>]</td> <td align="center">[<a href="group/3.html" target="_blank" class="xx_menu_top">网站地图</a>]</td> </tr> <tr> <td align="center">[<a href="group/1.html" target="_blank" class="xx_menu_top">关于我们</a>]</td> <td align="center">[<a href="group/4.html" target="_blank" class="xx_menu_top">联系我们</a>]</td> </tr> </table></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="menu"> <tr> <td width="10" align="left" background="image/xxcms_bg_menu.jpg"><img src="image/xxcms_left_menu.jpg" width="8" height="60"></td> <td width="979" align="center" valign="middle" background="image/xxcms_bg_menu.jpg"><script type="text/javascript" src="include/Function.php?action=menu2"></script></td> <td width="11" align="right" background="image/xxcms_bg_menu.jpg"><img src="image/xxcms_right_menu.jpg" width="8" height="60"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="293" height="192" align="center" valign="top"><table width="100%" height="330" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="26" background="image/xxcms_hdp.jpg" class="xxcms_title"> 推荐新闻</td> </tr> <tr> <td><table width="88%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"> <?php $sql="select * from newscontent where is_hot=1 order by newsid desc limit 0,5"; $rs=mysql_query($sql); { $pics=$links=$texts=''; while($rows=mysql_fetch_assoc($rs)){ $pics.=$rows['newspic']."|"; $links.="news/".$rows['newspath']."|"; $texts.=$rows['newstitle']."|"; } $pics=substr($pics,0,-1); $links=substr($links,0,-1); $texts=substr($texts,0,-1); ?> <script type="text/javascript"> //<![CDATA[ var interval_time=0; var focus_width=278; var focus_height=278; var text_height=0; var text_align="center"; var swf_height=focus_height text_height; var pics="<?php echo $pics?>"; var links="<?php echo $links?>"; var texts="<?php echo $texts?>"; document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' focus_width '" height="' swf_height '">'); document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="image/focus.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#F0F0F0">'); document.write('<param name="menu" value="false"><param name=wmode value="transparent">'); document.write('<param name="FlashVars" value="pics=' pics '&links=' links '&texts=' texts '&borderwidth=' focus_width '&borderheight=' focus_height '&textheight=' text_height '">'); document.write('<embed src="/image/focus.swf" wmode="opaque" FlashVars="pics=' pics '&links=' links '&texts=' texts '&borderwidth=' focus_width '&borderheight=' focus_height '&textheight=' text_height '" menu="false" bgcolor="#F0F0F0" quality="high" width="' focus_width '" height="' swf_height '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); //]]> </script> <?php } ?></td> </tr> </table></td> </tr> </table></td> <td width="487" align="center" valign="top"><table width="475" height="330" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="173" valign="top"><table width="475" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="38" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_arr.jpg" width="16" height="22"></td> <td width="383" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">新闻头条</td> </tr> </table> <table width="98%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","12","1","50","1")?> </table> </td> </tr> </table> </td> <td width="220" align="center" valign="top"><table width="100%" height="330" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="173" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="27" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_icon_right.jpg" width="4" height="11"></td> <td width="191" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">图文推荐</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <?php $rs=mysql_query("select * from newscontent where newspic<>'' order by newsid desc limit 0,4") ?> <?php $i=0; while($row=mysql_fetch_assoc($rs)){ ?> <td height="57" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="80%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="80%" height="38"><table width="100%" border="0" cellpadding="0" cellspacing="1"> <tr> <td height="45" align="center"><a href="news/<?php echo $row["newspath"]?>" target="_blank" title="<?php echo $row["newstitle"]?>"><IMG height=110 src="<?php echo $row["newspic"]?>" width=88 border=0></A></td> </tr> <tr> <td height="20" align="center"> <a href="news/<?php echo $row["newspath"]?>" title="<?php echo $row["newstitle"] ?>" target="_blank"><?php echo substr($row["newstitle"],0,12)?></a> </td> </tr> </table></td> <td width="10"></td> </tr> </table> </td> <?php $i ; if($i%2==0) { echo "</tr><tr>"; } } ?> </tr> </table> </td> </tr> </table></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="293" height="192" align="center" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="26" valign="top" background="image/xxcms_bg_t.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%" align="center" background="image/xxcms_hdp.jpg" class="xxcms_title">网页制作</td> <td width="67%"> </td> </tr> </table></td> </tr> <tr> <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","10","1","26","1")?> </table> </td> </tr> </table></td> <td width="487" align="center" valign="top"><table width="475" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="26" valign="top" background="image/xxcms_bg_t.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="95" align="center" background="image/xxcms_hdp.jpg" class="xxcms_title">网络教程</td> <td> </td> </tr> </table></td> </tr> <tr> <td height="250" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="line"> <tr> <td height="120" align="center"><img src="image/xxcms_pic1.jpg" width="106" height="98"></td> <td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","5","1","37","1")?> </table></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="120" align="center"><img src="image/xxcms_pic2.jpg" width="106" height="98"></td> <td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","5","5","1","37","1")?> </table></td> </tr> </table> </td> </tr> </table></td> <td width="220" align="center" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="173" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="38" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_icon_right.jpg" width="4" height="11"></td> <td width="383" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">CMS教程</td> <td width="52" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_more.jpg" width="34" height="11"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","10","1","32","")?> </table> </td> </tr> </table></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="1000" height="150" border="0" align="center" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="26" background="image/xxcms_bg_t.jpg" class="xxcms_title"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11%" align="center" background="image/xxcms_hdp.jpg" class="xxcms_title">图片文章</td> <td width="89%"> </td> </tr> </table> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <?php $rs=mysql_query("select * from newscontent where newspic<>'' order by newsid desc limit 0,7") ?> <?php $i=0; while($row=mysql_fetch_assoc($rs)){ ?> <td height="57" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="80%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="80%" height="38"><table width="100%" border="0" cellpadding="0" cellspacing="1"> <tr> <td height="45" align="center"><a href="news/<?php echo $row["newspath"]?>" target="_blank" title="<?php echo $row["newstitle"]?>"><IMG height=100 src="<?php echo $row["newspic"]?>" width=100 border=0></A></td> </tr> <tr> <td height="20" align="center"><a href="news/<?php echo $row["newspath"]?>" title="<?php echo $row["newstitle"] ?>" target="_blank"><?php echo substr($row["newstitle"],0,12)?></a> </td> </tr> </table></td> <td width="10"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="5"></td> </tr> </table></td> <?php $i ; if($i%7==0) { echo "</tr><tr>"; } } ?> </tr> </table></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="293" height="192" align="center" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="26" valign="top" background="image/xxcms_bg_t.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%" align="center" background="image/xxcms_hdp.jpg" class="xxcms_title">电子教程</td> <td width="67%"> </td> </tr> </table></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","10","1","26","1")?> </table></td> </tr> </table></td> <td width="487" align="center" valign="top"> <table width="475" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="26" valign="top" background="image/xxcms_bg_t.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="95" align="center" background="image/xxcms_hdp.jpg" class="xxcms_title">媒体动画</td> <td> </td> </tr> </table></td> </tr> <tr> <td height="250" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="line"> <tr> <td height="120" align="center"><img src="image/xxcms_pic1.jpg" width="106" height="98"></td> <td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","5","1","37","1")?> </table></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="120" align="center"><img src="image/xxcms_pic2.jpg" width="106" height="98"></td> <td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","5","5","1","37","1")?> </table></td> </tr> </table> </td> </tr> </table> </td> <td width="220" align="center" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="173" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="38" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_icon_right.jpg" width="4" height="11"></td> <td width="383" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">网站运营</td> <td width="52" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_more.jpg" width="34" height="11"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","10","1","32","")?> </table></td> </tr> </table></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="293" height="192" align="center" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="38" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_icon_right.jpg" width="4" height="11"></td> <td width="383" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">网络安全</td> <td width="52" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_more.jpg" width="34" height="11"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","10","1","26","1")?> </table></td> </tr> </table></td> <td width="487" align="center" valign="top"><table width="475" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="38" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_icon_right.jpg" width="4" height="11"></td> <td width="383" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">广告代码</td> <td width="52" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_more.jpg" width="34" height="11"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php $sql="select * from newscontent where newstypeid=3 order by newsid desc limit 0,10"; $rs=mysql_query($sql); while($rows=mysql_fetch_assoc($rs)) { ?> <tr class="line"> <td width="20" height="25" align="center"><img src="image/xxcms_icon.jpg" width="4" height="4" /> </td> <td align="left"><a href="news/<?php echo $rows["newspath"]?>" title="<?php echo $rows["newstitle"] ?>" target="_blank"><?php echo substr($rows["newstitle"],0,30) ?></a></td> </tr> <?php } ?> </table></td> <td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php echo $db->select("newscontent","*","3","10","1","32","")?> </table></td> </tr> </table></td> </tr> </table></td> <td width="220" align="center" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0" class="xxcms_border"> <tr> <td height="173" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="38" height="26" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_icon_right.jpg" width="4" height="11"></td> <td width="383" align="left" background="image/xxcms_bg_t.jpg" class="xxcms_title">在线手册</td> <td width="52" align="center" background="image/xxcms_bg_t.jpg"><img src="image/xxcms_more.jpg" width="34" height="11"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> </table> <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0"> <?php $sql="select * from newscontent where newstypeid=3 order by newsid desc limit 0,10"; $rs=mysql_query($sql); while($rows=mysql_fetch_assoc($rs)) { ?> <tr class="line"> <td width="20" height="25" align="center"><img src="image/xxcms_icon.jpg" width="4" height="4" /> </td> <td align="left"><a href="news/<?php echo $rows["newspath"]?>" title="<?php echo $rows["newstitle"] ?>" target="_blank"><?php echo substr($rows["newstitle"],0,32) ?></a></td> </tr> <?php } ?> </table></td> </tr> </table></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DCDCDC"> <tr> <td height="1"></td> </tr> </table> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="45" align="center"><?php echo $db->ly_system("system",6)?> <!-- 源文件在不断更新中,本源码免费开源,保留版权信息,算是对原作者的一个支持,另外你可以获得本站免费技术支持和原程序升级服务--> <script type="text/javascript" src="http://www.04ie.com/net/cpt.js"></script></td> </tr> </table> </body> </html>
好例子网口号:伸出你的我的手 — 分享!
网友评论
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
支持(0) 盖楼(回复)
支持(0) 盖楼(回复)
支持(0) 盖楼(回复)