六酷社区论坛HOME页清新格调免费版 下载(3)


$tightlink_text = $tightlink_logo = ''; 
$query = $db->query("SELECT * FROM {$tablepre}forumlinks ORDER BY displayorder"); 
                        while($flink = $db->fetch_array($query)) { 
                                if($flink['note']) { 
                                        if($flink['logo']) { 
                                                $forumlink['type'] = 1; 
                                                $forumlink['logo'] = $flink['logo']; 
                                        } else { 
                                                $forumlink['type'] = 2; 
                                        } 
                                        $data[] = $forumlink; 
                                } else { 
                                        if($flink['logo']) { 
                                                $tightlink_logo .= "<a href=\"$flink[url]\"  
target=\"_blank\" class='mainlink1'><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink 
[name]\"  alt=\"$flink[content]\"></a> "; 
                                        } else { 
                                                $tightlink_text .= "<a href=\"$flink[url]\"  
target=\"_blank\" class='mainlink1'>[$flink[name]]</a> "; 
                                        } 
                                } 
                        } 
                        if($tightlink_logo || $tightlink_text) { 
                                $tightlink_logo .= $tightlink_logo ? '<br>' : ''; 
                                $data[] = array('type' => 3, 'content' =>  
$tightlink_logo.$tightlink_text); 
                        } 

说明:
$flink[content]是LOGO链接调用变量
$flink[content]是文字链接调用变量
两个要同时都有

---------------------------------------------
12、生成静态HTML页的方法
打开main.php
查找:

复制代码 代码如下:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/c1682265e1a7ef855c75cc104dfcbf72.html