File: /home/asjudine/www/acobranzas/credito_rotativo_modifica_actuacion_cobranzas.php
<?php
/*
global $dbi;
require_once("../Conectarse.php");
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING']))
{
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form"))
{
// $contenido = strtoupper($contenido);
// $sql2 = "select * from actuaciones where id = $id";
//$control2 = mysql_query($sql2, $dbi);
$msql = mysql_query("UPDATE actuaciones_cobranzas_credito_rotativo set actuacion = '" . $_POST["contenido"] . "', estado = '1' WHERE cedula = '" . $_GET["cedula"] . "' and id = '" . $_GET["id"] . "' ");
echo "<script>alert('Los datos fueron Modificados');</script>";
}
?>
<html>
<head>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
var mydate=new Date()
var year=mydate.getYear()
if(year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym < 10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}
</script>
<style type="text/css">
<!--
.Estilo1 {
color: #990000;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo4 {color: #0033CC; font-weight: bold; }
-->
</style>
</head>
<body>
<FORM action="<?php echo $editFormAction; ?>" method="post" name="form">
<table width="495" border="1" align="center" cellpadding="2" cellspacing="2">
<tr>
<td width="800" bgcolor="#00CCFF"><div align="center"><span class="Estilo1"> MODIFICAR ACTUACIONES COBRANZAS</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#00CCFF"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<?php
//$sql = "select * from actuaciones where id = $id";
// $control = mysql_query($sql, $dbi);
$control = mysql_query('SELECT * FROM actuaciones_cobranzas_credito_rotativo WHERE cedula = "' . $_GET["cedula"] . '" and id = "' . $_GET["id"] . '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
$act = mysql_result($control,0,"actuacion");
$fec = mysql_result($control,0,"fecha");
echo "<tr><td><textarea name='contenido' cols='50' rows='4' title='MODIFICA ACTUACION'>\n";
echo htmlspecialchars($act)."\n";
echo "</textarea></td></tr>";
echo "<input name='id' type='hidden' value=$id size='11' maxlength='11'>";
?>
<td bgcolor="#00CCFF"><div align="center">
<input name="submit" type="submit" value="MODIFICAR ACTUACION" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid">
<input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid" onClick="javascript:window.close()" value="Cerrar Ventana">
</div></td>
</tr>
</TABLE>
<input type="hidden" name="MM_insert" value="form">
</FORM>
</body>
</html>
*/
?>
<html>
<body>
<h1>No se puede modificar la actuacion</h1>
</body>
</html>