Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/01/2012, 13:52
agrevalxxx
 
Fecha de Ingreso: enero-2003
Ubicación: Xalapa, Ver
Mensajes: 6
Antigüedad: 21 años, 3 meses
Puntos: 0
Respuesta: error despues de actualizar PHP 5.3

y continua:


</tr>
<tr>
<td align='left'>Proceso:<br />
<select id='v_tipo_trabajo' name='v_tipo_trabajo' onchange='muestra_tipoTrabajo();' > <!--onchange='LlenaTrabajosPR(this.value); -->
<option value='x'>Seleccione proceso</option>
<?php f_catalogo_tipo_trabajo($registro[10]);?>
</select> <br /></td>
<?php
if ($registro[10]==5){
$muestra_linea = "style='display:block'";
$muestra_cto = "style='display:none'";
}else{
$muestra_cto="style='display:block'";
$muestra_linea ="style='display:none'";
}

?>
<td align='left'>&nbsp;</td>
<td colspan="2" align="left">


<?php if ($reg==""){ //si es un registro nuevo ?>
<div id="div_ses">
<img src="imagenes/add-icon.png" style="display:inline-block" id="b_mas" name="b_mas" onclick="agrega_cto();" /><br />
<label for="se1">SE:</label>
<input type="text" name="se1" id="se1" size="4" onfocus="new AutoSuggest(document.getElementById('se1'),'<?php echo get_cadenaSugerencia("sesub","subestaciones","ifx" ,"seare");?>','ctos1',''); " />
<label for="ctos1">CTO:</label>
<input type="text" size="6" name="ctos1" id="ctos1" onfocus="new AutoSuggest(document.getElementById('ctos1'),'<?ph p echo get_cadenaSugerencia("cisub||cicir","circuitos","i fx","ciare");?>','ram1',document.getElementById('s e1').value); " />

<label for="ram1">RAM:</label>
<input type="text" size="6" name="ram1" id="ram1" onfocus="new AutoSuggest(document.getElementById('ram1'),'<?php echo get_cadenaSugerencia("distinct trim(rasub)||trim(ranom)","ramales","ifx","razon") ;?>','v_trab',document.getElementById('se1').value );" />

<input type="hidden" name="num_ctos" id="num_ctos" value="2" />
<div id="div_ctos_2"></div><br /></div>

<div id="div_lineas" style="display:none">
<img src="imagenes/add-icon.png" style="display:inline-block" id="b_mas" name="b_mas" onclick="agrega_linea();" /><br />
<select name="linea1" id="linea1">

<?php echo get_lineas();?>
</select>
<input type="hidden" name="num_lineas" id="num_lineas" value="2" />

<div id="div_lineas_2"></div><br />
</div>
<? }else{ //si se copia un registro
$consul= get_arregloSeCtosRamalRegistro($registro[0]);
$i=1;

while ($result = $consul->fetch()){
?>
<div id="div_ses"> <img src="imagenes/add-icon.png" style="display:inline-block" id="b_mas" name="b_mas" onclick="agrega_cto();" /><label for="se1" <?php echo $muestra_cto;?>>SE:</label>
<input type="text" name="se<?php echo $i;?>" id="se<?php echo $i;?>" size="4" onfocus="new AutoSuggest(document.getElementById('se<?php echo $i;?>'),'<?php echo get_cadenaSugerencia("sesub","subestaciones","ifx" ,"seare");?>','ctos<?php echo $i;?>',''); " value="<?php echo $result[0];?>" <?php echo $muestra_cto;?>/>
<label for="ctos1" <?php echo $muestra_cto;?>>CTO:</label>
<input type="text" size="6" name="ctos<?php echo $i;?>" id="ctos<?php echo $i;?>" onfocus="new AutoSuggest(document.getElementById('ctos<?php echo $i;?>'),'<?php echo get_cadenaSugerencia("cisub||cicir","circuitos","i fx","ciare");?>','ram<?php echo $i;?>',document.getElementById('se<?php echo $i;?>').value); " value="<?php echo $result[1];?>" <?php echo $muestra_cto;?>/>

<label for="ram1" <?php echo $muestra_cto; ?>>RAM:</label>
<input type="text" size="6" name="ram<?php echo $i;?>" id="ram<?php echo $i;?>" onfocus="new AutoSuggest(document.getElementById('ram<?php echo $i;?>'),'<?php echo get_cadenaSugerencia("distinct trim(rasub)||trim(ranom)","ramales","ifx","razon") ;?>','v_trab',document.getElementById('se<?php echo $i;?>').value);" value="<?php echo $result[2];?>" <?php echo $muestra_cto;?>/>

<input type="hidden" name="num_ctos" id="num_ctos" value="2" />
<div id="div_ctos_2"></div><br /></div>


<div id="div_lineas" <?php echo $muestra_linea;?> >
<img src="imagenes/add-icon.png" style="display:inline-block" id="b_mas" name="b_mas" onclick="agrega_linea();" />
<select name="linea<?php echo $i;?>" id="linea<?php echo $i;?>" <?php echo $muestra_linea;?>>

<?php echo get_lineas2($result[3]);?>
</select>
<input type="hidden" name="num_lineas" id="num_lineas" value="2" />

<div id="div_lineas_<?php echo $i;?>"></div><br />
</div>

<?php

$i++;
}// termina while

}
?>
</td>
</tr>
<tr>
<td colspan="4" align="left">Actividad a Realizar<br />
<div id="div_Trabajos">
<input type="text" name="v_trab" id="v_trab" onfocus="new AutoSuggest(document.getElementById('v_trab'),'<?p hp echo get_cadenaSugerencia("CONCAT(cve_tra,'-',nomtra)","c_trabajo","mysql",""); ?>','v_cuadrilla1',''); " size="100" <?php if($reg!= "") echo "value='".htmlentities($registro[11])."'"?> />
</div>

