سلام به همگی.

بچه ها من پیش از این اگر می خواستم با Smarty چیزی شبیه این درست کنم :
کد HTML:
<!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>Test</title>
</head>

<body>

<table id="smart" width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<table id="smart" width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<table id="smart" width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<table id="smart" width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

</body>
</html>
سه فایل درست می کردم : مثلا
header.tpl
table.tpl
footer.tpl

کد HTML:
header.tpl
<!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>Test</title>
</head>
<body>

کد HTML:
table.tpl
<table id="smart" width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
کد HTML:
footer.tpl
</body>
</html>
بعد اول با dsiplay ، هدر رو نشون می دادم و بعد به تعداد دلخواه table.tpl رو تکرار می کردم و در آخر footer.tpl رو نشون میدادم.
می دونم بدترین راه ممکن هست ، اما من زیاد با Smarty آشنا نیستم .
می خواستم راه بهتری جلو پام بزارید ، لطفا با کد مثال بزنید.
ممنون