num.php
<?php
$start = $_POST["num_start"];
$end = $_POST["num_end"];
$num_cate = $_GET["num"];
$array = array();
for($i=$start;$i<=$end;$i++)
{
$array[]=$i;
}
include"libs/Smarty.class.php";
$smarty= new Smarty();
$smarty->template_dir="demo/templates";//更新模版存放路径及编译路径
$smarty->compile_dir="demo/templates_c";//更新编译路径
$smarty->left_delimiter="<{";//修改界定符
$smarty->right_delimiter="}>";
$smarty->config_dir = "demo/configs";
$smarty->assign("array",$array);
$smarty->assign("num_cate",$num_cate);
$smarty->display("lianxi.tpl");
?>