<select>ALL</SELECT>
Fermé
Simon Doré
-
30 mars 2009 à 05:34
NookZ Messages postés 2138 Date d'inscription jeudi 29 janvier 2009 Statut Membre Dernière intervention 7 mars 2013 - 2 avril 2009 à 11:07
NookZ Messages postés 2138 Date d'inscription jeudi 29 janvier 2009 Statut Membre Dernière intervention 7 mars 2013 - 2 avril 2009 à 11:07
A voir également:
- <select>ALL</SELECT>
- Winget upgrade --all - Guide
- Please select boot device ✓ - Forum Windows
- Reboot and select proper boot device ✓ - Forum PC portable
- Reboot and select proper boot device or insert boot media in selected boot device and press a key ✓ - Forum Windows 10
- Problème reboot and select proper boot device + clavier - Forum PC fixe
3 réponses
NookZ
Messages postés
2138
Date d'inscription
jeudi 29 janvier 2009
Statut
Membre
Dernière intervention
7 mars 2013
514
30 mars 2009 à 09:24
30 mars 2009 à 09:24
eh bien c'est plutôt à ajouter dans la partie où vous envoyer l'email qu'autre chose. Pouvez-vous nous montrer le code d'envoi de mail selon l'élément sélectionné?
?php
//Fichier necessaire
include("sources/config.php");
// Verifie si on peut se connecter a la base sql
$connect=mysql_connect($host,$user,$pass) or die ("Impossible de se connecter");
mysql_select_db($base, $connect) or die ("Impossible de selectionner la base de donnees");
//Verifie si on s'est connecte a l'espace membre
$connom=$HTTP_COOKIE_VARS["espace_login"];
$conpass=$HTTP_COOKIE_VARS["espace_pass"];
$result=mysql_query ("SELECT * FROM photographes WHERE Nick='$connom' and MotdePasse='$conpass'") or die ("Requete impossible");
$autoconnect = mysql_num_rows($result);
if ($autoconnect==0) {
echo("<script language=\"javascript\">location=\"erreur.php\";</script>");}
?>
<script type="text/javascript" language="javascript1.1">
function ajsmiley(smiley){
var messtext = document.envoyermess.messtext.value;
avecsmiley = messtext+smiley;
document.envoyermess.messtext.value=avecsmiley;
}
</script>
<form method="post" action="validmess.php" name="envoyermess">
<table width="532" border="0" align="center" bgcolor="<? echo $colp;?>" height="137">
<tr>
<td width="526" height="133">
<table width="100%" border="0">
<tr bgcolor="<? echo $cols;?>">
<td>
<div align="center"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b><font color="#FFFFFF">Messagerie
- Envoyer un message</font> </b></font></div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="18%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Destinataire
:</b></font></td>
<td width="82%">
<?php
if ($_COOKIE['tagquebec_admin'] == 0) {
?>
<select name="messdest">
<?php
$result = mysql_query("select * from photographes where 1=1");
while ($row = mysql_fetch_row($result)) {
echo "<option value=\"%\">All</option> ";
echo "<option value=\"".$row[9]."\" ";
echo "<option value=\"".$row[9]."\" ";
echo $myrow[messdest] == $row[9] ? "selected" : "";
echo ">".$row[9]."</option>";
}
?>
</select>
<?php
}
else
{
?>
<select name="messdest">
<?php
$result = mysql_query("select * from photographes where 1=1");
while ($row = mysql_fetch_row($result)) {
echo "<option value=\"".$row[9]."\" ";
echo $myrow[messdest] == $row[9] ? "selected" : "";
echo ">".$row[9]."</option>";
}
?>
</select>
<?php
}
?>
</td>
</tr>
<tr>
<td width="18%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Le sujet
:</b></font></td>
<td width="82%">
<input type="text" name="messtitre" size="50" maxlength="50" style="width: 425px;">
</tr>
<tr>
<td width="18%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Le message
:</b></font></td>
<td width="82%">
<div align="left">
<textarea name="messtext" cols="50" rows="5" style="width: 425px; height: 200px; font-weight: bold;"></textarea>
<font face="<? echo $font; ?>" size="<? echo $size; ?>"></font></div>
</td>
</tr>
</table>
<p>
<?php
echo ("<center><a onclick=\"ajsmiley(' 8| ');\"><img style=\"cursor:hand;\" src=\"images/smileys/1.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :~( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/2.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' !?:) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/3.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/4.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :(( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/5.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' 8( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/7.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' 8) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/9.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :)) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/10.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/11.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :P ');\"><img style=\"cursor:hand;\" src=\"images/smileys/12.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' %) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/13.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' !:) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/14.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' ;) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/15.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' zzz:) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/16.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' ;| ');\"><img style=\"cursor:hand;\" src=\"images/smileys/17.gif\" border=0></a></center>");
?>
</p>
<table width="100%" border="0">
<tr>
<td height="23">
<div align="right"><input type="submit" name="Submit" value="Envoyez"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<?php
mysql_free_result($result);
mysql_close($connect);
?>
//Fichier necessaire
include("sources/config.php");
// Verifie si on peut se connecter a la base sql
$connect=mysql_connect($host,$user,$pass) or die ("Impossible de se connecter");
mysql_select_db($base, $connect) or die ("Impossible de selectionner la base de donnees");
//Verifie si on s'est connecte a l'espace membre
$connom=$HTTP_COOKIE_VARS["espace_login"];
$conpass=$HTTP_COOKIE_VARS["espace_pass"];
$result=mysql_query ("SELECT * FROM photographes WHERE Nick='$connom' and MotdePasse='$conpass'") or die ("Requete impossible");
$autoconnect = mysql_num_rows($result);
if ($autoconnect==0) {
echo("<script language=\"javascript\">location=\"erreur.php\";</script>");}
?>
<script type="text/javascript" language="javascript1.1">
function ajsmiley(smiley){
var messtext = document.envoyermess.messtext.value;
avecsmiley = messtext+smiley;
document.envoyermess.messtext.value=avecsmiley;
}
</script>
<form method="post" action="validmess.php" name="envoyermess">
<table width="532" border="0" align="center" bgcolor="<? echo $colp;?>" height="137">
<tr>
<td width="526" height="133">
<table width="100%" border="0">
<tr bgcolor="<? echo $cols;?>">
<td>
<div align="center"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b><font color="#FFFFFF">Messagerie
- Envoyer un message</font> </b></font></div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="18%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Destinataire
:</b></font></td>
<td width="82%">
<?php
if ($_COOKIE['tagquebec_admin'] == 0) {
?>
<select name="messdest">
<?php
$result = mysql_query("select * from photographes where 1=1");
while ($row = mysql_fetch_row($result)) {
echo "<option value=\"%\">All</option> ";
echo "<option value=\"".$row[9]."\" ";
echo "<option value=\"".$row[9]."\" ";
echo $myrow[messdest] == $row[9] ? "selected" : "";
echo ">".$row[9]."</option>";
}
?>
</select>
<?php
}
else
{
?>
<select name="messdest">
<?php
$result = mysql_query("select * from photographes where 1=1");
while ($row = mysql_fetch_row($result)) {
echo "<option value=\"".$row[9]."\" ";
echo $myrow[messdest] == $row[9] ? "selected" : "";
echo ">".$row[9]."</option>";
}
?>
</select>
<?php
}
?>
</td>
</tr>
<tr>
<td width="18%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Le sujet
:</b></font></td>
<td width="82%">
<input type="text" name="messtitre" size="50" maxlength="50" style="width: 425px;">
</tr>
<tr>
<td width="18%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Le message
:</b></font></td>
<td width="82%">
<div align="left">
<textarea name="messtext" cols="50" rows="5" style="width: 425px; height: 200px; font-weight: bold;"></textarea>
<font face="<? echo $font; ?>" size="<? echo $size; ?>"></font></div>
</td>
</tr>
</table>
<p>
<?php
echo ("<center><a onclick=\"ajsmiley(' 8| ');\"><img style=\"cursor:hand;\" src=\"images/smileys/1.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :~( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/2.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' !?:) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/3.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/4.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :(( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/5.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' 8( ');\"><img style=\"cursor:hand;\" src=\"images/smileys/7.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' 8) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/9.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :)) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/10.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/11.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' :P ');\"><img style=\"cursor:hand;\" src=\"images/smileys/12.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' %) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/13.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' !:) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/14.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' ;) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/15.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' zzz:) ');\"><img style=\"cursor:hand;\" src=\"images/smileys/16.gif\" border=0></a>");
echo ("<a onclick=\"ajsmiley(' ;| ');\"><img style=\"cursor:hand;\" src=\"images/smileys/17.gif\" border=0></a></center>");
?>
</p>
<table width="100%" border="0">
<tr>
<td height="23">
<div align="right"><input type="submit" name="Submit" value="Envoyez"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<?php
mysql_free_result($result);
mysql_close($connect);
?>
NookZ
Messages postés
2138
Date d'inscription
jeudi 29 janvier 2009
Statut
Membre
Dernière intervention
7 mars 2013
514
2 avril 2009 à 11:07
2 avril 2009 à 11:07
euh ce serait plutôt validmess.php qui m'intéresserait, merci :)