<?php
//NewsTeng Cache @ 2010-01-22 18:21:38
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=product" 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">'.$time.'</div></td>
          </tr>
          
          <tr>
            <td bgcolor="#FFFFFF"><div style="font-size:25px; 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.'?file=product" class="n">产品中心</a></span></td>
      </tr>
      <tr>
       <td colspan="2" valign="top"><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 valign="top" bgcolor="#FFFFFF">
';
if(is_array($newslist)) foreach ($newslist as $list) {
echo '
<div style="float:left">
<table width="150" border="0" cellpadding="0" cellspacing="2">
  <tr>
    <td><div align="center"><a href="?file=product&id='.$list['id'].'" title="'.$list['title'].'" class="img"><img src="'.$list['img'].'" width="120" height="100" /></a></div></td>
  </tr>
  <tr>
    <td height="25"><div align="center"><a href="?file=product&id='.$list['id'].'" title="'.$list['title'].'">'.$list['title'].'</a></div></td>
  </tr>
</table>
</div>
';
}
echo '</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2">'.$dispage.'</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.'?file=product" class="n">产品中心</a></span></td>
      </tr>
      <tr>
       <td colspan="2" valign="top"><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 valign="top" bgcolor="#FFFFFF">
';
if(is_array($newslist)) foreach ($newslist as $list) {
echo '
<div style="float:left">
<table width="150" border="0" cellpadding="0" cellspacing="2">
  <tr>
    <td><div align="center"><a href="?file=product&id='.$list['id'].'" title="'.$list['title'].'" class="img"><img src="'.$list['img'].'" width="120" height="100" /></a></div></td>
  </tr>
  <tr>
    <td height="25"><div align="center"><a href="?file=product&id='.$list['id'].'" title="'.$list['title'].'">'.$list['title'].'</a></div></td>
  </tr>
</table>
</div>
';
}
echo '</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2">'.$dispage.'</td>
      </tr>
      
    </table>
    </td>
  </tr>
</table>     
';
}
include_once template("footer.html",'templates/default/','','','');
echo '
</body>
</html>
';
?>