display("head.tpl"); $Query = "SELECT id,title FROM offer_titles ORDER BY id"; $Result = MysqlQuery($Query); $smarty->assign("PageTitle","لیست موارد قابل ارائه"); echo "

لیست موارد قابل ارائه

    "; while (list ($id,$Title) = mysql_fetch_array($Result)) { echo "
  1. $Title
  2. "; } $Query = "SELECT id,title FROM projects WHERE phase > 1"; $Result = MysqlQuery($Query); while (list ($id,$Title) = mysql_fetch_array($Result)) { echo "
  3. $Title
  4. "; } echo "
"; $smarty->display("tail.tpl"); ?>