"; $imgNo = ""; $imgEdit = ""; $imgDelete = ""; $nome = " $nome"; $imgEdit = GetLinkFormUpdate("&id=$id", "..."); //$imgEdit = " $imgEdit"; $status = $dados["gp_status"] ? $imgYes : $imgNo; $delete = "" . $imgDelete . ""; $linha .= " $id $nome $status $imgNovo $imgEdit $delete "; } $mensagemErro = pg_last_error($dbcon); if (!empty($mensagemErro)) $linha = GetLinhaInfo("A operação não pode ser realizada! Erro:" . $mensagemErro, 5, $imgNovo); else if (empty($linha)) $linha = GetLinhaInfo("Nenhum registro encontrado!", 5, $imgNovo); } else { $disp = "Digite uma palavra e clique em consultar!"; $linha = GetLinhaInfo($disp, 5, $imgNovo); } $smarty->assign('erro', $erro); $smarty->assign("linhas", $linha); $smarty->assign("txtConsulta", $param); GetTemplate($smarty, $tpl); /* * Apresenta uma informação ao usuário ou um mensagem de erro */ function GetLinhaInfo($mensagem, $colspan, $linkInsert) { return " $mensagem$linkInsert"; } ?>