<th>#_TPL_PROFILE_CITY#</th>
    <td><input type="text" name="city" value="<?php 
    echo is_array($_tmp = $this->_tpl_vars['user']['city']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
    ?>
" size="15" />
    </td>
</tr>
<?php 
}
if ($this->_tpl_vars['fields_to_change']['country']) {
    ?>
<tr>
    <th>#_TPL_PROFILE_COUNTRY#</th>
    <td><select name="country" id="f_country" size="1">
         <?php 
    echo smarty_function_country_options(array('selected' => $this->_tpl_vars['user']['country']), $this);
    ?>

    </select></td>
</tr>
<?php 
}
?>
    
<?php 
if ($this->_tpl_vars['fields_to_change']['state']) {
    ?>
<tr>
    <th>#_TPL_PROFILE_STATE#</th>
    <td>
    <input type="text" name="state" id="t_state" size="30"
 


<tr>
    <th class="headrow" colspan="2">#_TPL_SIGNUP_ADDR#
    </th>
</tr>
<tr>
    <th><b><label for="country">#_TPL_SIGNUP_COUNTRY#<?php 
    echo $this->_tpl_vars['a_req'];
    ?>
</label></b><br />
    <div class="small"></div></th> 
    <td><select name="country" id="f_country" size="1" >
    <?php 
    echo smarty_function_country_options(array('selected' => $_REQUEST['country']), $this);
    ?>

    </select>
    </td>
</tr>
<tr>
    <th><b><label for="state">#_TPL_SIGNUP_STATE#<?php 
    echo $this->_tpl_vars['a_req'];
    ?>
</label></b><br />
    <div class="small"></div></th>
    <td>
    <input type="text" name="state" id="t_state" size="30"
        <?php 
    if ($this->_tpl_vars['config']['use_address_info'] == '1') {