在index.php:
一个.用以下内容替换JavaScript代码:
$(document).ready(function(){
});
function sendToAll(){
var data = $("#sendtoall").serialize();
$("#sendtoall").unbind('submit');
$.ajax({
url: "send_message.php",
type: 'GET',
data: data,
beforeSend: function() {
},
success: function(data, textStatus, xhr) {
$('.txt_message').val("");
},
error: function(xhr, textStatus, errorThrown) {
}
});
return false;
}
湾 用以下内容替换body标签内的代码(跳过前五行):
No of Devices Registered: <?php echo $no_of_users; ?>
if ($no_of_users > 0) {
?>
while ($row = mysql_fetch_array($users)) {
?>
"/>
}
?>
} else { ?>
No Users Registered Yet!