<ul class="tabs">
    <li><a href="index.php?fuse=clients&amp;view=ShowCustomerData"><?php echo $this->lang("Profile"); ?></a></li>
    <li class="active"><a href="index.php?fuse=clients&amp;view=Profile_AlternateEmails"><?php echo $this->lang("Alternate Emails"); ?></a></li>
        <?php if ($this->company->supports('billing')): ?>
        <li><a href="index.php?fuse=clients&amp;view=Profile_Billing"><?php echo $this->lang("Billing"); ?></a></li>
        <?php endif; ?>
    <li><a href="index.php?fuse=clients&amp;view=Profile_Password"><?php echo $this->lang("Password"); ?></a></li>
    <li><a href="index.php?fuse=clients&amp;view=Profile_StaffNotes"><?php echo $this->lang("Notes"); ?></a></li>
    <div class="bottom clear"></div>
</ul>

<form method="post" action="index.php?fuse=clients&amp;action=UpdateAlternateEmails">
    <table class="ts">
        <tr class="caption">
            <td>&nbsp;<?php echo $this->lang('E-mail'); ?></td>
            <td width="120" align="center"><?php echo $this->notificationsHelp; ?></td>
            <?php if ($this->showBillingColumn) { ?>
            <td width="120" align="center"><?php echo $this->billingHelp; ?></td>
            <?php } //show Billing Columns ?>
            <td width="120" align="center"><?php echo $this->supportHelp; ?></td>
            <td width="120" align="center"><?php echo $this->deleteEmailHelp; ?></td>
        </tr>

        <?php foreach ($this->accounts as $account) { ?>
        <tr>
            <td><?php echo $account['altEmail']; ?></td>
            <td align="center"><input type="checkbox" name="sendnotifications_<?php echo $account['altEmailId']; ?>" <?php echo $account['sendNotifications']; ?> /></td>
            <?php if ($this->showBillingColumn) { ?>
            <td align="center"><input type="checkbox" name="sendinvoice_<?php echo $account['altEmailId']; ?>" <?php echo $account['sendInvoice']; ?> /></td>
            <?php } //show Billing Columns ?>
            <td align="center"><input type="checkbox" name="sendsupport_<?php echo $account['altEmailId']; ?>" <?php echo $account['support']; ?> /></td>
            <td align="center"><input type="checkbox" name="delete_<?php echo $account['altEmailId']; ?>" <?php echo $account['disabled']; ?> /></td>
        </tr>
        <?php }//end looping through alt emails ?>
        
        <tr>
            <td><input type="text" style="height:20px;width:95%;padding:1px;" name="newaltemail" /></td>
            <td align="center"><input type="checkbox" name="newnotify" /></td>
            <?php if ($this->showBillingColumn) { ?>
            <td align="center"><input type="checkbox" name="newinvoice" /></td>
            <?php } //show Billing Columns ?>
            <td align="center"><input type="checkbox" name="newsupport" /></td>
        </tr>

    </table>
    <input type="hidden" name="altEmailsArray" value='<?php echo $this->queryString3; ?>' />
    <input type="submit" class="button" value='<?php echo $this->lang("Update"); ?>' />
</form>
