diff --git a/include/appData.php b/include/appData.php index 9a00d76..4352bea 100644 --- a/include/appData.php +++ b/include/appData.php @@ -13,6 +13,7 @@ class appData var $iVersionId; var $iSubmitterId; var $sSubmitTime; + var $sDescription; function appData($iId = null, $oRow = null) { @@ -21,8 +22,8 @@ class appData if(!$oRow) { - $hResult = query_parameters("SELECT * FROM appData WHERE $iId = '?'", $iId); - $oRow = mysql_fetch_object(); + $hResult = query_parameters("SELECT * FROM appData WHERE id = '?'", $iId); + $oRow = mysql_fetch_object($hResult); } if($oRow) @@ -32,6 +33,7 @@ class appData $this->iVersionId = $oRow->versionId; $this->sSubmitTime = $oRow->submitTime; $this->iId = $iId; + $this->sDescription = $oRow->description; } } @@ -344,8 +346,8 @@ class appData $this->iVersionId ? $oVersion->sName : "N/A"); if(appData::canEdit($oObject->sClass)) - $aCells[] = "[ iId\">Process ]"; + $aCells[] = "[ makeUrl("edit", + $this->iId)."\">Process ]"; echo html_tr($aCells, $sClass); } @@ -356,6 +358,44 @@ class appData "Please inspect the data carefully before accepting or rejecting it.

"; echo $sHelp; } + + /* Output the part of an appData editor which is the same for all data types */ + function outputEditorGeneric() + { + $oVersion = new version($this->iVersionId); + if($oVersion->iVersionId) + { + $this->iAppId = $oVersion->iAppId; + $sVersionName = $oVersion->objectMakeLink(); + } + else + $sVersionName = "N/A"; + + $oApp = new Application($this->iAppId); + + // view application details + echo html_frame_start("New Application Data Form",600,"",0); + echo "\n"; + + // app name + echo '',"\n"; + echo "\n"; + + // version + echo '',"\n"; + echo "\n"; + + //dataDescription + echo '',"\n"; + echo '',"\n"; + } + + function getDefaultReply() + { + $sReplyText = "Enter a personalized reason for acceptance or rejection of the". + " submitted application data here"; + return $sReplyText; + } } ?> diff --git a/include/application.php b/include/application.php index ca77184..a8dd1c9 100644 --- a/include/application.php +++ b/include/application.php @@ -813,6 +813,13 @@ class Application { return $sResult; } + + function objectMakeLink() + { + $sLink = "iAppId\">". + $this->sName.""; + return $sLink; + } } ?> diff --git a/include/screenshot.php b/include/screenshot.php index 3783085..2c6ec27 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -150,6 +150,10 @@ class Screenshot { } } + function reject() + { + $this->delete(); + } /** * Move screenshot out of the queue. @@ -543,6 +547,59 @@ class Screenshot { { return appData::objectDisplayQueueProcessingHelp(); } + + function outputEditor() + { + $oAppData = new appData($this->iScreenshotId); + $oAppData->outputEditorGeneric(); + + echo '',"\n"; + echo '',"\n"; + echo ''; + echo html_frame_end(); + } + + function getOutputEditorValues($aClean) + { + /* STUB: No update possible, reply text fetched from $aClean */ + return TRUE; + } + + function update() + { + /* STUB: No updating possible at the moment */ + return TRUE; + } + + function objectHideDelete() + { + return TRUE; + } + + function getDefaultReply() + { + return appData::getDefaultReply(); + } } ?> diff --git a/include/version.php b/include/version.php index c76ee25..10c8850 100644 --- a/include/version.php +++ b/include/version.php @@ -954,7 +954,7 @@ class Version { $oRow = mysql_fetch_object($hResult); return "$oRow->appName $oRow->versionName"; -} + } function showList($hResult) { @@ -1132,6 +1132,13 @@ class Version { return FALSE; } + + function objectMakeLink() + { + $sLink = "iVersionId\">". + $this->sName.""; + return $sLink; + } } ?>
App Name".$oApp->objectMakeLink()."
App Version$sVersionName
Description
Submited screenshot'; + $imgSRC = ''; + // generate random tag for popup window + $randName = User::generate_passwd(5); + // set image link based on user pref + $img = ''.$imgSRC.''; + if ($_SESSION['current']->isLoggedIn()) + { + if ($_SESSION['current']->getpref("window:screenshot") == "no") + { + $img = ''.$imgSRC.''; + } + } + echo $img; + echo '