本文整理匯總了PHP中news::getnewsinfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP news::getnewsinfo方法的具體用法?PHP news::getnewsinfo怎麽用?PHP news::getnewsinfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類news
的用法示例。
在下文中一共展示了news::getnewsinfo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: news
/// Copyright 2007-2008 prolove. All rights reserved.
///
/// [Filename]
/// 學生項目申請首頁類
///
/// [Description]
/// 學生項目申請首頁類頁麵
///
/// [History]
/// Date Version Author Content
/// ---------- ------- -------- ------------------------------------
/// 2009/11/16 1.1 龍首成 學生管理
require_once "news.class.php";
$news = new news();
$pageno = $_GET['page_no'];
$newsshow = $news->getnewsinfo($pageno);
$noticdata = $news->getNotice();
$title = "新聞列表";
require_once "header.php";
?>
<div id="right" style="width:648px;height:300px;border:#C1C1C1 solid 1px;background-color:#FFF0F0;float:left">
<div id="item" style="border:#c1c1c1 solid 1px;height:40px;margin-bottom:20px;text-align:center">
<span style="float:left;width:630px"><h3>新聞列表</h3></span>
</div>
<div id="content" style="width:560px;margin:auto;">
<ul style="line-height:18px;">
<?php
for ($i = 0; $i < count($newsshow); $i++) {
?>
示例2: news
/// [Filename]
/// 學生項目申請首頁類
///
/// [Description]
/// 學生項目申請首頁類頁麵
///
/// [History]
/// Date Version Author Content
/// ---------- ------- -------- ------------------------------------
/// 2009/11/16 1.1 龍首成 學生管理
require_once "news.class.php";
$news = new news();
$newsid = $_GET['newsid'];
$pageno = $_GET['page_no'];
$newsshow = $news->getnewscont($newsid);
$newstitle = $news->getnewsinfo($pageno);
$nshowup = $news->getnewscont($newsid + 1);
$nshowdown = $news->getnewscont($newsid - 1);
$title = "新聞中心";
require_once "header.php";
?>
<div id="right" style="width:648px;border:#C1C1C1 solid 1px;background-color:#FFF0F0;float:left">
<div id="item" style="border:#c1c1c1 solid 1px;margin-bottom:20px;text-align:center">
<h3 style="color:red"><?php
echo $newsshow[0]['news_title'];
?>
</h3>
<p><?php
echo "作者:" . $newsshow[0]['news_author'];
?>