<?php
require("config.php");
$nickUsuarioL= $_SESSION['nick'];
$action= $_POST['enviar'];
$maili = $usumail = $_GET["usumail"];
$row['nick'] . $usumail ;
?>
<html><head>
<script languaje="Javascript">
<!--
function Smile(texto){
document.form.mensaje.value = document.form.mensaje.value + texto;
}
// -->
</script>
</head><body>
<table width="401" height="370" border="0" align="center">
<tr>
<td>
<form name="form1" method="post" action="privados.php">
<table width=415 height="70%" align=center cellpadding=3 cellspacing=1 bgcolor=#003300>
<tr>
<td width="55" height="8%" bgcolor=#005900><font size="2"><b><font face="Verdana">De:</font></b></font></td>
<td bgcolor=#498551 width="268"><input type="hidden" name="de" value="<? echo $nickUsuarioL; ?>"/ ><?php if ($_SESSION['nick']){
print(" <font face=Tahoma size=2><b>$nickUsuarioL</b>");
} else { echo " NO ESTAS LOGUEADO";
} ?></td>
</tr>
<tr>
<td width="55" height="9%" bgcolor=#005900><font face=Tahoma size=2><b>Para:</b></font></td>
<td bgcolor=#498551 width="268">
<div align="left">
<?php
$dest = $usuario = $_GET["usuario"]; ?>
<?php $row['nick'] . $usuario ;?>
<input type2= hidden name="para" value="<?php echo $dest ?>"/>
<?php $maili = $mail= $_GET["mail"]; ?>
<?php $row['mail'] . $mail ;?>
<input type3= hidden name="mail" value="<?php echo $maili ?>"/>
</div></td>
</tr>
<tr>
<td width="55" height="9%" bgcolor=#005900><font face=Tahoma size=2><b>Titulo:</b></font></td>
<td bgcolor=#498551 width="268">
<input type="text" name="asunto" value="nombre asunto"/></td>
</tr>
<tr bgcolor="#498551">
<td height="7%" colspan=2><font size=2 face=Tahoma>
<center>
<b>Mensaje:</b>
</center>
</font></td>
</tr>
<tr bgcolor="#498551">
<td height="57%" colspan=2>
<center>
<table width="83%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<textarea name="mensaje" cols="44" rows="7" value="escreva el mensaje">
</textarea>
</td>
</tr>
</table>
<table width="70%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><a href="javascript:Smile('[a][/a]')"><img src="ikon/bb1.gif" width="36" height="15" border="0"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[citar][/citar]')"><img src="ikon/bb2.gif" width="36" height="15" border="0"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('')"><img src="ikon/bb3.gif" width="36" height="15" border="0"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('')"><img src="ikon/bb4.gif" width="36" height="15" border="0"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('')"><img src="ikon/bb5.gif" width="36" height="15" border="0"></a></div>
</td>
</tr>
</table>
</center>
<table width="70%" border="0" cellspacing="3" cellpadding="2" align="center">
<tr>
<td>
<div align="center"><a href="javascript:Smile('[pensando]')"><img src="ikon/1.gif" width="15" height="20" border="0" alt="Pensando"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[sonriendo]')"><img src="ikon/2.gif" width="15" height="15" border="0" alt="Sonriendo"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[si]')"><img src="ikon/3.gif" width="15" height="15" border="0" alt="Arriba"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[no]')"><img src="ikon/4.gif" width="15" height="15" border="0" alt="Abajo"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[llorando]')"><img src="ikon/5.gif" width="25" height="15" border="0" alt="Llorando"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[afirmando]')"><img src="ikon/11.gif" width="15" height="15" border="0" alt="Afirmando"></a></div>
</td>
</tr>
<tr>
<td>
<div align="center"><a href="javascript:Smile('[censurado]')"><img src="ikon/6.gif" width="15" height="15" border="0" alt="Censura"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[ojotes]')"><img src="ikon/7.gif" width="15" height="15" border="0" alt="Ojotes"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[adios]')"><img src="ikon/8.gif" width="25" height="15" border="0" alt="Adios"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[policia]')"><img src="ikon/9.gif" width="19" height="20" border="0" alt="Policia"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[carcajeando]')"><img src="ikon/10.gif" width="16" height="19" border="0" alt="Carcajeando"></a></div>
</td>
<td>
<div align="center"><a href="javascript:Smile('[negando]')"><img src="ikon/12.gif" width="15" height="15" alt="Negando" border="0"></a></div>
</td>
</tr>
</table> </td>
</tr>
<tr bgcolor="#005900">
<td height="10%" colspan="2"><font face=Tahoma size=2><b><?php if ($_SESSION['nick']){
print(" <font face=Tahoma size=2><b><input type=\"submit\" value=\"Enviar\"</b>");
} else { echo " Tiene que estar logueado para enviar";
} ?>
<input type="reset" value="Borrar" name="reset" >
</b></font> </td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<div align="center"></div>
</body></html>