bulletin.php

来自「这个版本只是修正了一些BUG」· PHP 代码 · 共 44 行

PHP
44
字号
<?php
/*
    bulletin.php -  公告程序

	Version  : 1.0.0
	Author   : Tracemouse (tracemouse@msn.com)
	Copyright: http://www.vitci.com
	Writed   : 2003/09/20
	Modified : 2003/10/28
*/
require "./include/base.php";
require "./include/code.php";
require "./include/catalog.php";

//======= 取商品类别列表 ==================================================
if (empty($sortlist)){ 
        $sortlist=array(); 
        $sortlist=getsortlist(); 
}
if($bulletinid)
{
	$bulletinid=intval($bulletinid);
	$query = $db->query("select * from $table_bulletins where id=$bulletinid",1);
	if($bulletin=$db->fetch_array($query,1))
	{
		$bulletin['message']=postify($bulletin['message']);
		$bulletin['time']=gmdate($dateformat.' '.$timeformat,$bulletin['posttime']);
		$nav .=SEPARATER."<a href='bulletin.php'>".$language['bulletin']."</a>".SEPARATER.$bulletin[subject];
	}
}
else
{
	$bulletinlist = array();
	$query = $db->query("select * from $table_bulletins order by id");
	while($dbq_rec = $db->fetch_array($query)) 
	{
  		$dbq_rec['time']=gmdate($dateformat.' '.$timeformat,$dbq_rec['posttime']);
  		$bulletinlist[] = $dbq_rec;
  		$nav .=SEPARATER.$language['bulletin'];
	}
}
include template('bulletin');

?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?