Confirm in variable

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@527 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2008-10-09 14:13:17 +00:00
parent 820c88203d
commit ee0666ae3b
11 changed files with 12 additions and 11 deletions

View File

@@ -96,6 +96,6 @@ if ($fields) {
<input type="submit" value="<?php echo lang('Save'); ?>" />
<?php if (!isset($_GET["default"]) && !isset($_GET["select"])) { ?><input type="submit" name="insert" value="<?php echo ($update ? lang('Save and continue edit') : lang('Save and insert next')); ?>" /><?php } ?>
<?php } ?>
<?php if ($update) { ?> <input type="submit" name="delete" value="<?php echo lang('Delete'); ?>" onclick="return confirm('<?php echo lang('Are you sure?'); ?>');" /><?php } ?>
<?php if ($update) { ?> <input type="submit" name="delete" value="<?php echo lang('Delete'); ?>"<?php echo $confirm; ?> /><?php } ?>
</p>
</form>