include "../sites/views/" . $menu . "/showtab.inc.php"; $status = $_POST['status']; $sql = $_POST['sql']; bootstraphead(); bootstrapbegin("Datenaustausch"); echo "<a href='showtab.php?menu=" . $menu . "' class='btn btn-primary btn-sm active' role='button'>Zurück</a> "; $fldindex = $pararray['fldindex']; //$pfad="localhost:8080/own/mysync/classes/"; switch ($status) { case 'local': $urladr = $_POST['urladr']; $nuranzeigen = $_POST['nuranzeigen']; synclocal($database, $menu, $urladr, $pfad, $nuranzeigen); break; case 'senden': syncsenden(); break; case 'empfangen': $datcntremote = $_POST['datcntremote']; $nuranzeigen = $_POST['nuranzeigen']; $dbtable = $_POST['dbtable']; $fldindex = $_POST['dbindex']; $timestamp = $_POST['timestamp']; syncempfangen($database, $nuranzeigen, $datcntremote, $dbtable, $fldindex, $timestamp); break; case 'fertig': $nuranzeigen = $_POST['nuranzeigen']; $dbtable = $_POST['dbtable']; $timestamp = $_POST['timestamp']; syncfertig($database, $nuranzeigen, $dbtable, $timestamp); break;
include "../sites/views/" . $menu . "/showtab.inc.php"; bootstraphead(); bootstrapbegin("Datenaustausch"); echo "<a href='showtab.php?menu=" . $menu . "' class='btn btn-primary btn-sm active' role='button'>Zurück</a> "; $status = $_POST['status']; //echo $status."=status<br>"; switch ($status) { case 'sync': $typ = $_POST['typ']; if ($typ == "local") { auslesen($menu, $database, $onlyshow); } else { fernabfrage($menu, $onlyshow); } break; case 'senden': $datcnt = $_POST['datcnt']; $dbtable = $_POST['dbtable']; $dbvontyp = $_POST['dbvontyp']; syncsenden($database, $datcnt, $dbvontyp, $dbtable); break; case 'einspielen': einspielen($menu, $onlyshow); break; case 'fertig': abschliessen($onlyshow, $database); break; default: showauswahl($menu, $database, $onlyshow); } bootstrapend();