示例#1
0
<div id="Content_ContentList" class="content-width">
	<div class="Content">
	  <div class="Content-top">
		<div class="ContentLeft"></div>
		<div class="ContentRight"></div>
		<h1 class="ContentTitle"><b><?php 
echo $strHotTags;
?>
</b></h1>
		<h2 class="ContentAuthor">Tags Cloud</h2>
	  </div>
	  <div class="Content-body">
		<?php 
list($maxTag, $minTag) = getTagRange();
//require("cache/cache_hottags.php");
$tagscache = $DMF->fetchQueryAll($DMF->query("select * from " . $DBPrefix . "tags order by logNums desc"));
for ($i = 0; $i < count($tagscache); $i++) {
    $curColor = getTagHot($tagscache[$i]['logNums'], $maxTag, $minTag);
    $strDayLog = $strTagsCount . ": " . $tagscache[$i]['logNums'];
    echo "<a href=\"{$PHP_SELF}?job=tag&seekname=" . $tagscache[$i]['name'] . "\" style=\"color:{$curColor}\" title=\"{$strDayLog}\"><span style=\"font-size:13px\">" . $tagscache[$i]['name'] . "</span></a>&nbsp;&nbsp; \n";
}
?>
	  </div>
	</div>
</div>
示例#2
0
function side_hotTags($sidename, $sidetitle, $isInstall)
{
    global $strTagsCount, $PHP_SELF;
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--标签-->
<div class="sidepanel" id="Side_HotTags">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<div id="HotTags_Body">
		<?php 
    list($maxTag, $minTag) = getTagRange();
    require "cache/cache_hottags.php";
    for ($i = 0; $i < count($tagscache); $i++) {
        $curColor = getTagHot($tagscache[$i]['logNums'], $maxTag, $minTag);
        $strDayLog = $strTagsCount . ": " . $tagscache[$i]['logNums'];
        echo "<a href=\"{$PHP_SELF}?job=tag&seekname=" . $tagscache[$i]['name'] . "\" style=\"color:{$curColor}\" title=\"{$strDayLog}\">" . $tagscache[$i]['name'] . "</a> \n";
    }
    ?>
	</div>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}