diff --git a/include/objectManager.php b/include/objectManager.php index 38982d1..68cae91 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -416,80 +416,64 @@ class ObjectManager $this->oObject = $oObject; - /* if this is a queue add a dialog for replying to the submitter of the - queued entry */ - if($this->getIsQueue() || ($oObject->objectGetSubmitterId() && $oObject->objectGetSubmitterId() != $_SESSION['current']->iUserId)) + /* If it isn't implemented, that means there is no default text */ + $sDefaultReply = $this->getOptionalSetting("getDefaultReply", ""); + + echo html_frame_start("Reply text", "90%", "", 0); + echo "\n"; + echo '',"\n"; + echo '',"\n"; + + if($this->getIsQueue()) { - /* If it isn't implemented, that means there is no default text */ - $sDefaultReply = $this->getOptionalSetting("getDefaultReply", ""); + ///////////////////////////////////////////////// + // output radio buttons for some common responses + echo '',"\n"; - echo html_frame_start("Reply text", "90%", "", 0); - echo "
email Text
'. + 'Common replies
Email '. + APPDB_OWNER_EMAIL.' if you want to suggest a new common reply.
\n"; - echo '',"\n"; - echo '',"\n"; - - if($this->getIsQueue()) + // 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) { - ///////////////////////////////////////////////// - // output radio buttons for some common responses - echo '',"\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 - ///////////////////////////////////////////////// + echo '',"\n"; + echo '',"\n"; + echo '',"\n"; } - - - /* buttons for operations we can perform on this entry */ - echo '',"\n"; - echo '
email Text
'. - 'Common replies
Email '. - APPDB_OWNER_EMAIL.' if you want to suggest a new common reply.
' ,"\n"; - echo '',"\n"; - if(!$this->getOptionalSetting("objectHideDelete", FALSE)) - { - echo '',"\n"; - } - - if($this->sState == 'queued' && !$this->getOptionalSetting("objectHideReject", FALSE)) - { - echo '',"\n"; - } - - echo $this->handle_preview_button(); - - echo '',"\n"; - echo '
'; - echo html_frame_end(); - } else - { - // display the move children entry - $this->displayMoveChildren($oObject); - - echo '',"\n"; - echo ''. - ' ',"\n"; - echo ''."\n"; - $this->handle_preview_button(); - echo "\n"; + // end output radio buttons for common responses + ///////////////////////////////////////////////// } + + /* buttons for operations we can perform on this entry */ + echo '' ,"\n"; + echo '',"\n"; + if(!$this->getOptionalSetting("objectHideDelete", FALSE)) + { + echo '',"\n"; + } + + if($this->sState == 'queued' && !$this->getOptionalSetting("objectHideReject", FALSE)) + { + echo '',"\n"; + } + + echo $this->handle_preview_button(); + + echo '',"\n"; + echo '',"\n"; + echo ''; + echo html_frame_end(); + echo ''; echo "\n";