21,887
社区成员
发帖
与我相关
我的任务
分享
<!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><title>任氏有无轩</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="任氏有无轩" name="keywords" />
<meta content="任氏有无轩" name="description" />
<link href="../style.css" type="text/css" rel="stylesheet" />
</head>
<body>
{include file="top.tpl" curPage="index"}<!--调用顶部导航条文件-->
<!--三大栏目块-->
{include file="bottom.tpl"}<!--开始调用底部文件-->
</body>
</html>
<!--调用顶部LOGO栏文件-->
{include file='logo.tpl'}
<!--菜单导航条-->
<div class="menudiv" id="menu">
<div class="float_left width_a">
{if $curPage == "index"}
<a href="/books/index.php" class="menua-cur" title="首 页">首 页</a>
{else}
<a href="/books/index.php" class="menua" title="首 页">首 页</a>
{/if}
</div>
...
require ("../init.php");
require_once ("functions.php");
$sm->assign("thisyear", date("Y"));
$sm->assign("summary", getSummary());
$row1=getNewBuyBooks();
$row2=getNewReadBooks();
$row3=getMisc();
$sm->assign("row1", $row1);
$sm->assign("row2", $row2);
$sm->assign("row3", $row3);
$sm->display("book_index.tpl");
require('../libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'templates';
$smarty->compile_dir = 'templates_c';
$smarty->config_dir = 'configs';
$smarty->cache_dir = 'cache';
include('header.php');//加在这里才对吧
$smarty->display("index.tpl");