基本前のソースをコピペなので一向に覚えられない。
しかも、ソース探すのだるいので。
require 'Smarty/libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->template_dir = "./tpl/";
$smarty->compile_dir = "./template_c/";
require_once("init.php");
$page =isset($_REQUEST['page'])?intval($_REQUEST['page']) : 1;
header("location: tshirt.php");
$smarty->assign('type', $type);
$smarty->display('item.tpl');
$d =htmlspecialchars($_REQUEST['d']);
$infoXML = simplexml_load_file('info.xml');
$dateY = date("Y");
$smarty->assign("year", $dateY);