/[dehs]/trunk/www/no_updated.php
ViewVC logotype

Contents of /trunk/www/no_updated.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (show annotations) (download)
Tue Jun 29 02:16:33 2004 UTC (8 years, 10 months ago) by evaso-guest
File size: 4250 byte(s)
Some important features added and various bugfix and layout changes
1 <?/*
2
3 Originally written by Stefano Fabri <bluefuture@nospam@email.it>
4 Copyright 2004, Stefano Fabri
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */?>
20 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
21 <html>
22 <head>
23 <meta content="text/html; charset=ISO-8859-1"
24 http-equiv="content-type">
25 <title>Sources With No Watch</title>
26 </head>
27 <body>
28 <div style="text-align: center;">
29 <h1>Debian External Health Status</h1>
30 Most popular packages that is not in sync with Upstream author version<br>
31 <?include("menu.inc");?>
32 <?
33 require("config_www.inc");
34 $rsql=pg_exec($db,
35 "Select id,mpop_inst,name,version,bytes, tot_up_error,tot_avg_error_date,pkgs.dist,up_version,watch_warn, up_changes from pkgs
36 INNER join (Select max(pop_inst) as mpop_inst,SUM(up_error) as tot_up_error,AVG(avg_error_date) as tot_avg_error_date,name,dist FROM binpkgs GROUP BY name,dist) as binpkgs using(name,dist)
37 where updated='1' AND up_version!=''
38 order by mpop_inst desc;") OR Die("Error on query");;
39 $rsql2=pg_exec($db, "SELECT count(name) from pkgs WHERE up_version IS NOT NULL") OR Die("Errore on query");
40 $totnowatch=pg_numrows($rsql);
41 $totpkgs=pg_fetch_array($rsql2,0);
42 print "<b>Total Packages need Update</b>: $totnowatch
43 <b>Total with Upstream founded:</b> $totpkgs[0] <b>Share: </b> " . number_format ( $totnowatch/$totpkgs[0] * 100, 2, ",",".") . "%" ;
44 ?>
45 <table
46 style="width: 50%; text-align: left; margin-left: auto; margin-right: auto;"
47 border="1" cellspacing="2" cellpadding="2">
48 <tbody>
49 <tr>
50 <td
51 style="vertical-align: top; text-align: center; font-weight: bold;">Pop Inst</td>
52 <td style="vertical-align: top;text-align: center; font-weight: bold;">Name</td>
53 <td style="vertical-align: top; text-align: center; font-weight: bold;">Upstream Version</td>
54 <td style="vertical-align: top; text-align: center; font-weight: bold;">Debain Version</td>
55 <td style="vertical-align: top; text-align: left; font-weight: bold;">Source Size (KB)</td>
56 <td style="vertical-align: top; text-align: center; font-weight: bold;">Tot Upstream Bugs</td>
57 <td style="vertical-align: top; text-align: center; font-weight: bold;">Avg days opened</td>
58 <td style="vertical-align: top; text-align: center; font-weight: bold;">Distrib</td>
59 <td style="vertical-align: top;text-align: center; font-weight: bold;">Uscan Errors processing Watch File</td>
60 </tr>
61 <?
62 while ($res_array=pg_fetch_array($rsql)) {
63 ?>
64 <tr>
65 <td style="vertical-align: top;"><? print $res_array["mpop_inst"]; ?><br>
66 </td>
67 <td style="vertical-align: top;"><? print $res_array["name"]; ?><br>
68 </td>
69 <td style="vertical-align: top;">
70 <? if ($res_array[up_changes]!='') { ?>
71 <a href="<? print "wwiz_detail.php?id=$res_array[id]&type=up_changes";?>">
72 <? print $res_array["up_version"]; ?></a><br>
73 <?}
74 else print $res_array["up_version"];?>
75 </td>
76 <td style="vertical-align: top;"><? print $res_array["version"]; ?><br>
77 </td>
78 <td style="vertical-align: top;"><? print number_format ($res_array[bytes]/1024, 0); ?></td>
79 <td style="vertical-align: top;"><? print number_format($res_array["tot_up_error"] ,0); ?><br>
80 </td>
81 <td style="vertical-align: top;"><? print number_format($res_array["tot_avg_error_date"],0); ?><br>
82 </td>
83 <td style="vertical-align: top;"><? print $res_array["dist"]; ?><br>
84 </td>
85 <td style="vertical-align: top;"><? print $res_array["watch_warn"]; ?><br>
86 </td>
87 </tr>
88 <?
89 }
90 pg_close($db);
91 ?>
92 </tbody>
93 </table>
94 <br>
95 <br>
96 </div>
97 </body>
98 </html>

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5