function select_generico($tabela)
{
    //Para as tabelas Admin[status_*, tipo_*]
    $conn = conecta_bd();
    $sql = "select * from {$tabela}";
    $fields = [$tabela, 'editar', 'excluir'];
    tabela($tabela, $conn, $sql, $fields);
}
Beispiel #2
0
                        $col = coladd($col, '----FF', -20);
                    }
                    if ($tv == 0 || $tv2 == 1) {
                        $col = $col = coladd($col, 'FF----', -10);
                    }
                    if ($ti == $ti2) {
                        $col = coladd($col, '--FF--', -90);
                    }
                    if ($tv == 0 && $tv2 == 1 && $ti == $ti2) {
                        $col = coladd($col, '--AA--', -80);
                    }
                    if (in_array($ti, $conn_table[$ti2]) && isset($conn_table[$ti]) && count($conn_table[$ti]) > 1 && in_array($ti2, $conn_table[$ti])) {
                        $chr = '#';
                    }
                    //$col='A0FFA0"';
                    //if ($col == 'E0E0E0') $col = 'F0F0F0';
                    //if ($col == 'E8E8E8') $col = 'F8F8F8';
                    echo '<td bgcolor="#' . $col . '" align=center>' . $chr . '</td>';
                    $tvold = $tv;
                }
            }
            echo '</tr>';
        }
    }
    echo '</table>';
}
//counting the occurences
conn_count();
//presenting the results
tabela(0);