<!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><?php echo $diy->name;?> - powered by dedecms</title>
<link href="img/nspage.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="main mceneter">
	<div class="toplogo">
		<div class="logo">
				<a href="/"><img src="img/toplogo.gif" /></a>		</div>
		<div class="title">
			<?php echo $diy->name;?>
		</div>
	</div>
	<div class="cmain">
		<div class="ctitle">
			<h1><?php echo $diy->name;?>内容列表</h1>
			<span></span>
		</div>
		<div class="cbox mceneter">
			<div class="maplist">
			<br />
<table style="width:97%;background:#000000" cellpadding="0" cellspacing="1">
{dede:datalist}
<?php
if(!empty($fields)){
		echo '<tbody>';
		echo '<tr><td bgcolor="#eeeeee" width="20%">id</td><td bgcolor="#eeeeee"><a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank">'.$fields['id'].'</a></td></tr>';
		foreach($fieldlist as $field=>$fielddata){
			$allowhtml = array('htmltext');
			if(!in_array($fielddata[1],$allowhtml)){
				$row[$field] = htmlspecialchars($fields[$field]);
			}
			echo '<tr><td bgcolor="#ffffff">'.$fielddata[0].'</td><td bgcolor="#ffffff">'.$fields[$field].'</td></tr>';
		}
		echo '</tbody>';
}else{
	echo "<tr><td bgcolor=\"#ffffff\">暂无记录</td></tr>";
}
?>
{/dede:datalist}
<tr><td colspan="2" bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td></tr>
</table>
			</div>
		</div>
	</div>
</div>
<div class="copyright mceneter">
Powered by <a href="http://www.dedecms.com" target="_blank">DedeCms <?php echo $cfg_version ?></a> &copy; 2004-2008  <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc.
</div>


</body>
</html>