appdb/. queueditems.php

WineHQ wineowner at wine.codeweavers.com
Tue Dec 26 21:26:39 CST 2006


ChangeSet ID:	30826
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/12/26 21:26:39

Added files:
	.              : queueditems.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	dd a page showing a user's queued submissions to the AppDB.  This should be
	quite useful for a user, and should also reduce the number of duplicate
	submissions, as many users seem to think their submissions have been lost if
	they are not accepted within a few hours.

Patch: http://cvs.winehq.org/patch.py?id=30826

Old revision  New revision  Changes     Path
 Added         1.1           +0 -0       appdb/queueditems.php

Index: appdb/queueditems.php
diff -u -p /dev/null appdb/queueditems.php:1.1
--- /dev/null	27 Dec 2006  3:26:39 -0000
+++ appdb/queueditems.php	27 Dec 2006  3:26:39 -0000
@@ -0,0 +1,70 @@
+<?php
+
+/**
+ * A list of the user's queued items
+ */
+
+require("path.php");
+require(BASE."include/incl.php");
+require(BASE."include/filter.php");
+require(BASE."include/appData.php");
+
+apidb_header("View Your Queued Items");
+
+$oUser = new User($_SESSION['current']->iUserId);
+
+if(!$oUser->isLoggedIn())
+{
+    echo "You need to log in to display your queued items.";
+    apidb_footer();
+}
+
+/* Test data */
+if($sResult = testData::listSubmittedBy($oUser->iUserId))
+{
+    echo html_frame_start("Your Queued Test Results","90%");
+    echo $sResult;
+    echo html_frame_end("&nbsp;");
+}
+else
+    echo "You have no queued test results.<br /><br />\n";
+
+/* Applications */
+if($sResult = Application::listSubmittedBy($oUser->iUserId))
+{
+    echo html_frame_start("Your Queued Applications","90%");
+    echo $sResult;
+    echo html_frame_end("&nbsp;");
+} else
+    echo "You have no queued applications.<br /><br />\n";
+
+/* Versions */
+if($sResult = Version::listSubmittedBy($oUser->iUserId))
+{
+    echo html_frame_start("Your Queued Versions","90%");
+    echo $sResult;
+    echo html_frame_end("&nbsp;");
+} else
+    echo "You have no queued versions.<br /><br />\n";
+
+/* Bug links */
+if($sResult = bug::listSubmittedBy($oUser->iUserId))
+{
+    echo html_frame_start("Your Queued Bug Links","90%");
+    echo $sResult;
+    echo html_frame_end("&nbsp;");
+} else
+    echo "You have no queued bugs.<br /><br />\n";
+
+/* Application data */
+if($sResult = appData::listSubmittedBy($oUser->iUserId))
+{
+    echo html_frame_start("Your Queued Application Data","90%");
+    echo $sResult;
+    echo html_frame_end("&nbsp;");
+} else
+    echo "You have no queued application data.<br /><br />\n";
+
+apidb_footer();
+
+?> 



More information about the wine-cvs mailing list