* Arcos - MG - CEP 35588-000 * * */ include "../lib/config.inc.php"; include "../lib/func.inc.php"; include "../lib/classes.inc.php"; require_once '../lang/' . $idioma . '.php'; header("Content-type: text/html; charset=ISO-8859-1", true); if (!checklog()) { die($frase_log); } if ($_GET['codigo'] != '' && !verifica_nivel('contatos', 'E') || $_GET['codigo'] == '' && !verifica_nivel('contatos', 'I')) { $disable = 'disabled'; } $telefones = new TTelefones(); if (isset($_POST[Salvar])) { $obrigatorios[1] = 'nom'; $obrigatorios[] = 'telefone1'; $i = $j = 0; foreach ($_POST as $post => $valor) { $i++; if (array_search($post, $obrigatorios) && $valor == "") { $r[$i] = '<font color="#FF0000">'; $j++; } } if ($j == 0) { if ($_GET[acao] == "editar") { $telefones->LoadTelefones($_GET[codigo]); }
header("Content-type: text/html; charset=ISO-8859-1", true); if (!checklog()) { die($frase_log); } ?> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <?php $_GET['pesquisa'] = htmlspecialchars($_GET['pesquisa'], ENT_QUOTES); if ($_GET[pg] != '') { $limit = ($_GET[pg] - 1) * PG_MAX; } else { $limit = 0; $_GET[pg] = 1; } $sql = "SELECT * FROM `telefones` WHERE `nome` LIKE '%{$_GET['pesquisa']}%' ORDER BY `nome` ASC"; $telefones = new TTelefones(); $lista = $telefones->ListTelefones($sql . ' LIMIT ' . $limit . ', ' . PG_MAX); $total_regs = $telefones->ListTelefones($sql); $par = "F0F0F0"; $impar = "F8F8F8"; for ($i = 0; $i < count($lista); $i++) { if ($i % 2 == 0) { $odev = $par; } else { $odev = $impar; } ?> <tr bgcolor="#<?php echo $odev; ?> " onmouseout="style.background='#<?php
* * Smile Odontolóogia * Rua Laudemira Maria de Jesus, 51 - Lourdes * Arcos - MG - CEP 35588-000 * * */ include "../lib/config.inc.php"; include "../lib/func.inc.php"; include "../lib/classes.inc.php"; require_once '../lang/' . $idioma . '.php'; header("Content-type: text/html; charset=ISO-8859-1", true); if (!checklog()) { die($frase_log); } $telefones = new TTelefones(); if (isset($_POST[Salvar])) { $obrigatorios[1] = 'nom'; $obrigatorios[] = 'telefone1'; $i = $j = 0; foreach ($_POST as $post => $valor) { $i++; if (array_search($post, $obrigatorios) && $valor == "") { $r[$i] = '<font color="#FF0000">'; $j++; } } if ($j == 0) { if ($_GET[acao] == "editar") { $telefones->LoadTelefones($_GET[codigo]); }