} else { alertDanger('Sync Failed'); } break; case 'syncCounties': if ($is->insertCounties($valueset)) { alert('Sync was OK!'); } else { alertDanger('Sync Failed'); } break; case 'syncFacilities': if ($is->insertFacility($valueset)) { alert('Sync OK!'); } else { alertDanger('Sync Failed'); } break; case 'syncPositions': if ($is->insertPosition($valueset)) { alert('Sync OK!'); } else { alerDangert('Sync Failed'); } break; default: echo 'No vaiable action was set'; break; } } }
case 'syncFacilities': if ($is->insertFacility($valueset)) { alert('Sync OK!'); } else { alertDanger('Facility Sync Failed'); } break; case 'syncPositions': if ($is->insertPosition($valueset)) { alert('Sync OK!'); } else { alerDanger('Position Sync Failed'); } break; default: alertDanger('No vaiable action was set'); break; } } } //BROWSE function browsePositions() { $table_columns = array(0 => "id", 1 => "parent", 2 => "i2ce_hidden", 3 => "i2ce_hidden", 4 => "name"); startTable($table_columns); global $is; foreach ($is->fetchPositions() as $row) { echo '<tr>'; foreach ($table_columns as $tc) { echo '<td>' . $row[$tc] . '</td>'; }