diff --git a/assets/style.css b/assets/style.css index 433c469..1d98c7c 100755 --- a/assets/style.css +++ b/assets/style.css @@ -18,3 +18,7 @@ td.ref { td.empty { color: silver; } + +tr:hover { + background-color: #ddd; +} diff --git a/index.php b/index.php index f577796..99e5a4b 100644 --- a/index.php +++ b/index.php @@ -35,7 +35,12 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $bkup_filename = $bkup_dir . sprintf('%f-%04x.xml', microtime(true), rand(0, 65535)); file_put_contents($bkup_filename, $input_xml); - // TODO: Parse XML into database + // Parse XML into database + $g = GotuObject::fromXmlParser($xp); + if ($g->tv) { + $result = $sqlw->addGotu($g, $file_date); + // I don't care if we can use the data or not. Maybe we can use it later (backup copy). + } exit; }