cvs: pearweb /public_html/pepr pepr-qa-stats.php
| From: | Tobias Schlitt | Date: | Wed, 02 Mar 2005 03:26:29 +0000 |
| Subject: | cvs: pearweb /public_html/pepr pepr-qa-stats.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-29987@lists.php.net to get a copy of this message | ||
toby Tue Mar 1 22:26:29 2005 EDT
Modified files:
/pearweb/public_html/pepr pepr-qa-stats.php
Log:
* Optimize view.
http://cvs.php.net/diff.php/pearweb/public_html/pepr/pepr-qa-stats.php?r1=1.7&r2=1.8&ty=u
Index: pearweb/public_html/pepr/pepr-qa-stats.php
diff -u pearweb/public_html/pepr/pepr-qa-stats.php:1.7
pearweb/public_html/pepr/pepr-qa-stats.php:1.8
--- pearweb/public_html/pepr/pepr-qa-stats.php:1.7 Tue Mar 1 15:32:27 2005
+++ pearweb/public_html/pepr/pepr-qa-stats.php Tue Mar 1 22:26:29 2005
@@ -18,7 +18,7 @@
* @author Tobias Schlitt <toby@php.net>
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: pepr-qa-stats.php,v 1.7 2005/03/01 20:32:27 toby Exp $
+ * @version $Id: pepr-qa-stats.php,v 1.8 2005/03/02 03:26:29 toby Exp $
*/
// Should require pear.qa karma later.
@@ -54,8 +54,7 @@
// Get IDs from proposals with comments in the last 30 days
$sql = <<<EOS
SELECT
- ppc.pkg_prop_id,
- MAX(ppc.timestamp) AS latest
+ ppc.pkg_prop_id
FROM
package_proposal_comments ppc
WHERE
@@ -93,7 +92,7 @@
p.status = 'proposal'
AND p.id NOT IN (".implode(',', $proposalIds).")
AND p.proposal_date < DATE_ADD(NOW(), INTERVAL -30 DAY)
- ORDER BY draft_date DESC;";
+ORDER BY draft_date DESC;";
$res['orphan_proposals'] = $dbh->getAll($sql, DB_FETCHMODE_ASSOC);
@@ -166,7 +165,7 @@
echo '<td width="50%" valign="top">';
// {{{ HTML for orphan drafts
-echo '<h1>Status "draft"</h1>';
+echo '<h1>Status "draft"
('.count($res['orphan_drafts']).')</h1>';
echo '<table border="0" cellspacing="0">';
echo '<tr>';
@@ -190,7 +189,7 @@
echo '<td width="50%" valign="top">';
// {{{ HTML for orphan proposals
-echo '<h1>Status "proposal"</h1>';
+echo '<h1>Status "proposal"
('.count($res['orphan_proposals']).')</h1>';
echo '<table border="0" cellspacing="0">';
echo '<tr>';
echo '<th>Name</th>';
@@ -220,7 +219,7 @@
echo '</table>';
// {{{ HTML for orphan finished proposals
-echo '<h1>Status "finished"</h1>';
+echo '<h1>Status "finished"
('.count($res['orphan_finished']).')</h1>';
echo '<table border="0" cellspacing="0">';
echo '<tr>';
echo '<th>Name</th>';
@@ -247,7 +246,9 @@
}
echo '<td
class="textcell">'.user_link($set['user_handle']).'</td>';
- echo '<td class="textcell"><a
href="/package/'.$set['pkg_name'].'">Search</a></td>';
+ echo '<td class="textcell"><a
href="/package-search.php?pkg_name='.
+ urlencode(str_replace('_', ' ',
strtolower($set['pkg_name']))).
+ '&bool=AND&submit=Search#results">Search registered
package</a></td>';
echo '</tr>';
}
echo '</table>';