assign('person',$person); if ($PERIOD_BEFORE_SUBMISSION) { $smarty->assign('content', "beforeSubmission.$language.tpl"); } elseif ($PERIOD_SUBMISSION) { $smarty->assign('content', "submission.$language.tpl"); $smarty->assign('proposals', Proposals::load($mysql, $person['cod'])); } elseif ($PERIOD_REVIEW || !$PERIOD_RESULT) { $smarty->assign('content', "proposals.tpl"); $smarty->assign('proposals', Proposals::load($mysql, $person['cod'])); } elseif ($PERIOD_RESULT) { $smarty->assign('content', "proposals.tpl"); $smarty->assign('proposals', Proposals::load($mysql, $person['cod'])); } // TODO: achar uma forma melhor de mostrar o estado das propostas. // $proposals = Proposals::loadAccepted($mysql, $person['cod']); // $smarty->assign('proposals', $proposals); $smarty->display('index.tpl'); ?>