1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
| <?
if (isset($_POST['Submit2']))
{
$message=ereg_replace("<[^>]*>", "", $message);
$message=htmlspecialchars($message);
$message=stripslashes($message);
$message=str_replace(chr(10)," <br> ",$message);
$message=str_replace(chr(13),"",$message);
mysql_query("INSERT INTO event (`id`, `sender`, `title`, `contents`, `type`, `user_id`, `credits`, `status`, `rdate`, `date`, `prop`) VALUES ('', '$auth', '$subject', '$message', 'picreview', '$pid', '$rating', '1','".strtotime(date("d M Y H:i:s"))."','$date','$prop')");
}
?>
<form name="form1" method="post" action="mem.php?mid=<? echo $mid ?>">
<br>
<table width="600" border="0" cellpadding="1" cellspacing="1" align="center">
<TR bgcolor="#D5DFEE" class='tr1'> <TD colspan="2" bgcolor="#FFFFFF"><strong><font size="2" face="Arial, Helvetica, sans-serif">Noter la photo >></font></strong></TD>
</TR>
<TR bgcolor="#000000" class='tr1'> <TD height="3" colspan="2"></TD>
</TR>
<TR bgcolor="#f0f0f0" class='tr1'> <TD>Note</TD>
<TD><select name="rating" id="rating">
<?
$date = date("d\-m\-Y");
$da = mysql_query("SELECT * FROM event WHERE sender='$auth' AND prop='$mid' AND credits='1' ORDER by rdate DESC LIMIT 0, 150");
$dad = mysql_fetch_array($da);
$date = date("d\-m\-Y");
if ($dad['date']==$date && $dad['credits']=="1")
{
echo "<option value=\"0\">Juste un message</option>";}
else
{
echo "<option value=\"1\">Voter !</option>
<option value=\"0\">Juste un message</option>";
}
?>
</select></TD>
</TR>
<?
$date = date("d-m-Y");
?>
<input type="hidden" name="date" id="date" VALUE="<?php echo $date; ?>" >
<?
echo "<TR bgcolor=\"#f0f0f0\" class='tr1'>";
echo " <td valign=\"top\" class=\"row_2\"> \n";
echo " <b>Smileys :</b><br> \n";
echo " <a href=\"#\" onclick=\"smiley(' [01] ');return false\"><img src=\"smileys/01.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [02] ');return false\"><img src=\"smileys/02.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [03] ');return false\"><img src=\"smileys/03.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [04] ');return false\"><img src=\"smileys/04.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a><br> \n";
echo " <a href=\"#\" onclick=\"smiley(' [05] ');return false\"><img src=\"smileys/05.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [06] ');return false\"><img src=\"smileys/06.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [07] ');return false\"><img src=\"smileys/07.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [08] ');return false\"><img src=\"smileys/08.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a><br> \n";
echo " <a href=\"#\" onclick=\"smiley(' [09] ');return false\"><img src=\"smileys/09.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [10] ');return false\"><img src=\"smileys/10.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [11] ');return false\"><img src=\"smileys/11.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [12] ');return false\"><img src=\"smileys/12.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a><br> \n";
echo " <a href=\"#\" onclick=\"smiley(' [13] ');return false\"><img src=\"smileys/13.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " <a href=\"#\" onclick=\"smiley(' [14] ');return false\"><img src=\"smileys/14.gif\" border=\"0\" alt=\"Ajouter ce smiley\"></a> \n";
echo " </td> \n";
echo " <td valign=\"top\" class=\"row_2\"> \n";
echo " Commentaire :</b><br> \n";
echo " <textarea name=\"message\" wrap=\"VIRTUAL\" cols=\"60\" rows=\"4\"></textarea>\n";
echo " </td> \n";
echo " </tr> \n";
?>
<tr bgcolor="#f0f0f0"> <td colspan="2"><div align="center">
<input name="prop" type="hidden" id="prop" value="<?php echo $mid; ?>">
<input type="reset" name="Reset" value="Effacer">
<input type="submit" name="Submit2" value="Envoyer">
</div></td>
</tr>
</table>
<br>
</form> |
Partager