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.

40 lines
2.1 KiB

<?php
// *************************************************************************
// * Este arquivo foi criado para construir o header das p<EFBFBD>ginas de *
// * cadastro. *
// * *
// *************************************************************************
?>
<?php
/*
* REQUIS<EFBFBD>O PADR<EFBFBD>O DAS P<EFBFBD>GINAS
*/
$acao = isset($_GET['acao']) ? trim($_GET['acao']) : 'select';
$id = isset($_GET['id']) ? trim($_GET['id']) : 0;
$filtro = isset($_GET["numRamal"]) ? trim($_GET["numRamal"]) : '';
$filtroNovo = !isset($_GET["pgn"]) ? '' : sprintf("&numRamal%s&pgn=%s&bloco=%s&pg=%s", $_GET["numRamal"], $_GET["pgn"], $_GET["bloco"], $_GET["pg"]);
$recontaPag = ($acao == 'inseri') || ($acao == "deleta") || isset($_GET['pesquisa']);
$id2 = isset($_GET['id2']) ? trim($_GET['id2']) : 0;
?>
<table width="99%" align="center" border="0" cellpadding="2" cellspacing="0" class="filtro">
<tr>
<td colspan="2">Palavra Chave</td>
</tr>
<tr>
<td align="left" nowrap="nowrap" >
<input name="numRamal" type="text" id="numRamal" value="<? echo $_GET["numRamal"]; ?>" onkeyup="ConsultaRamal('index.php?idProg=330&pbxRequest=1'+ getProgTroncos(), event);" size="20">
<?= $select ? $select : ''; ?>
<input name="locaRamal" type="button" id="locaRamal" value="Localizar" onClick="ConsultaRamal('index.php?idProg=330&pbxRequest=1&pesquisa=1' + getProgTroncos(), 0);">
</td>
<?php if ($progPage) { ?>
<td align="right" nowrap="nowrap">
<a href="#" onclick="abre_janela('650', '420', 'index.php?idProg=<?= $progCadastro ?>&pbxRequest=1&acao=inseri<?= $filtroNovo ?>');"><img src="images/novo.gif" width="20" height="20" border="0" align="absmiddle" />NOVO CADASTRO</a>
</td>
<?php } ?>
</tr>
<tr>
<td colspan="2">
<table width="100%" class="grid" border="0" cellspacing="0" cellpadding="2">