118 lines
3.6 KiB
HTML
118 lines
3.6 KiB
HTML
#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"
|
|
}
|
|
}
|
|
<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-eye"></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="nowrap" href="(#ORIGINE)" title="Accéder à la page d'origine du message"><i class="gt-lien"></i> <:gamucontact:acces_page:></a>]})]
|
|
|
|
#SET{args,#ID_MESSAGE}
|
|
[(#STATUT|!={publie}|oui)
|
|
#SET{args, #GET{args}|concat{-}|concat{publie}}
|
|
[(#SET{actions,
|
|
<a class="url_action" data-id="#ID_MESSAGE" href="[(#URL_ACTION_AUTEUR{changer_statut_message,#GET{args}})]">
|
|
<i title="Publier le message" class="gt-check fa-2x grise" aria-hidden="true"></i>
|
|
</a>
|
|
})]
|
|
][(#STATUT|=={publie}|oui)
|
|
#SET{args, #GET{args}|concat{-}|concat{poubelle}}
|
|
[(#SET{actions,
|
|
<a class="url_action" data-id="#ID_MESSAGE" href="[(#URL_ACTION_AUTEUR{changer_statut_message,#GET{args}})]">
|
|
<i title="Passer à la poubelle le message" class="gt-trash fa-2x rouge" aria-hidden="true"></i>
|
|
</a>
|
|
})]
|
|
]
|
|
[(#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)]
|
|
}
|
|
}
|
|
</BOUCLE_messages>
|
|
]
|
|
|