PABX da Simples IP
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.
 
 
 
 
 
 

57 lines
2.4 KiB

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="admin/css/forms.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #EAEAEA;
}
-->
</style>
</head>
<body>
<?php
?>
<table border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#EAEAEA" class="tabela">
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA" class="cabecalho">
<td><div align="center">LOCALIDADE/DDD</div></td>
</tr>
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
<td class="labels"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#066BB6" class="labels" style="font-size:12px; font-weight:bold; color:#FFFFFF ">
<td>DDD</td>
<td> Localidade</td>
<td>UF</td>
</tr>
<?php
$ddd = $_GET["ddd"];
$query = "select distinct idddd as id, localidade, uf, codigo as ddd from pbx_tab_ddd where codigo = $ddd order by 2";
$result = pg_query($dbcon, $query);
$i = 0;
while ($dados = pg_fetch_array($result)) {
$bgColor = ($i++ % 2) ? "bgcolor=\"#EAEAEA\"" : "bgcolor=\"#BBBBFF\"";
echo "<tr $bgColor style=\"font-size:xx-small\">";
echo "<td>$dados[ddd]</td>";
echo "<td>$dados[localidade]</td>";
echo "<td>$dados[uf]</td>";
echo "</tr>";
}
?>
<tr class="labels">
<td>&nbsp;</td>
<td><input type="submit" name="Submit" class="labels" value="Fechar" onclick="window.close();"/></td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
<td class="labels" >&nbsp;</td>
</tr>
</table>