</td>
</tr>
<tr>
<td colspan="2" align="left">Personal que Intervendrá:<img src="imagenes/add-icon.png" alt="agregar grupo" name="g_mas" id="g_mas" style="display:inline-block" onclick="agrega_gpo();" /><br />

<?php if ($reg==""){ ?>
<input type="text" size="5" id="v_cuadrilla1" name="v_cuadrilla1" onfocus="new AutoSuggest(document.getElementById('v_cuadrilla1' ),'<?php echo get_cadenaSugerencia("grupo","grupos","ifx","grare ");?>','v_cuadrilla1',''); " >
<?php //f_catalogo_cuadrillas($_SESSION['var_usare']);
}else{

$consul= get_CuadrillasRegistro($registro[0]);
$i=1;
while ($result = $consul->fetch()){
?>
<input type="text" size="5" id="v_cuadrilla<?php echo $i;?>" name="v_cuadrilla<?php echo $i;?>" onfocus="new AutoSuggest(document.getElementById('v_cuadrilla<? php echo $i;?>'),'<?php echo get_cadenaSugerencia("grupo","grupos","ifx","grare ");?>','v_cuadrilla<?php echo $i;?>',''); " value="<?php echo $result[0];?>">
<?php $i++;
} // while de recuperacion de cuadrilla

}// termina el if que pregunta si es una registro para la cuardrilla
?>
</select><input type="hidden" name="num_gpo" id="num_gpo" value="2" /><div style="float:left"><div id="div_gpos_2" style="float:left" ></div></div></td>

</tr>

<tr><td colspan="4" align="left"><strong>Afectaciones</strong><hr /></td>
</tr>


<tr>
<td colspan="4" align="left">¿Tendrá afectacion?:
<input type="checkbox" name="v_ban_afec" id="v_ban_afec" value="1" />
<!-- <input id="v_hora_ini" name="v_hora_ini" maxlength="6" type="text" />--></td>
</tr>
<tr>
<td colspan="4" align="left"><div id="divCarga" style="display:block">

<br /><br />
<table style="margin-left:10px; margin-right:10px">
<tr>
<td width="191" align="left">Num. usuarios afectados:</td>
<td width="296" align="left">
<div id="div_numAfec"><input id="v_num_afec" maxlength="5" type="text" name="v_num_afec" /></div>
</td>
<td width="192" align="left">TIU:<input type="text" id="v_tiu" name="v_tiu" /></td>

</tr>
<tr>
<td align="left">Nom. Usuarios Importantes:</td>
<td colspan="2" align="left">
<textarea id="v_nom_usuimp" onKeyPress="if (event.keyCode < 32 || (event.keyCode > 32 && event.keyCode < 44) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || event.keyCode > 122) event.returnValue = false;" rows="2" cols="75" name="v_nom_usuimp"></textarea>
</td>
</tr>
<tr>
<td align="left">Nom. Poblaciones Importantes:</td>
<td colspan="2" align="left">
<textarea id="v_nom_pobimp" onKeyPress="if (event.keyCode < 32 || (event.keyCode > 32 && event.keyCode < 44) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || event.keyCode > 122) event.returnValue = false;" rows="2" cols="75" name="v_nom_pobimp"></textarea>
</td>
</tr>
<tr>
<td align="left">Nom. Colonias Importantes:</td>
<td colspan="2" align="left">