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


quicherche
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 14
Inscription: 3 Jan 2005

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

Message le Mar Avr 25, 2006 23:46

bonjour,
voici la ligne de code :
Code: Tout sélectionner
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 Mar Avr 25, 2006 23:48, édité 1 fois.

mumbly
WRInaute discret
WRInaute discret
 
Messages: 70
Inscription: 23 Nov 2005

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

Message le Mar Avr 25, 2006 23:47

Code: Tout sélectionner
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
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 14
Inscription: 3 Jan 2005

Message le Mar Avr 25, 2006 23:54

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
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 14
Inscription: 3 Jan 2005

Message le Mer Avr 26, 2006 0:03

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: Tout sélectionner
<?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
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 14
Inscription: 3 Jan 2005

Message le Mer Avr 26, 2006 0:09

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

merci pour ton aide.
c'est bon d'avancer !
a+
tahiti


Si vous avez aimé cette discussion, partagez-la sur vos réseaux sociaux préférés :

Lectures recommandées sur ce thème :

Consultez la description détaillée des produits ou services de Google suivants : Google Agency Toolkit

  • Tester la validité d'un lien
    Cet outil vous permet de tester la validité d'un lien pour le référencement. Il vous indique la nature du lien (lien en dur, redirection bien gérée par les moteurs ou redirection mal gérée par les moteurs).
  • Calculer le ratio de liens profonds
    Cet outil vous permet de calculer le taux de liens profonds vers un site web. Un lien profond est un lien qui ne pointe pas vers la page d'accueil mais au contraire vers une page interne du site. Les sites dont l'essentiel du référencement vient de leurs inscriptions dans des annuaires ont un taux de liens profonds faible ; à l'inverse, les sites de référence ont souvent un taux de liens profonds plus important, signe que leur contenu a suscité de nombreux liens spontanés.
  • Transformer des textes non cliquables en liens
    Cet outil vous permet de trouver des pages citant votre site mais ne faisant pas (encore) de lien. Il suffira parfois d'un simple mail pour transformer cette simple citation en lien (backlink).


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités