#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET} [(#AUTORISER{voir,messages}|sinon_interdire_acces)] [(#ENV{id}|setenv{id_message})] [{ "header_top":{ "Infos": {"class":"header_infos", "colspan": 4}, "Statut": {"class":"header_statut", "colspan" :3}, "Expéditeur": {"class":"header_exp", "colspan": 3}, "Message": {"class":"message", "colspan": 2} }, "header":{ "id": "_", "date": "Date", "origine": "Origine", "formulaire": "Formulaire", [(#CONFIG{gamucontact/gamutable_afficher_type}|oui) "type": "Type", ] "statut": " ", "actions_masse": " ", "actions": " ", "nom": "Expéditeur", "email_contact": "Email", "telephone": "Tel", "objet": "Objet", "message": "Message" }, "checkbox": { "actions_masse": [(#URL_PAGE{changer_statut_messages}|json_encode)] }, "crayons": {}, "ordreCol" : { "date": "desc" }, "filtreCol" : { "statut": "select", "formulaire": "select", "nom": "input", [(#CONFIG{gamucontact/gamutable_afficher_type}|oui) "type": "select", ] "email_contact" : "input" }, "filtreColValeurs" : {}, "classes": { "id": "w80p", "objet": "minw250p span_g", "statut": "minw140p span_g", "formulaire": "w150p", "nom": "span_g" } } , [(#SET{message, [(#TEXTE*|couper{100})]})] #SET{statut, #LISTE{prepa,prop,publie,poubelle}|str_replace{#LISTE{Brouillon,Proposé,Publié,Poubelle}, #STATUT}} #SET{formulaire, #TITRE|replace{Formulaire de, ''}} [(#SET{origine, [ <:gamucontact:acces_page:>]})] #SET{args,#ID_MESSAGE} [(#STATUT|!={publie}|oui) #SET{args, #GET{args}|concat{-}|concat{publie}} [(#SET{actions, })] ][(#STATUT|=={publie}|oui) #SET{args, #GET{args}|concat{-}|concat{poubelle}} [(#SET{actions, })] ] [(#SET{actions_masse, dataid-#ID_MESSAGE})] { "html": { "id": #ID_MESSAGE, "date": [(#DATE_HEURE|affdate{d/m/Y H:i:s}|json_encode)], "origine": [(#GET{origine}|json_encode)], "formulaire": [(#GET{formulaire}|json_encode)], [(#CONFIG{gamucontact/gamutable_afficher_type}|oui) "type": [(#TYPE|json_encode)], ] "statut": [(#GET{statut}|json_encode)], "actions_masse": [(#GET{actions_masse}|json_encode)], "actions": [(#GET{actions}|json_encode)], "nom": [(#NOM|json_encode)], "email_contact": [(#EMAIL_CONTACT|json_encode)], "telephone": [(#TELEPHONE|json_encode)], "objet": [(#OBJET|json_encode)], "message": [(#GET{message}|json_encode)] }, "search": { "id": #ID_MESSAGE, "date": [(#DATE_HEURE|affdate{Y-m-d H:i:s}|json_encode)], "origine": [(#ORIGINE|json_encode)], "formulaire": [(#GET{formulaire}|json_encode)], [(#CONFIG{gamucontact/gamutable_afficher_type}|oui) "type": [(#TYPE|json_encode)], ] "statut": [(#STATUT|json_encode)], "actions_masse": "", "actions": "", "nom": [(#NOM|json_encode)], "email_contact": [(#EMAIL_CONTACT|json_encode)], "telephone": [(#TELEPHONE|json_encode)], "objet": [(#OBJET|json_encode)], "message": [(#GET{message}|json_encode)] } } ]