Viewing file: detalle.php (11.33 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../conex.php");
$sql = "select id,radicado_entrada,fecha_entrada,solicitante,cargo,entidad,no,fecha_concepto,objeto,abogado,radicado_salida,fecha_salida,observaciones,publicacion,vinculo from conceptos where id='$_GET[id]' order by id asc";
//echo "$sql";
//id='$id'";
$cursor = mysql_query( $sql, $conexion );
$num_rows = mysql_num_rows($cursor);
$change=0;
if( $row = mysql_fetch_array( $cursor ) ){
$id = $row["id"];
$radicado_entrada = $row["radicado_entrada"];
$fecha_entrada = $row["fecha_entrada"];
$solicitante = $row["solicitante"];
$cargo = $row["cargo"];
$entidad = $row["entidad"];
$no = $row["no"];
$fecha_concepto = $row["fecha_concepto"];
$objeto = $row["objeto"];
$abogado = $row["abogado"];
$radicado_salida = $row["radicado_salida"];
$fecha_salida = $row["fecha_salida"];
$observaciones = $row["observaciones"];
$publicacion = $row["publicacion"];
$vinculo = $row["vinculo"];}
$year1=date("Y", strtotime($fecha_concepto));
?>
<html>
<head>
<title>Concepto Juridico Detallado</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/styles.css" rel="stylesheet" type="text/css">
<script src="js/AjaxRequest.js" type="text/javascript"></script>
<script type="text/javascript">
function eliminarRegistro(tabla,llave,valor,trIndice){
var URL = "ajax_EliminarRegistro?tabla="+tabla+"&llave="+llave+"&valor="+valor;
var oldInner = document.getElementById('div'+valor).innerHTML;
document.getElementById('div'+valor).innerHTML = '<img alt="Eliminando Registro..." border=0 src="imagenes/loading.gif" width=16 height=16>';
if (false) {
AjaxRequest.get(
{
'url':URL
,'onSuccess':function(req){
var strSel = req.responseText
if (strSel == 'OK') {
var trObj = document.getElementById(valor);
trObj.parentNode.removeChild(trObj);
} else {
document.getElementById('div'+valor).innerHTML = oldInner + '<font size=1 color=#FF0000>ERROR</font>';
}
}
}
);
}
}
function getEstFinSmigol(){
var URL = "ajax_getEstFinSmigol?ide=19792";
document.getElementById('divEstFinSmigol').innerHTML = '<img alt="Cargando Estados Financieros..." border=0 src="imagenes/loading.gif" width=16 height=16>';
AjaxRequest.get(
{
'url':URL
,'onSuccess':function(req){
var strSel = req.responseText
document.getElementById('divEstFinSmigol').innerHTML = strSel;
}
,'onError':function(req) {
document.getElementById('divEstFinSmigol').innerHTML = 'Error';
alert(req.responseText);
}
}
);
}
// implementacion de Ajax para guardar Estado Financiero
function enviar(form){
if (form.ano.value=='') {
alert('No ha digitado aņo');
} else if (false) {
form.bGrabar.disabled = true;
var status = AjaxRequest.submit(
form
,{
'onSuccess':function(req) {
var strSel = req.responseText;
if (strSel=='OK') {
document.getElementById("divFormEst").innerHTML = "<a href=\"javascript:mostrarFormEst()\">Agregar Estado Financiero</a>";
getEstFinSmigol();
} else {
document.getElementById("divMensaje").innerHTML = "<font color=\"#FF0000\">Error al Guardar</font>";
form.bGrabar.disabled = false;
}
}
}
);
return status;
}
}
var formEst = '<form name="formName" method="post" action="ajax_ModifEstFinSmigol" onSubmit="enviar(this); return false;">'+
'<input type="hidden" name="accion" value="I">'+
'<input type="hidden" name="ide" value="19792">'+
'<input type="hidden" name="efid" value="">'+
' <table width="100%" border="0" class="bgtable">'+
' <tr>'+
' <td class="txt" width="25"> </td>'+
' <td><table border="0">'+
' <tr>'+
' <td class="txt"> Año:</td>'+
' <td><input name="ano" type="text" class="fields" size="10" maxlength="4"></td>'+
' <td width="25"> </td>'+
' <td class="txt">Anexó Notas:</td>'+
' <td><input name="notas" type="checkbox" value="S"></td>'+
' <td nowrap class="txt">Certificados:</td>'+
' <td><input name="certificados" type="checkbox" value="S"></td>'+
' </tr>'+
' </table></td>'+
' </tr>'+
' <tr>'+
' <td class="txt"> </td>'+
' <td><table border="0">'+
' <tr>'+
' <td class="txt"> Balance:</td>'+
' <td><input name="tipo1" type="checkbox" value="S"></td>'+
' <td width="25"> </td>'+
' <td nowrap class="txt">Estado Resultados:</td>'+
' <td><input name="tipo2" type="checkbox" value="S"></td>'+
' <td width="25"> </td>'+
' <td nowrap class="txt">EC Situación Financ.:</td>'+
' <td><input name="tipo3" type="checkbox" value="S"></td>'+
' <td width="25"> </td>'+
' <td nowrap class="txt">EC Patrimonio:</td>'+
' <td><input name="tipo4" type="checkbox" value="S"></td>'+
' <td width="25"> </td>'+
' <td nowrap class="txt">Flujo Efectivo:</td>'+
' <td><input name="tipo5" type="checkbox" value="S"></td>'+
' </tr>'+
' </table></td>'+
' </tr>'+
' <tr>'+
' <td align="left"> </td>'+
' <td><table border="0">'+
' <tr>'+
' <td nowrap class="txt">Firma Rep. Legal:</td>'+
' <td><input name="firmaRepLegal" type="checkbox" value="S"></td>'+
' <td width="25"> </td>'+
' <td nowrap class="txt">Firma Contador:</td>'+
' <td><input name="firmaContador" type="checkbox" value="S"></td>'+
' <td width="25"> </td>'+
' <td nowrap class="txt">Firma Revisor Fiscal :</td>'+
' <td><input name="firmaRevisorFiscal" type="checkbox" value="S"></td>'+
' </tr>'+
' </table></td>'+
' </tr>'+
' <tr>'+
' <td> </td>'+
' <td align="center"><button type="submit" name="bGrabar" class="boton">Guardar</button></td>'+
' </tr>'+
' <tr>'+
' <td align="left"></td>'+
' <td><div id="divMensaje"></div></td>'+
' </tr>'+
' </table>'+
'</form>';
function mostrarFormEst() {
document.getElementById('divFormEst').innerHTML = formEst;
}
function mostrarFormEstModif(efid, ano, notas, certificados, tipo1, tipo2, tipo3, tipo4, tipo5, firmaRepLegal, firmaContador, firmaRevisorFiscal) {
document.getElementById('divFormEst').innerHTML = formEst;
var form = document.formName;
form.accion.value = "M";
form.ano.value = ano;
form.ano.readonly = true;
form.efid.value = efid;
if (notas=='S') form.notas.checked = true;
if (certificados=='S') form.certificados.checked = true;
if (tipo1=='S') form.tipo1.checked = true;
if (tipo2=='S') form.tipo2.checked = true;
if (tipo3=='S') form.tipo3.checked = true;
if (tipo4=='S') form.tipo4.checked = true;
if (tipo5=='S') form.tipo5.checked = true;
if (firmaRepLegal=='S') form.firmaRepLegal.checked = true;
if (firmaContador=='S') form.firmaContador.checked = true;
if (firmaRevisorFiscal=='S') form.firmaRevisorFiscal.checked = true;
}
</script>
</head>
<body onLoad="getEstFinSmigol()">
<p class="subtitles"></p>
<table border="0" cellpadding="0" cellspacing="2" class="bgtableRed">
<tr class="bg_titles_noimage">
<td colspan="3" class="titles">SOLICITUD NO. <?php echo "$id"; ?></td>
</tr>
<tr>
<td class="txtGrande" width="20%" align="right"><strong>Radicado de Entrada:</strong></td>
<td> </td>
<td class="txtGrande"><?php echo "$radicado_entrada"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Fecha de Entrada</strong></td>
<td> </td>
<td class="txtGrande" width="78%"><?php echo "$fecha_entrada"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Solicitante:</strong></td>
<td> </td>
<td class="txtGrande" width="78%"><?php echo "$solicitante"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Cargo:</strong></td>
<td> </td>
<td class="txtGrande" width="78%"><?php echo "$cargo"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Entidad:</strong></td>
<td> </td>
<td class="txtGrande" width="78%"><?php echo "$entidad"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Objeto:</strong></td>
<td> </td>
<td class="txtGrande"><?php echo "$objeto"; ?></td>
</tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Abogado:</strong></td>
<td> </td>
<td class="txtGrande"><?php echo "$abogado"; ?></td>
</tr>
<tr class="bg_titles_noimage">
<td colspan="3" class="titles">
<a href='<?php echo "../../conceptos/$year1/$no.pdf"; ?>' class="bgtableRed"> CONCEPTO JURIDICO: NO. <?php echo "$no"; ?> DE <?php echo "$year1"; ?> </a></td>
</tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Radicado de Salida:</strong></td>
<td> </td>
<td class="txtGrande"><?php echo "$radicado_salida"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Fecha de Salida:</strong></td>
<td> </td>
<td class="txtGrande"><?php echo "$fecha_salida"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
<tr valign="top">
<td class="txtGrande" align="right"><strong>Observaciones:</strong></td>
<td> </td>
<td class="txtGrande"><?php echo "$observaciones"; ?></td>
</tr>
<tr><td colspan="3" bgcolor="#D0D0D0" height="1"></td></tr>
</table>
</body>
</html>
|