Formation par Olivier Duffez

Formation au référencement par Olivier Duffez, créateur de WebRankInfo !
Une formule efficace alliant théorie et pratique, avec une haute disponibilité des intervenants
Cette formule a déjà convaincu plusieurs centaines d'entreprises, pourquoi pas vous ?
Réservez vite votre place en ligne (convention possible pour imputer sur le budget formation)

Formation référencement Marseille

target="_blank" dans un lien en php ????

Poster un nouveau sujet Imprimer cette discussion    Forum -> Développement d'un site Web   Les dernières discussions de ce forum sont disponibles au format RSS
Voir le sujet précédent :: Voir le sujet suivant  
Auteur Message
 
quicherche
Nouveau WRInaute

Inscrit le: 04 Jan 2005
Messages: 14
Localisation: tahiti

URL permanente de ce messagePosté le : Mer Avr 26, 2006 0:46    Sujet du message: target="_blank" dans un lien en php ????

bonjour,
voici la ligne de code :
Code:
echo " <a href=\"$url_page?month=$month1&amp;year=$year\" title=\"Mois suivant\">&gt;&gt;</a></b>\n";


je souhaite y inclure un target="_blank" pour une ouverture dans une autre page...

j'ai essayer de le placer à plusieur endroit mais j'ai une réponse en erreur !
qui pourait m'aider ?
merci
tahiti


Dernière édition par quicherche le Mer Avr 26, 2006 0:48; édité 1 fois
 
quicherche Visiter le site web du posteur
mumbly
WRInaute discret
WRInaute discret

Inscrit le: 23 Nov 2005
Messages: 70

URL permanente de ce messagePosté le : Mer Avr 26, 2006 0:47    Sujet du message: Re: target="_blank" dans un lien en php ????

Code:
echo "<a href=\"/$path_agenda/$url_page?month=12&amp;year=$year2\" target=\"_blank\" title=\"Mois pr&eacute;c&eacute;dent\">&lt;&lt;</a>  ";
 
quicherche Visiter le site web du posteur
quicherche
Nouveau WRInaute

Inscrit le: 04 Jan 2005
Messages: 14
Localisation: tahiti

URL permanente de ce messagePosté le : Mer Avr 26, 2006 0:54    Sujet du message: target="_blank" dans un lien en php ????

merci pour ton aide mais...
pas d'ouvrture encore dan sune autre page...
mais bon plus de message d'erreur !
et si je placais au debut ?
merci
 
quicherche Visiter le site web du posteur
quicherche
Nouveau WRInaute

Inscrit le: 04 Jan 2005
Messages: 14
Localisation: tahiti

URL permanente de ce messagePosté le : Mer Avr 26, 2006 1:03    Sujet du message: target="_blank" dans un lien en php ????

avec ton aide j'ai réussi à faire ouvrir dans une autre page pour "vant" et "precedent" mais pas pour les dates du celandriers...

voici le code complet :
Code:
<?php
//INITIALISATION DES VARIABLES
$i="0";
$next="0";

