Código PHP:
Ver original<span class="error" id="error_relationship_type_them" style="float:left"></span>
</p></td></table>
</tr>
</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>
<span class="error" id="error_profession" 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><span class="error">*</span>Teléfono fijo/celular para contactarlo(a)
</p></td>
<td width="20%"><input type="text" name="telephone_no" id="telephone_no" value="
<?php if(isset($canidateBasicDetails['telephone_no'])&&($canidateBasicDetails['telephone_no'] != "")){ echo $canidateBasicDetails['telephone_no'];
}?>" autocomplete="off" />
<span class="error" id="error_telephone_no" style="float:left"></span>
</td>
<td width="30%"><p>Teléfono Celular
</p></td>
<td width="20%"><input type="text" name="cellphone_no" id="cellphone_no" value="
<?php if(isset($canidateBasicDetails['cellphone_no'])&&($canidateBasicDetails['cellphone_no'] != "")){ echo $canidateBasicDetails['cellphone_no'];
}?>" autocomplete="off" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="50" colspan="2"><p class="blue-txt">En caso de necesitar contactarla(o) y no poder localizarla(o), por favor provea el nombre y teléfono de una persona a través de la cual la(o) podamos localizar
</p></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
<tr>
<td width="18%" height="39" align="left" valign="middle"><p><span class="error">*</span>Nombre del Contacto
</p></td>
<td width="20%" align="left" valign="middle"><input type="text" name="contact_persone_name" id="contact_persone_name" value="
<?php if(isset($canidateBasicDetails['contact_persone_name'])&&($canidateBasicDetails['contact_persone_name'] != "")){ echo $canidateBasicDetails['contact_persone_name'];
}?>" autocomplete="off" />
<span class="error" id="error_contact_persone_name" style="float:left"></span>
</td>
<td width="14%" align="left" valign="middle"><p><span class="error">*</span>Tipo de Relación
</p></td>
<td width="19%" align="left" valign="middle">
<?php
$contact_person_relation_type = array('Familiar','Amigo','Conocido');
?>
<select name="contact_person_relation_type" id="contact_person_relation_type" class="drpdwn-sml">
<option selected="selected" value="" disabled="disabled">Seleccione</option>
<?php
foreach($contact_person_relation_type as $value){
?>
<option
<?php if(isset($canidateBasicDetails['contact_person_relation_type'])&&($canidateBasicDetails['contact_person_relation_type'] == $value)){?> selected="selected"
<?php }?> value="
<?php echo $value;?>">
<?php echo $value;?></option>
<?php }?>
</select>
<span class="error" id="error_contact_person_relation_type" style="float:left"></span>
</td>
<td width="9%" align="left" valign="middle"><p><span class="error">*</span>Teléfono
</p></td>
<td width="20%" align="left" valign="middle">
<input type="text" name="contact_person_phone_no" id="contact_person_phone_no" value="
<?php if(isset($canidateBasicDetails['contact_person_phone_no'])&&($canidateBasicDetails['contact_person_phone_no'] != "")){ echo $canidateBasicDetails['contact_person_phone_no'];
}?>" autocomplete="off" />
<span class="error" id="error_contact_person_phone_no" style="float:left"></span>
</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00">
<tr>
<td height="32"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0">
<tr>
<td width="83%"><input type="reset" onclick="javascript:window.location.href='index.php?action=basic_info';" class="cont_reset" name="reset" value="Atrás" /></td>
<td width="17%"><input type="submit" class="cont" name="submit" value="Continuar" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</div>
</div>