/[webwml]/newmaint/gpg.wml
ViewVC logotype

Contents of /newmaint/gpg.wml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Sun Nov 18 20:53:10 2001 UTC (11 years, 6 months ago) by tbm
Branch: MAIN
Changes since 1.8: +2 -2 lines
Don't use the people2 but people table
1 tbm 1.1 <?
2     include("gpgconfig.inc");
3     include("common.inc");
4     include("gpgcommon.inc");
5     ?>
6     #use wml::gpgpage title="GPG Signing Coordination Page"
7     <?
8    
9 tbm 1.3 if (! ($db = open_db())) {
10     echo "<P>Cannot open SQL database</P>";
11     return FALSE;
12     }
13    
14 tbm 1.1 function print_people($db, $sql) {
15     if (! ($query = pg_exec($db, $sql))) {
16     echo "Problem with query", pg_ErrorMessage($db), "<BR>";
17     return FALSE;
18     }
19     $rows = pg_NumRows($query);
20     for ($i = 0; $i < $rows; $i++) {
21     $row = pg_Fetch_Array($query, $i);
22     echo "<H2>";
23     echo $row["forename"], " ", $row["surname"];
24     echo " &lt;", $row["email"], "&gt;";
25     echo "</H2>\n";
26    
27     print_all_places($row["id"], FALSE);
28    
29     }
30 tbm 1.2 }
31 tbm 1.1 ?>
32    
33     <H1>People looking for GPG Signing</H1>
34     <?
35 tbm 1.9 $sql = "SELECT id, forename, surname, email FROM people WHERE offer is FALSE ORDER BY surname";
36 tbm 1.1 print_people($db, $sql);
37     ?>
38 tbm 1.7
39     <HR>
40    
41 tbm 1.1 <H1>People offering GPG Signing</H1>
42     <?
43 tbm 1.9 $sql = "SELECT id, forename, surname, email FROM people WHERE offer is TRUE ORDER BY surname";
44 tbm 1.1 print_people($db, $sql);
45     ?>
46    
47 tbm 1.5 <P>
48    

  ViewVC Help
Powered by ViewVC 1.1.5