diff --git a/include/objectManager.php b/include/objectManager.php index f89ba39..c197058 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -13,6 +13,10 @@ class ObjectManager var $oMultiPage; var $oTableRow; + // an array of common responses used when replying to + // queued entries + var $aCommonResponses; + function ObjectManager($sClass, $sTitle = "list", $iId = false) { $this->sClass = $sClass; @@ -20,6 +24,23 @@ class ObjectManager $this->iId = $iId; $this->oMultiPage = new MultiPage(FALSE); $this->oTableRow = new TableRow(null); + + // initialize the common responses array + $this->aCommonResponses = array(); + $this->aCommonResponses[] = "Thank you for your submission."; + $this->aCommonResponses[] = "Please move crash/debug output to a bug". + " in Wine's Bugzilla at http://bugs.winehq.org and resubmit."; + $this->aCommonResponses[] = "We appreciate your submission but it". + " needs to be more detailed before it will be most useful to other users of". + " the Application Datbase.". + " Please try to improve the entry and resubmit."; + $this->aCommonResponses[] = "We appreciate your submission but it". + " requires improvement to its grammar and/or spelling". + " before it will be most useful to other users of". + " the Application Database.". + " Please try to improve the entry and resubmit."; + $this->aCommonResponses[] = "Please do not copy large amount of text from". + " the program's website"; } /* Check whether the associated class has the given method */ @@ -194,6 +215,29 @@ class ObjectManager echo '',"\n"; + + ///////////////////////////////////////////////// + // output radio buttons for some common responses + echo ''. + 'Common replies
Email '. + APPDB_OWNER_EMAIL.' if you want to suggest a new common reply.',"\n"; + + // NOTE: We use the label tag so the user can click anywhere in + // the text of the radio button to select the radio button. + // Otherwise the user has to click on the very small circle portion + // of the button to select it + foreach($this->aCommonResponses as $iIndex => $sReply) + { + echo '',"\n"; + echo '',"\n"; + echo '',"\n"; + } + // end output radio buttons for common responses + ///////////////////////////////////////////////// + + /* buttons for operations we can perform on this entry */ echo '' ,"\n"; echo 'getOutputEditorValues($aClean); /* Check input, if necessary */ diff --git a/objectManager.php b/objectManager.php index 6055273..809716b 100644 --- a/objectManager.php +++ b/objectManager.php @@ -54,8 +54,8 @@ if($aClean['bIsRejected'] == 'true') $oOtherObject = new $oObject->sClass($oObject->iId); -/* Certain actions must be performed before the header is set - processForm return TRUE on success, or a user-readable list of errors +/* Certain actions must be performed before the header is set. */ +/* processForm returns TRUE on success, or a user-readable list of errors on failure */ $sErrors = $oObject->processForm($aClean);