求助,想知道
//模板fengye.html
复制内容到剪贴板
代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>{TITLE0}</title>
<style type="text/css">
<!--
.style1 {color: #009900}
-->
</style>
</head>
<body><center>
<p> </p>
<p> </p>
<p> </p>
<table width="58%" height="186" border="0" cellpadding="0" cellspacing="2" bgcolor="#FFFFFF">
<tr>
<td align="center" bgcolor="#CCCCCC"><strong>{TITLE1}</strong></td>
</tr>
<tr>
<td align="center" bgcolor="#CCCCCC">{TD0}{TD1}</td>
</tr>
<tr>
<td align="center" bgcolor="#CCCCCC">{TD2} <a href="{link2.URL2}" target='{TARGET}'>{link2.TD2}</a>{TD3} <a href="{link3.URL3}" target='{TARGET}'>{link3.TD3}</a></td>
</tr>
</table>
</center>
</body>
</html>//fengye.php
复制内容到剪贴板
代码:
<?php
session_start(); /
if($_SESSION["name"]==""){
echo "<script>location.href='index.php';</script>";
exit;
}
require_once"class.smarttemplate.php";
$title0= ' fengye_php_user会员管理实例';
$title1 = ' 会员管理中心(fengye.php) ';
$td1='欢迎您的到来';
$target = '_blank';
$template = new SmartTemplate('fengye.html');
$links2 = array( 'TD2' =>'退出',
'URL2' =>'login_out.php',
'TD2'=>'(login_out.php)'
);
$template->append('links', $links2);
$links3 = array( 'TD3' =>'编辑个人资料',
'URL3' =>'user_edi.php?name='.$_SESSION["name"],
'TD3'=>'(user_edi.php)'
);
$template->append('links', $links4);
$template->assign( 'TITLE0', $title0 );
$template->assign( '{TITLE1}', $title1 );
$template->assign( 'TD1', $td1);
$template->assign( 'TARGET', $target );
$template->assign('CONTENT',$result);
$template->output();
?>为什么有问题啊?/
求助啊!!!