Commit a8569892 authored by Markus Bergt's avatar Markus Bergt

added send routine

parent 8eed1879
......@@ -88,7 +88,7 @@ function UsernametoID($name)
}
}
function UserTable (){
$content = "<tr><th align=\"left\">Name</th><th>Admin- Level</th></tr>";
$content = "<tr><th align=\"left\">Name</th><th>Rang</th></tr>";
$result = mysql_query("SELECT name, admin FROM user WHERE online = '1' ORDER BY admin DESC");
while($user = mysql_fetch_array($result))
{
......
......@@ -30,13 +30,13 @@ $(document).ready(function() {
);
}
/*$('#sendMessage').click(function(){
if(this.hasClass('btn-default')
{
//send default
}
if()
});*/
$('#sendMessage').click(function(event){
event.preventDefault();
var obj = $.post( "chatform.php", $( "#chatbar" ).serialize() );
obj.done(function(data){
alert(data);
});
});
$('#changeToNormal').click(function(event){
event.preventDefault();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment