forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
<?php |
|
|
|
require_once('funcoesFormulario.php'); |
|
$cssBlock = '<style type="text/css"> img {vertical-align: bottom; border: 0}</style>'; |
|
|
|
$txtConsulta = ''; |
|
$templateName = 'discador/pagina.htm'; |
|
$listaInicial = 1; |
|
|
|
if (IsPostBack() || $listaInicial) { |
|
$txtConsulta = trim($_REQUEST['txtConsulta']); |
|
$param = $txtConsulta ? sprintf(' and id::text ilike %s ', QuotedStr(PreparaLike($txtConsulta))) : ''; |
|
$links = PaginaDados($idProg, "select id, uid from teste where 1=1 $param ", $param, $regPagina, $offSet); |
|
|
|
$query = "select id, uid from teste where 1=1 $param order by id limit $regPagina offset $offSet"; |
|
$result = pg_query($query); |
|
$linhaS = ''; |
|
$count = 0; |
|
|
|
while ($dados = pg_fetch_array($result, null, PGSQL_ASSOC)) { |
|
$id = $dados["id"]; |
|
$uid = $dados["uid"]; |
|
|
|
$linhas .= "<tr> |
|
<td align=\"right\">$id</td> |
|
<td align=\"right\">$uid</td |
|
</tr>"; |
|
$count++; |
|
} |
|
} |
|
|
|
$linhas .= sprintf("<tr><td colspan=\"$colspan\" align=\"center\">%s</td></tr>"); |
|
|
|
$smarty->assign('novo', GetOperacoes('arqCampanha', 'jnArqCampanha,imgSite/novo24.png,cmp_id,113,700,500,Insere uma nova campanha!', 0)); |
|
$smarty->assign('txtConsulta', $txtConsulta); |
|
$smarty->assign('linhas', $linhas); |
|
$smarty->assign('links', $links); |
|
GetTemplate($smarty, $templateName); |
|
?>
|
|
|