Ejemplo n.º 1
0
///		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++) {
    ?>
Ejemplo n.º 2
0
///	[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'];
?>