Changeset 10091 in spip-zone
- Timestamp:
- Mar 3, 2007, 4:11:43 PM (14 years ago)
- Location:
- _plugins_/_stable_/forms/forms_et_tables_1_9_1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/forms/forms_et_tables_1_9_1/balise/forms.php
r10074 r10091 53 53 $valeurs = array('0'=>'0'); 54 54 $affiche_sondage = ''; 55 $formactif = 55 $formactif = ( 56 56 ( 57 57 (_DIR_RESTREINT==_DIR_RESTREINT_ABS && $row['modifiable']=='oui') 58 OR in_array(_request('exec'),$GLOBALS['forms_actif_exec'])58 OR in_array(_request('exec'),$GLOBALS['forms_actif_exec']) 59 59 ) 60 60 AND 61 61 (!($id_donnee>0) 62 OR autoriser('modifier','donnee',$id_donnee,NULL,array('id_form'=>$id_form))); 62 OR autoriser('modifier','donnee',$id_donnee,NULL,array('id_form'=>$id_form)) 63 )); 63 64 $formactif = $formactif?' ':''; 64 65 -
_plugins_/_stable_/forms/forms_et_tables_1_9_1/exec/template/donnees_tous.html
r9909 r10091 40 40 <BOUCLE_donnees(FORMS_DONNEES){id_form}{statut IN #ENV*{statuts}}{par rang}{pagination 200}> 41 41 #SET{lien_supp,#URL_ACTION_AUTEUR{forms_donnee_supprime,#ID_FORM:#ID_DONNEE,#EVAL{_DIR_RESTREINT_ABS}|concat{#SELF}|urlencode}} 42 #SET{lien_edit,''} 43 [(#REM|?{'','modifier'}|autoriser{'donnee',#ID_DONNEE}|?{' '}) 42 44 #SET{lien_edit,#URL_ECRIRE{donnees_edit,id_form=#ID_FORM}|parametre_url{id_donnee,#ID_DONNEE}|parametre_url{retour,#SELF} } 45 ] 43 46 <tr class='tr_liste'> 44 47 <td>[(#ID_DONNEE|forms_puce_statut_donnee{#STATUT,#ID_FORM})]</td> 45 <td> <a href='#GET{lien_edit}'><img src='#EVAL{_DIR_PLUGIN_FORMS}img_pack/loupe.png' alt='' width='16' height='16' style='vertical-align:middle' /></a><a href='#GET{lien_edit}'>#ID_DONNEE</a></td>48 <td>[<a href='(#GET{lien_edit})'><img src='#EVAL{_DIR_PLUGIN_FORMS}img_pack/loupe.png' alt='' width='16' height='16' style='vertical-align:middle' /></a><a href='#GET{lien_edit}'>]#ID_DONNEE[(#GET{lien_edit}|?{' '})</a>]</td> 46 49 [(#ENV{affiche_rang,1}|?{' '})<td>#RANG</td>] 47 50 <BOUCLE_auteur(AUTEURS){id_auteur}>[(#ENV{affiche_de,1}|?{' '})<td>#NOM</td>]</BOUCLE_auteur>[(#ENV{affiche_de,1}|?{' '})<td>#IP</td>]<//B_auteur> -
_plugins_/_stable_/forms/forms_et_tables_1_9_1/forms_options.php
r10070 r10091 30 30 function autoriser_donnee_dist($faire,$type,$id_donnee,$qui,$opt){ 31 31 static $types = array(); 32 if (!isset($opt['id_form']) ){33 $res = spip_query("SELECT id_form FROM spip_forms_donnees WHERE id_donnee="._q($id_donnee));32 if (!isset($opt['id_form']) OR !isset($opt['statut'])){ 33 $res = spip_query("SELECT id_form,statut FROM spip_forms_donnees WHERE id_donnee="._q($id_donnee)); 34 34 if (!$row = spip_fetch_array($res)) return false; 35 35 $opt['id_form'] = $row['id_form']; 36 $opt['statut'] = $row['statut']; 36 37 } 37 38 $id_form = $opt['id_form'];
Note: See TracChangeset
for help on using the changeset viewer.