|
Directory : /home/zjabogados/public_html/otrosscripts/ |
<?php require_once('../../Connections/zyz.php'); ?>
<?php
session_start();
$motorBD = $_SESSION['motorBD'];
$idusuario = $_SESSION['idusuario'];
require_once("../Libs/functionsjava.htm");
require_once("../Libs/functionsextra.php");
if (isset($_POST['paso'])) {
$paso = $_POST['paso'];
}
else {
$paso = 0;
}
if (isset($_POST['id_caso_recupero'])) {
$id_caso_recupero = $_POST['id_caso_recupero'];
}
else {
$id_caso_recupero = $_GET['id_caso_recupero'];
}
if ($paso == 1) {
$nro_de_factura = DarFormato($_POST['nro_de_factura'], 'c');
$sql = "UPDATE tb_caso_recupero SET nro_de_factura= $nro_de_factura WHERE id_caso_recupero = $id_caso_recupero";
//echo $sql;
mysqli_query($zyz, $sql) or die(mysqli_error());
?>
<script language="JavaScript">
opener.parent.rightFrame.document.form_actualizar.id_caso_recupero.value = '<?php echo $id_caso_recupero ?>';
opener.parent.rightFrame.document.form_actualizar.campo.value = 'otra';
opener.parent.rightFrame.document.form_actualizar.acc.value = 'R';
opener.parent.rightFrame.document.form_actualizar.submit();
window.close();
</script>
<?php
}
$colname_rs_caso_recupero = "-1";
if (isset($id_caso_recupero)) {
$colname_rs_caso_recupero = (get_magic_quotes_gpc()) ? $id_caso_recupero : addslashes($id_caso_recupero);
}
mysqli_select_db($zyz, $database_zyz);
$query_rs_caso_recupero = sprintf("SELECT * FROM tb_caso_recupero WHERE id_caso_recupero = %s", $colname_rs_caso_recupero);
$rs_caso_recupero = mysqli_query($zyz, $query_rs_caso_recupero) or die(mysqli_error());
$row_rs_caso_recupero = mysqli_fetch_assoc($rs_caso_recupero);
$totalRows_rs_caso_recupero = mysqli_num_rows($rs_caso_recupero);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Contenido.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Documento sin título</title>
<!-- InstanceEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.Estilo1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<!- --------------- INICIO CALENDARIO -------------- -->
<script src="../Libs/jscalendar/src/js/jscal2.js"></script>
<script src="../Libs/jscalendar/src/js/lang/es.js"></script>
<link rel="stylesheet" type="text/css" href="../Libs/jscalendar/src/css/jscal2.css" />
<link rel="stylesheet" type="text/css" href="../Libs/jscalendar/src/css/border-radius.css" />
<link rel="stylesheet" type="text/css" href="../Libs/jscalendar/src/css/steel/steel.css" />
<!- --------------- FIN CALENDARIO -------------- -->
<!-- InstanceEndEditable -->
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td><!-- InstanceBeginEditable name="Contenido" -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28"><img src="../img/tabla_tit_izq.jpg" width="28" height="40"></td>
<td valign="bottom" background="../img/tabla_tit_med.jpg"><table border="0" cellspacing="8" cellpadding="1">
<tr>
<td><span class="Estilo1">DATOS DE FACTURA</span></td>
</tr>
</table></td>
<td width="28"><img src="../img/tabla_tit_der.jpg" width="28" height="40"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13" background="../img/tabla_cont_izq.jpg"> </td>
<td bgcolor="#9DC5E9"><table width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td>
<form method="post" name="form1" onsubmit="return Chequear(this);">
<table align="center">
<tr valign="baseline">
<td nowrap align="right"><p>Nro de Factura:</p></td>
<td><input type="text" name="nro_de_factura" value="<?php echo $row_rs_caso_recupero['nro_de_factura']; ?>" class="SI varchar" id="nro_de_factura"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><input name="id_caso_recupero" type="hidden" id="id_caso_recupero" value="<?php echo $id_caso_recupero ?>" size="32">
<input name="paso" type="hidden" id="paso" value="<?php echo $paso+1 ?>" size="32"></td>
<td><input name="submit" type="submit" value="Registrar"></td>
</tr>
<tr valign="baseline">
<td colspan="2" align="right" nowrap><div align="right">* = CAMPO OBLIGATORIO </div></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
<td width="13" background="../img/tabla_cont_der.jpg"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28"><img src="../img/tabla_pie_izq2.jpg" width="28" height="19"></td>
<td background="../img/tabla_pie_med2.jpg"> </td>
<td width="28"><img src="../img/tabla_pie_der2.jpg" width="28" height="19"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>