#include #include "common.inc" ", "", "") or die("Unable to connect to SQL server"); pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!"); if ($_POST['func'] == 'save') { $sql = sprintf("UPDATE stempel SET task = '%s' WHERE oid = %d", pg_escape_string(utf8_decode($_POST['task'])), $_POST['oid']); pg_exec($sql); header('Content-type: application/json; charset="UTF-8"'); echo json_encode(true); exit; } if (isset($_GET['month'])) $month = $_GET['month']; else $month = date('Y-m'); ?> Kunde: %s '; $table_foot = '
Datum Dauer St. Arbeitsbeschreibung
'; $table_row = '%s%s%s%s'; $table_sum = ' %s Summe'; $query = <<
method=get> Select month:
# Local variables: # mode: text # mode: auto-fill # end: