<td class="main"><label for="postcode"><?php 
echo ENTRY_POST_CODE;
?>
</label></td>
     <td><?php 
echo smn_draw_input_field('postcode', $customerInfo->address_data['entry_postcode'], 'id="postcode"');
?>
</td>
    </tr>
    <tr>
     <td class="main"><label for="country"><?php 
echo ENTRY_COUNTRY;
?>
</label></td>
     <td><?php 
echo smn_get_country_list('country', $customerInfo->address_data['entry_country_id'], 'id="country"');
?>
</td>
    </tr>
    <tr>
     <td class="main"><label for="state"><?php 
echo ENTRY_STATE;
?>
</label></td>
     <td id="state_col"><?php 
echo smn_draw_input_field('state', $customerInfo->address_data['entry_state'], 'id="state"');
?>
</td>
    </tr>
   </table>
  </fieldset>
            <td class="main">&nbsp;<?php 
echo ENTRY_COUNTRY;
?>
</td>
            <td class="main">&nbsp;
<?php 
if ($is_read_only == true) {
    echo smn_get_country_name($account['entry_country_id']);
} elseif ($error == true) {
    if ($entry_country_error == true) {
        echo smn_get_country_list('country') . '&nbsp;' . ENTRY_COUNTRY_ERROR;
    } else {
        echo smn_get_country_name($country) . smn_draw_hidden_field('country');
    }
} else {
    echo smn_get_country_list('country', $account['entry_country_id']) . '&nbsp;' . ENTRY_COUNTRY_TEXT;
}
?>
</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="formAreaTitle"><br><?php 
echo CATEGORY_CONTACT;
?>
</td>
  </tr>
  <tr>
    } else {
        echo smn_draw_input_field('state', smn_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . '&nbsp;' . '<span class="inputRequirement">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
                </td>
              </tr>
<?php 
}
?>
              <tr>
                <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
                <td class="main"><?php 
echo smn_get_country_list('country') . '&nbsp;' . (smn_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td class="main"><b><?php 
            <td class="main">&nbsp;<?php 
echo ENTRY_COUNTRY;
?>
</td>
            <td class="main">&nbsp;
<?php 
if ($is_read_only == true) {
    echo smn_get_country_name($affiliate['affiliate_country_id']);
} elseif ($error == true) {
    if ($entry_country_error == true) {
        echo smn_get_country_list('a_country') . '&nbsp;' . ENTRY_COUNTRY_ERROR;
    } else {
        echo smn_get_country_name($a_country) . smn_draw_hidden_field('a_country');
    }
} else {
    echo smn_get_country_list('a_country', $affiliate['affiliate_country_id']) . '&nbsp;' . ENTRY_COUNTRY_TEXT;
}
?>
            </td>
          </tr>
<?php 
if (ACCOUNT_STATE == 'true') {
    ?>
          <tr>
            <td class="main">&nbsp;<?php 
    echo ENTRY_STATE;
    ?>
</td>
            <td class="main">&nbsp;
<?php 
    $state = smn_get_zone_name($a_country, $a_zone_id, $a_state);