Example #1
0
    for ($i = 0; $i < $newNum; $i++) {
        echo "<tbody><tr>\n<td class=t4><a href='/bbsqry.php?userid=" . $newComments[$i]["POSTER"] . "'>" . $newComments[$i]["POSTER"] . "</a></td>\n" . "<td class=t8><a href=\"pcshowcom.php?cid=" . $newComments[$i]["CID"] . "\">" . $newComments[$i]["CSUBJECT"] . "</a>&nbsp;</td>\n" . "<td class=t4>" . $newComments[$i]["CCREATED"] . "&nbsp;</td>\n" . "<td class=t8><span title=\"" . $newComments[$i]["NSUBJECT"] . "\"><a href=\"pccon.php?id=" . $newComments[$i]["UID"] . "&nid=" . $newComments[$i]["NID"] . "&s=all\">" . substr($newComments[$i]["NSUBJECT"], 0, 30) . " \n ";
        if (strlen($newComments[$i]["NSUBJECT"]) > 30) {
            echo " ...";
        }
        echo "</a>&nbsp;</span></td>\n" . "<td class=t3>" . $newComments[$i]["VISITCOUNT"] . "</td>\n" . "<td class=t4>" . $newComments[$i]["COMMENTCOUNT"] . "</td>\n</tr></tbody>\n";
    }
}
?>
</table>
<?php 
display_page_tools($pno, $newNum, $type);
?>
<hr size=1>
<?php 
display_navigation_bar($type);
if ($type == "n") {
    ?>
<p align=center class=f1>
<a href="rssnew.php" target="_blank"><img src="images/xml.gif" border="0" align="absmiddle" alt="XML"></a>
</p>
<?php 
}
?>
</center>
<p align="center">
<?php 
/**
 *    水木的web代码bbslib和cgi部分是修改于NJUWWWBBS-0.9,此部分
 * 代码遵循原有的nju www bbs的版权声明(GPL)。php部分的代码(
 * phplib以及php页面)不再遵循GPL,正在考虑使用其他开放源码的版
Example #2
0
if (cache_header("public", @filemtime($dotdirname), 300)) {
    return;
}
if (isset($_GET["start"])) {
    $start = $_GET["start"];
} elseif (isset($_POST["start"])) {
    $start = $_POST["start"];
} else {
    $start = 0;
}
settype($start, "integer");
$artcnt = 20;
/*
 * 这里存在一个时间差的问题,可能会导致序号变乱。
 * 原因在于两次调用 bbs_countarticles() 和 bbs_getarticles()。
 */
if ($start == 0 || $start > $total - $artcnt + 1) {
    $start = $total - $artcnt + 1;
}
if ($start < 0) {
    $start = 1;
}
$articles = bbs_getarticles($board, $start, $artcnt, $dir_modes["DIGEST"]);
if ($articles == FALSE) {
    html_error_quit("读取文章列表失败");
}
$brd_encode = urlencode($brdarr["NAME"]);
page_header("推荐文章");
display_g_articles($brdarr, $articles, $start, $order = FALSE);
display_navigation_bar($brdarr, $brdnum, $start, $total, $order_articles);
page_footer();
Example #3
0
File: pc.php Project: bianle/www2
<p align="center" class="f2">
<?php 
echo $pcconfig["BBSNAME"];
?>
Blog
</p>
<hr size=1>
<p class="f1">
<?php 
pc_main_navigation_bar();
?>
</p>
<?php 
display_blog_catalog();
display_user_list($link, $listorder, $listorder1, $char, $startno, $pagesize);
display_navigation_bar($totalpage, $pageno, $char, $listorder, $listorder1);
display_char_bar($char);
?>
<hr size=1>
<p class="f1">
<?php 
pc_main_navigation_bar();
?>
</p>
<form action="pcsearch.php" method="get" onsubmit="if(this.keyword.value==''){alert('请输入关键字');return false;}">
本站Blog搜索:<br>
<input type="text" name="keyword" size="20" class="b2">
(进行模糊搜索时,请用空格隔开多个关键字)
<br>
方式:
<input type="radio" name="exact" value="1" class="b2" checked>精确
Example #4
0
<h1>ÍƼöÎÄÕÂÔĶÁ</h1>
<div class="article">
<div class="recnav">
<?php 
display_navigation_bar($brdarr, $num, $articles);
?>
</div>
<div>
<script type="text/javascript"><!--
att = new attWriter('r',<?php 
echo $id;
?>
,0,0,1);
<?php 
/* TODO: this article is put in an extra div because without it, IE6 will show no padding-left for the first line */
$s = bbs2_readfile($filename);
if (is_string($s)) {
    echo $s;
}
?>
//-->
</script>
</div></div>
<div class="oper">[
<?php 
display_navigation_bar($brdarr, $num, $articles);
?>
] [<a href="javascript:history.go(-1)">¿ìËÙ·µ»Ø</a>]
</div>
<?php 
page_footer();
Example #5
0
if ($rows["trackback"] && $rows["trackbackcount"] && $rows["access"] == 0) {
    ?>
<tr>
	<td align="center"><br/><?php 
    $tb_num = display_pc_trackbacks($link, $rows["nid"]);
    ?>
</td>
</tr>
<?php 
}
?>
<tr>
	<td align="center" class="f1" height="40" valign="middle">
	<?php 
if (@$re_num != 0 || @$tb_num != 0) {
    display_navigation_bar($link, $pc, $nid, $rows["pid"], $rows["access"], $spr, addslashes(@$_GET["order"]), $rows["comment"], $tid, $pur, $rows["trackback"], $rows["subject"], $rows["recommend"], $rows["nodetype"], 0, 0);
}
//$rows["username"] , $rows["state"]);
?>
	&nbsp;</td>
</tr>
<tr>
	<td>
	<?php 
if ($pc['USER'] != '_filter') {
    if ($rows["comment"] && $rows["type"] == 0) {
        $alert = $loginok != 1 || !strcmp($currentuser["userid"], "guest") ? TRUE : FALSE;
        pc_add_new_comment($pc, $nid, $alert);
    }
}
?>