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

Diff of /newmaint/gpgplace.wml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tbm, Sun Jul 15 11:49:06 2001 UTC revision 1.11 by tbm, Sun Jul 15 13:27:40 2001 UTC
# Line 11  Line 11 
11  ?>  ?>
12  <STRONG>  <STRONG>
13  You should not be here!</STRONG>  You should not be here!</STRONG>
14  <? } else {  <?
15       return FALSE;
16     } else {
17    session_register("s_username");    session_register("s_username");
18    }    }
19  ?>  ?>
# Line 59  You should not be here!</STRONG> Line 61  You should not be here!</STRONG>
61          $city = $row["city"];          $city = $row["city"];
62          $country = $row["country"];          $country = $row["country"];
63      } else {      } else {
64          $begin = "NULL";          $begin = $finish = "";
65          $finish = "NULL";          $city = $country = "";
         # FIXME badly  
66      }      }
67    
68        $year = $month = "";
69    
70  ?>  ?>
71    
72    <div align="center">
73    <TABLE summary="">
74    <FORM method="post" action="gpgregister.php">
75    
76    
77    <TR><TD>Begin</TD><TD><SELECT name = "year">
78    <?
79    
80    $years = array("2001", "2002", "2003", "always");
81    foreach ($years as $i) {
82        echo "<OPTION";
83        if ($year == $i || (!year && $i == "always")) {
84            echo " SELECTED";
85        }
86        echo ">$i\n";
87    }
88    ?>
89    </SELECT></TD>
90    
91    <TD><SELECT name = "month">
92    <?
93    $months = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
94    $counter = 1;
95    foreach ($months as $i) {
96        echo "<OPTION value=$counter";
97        if ($month == $counter) {
98            echo " SELECTED";
99        }
100        echo ">$i\n";
101        $counter = $counter + 1;
102    
103    }
104    ?>
105    </SELECT></TD>
106    
107    <TD><SELECT name = "day">
108    <?
109    for ($i = 1; $i < 32; $i++) {
110        echo "<OPTION";
111        if ($day == $i) {
112            echo " SELECTED";
113        }
114        echo ">$i\n";
115    }
116    ?>
117    
118    </SELECT></TD>
119    </TR>
120    
121    <TR><TD><B>City</B></TD><TD><INPUT name = "city" type = "text" value="<? echo $city ?>"></TD></TR>
122    <TR><TD><B>Country</B></TD><TD><INPUT name = "country" type = "text" value="<? echo $country ?>"></TD></TR>
123    </FORM>
124    </TD>
125    </TR>
126    </TABLE>
127    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.5