 pageComunicazioni = function() {
 
    this.tpl = new Ext.XTemplate('<tpl for=".">',
                                'Comunicazioni da: <b>{utente}</b><br>',
                                '{descr}<br><br>',
                                '</tpl>');
                  
    pageComunicazioni.superclass.constructor.call(this, {
        header: false,
        border: false
    });
}

Ext.extend(pageComunicazioni, Ext.Panel, {
    init: function() {
        Ext.Ajax.request({
            url: './php/getAllComunicazioni.php',
            success: function(response, options)
            {
                data = eval(response.responseText);
                this.render('comunicazioni');
                this.tpl.overwrite(this.body, data);
            },
            scope: this
        });
    }
});
