cvs: pearweb /public_html/pepr pepr-proposal-delete.php

From: Date: Wed, 10 Aug 2005 10:31:57 +0000
Subject: cvs: pearweb /public_html/pepr pepr-proposal-delete.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-3467@lists.php.net to get a copy of this message
toby Wed Aug 10 06:31:57 2005 EDT Modified files: /pearweb/public_html/pepr pepr-proposal-delete.php Log: * Patch by Arnaud to have a comment when deleting a proposal. http://cvs.php.net/diff.php/pearweb/public_html/pepr/pepr-proposal-delete.php?r1=1.12&r2=1.13&ty=u Index: pearweb/public_html/pepr/pepr-proposal-delete.php diff -u pearweb/public_html/pepr/pepr-proposal-delete.php:1.12 pearweb/public_html/pepr/pepr-proposal-delete.php:1.13 --- pearweb/public_html/pepr/pepr-proposal-delete.php:1.12 Thu Jan 27 08:55:13 2005 +++ pearweb/public_html/pepr/pepr-proposal-delete.php Wed Aug 10 06:31:56 2005 @@ -17,7 +17,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: pepr-proposal-delete.php,v 1.12 2005/01/27 13:55:13 pajoye Exp $ + * @version $Id: pepr-proposal-delete.php,v 1.13 2005/08/10 10:31:56 toby Exp $ */ /** @@ -78,16 +78,22 @@ $form->addElement('checkbox', 'delete', 'Really delete proposal for ', htmlspecialchars($proposal->pkg_category) . '::' . htmlspecialchars($proposal->pkg_name)); + +$form->addElement('textarea', 'reason', + 'Please tell us why you chose to delete this proposal '); + $form->addElement('submit', 'submit', 'Do it'); $form->addRule('delete', 'You have to check the box to delete!', 'required', '', 'client'); + if (isset($_POST['submit'])) { if ($form->validate()) { $proposal->delete($dbh); $proposal->sendActionEmail('proposal_delete', 'mixed', - $_COOKIE['PEAR_USER']); + $_COOKIE['PEAR_USER'], + $form->exportValue('reason')); ob_end_clean(); localRedirect('pepr-proposal-delete.php?id=' . $proposal->id . '&isDeleted=1'); } else {

« previous php.pear.core (#3467) next »