1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
function init_client_offers_data_store()
{
/** Liste des offres du client **/
client_offers_data_store = new Ext.data.Store
({
id: 'client_offers_data_store',
proxy: new Ext.data.HttpProxy
({
url: './php/client.php',
method: 'POST'
}),
baseParams:
{
task: "GET_CLIENT_OFFERS",
id_client: id_client
},
reader: new Ext.data.JsonReader
(
{
totalProperty: 'total',
root: 'results'
},
[
{name: 'id_offre', type: 'string', mapping: 'id_offre'},
{name: 'num', type: 'int', mapping: 'num'},
{name: 'annee', type: 'string', mapping: 'annee'},
{name: 'agence', type: 'string', mapping: 'agence'},
{name: 'contact', type: 'string', mapping: 'contact'},
{name: 'libelle', type: 'string', mapping: 'libelle'},
{name: 'statut', type: 'string', mapping: 'statut'}
]
)
});
} |