Rows($sql); $co_id = $r[0]['co_id']; #-------------------------------------------------------------------------- $smarty->assign("r",$r); $smarty->assign("company",$company); #--------Menu------------------------------------------------------------ $menu="select gioi_thieu,backgrounb from tbl_menubg where co_id='$co_id'"; $row_menu=$db->Rows($menu); #-----option------------------------------------------------------------- $ds = "SELECT * FROM tbl_option WHERE co_id='$co_id'"; $r8=$db->Rows($ds); #-------------------------------------------------------------------------- $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); #-------------------------------------------------------------------------- $smarty->assign("rtemp",$rtemp); $smarty->assign("row_menu",$row_menu); $smarty->assign("r8",$r8); $smarty->display($template_root.$rtemp[0]["url_template"].'/e-store_about.tpl'); ?>