Ejemplo n.º 1
0
?>
"></script>
		
		<?php 
if (!isset($onlyCB)) {
    ?>
			<br />
			<h2>Top membres</h2>
			
			<?php 
    foreach ($topGils as $key => $user) {
        ?>
		
				<div class="lineUserTop">
					<?php 
        echo $key + 1 . '.  ' . profil_url($user['username'], $user['id'], $user['color']);
        ?>
 
					<span><?php 
        echo number_format($user['gils'], 0, ',', ' ');
        ?>
 gils</span>
				</div>
			<?php 
    }
    ?>
			
			<br />
		

			<?php 
Ejemplo n.º 2
0
    function loadLastPages()
    {
        $lastPagesViewed = $this->db->select('v.user,v.url,v.title,v.date,v.time,u.username,u.color')->join('users u', 'u.id = v.user')->order_by('v.id desc')->limit(100)->get('visites v')->result_array();
        echo '<table class="table">';
        foreach ($lastPagesViewed as $page) {
            echo '<tr>
					<td class="linkMP" style="padding-left:10px">
						<a href="' . $page['url'] . '">' . htmlspecialchars($page['title']) . '</a>
					</td>
					<td style="width:140px">
						' . profil_url($page['username'], $page['user'], $page['color']) . '
					</td>
					<td style="width:120px" class="dateMP">' . madate($page['date']) . '</td>
					<td style="width:40px">' . ($page['time'] == null ? '-' : $page['time'] . 's') . '</td>
				</tr>';
        }
        echo '</table>';
    }
Ejemplo n.º 3
0
        echo img('topic1.png');
    }
    ?>
				</td>
				<td class="linkMP">
					<a href="<?php 
    echo site_url('forum/' . $topic['id'] . '/' . url_title($topic['title']));
    ?>
"><?php 
    echo htmlspecialchars($topic['title']);
    ?>
</a>
				</td>
				<td>
					<?php 
    echo profil_url($topic['username'], $topic['user'], $topic['color']);
    ?>
				</td>
				<td><?php 
    echo $topic['nbPost'] - 1;
    ?>
</td>
				<td class="dateMP"><?php 
    echo madate($topic['lastDate']);
    ?>
</td>
			</tr>			
			<?php 
}
?>
		</table>
Ejemplo n.º 4
0
</div>
								<?php 
            }
            ?>
								
								v<?php 
            echo $history['editFromVersion'];
            ?>
 <span class="tiny">></span> v<?php 
            echo $history['version'];
            ?>
								
													
								<span class="tiny" style="float:right">
									<?php 
            echo profil_url($history['username'], $history['user'], $history['color']);
            ?>
									<?php 
            echo madate($history['editDate']);
            ?>
 
									<?php 
            echo colorNb($history['linesModified'], '(', ' ligne' . ($history['linesModified'] > 1 ? 's' : '') . ' | ');
            ?>
									<?php 
            echo colorNb($history['sizeModified'], '', ' octet' . ($history['sizeModified'] > 1 ? 's' : '') . ')');
            ?>
								</span>
								
							</div>
						<?php 
Ejemplo n.º 5
0
			<?php 
foreach ($search as $page) {
    ?>
			<tr>
				<td class="linkMP" style="padding-left:10px;">
					<a href="<?php 
    echo $page['referrer'];
    ?>
"><?php 
    echo $page['keywords'];
    ?>
</a>
				</td>
				<td style="width:140px">
					<?php 
    echo profil_url($page['username'], $page['user'], $page['color']);
    ?>
				</td>
				<td style="width:120px" class="dateMP"><?php 
    echo madate($page['date']);
    ?>
</td>
			</tr>			
			<?php 
}
?>
		</table>
	</div>

</div>
Ejemplo n.º 6
0
    echo '<br /><h1 id="nbComment">';
    if ($nbCommentaires == 0) {
        echo 'Aucun commentaire, soyez le premier !';
    } elseif ($nbCommentaires == 1) {
        echo 'Un seul commentaire';
    } else {
        echo $nbCommentaires . ' commentaires';
    }
    echo '</h1>';
}
echo '<br />';
echo $this->pagination->create_links();
foreach ($commentaires as $commentaire) {
    echo '<div idComm="' . $commentaire['id'] . '" class="commentaire">';
    echo '<div class="commAvatar">' . avatar_url($commentaire['user']) . '</div>';
    echo '<div class="commPseudo">' . profil_url($commentaire['username'], $commentaire['user'], $commentaire['color']);
    echo ' <span class="commTime">' . madate($commentaire['date']) . '</span>';
    echo '<div class="commActions">';
    if ($this->session->userdata('group') >= 2) {
        echo '<a class="commSuppr" href="' . site_url('commSuppr/' . $commentaire['id']) . '">' . img('mini_delete.png') . ' Supprimer</a>';
    }
    if ($commentaire['user'] == $this->session->userdata('id')) {
        echo '<a class="commEdit" href="' . site_url('editComm/' . $commentaire['id']) . '">' . img('editComm.png') . ' Edition</a>';
    }
    echo '</div>';
    echo '</div>';
    echo '<p>' . montexte($commentaire['message']) . '</p>';
    echo '</div>';
}
echo $this->pagination->create_links();
echo '<script>';
Ejemplo n.º 7
0
				<div class="homeComment">
					<a class="title" href="<?php 
    echo $comment['url'];
    ?>
"><?php 
    echo $comment['categorie'];
    ?>
 <span>></span> <?php 
    echo htmlspecialchars($comment['title']);
    ?>
</a>
					<?php 
    echo avatar_url($comment['user'], true);
    ?>
					<span><?php 
    echo profil_url($comment['username'], $comment['user'], $comment['color']);
    ?>
 <?php 
    echo madate($comment['date']);
    ?>
</span>
					<p><?php 
    echo character_limiter(montextepreview($comment['message']), 110);
    ?>
</p>
					<div style="clear:both"></div>
				</div>
			<?php 
}
?>
		</div>
Ejemplo n.º 8
0
    ?>
			et éditée <strong><?php 
    echo madate($infos['editDate']);
    ?>
</strong>
		<?php 
}
?>
<br />

		Contributeurs : 
		<?php 
foreach ($contributs as $user) {
    ?>
			<?php 
    echo profil_url($user['username'], $user['user'], $user['color']);
    ?>
 
		<?php 
}
?>

	</div>
	
	<?php 
if (isset($sommaire)) {
    ?>
	<ul>
		<?php 
    foreach ($sommaire as $item) {
        ?>
Ejemplo n.º 9
0
		<script type="text/javascript"
		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
	</div>
	
</div>

<div class="contentCenter">
	<h1><?php 
echo htmlspecialchars($title);
?>
</h1>
	
	<div class="infosContent">
		Evènement ajouté par <?php 
echo profil_url($infos['username'], $infos['user'], $infos['color']);
?>
	</div>
	
	<?php 
if (isset($commentaires)) {
    echo $commentaires;
    ?>
	<script src="<?php 
    echo js_url('comments');
    ?>
"></script>
	<?php 
}
?>
</div>
Ejemplo n.º 10
0
 public function getConnected()
 {
     $connected = $this->users->getConnected();
     $nbConnected = count($connected);
     echo '<a id="linkMembersH2" class="more" href="' . site_url('listeDesMembres/1/0') . '" title="Voir la liste des membres">' . $nbConnected . ' connecté' . ($nbConnected > 1 ? 's' : '') . '</a>';
     echo '<div class="listConnected">';
     foreach ($connected as $user) {
         if ($user['isAnonymous'] == 0) {
             echo profil_url($user['username'], $user['id'], $user['color'], avatar_url($user['id'], true));
         }
     }
     echo '</div>';
     echo '<script>';
     echo '$(\'.listConnected a[title], #linkMembersH2\').tipTip({maxWidth: "300px", edgeOffset: 2, delay: 50});';
     echo '</script>';
 }