Exemplo n.º 1
0
 * 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('cheques', 'E') || $_GET['codigo'] == '' && !verifica_nivel('cheques', 'I')) {
    $disabled = 'disabled';
}
$cheque = new TCheques('dentista');
if (isset($_POST[Salvar])) {
    $obrigatorios[1] = 'recebidode';
    $obrigatorios[] = 'valor';
    $i = $j = 0;
    foreach ($_POST as $post => $valor) {
        $i++;
        if (array_search($post, $obrigatorios) && $valor == "") {
            $j++;
            $r[$i] = '<font color="#FF0000">';
        }
    }
    if ($j == 0) {
        if ($_GET[acao] == "editar") {
            $cheque->LoadCheque($_GET[codigo]);
        }
Exemplo n.º 2
0
 * 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);
}
?>
  <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<?php 
$cheque = new TCheques();
if ($_GET[campo] == 'nometitular') {
    $where = "`nometitular` LIKE '%" . $_GET['pesquisa'] . "%'";
} elseif ($_GET[campo] == 'recebidode') {
    $where = "`recebidode` LIKE '%" . $_GET['pesquisa'] . "%'";
} elseif ($_GET[campo] == 'encaminhadopara') {
    $where = "`encaminhadopara` LIKE '%" . $_GET['pesquisa'] . "%'";
} elseif ($_GET[campo] == 'compensacao') {
    $where = "`compensacao` = '" . converte_data($_GET['pesquisa'], 1) . "'";
}
if ($_GET[pg] != '') {
    $limit = ($_GET[pg] - 1) * PG_MAX;
} else {
    $limit = 0;
    $_GET[pg] = 1;
}
Exemplo n.º 3
0
 *
 *
 */
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);
}
$senha = mysql_fetch_array(mysql_query("SELECT * FROM `dentistas` WHERE `codigo` = '" . $_SESSION['codigo'] . "'"));
?>
  <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<?php 
$cheque = new TCheques('dentista');
if ($_GET['campo'] == 'nometitular') {
    $where = "`nometitular` LIKE '%" . $_GET['pesquisa'] . "%'";
} elseif ($_GET['campo'] == 'recebidode') {
    $where = "`recebidode` LIKE '%" . $_GET['pesquisa'] . "%'";
} elseif ($_GET['campo'] == 'encaminhadopara') {
    $where = "`encaminhadopara` LIKE '%" . $_GET['pesquisa'] . "%'";
} elseif ($_GET['campo'] == 'compensacao') {
    $where = "`compensacao` = '" . converte_data($_GET['pesquisa'], 1) . "'";
}
if ($_GET['pg'] != '') {
    $limit = ($_GET['pg'] - 1) * PG_MAX;
} else {
    $limit = 0;
    $_GET['pg'] = 1;
}