gamuform/json_gamuform.json.html

60 lines
1.4 KiB
HTML

#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET}
#SET{header,#ENV{objet}|gamuform_recup_champ}
[{
"header":{
"id": "id",
"edit": "",
<BOUCLE_header(DATA){source table,#GET{header}}>
[(#CLE|json_encode)] : [(#VALEUR|json_encode)],
</BOUCLE_header>
"sup": ""
},
"crayons":{
},
"filtreCol" : {
},
"classes" : {
"id": "w80p",
"edit": "w50p",
"sup": "w50p"
}
}
<B_gamuform>
,
<BOUCLE_gamuform(DATA){source table, #ENV{objet}|gamuform_recup_valeurs{#ENV{id}}}{','}>
#SET{ligne,#VALEUR}
[(#SET{edit, <a class="modalbox"
href="[(#URL_PAGE{editer_gamuform}
|parametre_url{id_objet,#GET{ligne/id}}
|parametre_url{objet,#ENV{objet}}
|parametre_url{redirect,gamutable})]">
<i class="fas fa-edit"></i>
</a> })]
[(#SET{sup,
<a class="url_action" href="[(#URL_ACTION_AUTEUR{supprimer_gamuform,#GET{ligne/id}/#ENV{objet},#SELF})]"
data-confirm="Confirmez vous la suppression de cette ligne ?"
>
<i class="fas fa-trash"></i>
</a>})]
{
"html": {
"id": #GET{ligne/id},
"edit": [(#GET{edit}|json_encode)],
<BOUCLE_headerB(DATA){source table,#GET{header}}>
[(#CLE|json_encode)] : [(#GET{ligne/#CLE}|json_encode)],
</BOUCLE_headerB>
"sup": [(#GET{sup}|json_encode)]
},
"search": {
"id": #GET{ligne/id},
"edit": "",
<BOUCLE_headerC(DATA){source table,#GET{header}}>
[(#CLE|json_encode)] : [(#GET{ligne/#CLE}|textebrut|json_encode)],
</BOUCLE_headerC>
"sup":""
}
}
</BOUCLE_gamuform>
]