slipknoter6
Mitglied
PHP:
<script>
function Rotator_Change(link,id,status) {
var params = {
link: link.value
id: id.value
status: status.value
};
$.ajax({
url: "./includes/update_rotator.php",
method: "POST",
data: params,
success: function(output) {
alert("Erfolgreich");
},
error: function(/* Params entspr. Doku */) {
// Hier ggf. die Parameter zu Diagnosezwecken auswerten
}
});
}
</script>
/<a href="/admin">Adminbereich</a>/<a href="/admin/rotator">Rotator</a>/Cryp Trade
<div id="default"><h1 class="title">Rotator Links</h1></div>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr class="active">
<th>Username</th>
<th>Vorname</th>
<th>Nachname</th>
<th>Link</th>
<th>Button</th>
</tr>
</thead>
<tbody>
<tr class="success"><td>****</td><td>*****</td><td>*****</td><td>https://link/rl58imuitsfl</td><td><button id="deaktiv" name="deaktiv" onclick="Rotator_Change('https://link/rl58imuitsfl','1', '0')" type="button" class="btn btn-danger">Deaktivieren</button></td></tr><tr class="danger"><td>****</td><td>***</td><td>*****</td><td>https://link/wronglink</td><td><button id="buttonAktiv" onclick="Rotator_Change('https://link/wronglink','2', '1')" type="button" class="btn btn-success">Aktivieren</button></td></tr> </tbody>
</table>
</div>
Das musste der wichtigste teil sein aus dem quelltext