SUIT_HORA_ALT; } echo "
"; ?>
Dashboard
Ultima Atualização:
99 ORDER BY SUIT_ID"; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object ($sth)) { if ($cont == 1) { if ($row->SUIT_STATUS == 0) $img_1 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_1 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_1 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_1 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_1 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_1 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s1 = '0' . $row->SUITE; else $s1 = $row->SUITE; } if ($cont == 2) { if ($row->SUIT_STATUS == 0) $img_2 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_2 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_2 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_2 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_2 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_2 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s2 = '0' . $row->SUITE; else $s2 = $row->SUITE; } if ($cont == 3) { if ($row->SUIT_STATUS == 0) $img_3 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_3 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_3 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_3 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_3 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_3 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s3 = '0' . $row->SUITE; else $s3 = $row->SUITE; } if ($cont == 4) { if ($row->SUIT_STATUS == 0) $img_4 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_4 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_4 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_4 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_4 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_4 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s4 = '0' . $row->SUITE; else $s4 = $row->SUITE; } if ($cont == 5) { if ($row->SUIT_STATUS == 0) $img_5 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_5 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_5 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_5 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_5 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_5 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s5 = '0' . $row->SUITE; else $s5 = $row->SUITE; } if ($cont == 6) { if ($row->SUIT_STATUS == 0) $img_6 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_6 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_6 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_6 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_6 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_6 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s6 = '0' . $row->SUITE; else $s6 = $row->SUITE; } if ($cont == 7) { if ($row->SUIT_STATUS == 0) $img_7 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_7 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_7 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_7 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_7 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_7 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s7 = '0' . $row->SUITE; else $s7 = $row->SUITE; } if ($cont == 8) { if ($row->SUIT_STATUS == 0) $img_8 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_8 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_8 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_8 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_8 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_8 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s8 = '0' . $row->SUITE; else $s8 = $row->SUITE; } if ($cont == 9) { if ($row->SUIT_STATUS == 0) $img_9 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_9 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_9 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_9 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_9 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_9 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s9 = '0' . $row->SUITE; else $s9 = $row->SUITE; } if ($cont == 10) { if ($row->SUIT_STATUS == 0) $img_10 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_10 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_10 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_10 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_10 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_10 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s10 = '0' . $row->SUITE; else $s10 = $row->SUITE; } if ($cont == 11) { if ($row->SUIT_STATUS == 0) $img_11 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_11 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_11 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_11 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_11 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_11 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s11 = '0' . $row->SUITE; else $s11 = $row->SUITE; } if ($cont == 12) { if ($row->SUIT_STATUS == 0) $img_12 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_12 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_12 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_12 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_12 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_12 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s12 = '0' . $row->SUITE; else $s12 = $row->SUITE; } if ($cont == 13) { if ($row->SUIT_STATUS == 0) $img_13 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_13 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_13 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_13 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_13 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_13 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s13 = '0' . $row->SUITE; else $s13 = $row->SUITE; } if ($cont == 14) { if ($row->SUIT_STATUS == 0) $img_14 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_14 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_14 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_14 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_14 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_14 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s14 = '0' . $row->SUITE; else $s14 = $row->SUITE; } if ($cont == 15) { if ($row->SUIT_STATUS == 0) $img_15 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_15 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_15 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_15 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_15 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_15 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s15 = '0' . $row->SUITE; else $s15 = $row->SUITE; } if ($cont == 16) { if ($row->SUIT_STATUS == 0) $img_16 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_16 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_16 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_16 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_16 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_16 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s16 = '0' . $row->SUITE; else $s16 = $row->SUITE; } if ($cont == 17) { if ($row->SUIT_STATUS == 0) $img_17 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_17 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_17 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_17 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_17 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_17 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s17 = '0' . $row->SUITE; else $s17 = $row->SUITE; } if ($cont == 18) { if ($row->SUIT_STATUS == 0) $img_18 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_18 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_18 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_18 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_18 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_18 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s18 = '0' . $row->SUITE; else $s18 = $row->SUITE; } if ($cont == 19) { if ($row->SUIT_STATUS == 0) $img_19 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_19 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_19 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_19 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_19 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_19 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s19 = '0' . $row->SUITE; else $s19 = $row->SUITE; } if ($cont == 20) { if ($row->SUIT_STATUS == 0) $img_20 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_20 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_20 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_20 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_20 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_20 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s20 = '0' . $row->SUITE; else $s20 = $row->SUITE; } if ($cont == 21) { if ($row->SUIT_STATUS == 0) $img_21 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_21 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_21 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_21 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_21 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_21 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s21 = '0' . $row->SUITE; else $s21 = $row->SUITE; } if ($cont == 22) { if ($row->SUIT_STATUS == 0) $img_22 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_22 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_22 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_22 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_22 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_22 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s22 = '0' . $row->SUITE; else $s22 = $row->SUITE; } if ($cont == 23) { if ($row->SUIT_STATUS == 0) $img_23 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_23 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_23 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_23 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_23 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_23 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s23 = '0' . $row->SUITE; else $s23 = $row->SUITE; } if ($cont == 24) { if ($row->SUIT_STATUS == 0) $img_24 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_24 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_24 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_24 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_24 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_24 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s24 = '0' . $row->SUITE; else $s24 = $row->SUITE; } if ($cont == 25) { if ($row->SUIT_STATUS == 0) $img_25 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_25 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_25 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_25 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_25 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_25 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s25 = '0' . $row->SUITE; else $s25 = $row->SUITE; } if ($cont == 26) { if ($row->SUIT_STATUS == 0) $img_26 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_26 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_26 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_26 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_26 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_26 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s26 = '0' . $row->SUITE; else $s26 = $row->SUITE; } if ($cont == 27) { if ($row->SUIT_STATUS == 0) $img_27 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_27 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_27 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_27 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_27 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_27 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s27 = '0' . $row->SUITE; else $s27 = $row->SUITE; } if ($cont == 28) { if ($row->SUIT_STATUS == 0) $img_28 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_28 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_28 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_28 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_28 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_28 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s28 = '0' . $row->SUITE; else $s28 = $row->SUITE; } if ($cont == 29) { if ($row->SUIT_STATUS == 0) $img_29 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_29 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_29 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_29 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_29 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_29 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s29 = '0' . $row->SUITE; else $s29 = $row->SUITE; } if ($cont == 30) { if ($row->SUIT_STATUS == 0) $img_30 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_30 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_30 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_30 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_30 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_30 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s30 = '0' . $row->SUITE; else $s30 = $row->SUITE; } if ($cont == 31) { if ($row->SUIT_STATUS == 0) $img_31 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_31 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_31 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_31 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_31 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_31 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s31 = '0' . $row->SUITE; else $s31 = $row->SUITE; } if ($cont == 32) { if ($row->SUIT_STATUS == 0) $img_32 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_32 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_32 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_32 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_32 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_32 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s32 = '0' . $row->SUITE; else $s32 = $row->SUITE; } if ($cont == 33) { if ($row->SUIT_STATUS == 0) $img_33 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_33 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_33 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_33 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_33 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_33 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s33 = '0' . $row->SUITE; else $s33 = $row->SUITE; } if ($cont == 34) { if ($row->SUIT_STATUS == 0) $img_34 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_34 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_34 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_34 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_34 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_34 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s34 = '0' . $row->SUITE; else $s34 = $row->SUITE; } if ($cont == 35) { if ($row->SUIT_STATUS == 0) $img_35 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_35 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_35 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_35 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_35 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_35 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s35 = '0' . $row->SUITE; else $s35 = $row->SUITE; } if ($cont == 36) { if ($row->SUIT_STATUS == 0) $img_36 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_36 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_36 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_36 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_36 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_36 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s36 = '0' . $row->SUITE; else $s36 = $row->SUITE; } if ($cont == 37) { if ($row->SUIT_STATUS == 0) $img_37 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_37 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_37 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_37 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_37 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_37 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s37 = '0' . $row->SUITE; else $s37 = $row->SUITE; } if ($cont == 38) { if ($row->SUIT_STATUS == 0) $img_38 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_38 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_38 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_38 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_38 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_38 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s38 = '0' . $row->SUITE; else $s38 = $row->SUITE; } if ($cont == 39) { if ($row->SUIT_STATUS == 0) $img_39 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_39 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_39 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_39 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_39 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_39 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s39 = '0' . $row->SUITE; else $s39 = $row->SUITE; } if ($cont == 40) { if ($row->SUIT_STATUS == 0) $img_40 = 'images/c_verde.png'; if ($row->SUIT_STATUS == 1) $img_40 = 'images/c_amarelo.png'; if ($row->SUIT_STATUS == 2) $img_40 = 'images/c_vermelho.png'; if ($row->SUIT_STATUS == 3) $img_40 = 'images/c_preto.png'; if ($row->SUIT_STATUS == 4) $img_40 = 'images/c_prep.png'; if ($row->SUIT_STATUS == 5) $img_40 = 'images/c_azul.png'; if (strlen($row->SUITE) == 1) $s40 = '0' . $row->SUITE; else $s40 = $row->SUITE; } $cont = $cont + 1; } echo"
$s1
$s2
$s3
$s4
$s5
$s6
$s7
$s8
$s9
$s10
$s11
$s12
$s13
$s14
$s15
$s16
"; if ($s17 != '') { echo"
$s17
$s18
$s19
$s20
$s21
$s22
$s23
$s24
"; } if ($s25 != '') { echo"
$s25
$s26
$s27
$s28
$s29
$s30
$s31
$s32
"; } if ($s33 != '') { echo"
$s33
$s34
$s35
$s36
$s37
$s38
$s39
$s40
"; } echo"
"; $stmt="select LOGC_EMP_ID ,ENCERRADOS ,ABERTOS ,CANCELADOS ,QD_NENHUM ,QD_CARTAO_VIP ,QD_CORTESIA ,QD_BONUS ,QF_DINHEIRO ,QF_CHEQUE ,QF_CARTAO ,QF_VALE ,QT_L ,QT_SL1 ,QT_SL2 ,QT_SL3 ,QT_EX1 ,QT_EX2 ,QT_M1 ,QT_M2 ,TOT_DINHEIRO ,TOT_CHEQUE ,TOT_CARTAO ,TOT_VALE ,TOT_L ,TOT_SL1 ,TOT_SL2 ,TOT_SL3 ,TOT_EX1 ,TOT_EX2 ,TOT_M1 ,TOT_M2 from LOG_CAIXA where LOGC_EMP_ID = $cemp "; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object ($sth)) { $encerrados = $row->ENCERRADOS; $abertos = $row->ABERTOS; $cancelados = $row->CANCELADOS; $qd_nenhum = $row->QD_NENHUM; $qd_cartao_vip = $row->QD_CARTAO_VIP; $qd_cortesia = $row->QD_CORTESIA; $qd_bonus = $row->QD_BONUS; $qf_dinheiro = $row->QF_DINHEIRO; $qf_cheque = $row->QF_CHEQUE; $qf_cartao = $row->QF_CARTAO; $qf_vale = $row->QF_VALE; $qt_l = $row->QT_L; $qt_sl1 = $row->QT_SL1; $qt_sl2 = $row->QT_SL2; $qt_sl3 = $row->QT_SL3; $qt_ex1 = $row->QT_EX1; $qt_ex2 = $row->QT_EX2; $qt_m1 = $row->QT_M1; $qt_m2 = $row->QT_M2; $tot_dinheiro = $row->TOT_DINHEIRO; $tot_cheque = $row->TOT_CHEQUE; $tot_cartao = $row->TOT_CARTAO; $tot_vale = $row->TOT_VALE; $tot_l = $row->TOT_L; $tot_sl1 = $row->TOT_SL1; $tot_sl2 = $row->TOT_SL2; $tot_sl3 = $row->TOT_SL3; $tot_ex1 = $row->TOT_EX1; $tot_ex2 = $row->TOT_EX2; $tot_m1 = $row->TOT_M1; $tot_m2 = $row->TOT_M2; } echo "
Situação
Encerrados
$encerrados
Abertos
$abertos
Cancelados
$cancelados
Formas Pagamento
Dinheiro
$qf_dinheiro
$tot_dinheiro
Cheque
$qf_cheque
$tot_cheque
Cartão
$qf_cartao
$tot_cartao
Vale
$qf_vale
$tot_vale
Qtde. Descontos
Nenhum
$qd_nenhum
Cartão Vip
$qd_cartao_vip
Cortesia
$qd_cortesia
Bonus
$qd_bonus
Qtde. Tipo Suite
Luxo
$qt_l
$tot_l
Super Luxo 1
$qt_sl1
$tot_sl1
Super Luxo 2
$qt_sl2
$tot_sl2
Super Luxo 3
$qt_sl3
$tot_sl3
Executiva 1
$qt_ex1
$tot_ex1
Executiva 2
$qt_ex2
$tot_ex2
Master 1
$qt_m1
$tot_m1
Master2
$qt_m2
$tot_m2