Código PHP:
Ver original<td align="left" valign="middle"><p><span class="error">*</span>Qué relación tiene con ellas?
</p></td>
<td width="15%" align="left" valign="middle"><p>
<select name="relationship_type_them" id="relationship_type_them" class="select_mid">
<option selected="selected" value="" disabled="disabled">Seleccione</option>
<option value="Familia"
<?php if(isset($canidateBasicDetails['relationship_type_them'])&&($canidateBasicDetails['relationship_type_them'] == "Familia")){?> selected="selected"
<?php }?>>Familia</option>
<option value="Amigos"
<?php if(isset($canidateBasicDetails['relationship_type_them'])&&($canidateBasicDetails['relationship_type_them'] == "Amigos")){?> selected="selected"
<?php }?>>Amigos</option>
<option value="Inquilinos"
<?php if(isset($canidateBasicDetails['relationship_type_them'])&&($canidateBasicDetails['relationship_type_them'] == "Inquilinos")){?> selected="selected"
<?php }?>>Inquilinos</option>
</select>
<span class="error" id="error_relationship_type_them" style="float:left"></span>
</p>
</tr>
</table>
<td width="83%"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
<tr>
<td width="30%" height="40" align="left" valign="middle"><p><span class="error">*</span>Dirección Residencia
</p></td>
<td width="20%" align="left" valign="middle"><input type="text" name="home_address" id="home_address" value="
<?php if(isset($canidateBasicDetails['home_address'])&&($canidateBasicDetails['home_address'] != "")){ echo $canidateBasicDetails['home_address'];
}?>" autocomplete="off" />
<span class="error" id="error_home_address" style="float:left"></span>
</td>
<td width="30%" align="left" valign="middle"><p><span class="error">*</span>Barrio</p></td>
<td width="20%" align="left" valign="middle"><input type="text" name="neighborhood_of_residence" id="neighborhood_of_residence" value="
<?php if(isset($canidateBasicDetails['neighborhood_of_residence'])&&($canidateBasicDetails['neighborhood_of_residence'] != "")){ echo $canidateBasicDetails['neighborhood_of_residence'];
}?>" autocomplete="off" />
<span class="error" id="error_neighborhood_of_residence" style="float:left"></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
<tr>
<td height="40" width="30%"><p>Estrato
</p></td>
<td width="20%">
<select name="stratum_of_residence" id="stratum_of_residence" class="select_mid">
<option selected="selected" value="" disabled="disabled">Seleccione</option>
<?php
for($i=1;$i<=6;$i++){
?>
<option value="
<?php echo $i;?>"
<?php if(isset($canidateBasicDetails['stratum_of_residence'])&&($canidateBasicDetails['stratum_of_residence'] == $i)){?> selected="selected"
<?php }?>>
<?php echo $i;?></option>
<?php } ?>
</select></td>
<td width="30%"><p><span class="error">*</span>Profesión</p></td>
<td width="20%">
<?php
$profession = array("Administrador","Administrativo","Agente Comercial","Albañil","Almacenero","Archivero","Armador, estructuras metálicas","Arqueólogo","Arquitecto","Aseador, equipo industrial ","Aseador, especializado","Asesor","Asistente","Auxiliar","Auxiliar de sala, esterilización","Capataz, construcción","Carpintero","Chofer","Comercial / Vendedor","Conserje","Constructor","Contratista, acabados de cemento ","Contratista, construcción ","Contratista, pintura ","Controlador de plagas","Coordinador","Documentalista","Economista","Educador","Electricista","Especialista","Estadístico","Exterminador de plagas","Fontanero","Fumigador ","Informático","Ingeniero","Inspector","Inspector, rutas ","Instalador, alfombras","Instalador, pisos ","Interventor","Jardinero","Jefe","Limpiador","Maestro, constructor ","Maestro, obra - contratista ","Mecánico","Militar","Montador, estructuras - acero","Montador, estructuras metálicas ","Oficinista","Operario, mantenimiento - piscinas","Piscinero","Plomero","Policía","Portero","Programador","Proveedor","Psicoanalista","Psicólogo","Psicopedagogo","Psicoterapeuta","Publicista","Químico","Recepcionista","Secretario","Supervisor, construcción - obras civiles","Supervisor, construcción residencial","Supervisor, obra","Supervisor, rutas ","Técnico","Telefonista","Vigilante"); ?> <select name="profession" id="profession" class="select_mid"> <option selected="selected" value="" disabled="disabled">Seleccione</option>
<?php
foreach($profession as $value){
?>
<option
<?php if(isset($canidateBasicDetails['profession'])&&($canidateBasicDetails['profession'] == $value)){?> selected="selected"
<?php }?> value="
<?php echo $value;?>">
<?php echo $value;?></option>
<?php }?>
</select>