cvs: pearweb /public_html admin.php

From: Date: Sat, 14 Dec 2002 13:30:53 +0000
Subject: cvs: pearweb /public_html admin.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7881@lists.php.net to get a copy of this message
richard Sat Dec 14 08:30:53 2002 EDT Modified files: /pearweb/public_html admin.php Log: Add some default reject reasons Index: pearweb/public_html/admin.php diff -u pearweb/public_html/admin.php:1.20 pearweb/public_html/admin.php:1.21 --- pearweb/public_html/admin.php:1.20 Wed Oct 2 18:32:33 2002 +++ pearweb/public_html/admin.php Sat Dec 14 08:30:53 2002 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: admin.php,v 1.20 2002/10/02 22:32:33 mj Exp $ + $Id: admin.php,v 1.21 2002/12/14 13:30:53 richard Exp $ */ auth_require(true); @@ -175,7 +175,7 @@ $bb->end(); ?> -<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> +<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" name="account_form"> <input type="hidden" name="cmd" value="" /> <input type="hidden" name="uid" value="<?= $requser->handle ?>" /> <table cellpadding="3" cellspacing="0" border="0" width="90%"> @@ -188,7 +188,29 @@ <td colspan="3"> If dismissing an account request, enter the reason here (will be emailed to <?= $requser->email ?>):<br /> - <textarea rows="3" cols="60" name="reason"></textarea> + <textarea rows="3" cols="60" name="reason"></textarea><br /> + + <!-- Some default reasons --> + <script language="JavaScript" type="text/javascript"> + <!-- + function updateRejectReason(selectObj) + { + if (selectObj.selectedIndex != 0) { + document.forms['account_form'].reason.value = selectObj.options[selectObj.selectedIndex].value; + } + selectObj.selectedIndex = 0; + } + //--> + </script> + + <select onchange="return updateRejectReason(this)"> + <option>Select reason...</option> + <option value="You don't need a PEAR account to use PEAR or PEAR packages">You don't need a PEAR account to use PEAR or PEAR packages</option> + <option value="Please propose all new classes to the Pear-Dev mailing list first">Please propose all new classes to the Pear-Dev mailing list first</option> + <option value="Please send all bug fixes to the Pear-Dev mailing list">Please send all bug fixes to the Pear-Dev mailing list</option> + <option value="Please supply valid credentials, including your full name and a descriptive reason for an account">Please supply valid credentials, including your full name and a descriptive reason for an account</option> + </select> + </td> </table> </form>

« previous php.pear.cvs (#7881) next »