diff options
author | Callan Barrett <wizzomafizzo@gmail.com> | 2008-12-20 19:37:19 +0900 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2008-12-20 18:33:45 -0500 |
commit | e12a8ad3da6fdec073e099438a69f745f5b9faf5 (patch) | |
tree | f16baf5897397722acb1f8df5a89f336f5778d2a /web/lib | |
parent | cde524e1754923d97c953e08017170ddd5dd72b6 (diff) | |
download | aurweb-e12a8ad3da6fdec073e099438a69f745f5b9faf5.tar.xz |
Remove success messages after package functions
Just displays message at the top of the page of what happened (errors or not) and goes back to the same page
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgfuncs.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 2b3cece..f99810a 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -290,9 +290,9 @@ function package_details($id=0, $SID="") { # print out package details # - echo "<div class=\"pgbox\">\n"; - echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Package Details")."</span></div>\n"; - echo " <div class=\"pgboxbody\">\n"; + echo "<div class=\"pgbox\">\n"; + echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Package Details")."</span></div>\n"; + echo " <div class=\"pgboxbody\">\n"; echo " <table>\n"; echo " <tr><td class='boxSoft' colspan='2'><span class='f2'>"; echo $row["Name"] . " " . $row["Version"]."</span></td></tr>\n"; @@ -364,8 +364,8 @@ function package_details($id=0, $SID="") { $deps = package_dependencies($row["ID"]); # $deps[0] = array('id','name', 'dummy'); if (count($deps) > 0) { - echo " <tr>\n"; - echo " <td valign='top' style='padding-right: 10'>\n"; + echo " <tr>\n"; + echo " <td valign='top' style='padding-right: 10'>\n"; echo " <table class='boxSoft' style='width: 200px'>\n"; echo " <tr><td class='boxSoftTitle'><span class='f3'>"; echo __("Dependencies")."</span></td></tr>\n"; @@ -473,7 +473,7 @@ function package_details($id=0, $SID="") { echo "<div class=\"pgbox\">\n"; echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Actions")."</span></div>\n"; echo " <div class=\"pgboxbody\">\n"; - echo " <form action='/packages.php' method='post'>\n"; + echo " <form action='/packages.php?ID=".$row['ID']."' method='post'>\n"; echo " <input type='hidden' name='IDs[".$row["ID"]."]' value='1'>\n"; echo " <input type='hidden' name='ID' value='".$row["ID"]."'>\n"; # Voting Button @@ -767,7 +767,7 @@ function pkg_search_page($SID="") { $result = db_query($q, $dbh); $total = mysql_result(db_query('SELECT FOUND_ROWS() AS Total', $dbh), 0); - print "<form action='/packages.php' method='post'>\n"; + print "<form action='/packages.php?".$_SERVER['QUERY_STRING']."' method='post'>\n"; print "<center>\n"; print "<table cellspacing='3' class='boxSoft'>\n"; print "<tr>\n"; |