house keeping

This commit is contained in:
root 2006-08-14 01:05:49 +00:00
parent 2a419f93a4
commit 7929eff532

View file

@ -24,25 +24,25 @@
<td class="DataTD"><?=_("Address")?></td> <td class="DataTD"><?=_("Address")?></td>
<? <?
$query = "select * from `email` where `memid`='".$_SESSION[profile][id]."' and `deleted`=0"; $query = "select * from `email` where `memid`='".$_SESSION['profile']['id']."' and `deleted`=0";
$res = mysql_query($query); $res = mysql_query($query);
while($row = mysql_fetch_assoc($res)) while($row = mysql_fetch_assoc($res))
{ {
if($row[hash] == "") if($row['hash'] == "")
$verified = _("Verified"); $verified = _("Verified");
else else
$verified = _("Unverified"); $verified = _("Unverified");
?> ?>
<tr> <tr>
<td class="DataTD"><input type="radio" name="emailid" value="<?=$row[id]?>" <td class="DataTD"><input type="radio" name="emailid" value="<?=$row['id']?>"
<? if($row[email] == $_SESSION[profile][email]) echo " checked"; ?>></td> <? if($row['email'] == $_SESSION['profile']['email']) echo " checked"; ?>></td>
<td class="DataTD"><?=$verified?></td> <td class="DataTD"><?=$verified?></td>
<? if($row[email] == $_SESSION[profile][email]) { ?> <? if($row['email'] == $_SESSION['profile']['email']) { ?>
<td class="DataTD"><?=_("N/A")?></td> <td class="DataTD"><?=_("N/A")?></td>
<? } else { ?> <? } else if($row['hash'] == "") { ?>
<td class="DataTD"><input type="checkbox" name="delid[]" value="<?=$row[id]?>"></td> <td class="DataTD"><input type="checkbox" name="delid[]" value="<?=$row['id']?>"></td>
<? } ?> <? } ?>
<td class="DataTD"><?=$row[email]?></td> <td class="DataTD"><?=$row['email']?></td>
</tr> </tr>
<? } ?> <? } ?>
<tr> <tr>