Ejemplo n.º 1
0
         // projekt_id UE_ID
         $t = new todo();
         if ($t->verschieben($t_id, $p_id)) {
             weiterleiten("?daten=todo");
         } else {
             fehlermeldung_ausgeben("Verschieben gescheitert");
         }
     } else {
         fehlermeldung_ausgeben("Aufgaben/Projekt id eingeben");
     }
     break;
 case "auftrag_haus":
     if (isset($_REQUEST['haus_id']) && !empty($_REQUEST['haus_id'])) {
         // echo "OK";
         $t = new todo();
         $t->auftraege_an_haus($_REQUEST['haus_id']);
     } else {
         fehlermeldung_ausgeben("Haus wählen");
     }
     break;
 case "api_ticket_test":
     /*Export TODO'S'*/
     $config = array('url' => 'http://192.168.2.16/ticket/api/http.php/tickets.json', 'key' => '1BD9ABDCC4784E1BA3872A5440FD06A2');
     // Fill in the data for the new ticket, this will likely come from $_POST.
     $todo = new todo();
     $auftraege_arr = $todo->get_alle_auftraege(0);
     // print_r($auftraege_arr);
     $anz_a = count($auftraege_arr);
     // die("ANZAHL :$anz_a");
     for ($a = 0; $a < $anz_a; $a++) {
         $t_id = $auftraege_arr[$a]['T_ID'];