//TIMESTAMP DU PREMIER JOUR DU MOIS
$first = mktime(0, 0, 0, "$month", 1, "$year");
//CALCUL DU NOMBRE DE JOURS DU MOIS
$nombre = date("t", "$first");
//RECHERCHE DU NOM DU PREMIER JOUR DU MOIS
$debut = date("w", "$first");
//CALCUL DU NOMBRE DE LIGNES DU TABLEAU
if ($debut == "1" AND $nombre == "28")
{
$i_lignes = "4";
}
elseif ($debut == "0" AND $nombre >= "30")
{
$i_lignes = "6";
}
elseif ($debut == "6" AND $nombre == "31")
{
$i_lignes = "6";
}
else
{
$i_lignes = "5";
}
//DEBUT DU TABLEAU
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"5\" class=\"cadre\">";
echo "<tr><td>";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">";
echo "<tr><td colspan=\"7\"><h2>Calendrier de Polynésie</h2></td></tr>";
echo "<tr><td align=\"center\"><b>Lu</b></td>\n";
echo "<td align=\"center\"><b>Ma</b></td>\n";
echo "<td align=\"center\"><b>Me</b></td>\n";
echo "<td align=\"center\"><b>Je</b></td>\n";
echo "<td align=\"center\"><b>Ve</b></td>\n";
echo "<td align=\"center\"><b>Sa</b></td>\n";
echo "<td align=\"center\"><b>Di</b></td></tr>\n";
//PREMIERE LIGNE DU TABLEAU
echo "<tr>";
while ($i < "6")
{
$i++;
if ($debut == $i)
{
$next="01";
include("request.php");
}
if ($debut != $i)
{
if ($next)
{
$next=$next+1;
if ($next < 10) $next = "0$next";
include("request.php");
}
if (!$next)
{
echo "<td align=\"center\">&nbsp;</td>\n";
}
}
}
if ($debut == "0")
{
$next="01";
include("request.php");
}
else
{
$next=$next+1;
if ($next < 10) $next = "0$next";
include("request.php");
}
echo "</tr>";
//DEUXIEME LIGNE DU TABLEAU
echo "<tr>";
$i="0";
while ($i <= "6")
{
$i++;
$next=$next+1;
if ($next < 10) $next = "0$next";
include("request.php");
}
echo "</tr>";
//TROISIEME LIGNE DU TABLEAU
echo "<tr>";
$i="0";
while ($i <= "6")
{
$i++;
$next=$next+1;
if ($next < 10) $next = "0$next";
include("request.php");
}
echo "</tr>";
//QUATRIEME LIGNE DU TABLEAU
echo "<tr>";
$i="0";
while ($i <= "6")
{
$i++;
$next=$next+1;
if ($next < 10) $next = "0$next";
if ($next <= $nombre)
{
include("request.php");
}
else
{
echo "<td align=\"center\">&nbsp;</td>\n";
}
}
echo "</tr>";
//CINQUIEME LIGNE DU TABLEAU
if ($i_lignes > "4")
{
echo "<tr>";
$i="0";
while ($i <= "6")
{
$i++;
$next=$next+1;
if ($next < 10) $next = "0$next";
if ($next <= $nombre)
{
include("request.php");
}
else
{
echo "<td align=\"center\">&nbsp;</td>\n";
}
}
echo "</tr>";
}
//SIXIEME LIGNE DU TABLEAU
if ($i_lignes > "5")
{
echo "<tr>";
$i="0";
while ($i <= "6")
{
$i++;
$next=$next+1;
if ($next < 10) $next = "0$next";
if ($next <= $nombre)
{
include("request.php");
}
else
{
echo "<td align=\"center\">&nbsp;</td>\n";
}
}
echo "</tr>";
}
$month1=$month+1;
$month2=$month-1;
$year1=$year+1;
$year2=$year-1;
echo "<tr><td colspan=\"7\" align=\"center\"><br><b>";
if ($month == "1")
{
if ($path_agenda)
{
echo "<a target=\"_blank\" href=\"/$path_agenda/$url_page?month=12&amp;year=$year2\" title=\"Mois pr&eacute;c&eacute;dent\">&lt;&lt;</a>  ";
}
else
{
echo "<a target=\"_blank\" href=\"$url_page?month=12&amp;year=$year2\" title=\"Mois pr&eacute;c&eacute;dent\">&lt;&lt;</a> ";

}
}
else
{
if ($path_agenda)
{
echo "<a target=\"_blank\" href=\"/$path_agenda/$url_page?month=$month2&amp;year=$year\" title=\"Mois pr&eacute;c&eacute;dent\">&lt;&lt;</a> ";
}
else
{
echo "<a target=\"_blank\"href=\"$url_page?month=$month2&amp;year=$year\" title=\"Mois pr&eacute;c&eacute;dent\">&lt;&lt;</a> ";
}
}
if (!$day)
{
echo "$nom_mois $year";
}
if ($day)
{
if ($path_agenda)
{
echo "<a target=\"_blank\" href=\"/$path_agenda/$url_page?month=$month&amp;year=$year\" title=\"Tous les &eacute;v&eacute;nements du mois\">$nom_mois $year</a>";
}
else
{
echo "<a target=\"_blank\" href=\"$url_page?month=$month&amp;year=$year\" title=\"Tous les &eacute;v&eacute;nements du mois\">$nom_mois $year</a>";
}
}
if ($month == "12")
{
if ($path_agenda)
{
echo " <a target=\"_blank\" href=\"/$path_agenda/$url_page?month=1&amp;year=$year1\" title=\"Mois suivant\">&gt;&gt;</a></b>\n";
}
else
{
echo " <a target=\"_blank\" href=\"$url_page?month=1&amp;year=$year1\" title=\"Mois suivant\">&gt;&gt;</a></b>\n";
}
}
else
{
if ($path_agenda)
{
echo " <a target=\"_blank\" href=\"/$path_agenda/$url_page?month=$month1&amp;year=$year\" title=\"Mois suivant\">&gt;&gt;</a></b>\n";
}
else
{
echo " <a target=\"_blank\" href=\"$url_page?month=$month1&amp;year=$year\" title=\"Mois suivant\">&gt;&gt;</a></b>\n";
}
}
//BAS DU TABLEAU
echo "</td></tr>";
echo "</table></td>";
echo "</tr>";
echo "</table>";
?>
 
quicherche Visiter le site web du posteur
quicherche
Nouveau WRInaute

Inscrit le: 04 Jan 2005
Messages: 14
Localisation: tahiti

URL permanente de ce messagePosté le : Mer Avr 26, 2006 1:09    Sujet du message: target="_blank" dans un lien en php ????

ok j'ai trouve !
c'est dans fichier request ...

merci pour ton aide.
c'est bon d'avancer !
a+
tahiti
 
quicherche Visiter le site web du posteur
 
Montrer les messages depuis:   
Revenir en haut    Forum -> Développement d'un site Web Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1 - 
Connexion
Nom d'utilisateur:    Mot de passe:      Se connecter automatiquement à chaque visite    

Définitions :

CLIQUEZ ICI pour vous inscrire à WebRankInfo (forum, annuaire, outils...)

Connexion

© 2001-2005 phpBB Group, support français
Personnalisation : WebRankInfo ™


 ODP  Firefox  Alsacreations  annuaire webmaster Yagoort