gamuContact/json_messages.json.html

115 lines
3 KiB
HTML

#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET}
[(#AUTORISER{voir,messages}|sinon_interdire_acces)]
[(#ENV{id}|setenv{id_message})]
[{
"header":{
"id": "_",
"date": "Date",
"origine": "Page origine",
"formulaire": "Formulaire",
[(#CONFIG{gamucontact/gamutable_afficher_type}|oui)
"type": "Type",
]
"objet": "Objet",
"statut": "Statut",
"nom": "Expéditeur",
"email_contact": "Email",
"telephone": "Tel",
"message": "Message"
},
"crayons": {
[(#REM)
"statut": "message",
"nom": "message"
]
},
"ordreCol" : {
"date": "desc"
},
"filtreCol" : {
"statut": "select",
"formulaire": "select",
"nom": "input",
[(#CONFIG{gamucontact/gamutable_afficher_type}|oui)
"type": "select",
]
"email_contact" : "input"
},
"filtreColValeurs" : {
[(#REM) "statut": "prop" ]
},
"classes": {
"id": "w80p",
"objet": "minw150p",
"statut": "minw80p",
"formulaire": "w150p"
}
}
<B_messages>
,
<BOUCLE_messages(MESSAGES){','}{!par date_heure}>
[(#SET{message, <a class="modalbox" href="[(#URL_PAGE{message, id_message=#ID_MESSAGE}|parametre_url{message_seul, oui})]" title="Afficher le texte complet du message"><i class="gt-lien"></i> [(#TEXTE*|couper{100})]</a>})]
#SET{statut, #LISTE{prepa,prop,publie,poubelle}|str_replace{#LISTE{Brouillon,Proposé,Publié,Poubelle}, #STATUT}}
#SET{formulaire, #TITRE|replace{Formulaire de, ''}}
[(#SET{origine_, <a class="small nowrap" href="#ORIGINE" title="Accéder à la page d'origine du message">[(#ORIGINE|couper{35})...]</a>})]
[(#SET{origine, article origine})]
#SET{args,#ID_MESSAGE|concat{-}|concat{#STATUT}}
[(#SET{statut,
<a
class="url_action"
data-id="#ID_MESSAGE"
href="[(#URL_ACTION_AUTEUR{changer_statut_message,#GET{args}})]"
>
[(#STATUT|!={publie}|oui)
<i
title="Publier le message"
class="fa fa-check fa-2x grise"
aria-hidden="true"
></i>
] [(#STATUT|=={publie}|oui)
<i
title="Passer à la poubelle le message"
class="fa fa-trash fa-2x rouge"
aria-hidden="true"
></i>
]
</a>
})]
{
"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)],
]
"objet": [(#OBJET|json_encode)],
"statut": [(#GET{statut}|json_encode)],
"nom": [(#NOM|json_encode)],
"email_contact": [(#EMAIL_CONTACT|json_encode)],
"telephone": [(#TELEPHONE|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)],
]
"objet": [(#OBJET|json_encode)],
"statut": [(#STATUT|json_encode)],
"nom": [(#NOM|json_encode)],
"email_contact": [(#EMAIL_CONTACT|json_encode)],
"telephone": [(#TELEPHONE|json_encode)],
"message": [(#GET{message}|json_encode)]
}
}
</BOUCLE_messages>
]