📄 news_desc.php
字号:
<?
include_once "myconnect.php";
include_once "logincheck.php";
function main()
{
$id=0;
$subject="";
$description="";
$date="";
if(isset($_REQUEST["id"])&&($_REQUEST["id"]<>""))
{
$id=$_REQUEST["id"];
$news=mysql_fetch_array(mysql_query("select *,UNIX_TIMESTAMP(sb_postedon) as ondate from sbbleads_news where sb_id=$id"));
$subject=$news["sb_subject"];
$description=$news["sb_description"];
$date=$news["ondate"];
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" dwcopytype="CopyTableCell">
<tr>
<td valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <table width="100%" border="0" cellspacing="10" cellpadding="2">
<tr>
<td height="25" bgcolor="#004080"><strong><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"> View
NEWS</font></strong></td>
</tr>
<tr >
<td width="46%" height="19" valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#EEEEEE"><font color="#333333" size="1" face="Arial, Helvetica, sans-serif"><? echo sb_date($date);
?></font></td>
<td height="20" align="right" bgcolor="#EEEEEE"><a href="news.php " class="insidelink"><font size="2" face="Arial, Helvetica, sans-serif">Back
to NEWS</font></a></td>
</tr>
</table></td>
</tr>
<tr>
<td><font color="#003366" size="2" face="Arial, Helvetica, sans-serif">
<?
echo $subject;
?>
</font></td>
</tr>
<tr>
<td>
<?
echo $description;
?>
</td>
</tr>
</table>
<font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif">
</font></font></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<?
}// end main
?>
<?
include_once "template.php";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -