Rows($sql); $co_id = $r[0]['co_id']; #--------Menu------------------------------------------------------------ $menu="select lien_he,backgrounb from tbl_menubg where co_id='$co_id'"; $row_menu=$db->Rows($menu); #-------------------------------------------------------------------------- $smarty->assign("r",$r); $smarty->assign("row_menu",$row_menu); #-------------------------------------------------------------------------- $sqltemp = "Select * From tbl_template a,tbl_company b where a.id_template = b.id_template AND co_id = $co_id"; $rtemp = $db->Rows($sqltemp); #-----option------------------------------------------------------------- $ds = "SELECT * FROM tbl_option WHERE co_id='$co_id'"; $r8=$db->Rows($ds); #-------------------------------------------------------------------------- $smarty->assign("rtemp",$rtemp); $smarty->assign("company",$company); $smarty->assign("r8",$r8); $smarty->display($template_root.$rtemp[0]["url_template"].'/e-store_contact.tpl'); //$smarty->display($template_root.'e-store_contact.tpl'); ?>