Exemple #1
0
	<td width='33%' valign='top'><h3>Top Publishers</h3></td>
	<td width='33%' valign='top'><h3>Top Tags</h3></td>
</tr>
<tr>
	<td width='33%' valign='top'>
		<?php 
            $blogs = get_blogs(array(), array("limit" => 25));
            if (sizeof($blogs)) {
                tabulate_blogs($blogs);
            }
            ?>
		
	</td>
	<td width='33%' valign='top'>
		<?php 
            $journals = get_journals(false, 25, "rank ASC", array("return_full" => true));
            if (sizeof($journals)) {
                tabulate_journals($journals);
            }
            ?>
	</td>
	<td width='33%' valign='top'>
		<?php 
            $tags = get_popular_tags(false, 25);
            if (sizeof($tags)) {
                tabulate_tags($tags);
            }
            ?>
		
	</td>
</tr>
Exemple #2
0
'>year</a> or
	<a <?php 
if ($safe_timeframe == "100y") {
    print "class='selected'";
}
?>
 href='<?php 
plinkto("papers.php", $page_vars, array("timeframe" => "100y"));
?>
'>show all papers</a>	
<?php 
print "<h3>Limit to journal</h3>";
if ($safe_journal) {
    print " <p>limiting to results from <span class='selected'>{$safe_journal}</span> (<a href='" . linkto("papers.php", $page_vars, array("journal" => false)) . "'>remove limit</a>)";
}
$journals = get_journals($safe_category, 100, "count DESC");
natcasesort($journals);
print "<p><select name='journal' onchange='\n\t\tlocation = \"" . linkto("papers.php", $page_vars, array("journal" => "")) . "&journal=\" + this.options[this.selectedIndex].value;\n\t\t'>";
print "<option value='false'>Any</option>";
foreach ($journals as $journal) {
    $selected = "";
    if ($safe_journal == $journal) {
        $selected = "selected";
    }
    print "<option {$selected} value='" . urlencode($journal) . "'>" . substr($journal, 0, 30) . "</option>";
}
print "</select>";
if ($safe_category) {
    print "<p>Note that only journals with papers that have been commented on by blogs in this category will appear in the box above.";
}
?>