Changeset 1705
- Timestamp:
- 06/29/06 10:52:20 (2 years ago)
- Files:
-
- alternc/trunk/bureau/admin/adm_dodefquotas.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/admin/adm_dodefquotas.php
r992 r1705 47 47 include("adm_defquotas.php"); 48 48 } else if($_POST["action"] == "delete") { 49 if($_POST['type']) { 50 if($quota->deltype($_POST['type'])) { 51 $error=_("Account type"). " \"$type\" "._("deleted"); 52 } else { 53 $error=_("Account type"). " \"$type\" "._("could not be deleted"); 49 if($_POST["del_confirm"] == "y"){ 50 if($_POST['type']) { 51 if($quota->deltype($_POST['type'])) { 52 $error=_("Account type"). " \"$type\" "._("deleted"); 53 } else { 54 $error=_("Account type"). " \"$type\" "._("could not be deleted"); 55 } 54 56 } 57 include("adm_defquotas.php"); 58 }else{ 59 include("head.php"); 60 ?> 61 </head> 62 <body> 63 <h3><?php printf(_("Deleting quota %s"),$_POST["type"]); ?> : </h3> 64 65 <form action="adm_dodefquotas.php" method="post"> 66 <input type="hidden" name="action" value="delete" /> 67 <input type="hidden" name="type" value="<?php echo $_POST["type"] ?>" /> 68 <input type="hidden" name="del_confirm" value="y" /> 69 <p class="error"><?php __("WARNING : Confirm the deletion of the quota"); ?></p> 70 <p><?php echo $_POST["type"]; ?></p> 71 <blockquote> 72 <input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" /> 73 <input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="document.location='adm_defquotas.php';" /> 74 </blockquote> 75 </form> 76 </body> 77 </html> 78 <?php 55 79 } 56 include("adm_defquotas.php");57 80 } else if($_POST["action"] == "modify") { 58 81 reset($_POST);
