<?php 
require_once ('config.php');
require_once (ABSPATH .'/administrator/includes/system/options.php');
require_once (ABSPATH .'/administrator/includes/system/channel.php');
require_once (ABSPATH .'/administrator/includes/content/content.php');

$channel_id = empty($_GET['channel_id']) ? '' : $_GET['channel_id'];
$channel_result = $channel->getById($channel_id);
$channel_name = empty($channel_result) ? '' : $channel_result->channel_name;

$id = empty($_GET['id']) ? '' : $_GET['id'];

$news_title = '';
$news = $content_class->getById($id);
if (!empty($news)){
    $news_title = $news->title;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
<title><?php echo $news_title . '-' . $options->getOption('sitename')?></title>
<meta name="Description" content="<?php echo $news_title;?>" />
<meta name="Keywords" content="<?php echo $news_title ;?>" />
<link href="<?php echo SITE_ROOT?>/css/style.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo SITE_ROOT?>/css/page.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="<?php echo SITE_ROOT?>/jquery-treeview/jquery.treeview.css" />
<script src="<?php echo SITE_ROOT?>/jquery-treeview/lib/jquery.js" type="text/javascript"></script>
<script src="<?php echo SITE_ROOT?>/jquery-treeview/jquery.treeview.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$("#tree1").treeview({
		collapsed: true,
		unique: true,
		persist: "location"
		
	});
});
</script>

</head>
<body>
<div id="content">
<div id="title"><img src="images/logo1.gif" width="1000" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="845,10,901,34" href="index.html" /><area shape="rect" coords="914,11,975,35" href="en/article.php?id=637&amp;channel_id=12" />
</map></div>

<div class="meau clr">
<ul>
  <?php 
  $channel_list = $channel->getChannelList('');
  if (!empty($channel_list)){
	foreach ($channel_list as $u){
  ?>
<li><a href="<?php echo $u->url?>"><?php echo $u->channel_name;?></a></li>
<li class="menuDiv"></li>
		<?php }}?>
</ul>
<span>Tel:+86-0317-5651535</span>
</div>
 <!-- end menu -->
<div id="banner">
<object type="application/x-shockwave-flash" data="bcastr4.swf?xml=xml/bcastr.xml"  width="1000" height="250" id="vcastr3">
      <param name="movie" value="bcastr4.swf?xml=xml/bcastr.xml" />
  </object>
</div>

<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" bgcolor="#FFFFFF" height="2"></td>
  </tr>
  <tr>
    <td width="243" align="center" valign="top" bgcolor="#e2e2e2"><?php include ('left.php');?></td>
    <td valign="top" bgcolor="#FFFFFF" align="right"><div class="box">
	<div class="title_center">您现在的位置：<?php echo $channel_name;?></div>
	  <div class="box1">
<?php 
if (!empty($news)){
?>
<h2><?php echo $news->title?></h2>
<center>时间：<?php echo $news->created?></center>
<?php if (!empty($news->file_url)){?>
<center><img src="<?php echo SITE_ROOT.'/'.USERFILE.'/'.$news->file_url?>" border="1"/></center>
<?php }?>
<br/>
<?php  echo $news->content; }?>
	</div>
	</div>

	</td>
  </tr>
</table>

<?php include('footer.php');?>