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>
<?
$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);
while($row = mysql_fetch_assoc($res))
{
if($row[hash] == "")
if($row['hash'] == "")
$verified = _("Verified");
else
$verified = _("Unverified");
?>
<tr>
<td class="DataTD"><input type="radio" name="emailid" value="<?=$row[id]?>"
<? if($row[email] == $_SESSION[profile][email]) echo " checked"; ?>></td>
<td class="DataTD"><input type="radio" name="emailid" value="<?=$row['id']?>"
<? if($row['email'] == $_SESSION['profile']['email']) echo " checked"; ?>></td>
<td class="DataTD"><?=$verified?></td>
<? if($row[email] == $_SESSION[profile][email]) { ?>
<? if($row['email'] == $_SESSION['profile']['email']) { ?>
<td class="DataTD"><?=_("N/A")?></td>
<? } else { ?>
<td class="DataTD"><input type="checkbox" name="delid[]" value="<?=$row[id]?>"></td>
<? } else if($row['hash'] == "") { ?>
<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>