Promt user for charname before deleting it

main
hecht 9 years ago
parent d71f629890
commit 0fc78020df

@ -68,12 +68,11 @@ foreach ($chars as $row) {
echo "<a href=index.php?as=$as&char_id=$row[id]>$row[name]</a> | Status: ";
}
if ($row['status'] == 'Frei') {
echo "<b>Frei</b> |";
echo '<a href="javascript:if(confirm(\'' . $row['name'] . ' Wirklich l&ouml;schen?\')==true) window.location.href=\'index.php?as=char_index&charm=3&char_id=' . $row['id'] . '\'">Charakter l&ouml;schen</a>';
echo "<b>Frei</b> | ";
} else {
echo "<a href='index.php?as=abholen&ab=$row[status]&char_id=$row[id]'>$row[status]</a> |";
echo '<a href="javascript:if(confirm(\'' . $row['name'] . ' Wirklich l&ouml;schen?\')==true) window.location.href=\'index.php?as=char_index&charm=3&char_id=' . $row['id'] . '\'">Charakter l&ouml;schen</a>';
echo "<a href='index.php?as=abholen&ab=$row[status]&char_id=$row[id]'>$row[status]</a> | ";
}
echo '<a href="javascript:if(prompt(\'Mit Namen des zu L&ouml;schenden Chars best&auml;tigen (' . $row['name'] . ')\')==\''.$row['name'].'\') window.location.href=\'index.php?as=char_index&charm=3&char_id=' . $row['id'] . '\'">Charakter l&ouml;schen</a>';
?>
</b></td>

Loading…
Cancel
Save