<TITLE> 网上理财:文章发表:管理
<?php
include ("cookie_check.php");
$query = "select name,emcee from article_area where code=".$area;
$res = mysql_query($query);
$row = mysql_fetch_row($res);
echo $row[0];
if ($row[1]!=$cookie_user)
{echo "<script language='javascript'>";
echo "alert('你无权使用该页面');";
echo "parent.location.href='index.php'";
echo "</script>";
}
?>
:
<?php
$query = "select content,click_count,theme,answer_count,user,
DATE_FORMAT(time_open,'%Y-%m-%d') as mydate from article where id=".$id;
$res1 = mysql_query($query);
$row1 = mysql_fetch_array($res1);
echo $row1['theme'];
?>
</TITLE>
<BODY>
<P ALIGN=CENTER><FONT FACE="隶书" SIZE="7" COLOR="#0000FF">网上理财
</FONT><BR>
<P ALIGN=LEFT>
<FONT FACE="宋体" SIZE="3" COLOR="#0000FF"><A HREF="index.php"
STYLE="Text-Decoration:none">首页</A>>><A HREF="publish.php"
STYLE="Text-Decoration:none">
文章发表</A>>><A HREF="article_adm.php?area=<?php
echo $area ?>" STYLE="Text-Decoration:none">管理<?php echo $row[0] ?>
</A>>><A HREF="article_read.php?id=<?php
echo $id ?>&area=<?php echo $area ?>"
STYLE="Text-Decoration:none"><?php echo $row1['theme'] ?></A>
<P ALIGN=CENTER><FONT FACE="宋体" SIZE="4" COLOR="#0000FF">
<B><?php echo $row1['theme'] ?></B></FONT><BR>
<BR><FONT FACE="宋体" SIZE="2" color=#0000ff>作者:
<?php
echo $row1['user'];
echo " 提交日期: ".$row1['mydate'];
echo "<HR SIZE=1>";
$content= str_replace ( "mysinglequotes","'",$row1['content']);
echo $content;
echo "<HR SIZE=1>";
?>
</FONT>
</html>
|