<?php
//NewsTeng Cache @ 2010-01-22 18:21:40
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>'.$head['title'].'</title>
<meta name="keywords" content="'.$head['keywords'].'" />
<meta name="description" content="'.$head['description'].'" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
';
include_once template("header.html",'templates/default/','','','');
echo '
<table width="924" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#FFFFFF">
  <tr>
    <td width="250" valign="top">';
include_once template("left.html",'templates/default/','','','');
echo '</td>
    ';
switch ($tplid) {default:
break;case "1":
echo '
    <td width="668" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="2">
      <tr>
        <td width="51%" height="40" colspan="2" style="font-size:14px; color:#000000;"><a href="'.$PHP_SELF.'" class="n">首页</a> &gt;&gt; <a href="'.$PHP_SELF.'?file=news" class="n">新闻中心</a>  &gt;&gt; 查看新闻</td>
        </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td bgcolor="#FFFFFF"><div align="center" style="font-size:14px; color:#FF6600; font-weight:bold;">'.$title.'</div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><div style="text-align:right; color:#666666">
作者：'.$zz.'  来源：'.$ly.' 点击：'.$hist.'次 日期：'.$time.'</div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><div style="font-size:12px; color:#333333; line-height:25px;">'.$body.'</div></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2"><div>
          <div align="right">【 <a href="javascript:self.print()">打印本页 </a>】 【 <a href="javascript:window.close()">关闭窗口</a>】</div>
        </div></td>
      </tr>
      
    </table>
    </td>
  </tr>
</table>
';
break;case "2":
echo '
 <td width="668" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="2">
      
      <tr>
        <td width="102%" height="40" colspan="2"><span style="font-size:14px; color:#000000;"><a href="'.$PHP_SELF.'" class="n">首页</a> &gt;&gt; <a href="'.$PHP_SELF.'?action=news" class="n">新闻中心</a></span></td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="7" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td bgcolor="#EBEBEB"><table width="98%" border="0" cellpadding="0" cellspacing="2">
                <tr>
                  <td><strong><font color="#990000">新闻列表</font></strong></td>
                  <td><div align="right"></div></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">
';
if(is_array($newslist)) foreach ($newslist as $list) {
echo '
                <div class="box14">
                  <ul>
                    <li><a href="?file=news&id='.$list['id'].'" title="'.$list['title'].'">'.$list['title'].'</a> ';
echo date("$a", $list['time']);
echo '</li>
                  </ul>
                </div>
               ';
}
echo '</td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">'.$dispage.'</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      
    </table>
    </td>
  </tr>
</table>
';
break;case "3":
echo '
 <td width="668" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="2">
      
      <tr>
        <td width="102%" height="40" colspan="2"><span style="font-size:14px; color:#000000;"><a href="'.$PHP_SELF.'" class="n">首页</a> &gt;&gt; <a href="'.$PHP_SELF.'?action=news" class="n">新闻中心</a></span></td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="7" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td bgcolor="#EBEBEB"><table width="98%" border="0" cellpadding="0" cellspacing="2">
                <tr>
                  <td><strong><font color="#990000">新闻列表</font></strong></td>
                  <td><div align="right"></div></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">
';
if(is_array($newslist)) foreach ($newslist as $list) {
echo '
                <div class="box14">
                  <ul>
                    <li><a href="?file=news&id='.$list['id'].'" title="'.$list['title'].'">'.$list['title'].'</a> ';
echo date("$a", $list['time']);
echo '</li>
                  </ul>
                </div>
               ';
}
echo '</td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">'.$dispage.'</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      
    </table>
    </td>
  </tr>
</table>
';
}
include_once template("footer.html",'templates/default/','','','');
echo '
</body>
</html>
';
?>