⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bulletin.php

📁 这个版本只是修正了一些BUG
💻 PHP
字号:
<?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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -