Promt user for charname before deleting it

main
hecht 9 years ago
parent d71f629890
commit 0fc78020df

@ -69,11 +69,10 @@ foreach ($chars as $row) {
}
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>';
} 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="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