Skip to content

Instantly share code, notes, and snippets.

@ChrisGehm
Created January 23, 2014 18:55
Show Gist options
  • Save ChrisGehm/8584594 to your computer and use it in GitHub Desktop.
Save ChrisGehm/8584594 to your computer and use it in GitHub Desktop.
<?php
include("../includes/connect.php");
if(!isset($_GET['id']))
{
exit("no se argumento correctamente");
}
$id = $_GET['id'];
$query = "SELECT Id_mov_doc, date_format(fecha_mov_doc,'%d/%m/%Y') As Fecha,Denominacion as Cliente, Para,
Concepto,concat(Nombre,' ',Apellido) as Responsable,Receptor, movimiento_doc.observaciones,enviado_por, Numero_mov
FROM movimiento_doc
inner join usuarios on usuarios.id_usuario = movimiento_doc.id_usuario
inner join tipo_mov_doc on tipo_mov_doc.id_tmd = movimiento_doc.id_tmd
inner join clientes on id_cliente=IDCliente
WHERE id_mov_doc = $id and denom_mov_doc='Envío'
LIMIT 1";
// ejecuto la consulta
$envio = mysql_query($query);
// veo si existe
if($envio)
{
$f = mysql_fetch_array($envio);
}
else
{
exit("No se encontro el registro solicitado");
}
?>
<div class="editar2">
<table width="85%" class="b" id="b">
<form method="POST" action="generarrecibo.php" enctype="multipart/form-data">
<input type="hidden" name="id" value=<?php echo $id;?> />
<td >N&uacute;mero</td>
<td >Fecha</td>
<td >Cliente</td>
<td >Para</td>
<td >Concepto</td>
<td >Responsable</td>
<tr>
<td><input id="id" type="text" name="id" readonly value=<?php echo $f['Numero_mov']; ?> /></td>
<td><input id="fecha" type="text" name="fecha" readonly value=<?php echo $f['Fecha'];?> /></td>
<td><textarea name="cliente" readonly><?php echo $f['Cliente'];?></textarea></td>
<td><textarea class="text1" name="para" ><?php echo $f['Para'];?></textarea></td>
<td><textarea class="text1" name="concepto"><?php echo $f['Concepto'];?></textarea></td>
<td><textarea class="text1" name="responsable"><?php echo $f['Responsable'];?></textarea></td>
</tr>
<td><input class="boton1" type="submit" value="Generar" ></td>
</form>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment