Location: PHPKode > scripts > WH Social > wh_social/modules/chat.inc.php
<?php

    echo '<div class="content_left">
    <div id="breadcrumb">
        <ul class="crumbs">
            <li class="first"><a href="index.php" style="z-index:9;"><span></span>' . $lang['index'] . '</a></li>
            <li><a href="communication.php" style="z-index:8;">' . $lang['to_chat'] . '</a></li>
        </ul>
    </div>
    </div>

    <div class="content_right">';

        include('modules/search.inc.php');
    echo '</div>

    <div class="clear_long"></div>';

    $ret = 1;

    echo '<div class="main_menu">';

        $ret = include 'framework/templates/'.$main_content['menu'];
    echo '<div id="line"></div>';

        $ret = include 'framework/templates/'.$main_content['infos'];
    echo '</div>';

    echo '<div class="main_content">';

    echo '<h1 class="p_space">' . $lang['to_chat'] . '</h1>';

    include_once('modules/letters.inc.php');

    echo '<div class="clear_long"></div>';

    $sql = "SELECT
                members.id AS memID,
                members.name,
                members.status,
                members.avatar,
                profiles.id,
                profiles.about
            FROM
                members
            LEFT JOIN
				profiles
			ON
				profiles.id = members.id
            ORDER BY
                name ASC";

	$members = mysql_query($sql) OR die(mysql_error());

	if(!$members) {

	echo '<p class="false">' . $lang['no_members'] . '</p>' . mysql_error();

	   }else{

		if(intval(mysql_num_rows($members)) == 0) {

		echo '<p class="false">' . $lang['no_members'] . '</p>' . mysql_error();

    }else{

	while($row = mysql_fetch_assoc($members)) {

        $memID = (int)$row['memID'];
        $firstLT = substr($row['name'], 0, 1);

		echo '<a name="' . $firstLT . '" id="' . $firstLT . '"></a>
        <ul id="conversationPosts" class="postList">
        <li>
        <div class="post hasControls">
        <div class="avatar"><a href="member.php?id=' . (int)$row['memID'] . '"><img src="' . htmlentities($row['avatar']) . '" class="Avatar" border="0" alt="Avatar"></a></div>
        <div class="postContent thing">
        <div class="postHeader">
        <div class="info">
        <a href="member.php?id=' . (int)$row['memID'] . '">' . htmlentities($row['name'], ENT_QUOTES) . '</a>&nbsp;&nbsp;&nbsp;<small>' . $lang['last_signin'] . ': ';
        if($row['status'] > 0) { echo date('d.m.Y', strtotime($row['status'])); }else{ echo $lang['no_signins']; }
        echo '</small>
        </div>
        <div class="controls"></div>
        </div>
        <div class="postBody">
        <p><em>' . $lang['about_me'] . '</em><br>';
        if(!empty($row['about'])) { echo stripslashes(nl2br($row['about'])); }else{ echo $lang['no_informations']; }
        echo '</p>
        <p><img src="style/icons/notification.png" border="0" alt="Chat"> <a href="talk.php" title="' . $lang['mem_open_chat'] . '">' . $lang['mem_open_chat'] . '</a></p>
        </div>
        </div>
        </div></li>
        </ul>';
		}

    echo '<div class="spacer"></div>';
	}
	}

    mysql_free_result($members);

?>
Return current item: WH Social