Exemple #1
0
function chat($form)
{
    $objResponse = new xajaxResponse();
    if (!empty($form[chat_message])) {
        mysql_query("INSERT INTO md_chat VALUES('','" . $form[draft_id] . "', '" . $form[user_id] . "', '" . addslashes($form[chat_message]) . "', NOW())");
    }
    $objResponse->assign("chat_" . $form[draft_id], "innerHTML", printChat($form[draft_id]));
    $objResponse->assign("chat_input_" . $form[draft_id], "focus()", true);
    return $objResponse;
}
Exemple #2
0
<?php

include "../session_mysql.php";
include "functions.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<link rel="stylesheet" href="<?php 
echo $path;
?>
/css/stylesheet.css.php" type="text/css" media="screen" charset="utf-8">
</head>
<body id="clean">
	<div id="chat" class="mini">
		<?php 
echo printChat();
?>
	</div>
</body>
</html>