Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/11/2013, 11:26
Avatar de el_cesar
el_cesar
 
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 5 meses
Puntos: 20
Respuesta: Mostrar/Ocultar campos si se cumple funcion Estoy pegado!!!

Código PHP:
Ver original
  1. <span class="error" id="error_relationship_type_them" style="float:left"></span>
  2.         </p></td></table>
  3.         </tr>
  4.       </tr>
  5.     </table>
  6.       <td width="83%"></td>
  7.       </tr>
  8.    
  9.        <tr>
  10.     <td  colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
  11.       <tr>
  12.         <td width="30%" height="40" align="left" valign="middle"><p><span class="error">*</span>Dirección Residencia
  13. </p></td>
  14.         <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'] != "")){
  15.   echo $canidateBasicDetails['home_address'];
  16.  }?>" autocomplete="off" />
  17.        
  18.          <span class="error" id="error_home_address" style="float:left"></span>
  19.         </td>
  20.         <td width="30%" align="left" valign="middle"><p><span class="error">*</span>Barrio</p></td>
  21.         <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'] != "")){
  22.   echo $canidateBasicDetails['neighborhood_of_residence'];
  23.  }?>" autocomplete="off" />
  24.                  <span class="error" id="error_neighborhood_of_residence" style="float:left"></span>
  25.  
  26.        
  27.         </td>
  28.       </tr>
  29.       </table>
  30.       </td>
  31.       </tr>
  32.      
  33.      
  34.      <tr>
  35.     <td  colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
  36.       <tr>
  37.         <td height="40" width="30%"><p>Estrato
  38. </p></td>
  39.         <td width="20%">
  40.        
  41.         <select name="stratum_of_residence" id="stratum_of_residence" class="select_mid">
  42.           <option selected="selected" value="" disabled="disabled">Seleccione</option>
  43.           <?php
  44.          
  45.           for($i=1;$i<=6;$i++){
  46.           ?>
  47.           <option value="<?php echo $i;?>" <?php if(isset($canidateBasicDetails['stratum_of_residence'])&&($canidateBasicDetails['stratum_of_residence'] == $i)){?> selected="selected" <?php }?>><?php echo $i;?></option>
  48.           <?php } ?>
  49.          
  50.  
  51.         </select></td>
  52.         <td width="30%"><p><span class="error">*</span>Profesión</p></td>
  53.         <td width="20%">
  54.         <?php
  55.         $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>
  56.           <?php
  57.           foreach($profession as $value){
  58.          
  59.           ?>
  60.           <option <?php if(isset($canidateBasicDetails['profession'])&&($canidateBasicDetails['profession'] == $value)){?> selected="selected" <?php }?> value="<?php echo $value;?>"><?php echo $value;?></option>
  61.           <?php }?>
  62.          
  63.       </select>  
  64.       <span class="error" id="error_profession" style="float:left"></span>
  65.         </td>
  66.       </tr>
  67.       </table></td>
  68.       </tr>
  69.    
  70.    
  71.      
  72.        
  73.        <tr>
  74.     <td  colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
  75.       <tr>
  76.         <td height="40" width="30%"><p><span class="error">*</span>Teléfono fijo/celular para contactarlo(a)
  77. </p></td>
  78.         <td width="20%"><input type="text" name="telephone_no" id="telephone_no" value="<?php if(isset($canidateBasicDetails['telephone_no'])&&($canidateBasicDetails['telephone_no'] != "")){
  79.   echo $canidateBasicDetails['telephone_no'];
  80.  }?>" autocomplete="off" />
  81.          <span class="error" id="error_telephone_no" style="float:left"></span>
  82.        
  83.         </td>
  84.         <td width="30%"><p>Teléfono Celular
  85. </p></td>
  86.         <td width="20%"><input type="text" name="cellphone_no" id="cellphone_no" value="<?php if(isset($canidateBasicDetails['cellphone_no'])&&($canidateBasicDetails['cellphone_no'] != "")){
  87.   echo $canidateBasicDetails['cellphone_no'];
  88.  }?>" autocomplete="off" />
  89.        
  90.        
  91.         </td>
  92.       </tr>
  93.       </table>
  94.       </td>
  95.       </tr>
  96.        
  97.       <tr>
  98.     <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
  99. </p></td>
  100.   </tr>
  101.   <tr>
  102.     <td  colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00" class="bgcolor">
  103.       <tr>
  104.         <td width="18%" height="39" align="left" valign="middle"><p><span class="error">*</span>Nombre del Contacto
  105. </p></td>
  106.         <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'] != "")){
  107.   echo $canidateBasicDetails['contact_persone_name'];
  108.  }?>"  autocomplete="off" />
  109.          <span class="error" id="error_contact_persone_name" style="float:left"></span>
  110.        
  111.         </td>
  112.         <td width="14%" align="left" valign="middle"><p><span class="error">*</span>Tipo de Relación
  113. </p></td>
  114.         <td width="19%" align="left" valign="middle">
  115.           <?php
  116.         $contact_person_relation_type = array('Familiar','Amigo','Conocido');
  117.        
  118.        
  119.         ?>
  120.         <select name="contact_person_relation_type" id="contact_person_relation_type" class="drpdwn-sml">
  121.         <option selected="selected" value="" disabled="disabled">Seleccione</option>
  122.            <?php
  123.           foreach($contact_person_relation_type as $value){
  124.          
  125.           ?>
  126.           <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>
  127.           <?php }?>
  128.          
  129.          
  130.         </select>
  131.        
  132.         <span class="error" id="error_contact_person_relation_type" style="float:left"></span>
  133.        
  134.         </td>          
  135.  
  136.         <td width="9%" align="left" valign="middle"><p><span class="error">*</span>Teléfono
  137. </p></td>
  138.         <td width="20%" align="left" valign="middle">
  139.         <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'] != "")){
  140.   echo $canidateBasicDetails['contact_person_phone_no'];
  141.  }?>"  autocomplete="off" />
  142.            <span class="error" id="error_contact_person_phone_no" style="float:left"></span>
  143.         </td>
  144.       </tr>
  145.     </table></td>
  146.   </tr>
  147.     <tr>
  148.     <td colspan="2"><table width="100%" border="00" cellspacing="00" cellpadding="00">
  149.       <tr>
  150.         <td height="32">&nbsp;</td>
  151.         <td>&nbsp;</td>
  152.         <td>&nbsp;</td>
  153.         <td>&nbsp;</td>
  154.       </tr>
  155.       </table>
  156.       </td>
  157.       </tr>
  158.     <tr>
  159.       <td colspan="2"><table width="100%" border="0">
  160.         <tr>
  161.           <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>
  162.           <td width="17%"><input type="submit" class="cont" name="submit" value="Continuar" /></td>
  163.           </tr>
  164.         </table></td>
  165.     </tr>
  166.     </table>
  167.  
  168.  
  169. </form>
  170. </div>
  171. </div>
  172. </div>
__________________
Say no more.......