function RightAd() { global $db, $wd, $wd_en, $tg; ?> <style type="text/css"> <!-- a:link { color: #3366CC; text-decoration: underline; } body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; } .STYLE8 {font-size: 16px} .STYLE12 {font-size: 10pt} --> </style> <link type="text/css" href="images/style.css" rel="stylesheet" /> <link type="text/css" href="images/page.css" rel="stylesheet" /> <style type="text/css"> <!-- .STYLE26 {color: #3366CC} --> </style> <table width="32%" border="0" cellpadding="0" cellspacing="0" align="right"> <tr align="left"> <td width="100%" style="padding-right:10px"><dt id="his" style="padding-top:0; border:0;"></dt> <div id="ec_im_container"> <div align="left" style="padding-left:1px; padding-right:50px;"> <?php echo file_get_contents("../tg/html/{$wd}.html"); ?> </div> <div style="line-height:25px;"> <p class="STYLE12"> </p> <p class="STYLE12"><span class="STYLE12" style="line-height:25px;"> <?php $GetAdKeywordSql = GetAdKeywordSql(); if (empty($GetAdKeywordSql)) { $GetAdKeywordSql = "title like '%" . $wd . "%'"; } $query_ad = $db->query("select * from ve123_ad where " . $GetAdKeywordSql . " and type='2' and is_show limit 5"); $num = $db->num_rows($query_ad); if ($num < 1) { $query_ad = $db->query("select * from ve123_ad where type='2' and is_show limit 5"); } while ($row_ad = $db->fetch_array($query_ad)) { ?> </span></p> <span class="STYLE12"><span class="STYLE12" style="line-height:25px;"> <div class="r" id="bdfs0"><span class="STYLE8"> <p><a href='<?php echo $row_ad["siteurl"]; ?> ' target='_blank' class="STYLE8 STYLE8" id=dfs0 onmouseover="return ss('链接至 <?php echo $row_ad["siteurl"]; ?> ')" onmouseout="cs()"><u><?php echo $row_ad["title"]; ?> </u></a><br> <span id="bdfs0"><span class="STYLE12"><font color="#000000"><?php echo $row_ad["content"]; ?> </font></span></span></p> <p><span><br> </span></p> </div> </span></span><span style="line-height:25px;"><span style="padding-top:0; border:0;"><img src="images/co.gif" width="21" height="15" alt="推荐" /> <strong>热门搜索</strong></span></span><span class="STYLE12"><span class="STYLE12" style="line-height:25px;"><br> <?php } ?> <?php $query_ad = $db->query("select * from ve123_ad where type='1' and is_show limit 10"); while ($row_ad = $db->fetch_array($query_ad)) { ?> </span><a href='<?php echo str_replace("{somao:keyword}", $wd_en, $row_ad["siteurl"]); ?> ' target='_blank' style="text-decoration:underline;"><?php echo str_replace("{somao:keyword}", "<font color=#C60A00>" . str_cut($wd, 20) . "</font>", $row_ad["title"]); ?> </a><br> <?php } ?> </span></div> <DIV id=ScriptDiv></DIV></td> </tr></table> <?php }
function RightAd() { global $db, $wd, $wd_en, $tg; ?> <table width="30%" border="0" cellpadding="0" cellspacing="0" align="right"><tr> <td align="left" style="padding-right:10px"> <div style="border-left:1px solid #e1e1e1;padding-left:10px;word-break:break-all;word-wrap:break-word;"> <?php /* echo "<div style=\"line-height:25px;\">"; foreach($tg as $t) { $file_fix=substr($t["pic"],strrpos($t["pic"],".")); if(in_array($file_fix,array(".gif",".jpg",".png"))) { $pic_code="<img src=\"".$t["pic"]."\">"; } elseif($file_fix==".swf") { $pic_code="<embed src=\"".$t["pic"]."\"></embed>"; } else { $pic_code="<embed src=\"".$t["pic"]."\"></embed>"; } echo $pic_code."<br><br><a target=\"_blank\" href=\"".$t["url"]."\"><font size=3>".$t["title2"]."</font></a><br><font style=\"color:#666666;width:250px;\">".$t["txt2"]."</font>"; } echo "</div><br><br>"; */ ?> <div id="ec_im_container"> <?php $GetAdKeywordSql = GetAdKeywordSql(); if (empty($GetAdKeywordSql)) { $GetAdKeywordSql = "title like '%" . $wd . "%'"; } $query_ad = $db->query("select * from ve123_ad where " . $GetAdKeywordSql . " and type='2' and is_show limit 5"); $num = $db->num_rows($query_ad); if ($num < 1) { $query_ad = $db->query("select * from ve123_ad where type='2' and is_show limit 5"); } while ($row_ad = $db->fetch_array($query_ad)) { ?> <div class="r" id="bdfs0"> <a id=dfs0 href='<?php echo $row_ad["siteurl"]; ?> ' target='_blank' onMouseOver="return ss('链接至 <?php echo $config["name"]; ?> ')" onMouseOut="cs()"> <font size="3"><?php echo $row_ad["title"]; ?> </font> </a><br> <span id="bdfs0"><font size="-1" color="#000000"><?php echo $row_ad["content"]; ?> </font><br><font size="-1" color="#008000"><?php echo str_cut($row_ad["siteurl"], 38); ?> </font></span> </div><br> <?php } ?> </div> <div style="line-height:25px;"> <?php $query_ad = $db->query("select * from ve123_ad where type='1' and is_show limit 5"); while ($row_ad = $db->fetch_array($query_ad)) { ?> <a href='<?php echo str_replace("{zeidu:keyword}", $wd_en, $row_ad["siteurl"]); ?> ' target='_blank'><?php echo str_replace("{zeidu:keyword}", "<font color=#C60A00>" . str_cut($wd, 20) . "</font>", $row_ad["title"]); ?> </a><br> <?php } ?> </div> <table border=0 cellpadding=0 cellspacing=0 style="width:240px;border-left: #EFF2FA 1px solid; border-right: #EFF2FA 1px solid;border-bottom: #EFF2FA 1px solid; font-size: 12px; color: #333333;background-color: #EFF2FA;"><tr><td style="table-layout:fixed;word-break:break-all;border-top: #7593E5 1px solid;background-color: #EFF2FA;padding-left:10px;line-height:24px;"> <!--<a href="#" target=_blank><font style="font-size:9pt">发布/查看关于<font color="#C60A00"><?php echo str_cut($wd, 20); ?> </font>留言</font></a>--> </td> </tr></table> <DIV id=ScriptDiv></DIV> </div> </td></tr></table> <?php }
function RightAd() { global $db, $wd, $wd_en, $tg; ?> <style type="text/css"> <!-- a:link { color: #00c; text-decoration: underline; } body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; } .STYLE8 {font-size: 16px} .STYLE12 {font-size: 10pt} --> </style> <link type="text/css" href="images/style.css" rel="stylesheet" /> <link type="text/css" href="images/page.css" rel="stylesheet" /> <style type="text/css"> <!-- .STYLE27 {color: #00c} --> </style> <table width="30%" border="0" cellpadding="0" cellspacing="0" align="right"> <tr align="left"> <td style="padding-right:10px"> <div style="border-left:1px solid #e1e1e1;padding-left:10px;word-break:break-all;word-wrap:break-word;"> <?php echo file_get_contents("../tg/html/{$wd}.html"); /* echo "<div style=\"line-height:25px;\">"; foreach($tg as $t) { $file_fix=substr($t["pic"],strrpos($t["pic"],".")); if(in_array($file_fix,array(".gif",".jpg",".png"))) { $pic_code="<img src=\"".$t["pic"]."\">"; } elseif($file_fix==".swf") { $pic_code="<embed src=\"".$t["pic"]."\"></embed>"; } else { $pic_code="<embed src=\"".$t["pic"]."\"></embed>"; } echo $pic_code."<br><br><a target=\"_blank\" href=\"".$t["url"]."\"><font size=3>".$t["title2"]."</font></a><br><font style=\"color:#666666;width:250px;\">".$t["txt2"]."</font>"; } echo "</div><br><br>"; */ ?> <div id="ec_im_container"> <?php $GetAdKeywordSql = GetAdKeywordSql(); if (empty($GetAdKeywordSql)) { $GetAdKeywordSql = "title like '%" . $wd . "%'"; } $query_ad = $db->query("select * from ve123_ad where " . $GetAdKeywordSql . " and type='2' and is_show limit 5"); $num = $db->num_rows($query_ad); if ($num < 1) { $query_ad = $db->query("select * from ve123_ad where type='2' and is_show limit 5"); } while ($row_ad = $db->fetch_array($query_ad)) { ?> <div class="r" id="bdfs0"> <span class="STYLE8"><a href='<?php echo $row_ad["siteurl"]; ?> ' target='_blank' class="STYLE8 STYLE8" id=dfs0 onMouseOver="return ss('链接至 <?php echo $row_ad["siteurl"]; ?> ')" onMouseOut="cs()"> <u><?php echo $row_ad["title"]; ?> </u></a></span></span><br> <span id="bdfs0"><span class="STYLE12"><font color="#000000"><?php echo $row_ad["content"]; ?> </font></span></span></div> <br> <?php } ?> </div> <DIV id=ScriptDiv></DIV> </div></td> </tr></table> <?php }