From ff3a29ea075b661b5110572325bcd9db78518051 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Fri, 23 Jan 2009 18:25:41 -0500 Subject: Move actions form into template. Signed-off-by: Loui Chang --- web/lib/pkgfuncs.inc | 66 +--------------------------------------------------- 1 file changed, 1 insertion(+), 65 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 3257c776..e328c301 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -465,75 +465,11 @@ function package_details($id=0, $SID="") { echo " \n"; echo " \n"; echo "\n\n"; - echo "
\n\n"; - # Actions Bar # if ($SID) { - echo "
\n"; - echo "
".__("Actions")."
\n"; - echo "
\n"; - echo "
\n"; - echo " \n"; - echo " \n"; - # Voting Button - # - $q = "SELECT * FROM PackageVotes WHERE UsersID = ". $uid; - $q.= " AND PackageID = ".$row["ID"]; - if (!mysql_num_rows(db_query($q, $dbh))) { - echo " "; - } else { - echo ""; - } - # Comment Nofify Button - # - $q = "SELECT * FROM CommentNotify WHERE UserID = ". $uid; - $q.= " AND PkgID = ".$row["ID"]; - if (!mysql_num_rows(db_query($q, $dbh))) { - echo ""; - } else { - echo ""; - } - - if ($row["OutOfDate"] == 0) { - echo "\n"; - } else { - echo "\n"; - } - - if ($row["MaintainerUID"] == 0) { - echo "\n"; - } else if ($uid == $row["MaintainerUID"] || - $atype == "Trusted User" || $atype == "Developer") { - echo "\n"; - } - - if ($atype == "Trusted User" || $atype == "Developer") { - echo "\n"; - } - - echo "
\n"; - echo "
\n"; - - # Add Comments - echo "
\n"; - echo "\n"; - echo "\n"; - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo "\n
"; + include('actions_form.php'); } # Print Comments -- cgit v1.2.3-24-g4f1b