Mercurial > defr > DualBlog
comparison index.php @ 8:c5bc194d7255
Code légerement plus lisible.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Oct 2007 16:04:50 +0200 |
parents | 2ea1b19e21f3 |
children | ff57b45eda37 |
comparison
equal
deleted
inserted
replaced
7:e4e880f786d4 | 8:c5bc194d7255 |
---|---|
48 $Titre_url = str_replace("à", "a", $Titre_url); | 48 $Titre_url = str_replace("à", "a", $Titre_url); |
49 $Titre_url = str_replace("ù", "u", $Titre_url); | 49 $Titre_url = str_replace("ù", "u", $Titre_url); |
50 $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); | 50 $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); |
51 if(!empty($row['Emot'])) { | 51 if(!empty($row['Emot'])) { |
52 $mood = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />"; | 52 $mood = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />"; |
53 $row['Emot'] = " " . $row['Emot']; | |
54 } | 53 } |
55 $nbTags = $Data->Query(" | 54 $nbTags = $Data->Query(" |
56 SELECT T.Tag | 55 SELECT T.Tag |
57 FROM Tags T, Lien_Tags_Posts L | 56 FROM Tags T, Lien_Tags_Posts L |
58 WHERE L.idMess={$row['num_mess']} AND L.idTag = T.idTag | 57 WHERE L.idMess={$row['num_mess']} AND L.idTag = T.idTag |
66 $tags .= " <a href='/blog/tags/{$tag['Tag']}'>{$tag['Tag']}</a> |"; | 65 $tags .= " <a href='/blog/tags/{$tag['Tag']}'>{$tag['Tag']}</a> |"; |
67 $tags = substr($tags, 0, -1) . ' ;</span><br />'; | 66 $tags = substr($tags, 0, -1) . ' ;</span><br />'; |
68 } | 67 } |
69 | 68 |
70 echo(" | 69 echo(" |
71 <div class='PostContent{$row['Emot']}'> | 70 <div class='PostContent {$row['Emot']}'> |
72 <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2> | 71 <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2> |
73 {$mood} | 72 {$mood} |
74 {$Mess} | 73 {$Mess} |
75 <p class='postInfos'> | 74 <p class='postInfos'> |
76 {$tags} | 75 {$tags} |