$StrHeaderPageTitle = "Formação";
include($_SERVER['DOCUMENT_ROOT']."/inc/cab.php");
$IntNow = time();
$StrTable = "formacao";
$objPaginacao=new Paginacao($StrTable, 15);
$StrWhere = "data >= UNIX_TIMESTAMP()";
$StrOrder = "data ASC,codigo ASC,nome ASC ".$objPaginacao->retornarSqlLimit();
$StrSQLSelect = $ObjQuery->ListRecords($StrTable,"",$StrWhere,$StrOrder,false);
$ArrList = $ObjMySQL->RetResultArray($StrSQLSelect);
?>
$StrTable = "textos";
$StrWhere = "seccao=22";
$StrSQLSelect = $ObjQuery->ListRecords($StrTable,"",$StrWhere,"",false);
$ArrText = $ObjMySQL->RetResultArray($StrSQLSelect);
if (strlen($ArrText[1]['foto']) > 0)
{
?>
}
?>
echo $StrHeaderPageTitle ?>
echo $ArrText[1]['texto']; ?>
for ($i = 1; $i <= $ArrList[0]; $i++)
{
?>
echo $ArrList[$i]['descricao']; ?>
Data: echo date("d/m/Y",$ArrList[1]['data']); ?> • Carga HorĂ¡ria: echo $ArrList[1]['carga']; ?>
}
?>
$objPaginacao->gerarHtmlPaginas("WHERE ".$StrWhere,"",'Páginas', ': ','textoPaginacao','activa','inativo') ?>
include($_SERVER['DOCUMENT_ROOT']."/inc/rod.php");
?>