<select class="ask-mode">
<?php
if (isset($i_am))
{
if (($infouser->ask_state == 1) && ($infouser->msg_state == 1))
{
?>
<option value="1" selected="1"><?php echo $TEXT['select-fromme']; ?></option>
<?php
}
else if (($infouser->ask_state == 1) && ($infouser->msg_state == 0))
{
?>
<option value="1" selected="1"><?php echo $TEXT['select-fromme']; ?></option>
<?php
}
else if (($infouser->ask_state == 0) && ($infouser->msg_state == 1))
{
?>
<option value="0" selected="0"><?php echo $TEXT['select-anonymous']; ?></option>
<option value="1"><?php echo $TEXT['select-fromme']; ?></option>
<?php
}
else
{
?>
<option value="0" selected="0"><?php echo $TEXT['select-anonymous']; ?></option>
<option value="1"><?php echo $TEXT['select-fromme']; ?></option>
<?php
}
}
else
{
?>
<option value="0" selected="0"><?php echo $TEXT['select-anonymous']; ?></option>
<?php
}
?>
</select>