最后是face.php:
<?php
define('IN_TG',true);
define('SCRIPT','face');
//引入公共文件
require dirname(__FILE__).'\includes\common.inc.php';
foreach(range(1,9)as $number){
echo $number;
}
?>
<!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=utf-8" />
<title>舰こん ----舰首像</title>
<?php
require ROOT_PATH.'includes/title.inc.php'
?>
<script type="text/javascript" src="js/opener.js"></script>
</head>
<body>
<div id='face'>
<h3>选择头像</h3>
<dl>
<?php
foreach(range(1,9)as $num){
?>
<dd><img src="face/<?php echo $num?>.jpg" alt="face/<?php echo $num?>.jpg" title="头像<?php echo$num?>"/></dd>
<?php
}
?>
</dl>
</div>
</body>
</html>