Exemplo n.º 1
0
function print_form()
{
    echo "<a href=\"card_section.php\">reset</a>";
    global $CARD_TABLE_NAME, $CARD_TABLE_SELECT_ATTR, $CARD_TABLE_SHOW_ATTR, $CARD_TABLE_TYPE_ATTR;
    echo "<form action=\"card_section.php\">";
    #print_form_select("type", $values, get_current_get_value("type"));
    print_all_form_select($CARD_TABLE_NAME, $CARD_TABLE_SELECT_ATTR);
    echo_br();
    #$name_value = get_current_get_value("name");
    #echo "name: <input type=\"text\" name=\"name\" value=\"$value\">";
    print_all_form_input($CARD_TABLE_TYPE_ATTR);
    #print_form_input("name", get_current_get_value("name"));
    echo "<br><br>";
    echo "<input type=\"submit\" value=\"search\">";
    echo "</form>";
    $constraints = get_all_get_values($CARD_TABLE_SHOW_ATTR);
    print_card_select_table($CARD_TABLE_NAME, $CARD_TABLE_SHOW_ATTR, $constraints);
}
Exemplo n.º 2
0
 /**
  * This is registered as a shutdown function to catch fatal errors
  * Do not call this directly.
  */
 public static function _shutdown()
 {
     //if error handler is not enabled, just ignore
     if (!self::isActive()) {
         return;
     }
     $e = error_get_last();
     if ($e === null) {
         return;
     }
     //no errors yet!
     $type = $e['type'];
     //only say fatal error, if the last error has been fatal!
     if ($type == E_ERROR or $type == E_CORE_ERROR or $type == E_PARSE or $type == E_COMPILE_ERROR or $type == E_USER_ERROR) {
         if (strpos($e['message'], "ErrorException") === false) {
             //exceptions automatically have filename in their message
             echof("Fatal Error ?: ? [?:<strong>?</strong>]", $e['type'], $e['message'], $e['file'], $e['line']);
         } else {
             echo_br("Fatal Error {$e['type']}: {$e['message']}");
         }
         exit(1);
     }
 }
Exemplo n.º 3
0
 public static function post_test(array $data)
 {
     foreach ($data as $key => $itens) {
         if (empty($itens)) {
             echo_br("<b>" . $key . "</b>" . ": " . "<font color=#990000 face=candara>" . "null" . "</font>");
         } else {
             echo_br("<b>" . $key . "</b>" . ": " . "<font color=#7a7a8f face=candara>" . $itens . "</font>");
         }
     }
 }