document_case.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [(#REM)
  2. Squelette
  3. (c) xxx
  4. Distribue sous licence GPL
  5. ]
  6. <BOUCLE_docslies(DOCUMENTS documents_liens types_documents){id_document}{id_objet}{objet}{statut?}>
  7. <div class="item #MODE" id="doc#ID_DOCUMENT"
  8. onclick="jQuery(this).toggleClass('hover');">
  9. <h3 class="titrem">[<span class="fichier">(#FICHIER*|basename)</span>]
  10. <span class="image_loading"></span>
  11. [<span class="#EDIT{titre} titre">(#TITRE|sinon{<i class="sanstitre"><:info_sans_titre:></i>})</span>]
  12. [(#CHEMIN_IMAGE{#MODE|=={image}|?{image-24.png,doc-24.png}}|balise_img{'',cadre-icone})]
  13. </h3>
  14. <div class="infos">
  15. [(#EXTENSION|match{gif|png|jpg}|oui) #SET{id,#ID_VIGNETTE|?{#ID_VIGNETTE,#ID_DOCUMENT}}
  16. <div class="tourner">
  17. [(#BOUTON_ACTION{[(#CHEMIN_IMAGE{tourner-gauche-12.png}|balise_img{<:medias:image_tourner_gauche:>})],#URL_ACTION_AUTEUR{tourner,#GET{id}|concat{',-90'},#SELF},ajax})]
  18. [(#BOUTON_ACTION{[(#CHEMIN_IMAGE{tourner-droite-12.png}|balise_img{<:medias:image_tourner_droite:>})],#URL_ACTION_AUTEUR{tourner,#GET{id}|concat{',90'},#SELF},ajax})]
  19. [(#BOUTON_ACTION{[(#CHEMIN_IMAGE{tourner-180-12.png}|balise_img{<:medias:image_tourner_180:>})],#URL_ACTION_AUTEUR{tourner,#GET{id}|concat{',180'},#SELF},ajax})]
  20. </div>
  21. ]
  22. [(#LOGO_DOCUMENT{#URL_DOCUMENT}|image_reduire{150,150})]
  23. <BOUCLE_type_doc(TYPES_DOCUMENTS){extension}>
  24. [(#MODE|=={document}|oui)<div class="type">
  25. [(#TITRE|sinon{#VAL{<:medias:info_document:>}|concat{' ',#EXTENSION|majuscules}})]
  26. </div>
  27. ]
  28. [(#ID_DOCUMENT|medias_raccourcis_doc{#_docslies:TITRE,#_docslies:DESCRIPTIF,#INCLUS,#LARGEUR,#HAUTEUR,#MODE,#VU,#MEDIA})]
  29. </BOUCLE_type_doc>
  30. [<div class="mode">(#INCLUS|=={image}|et{#EVAL{_BOUTON_MODE_IMAGE}}|oui)
  31. [(#MODE|=={image}|oui)
  32. [(#BOUTON_ACTION{<:medias:upload_info_mode_document:>,#URL_ACTION_AUTEUR{changer_mode_document,#ID_DOCUMENT-document,#SELF},ajax})]
  33. ][(#MODE|=={image}|non)
  34. [(#BOUTON_ACTION{<:medias:upload_info_mode_image:>,#URL_ACTION_AUTEUR{changer_mode_document,#ID_DOCUMENT-image,#SELF},ajax})]
  35. ]
  36. </div>]
  37. <div class="actions">
  38. <BOUCLE_compte(documents_liens){id_document}{0,2} />
  39. [(#TOTAL_BOUCLE|=={1}|et{#AUTORISER{dissocierdocuments,#OBJET,#ID_OBJET}})[(#BOUTON_ACTION{<:medias:bouton_enlever_supprimer_document:>,#URL_ACTION_AUTEUR{dissocier_document,#ID_OBJET-#OBJET-#ID_DOCUMENT-suppr,#SELF},ajax,<:medias:bouton_enlever_supprimer_document_confirmation:>,'',[(function(){jQuery("#doc(#ID_DOCUMENT)").animateRemove();return true;})()]})]<span>|</span>]
  40. [(#AUTORISER{dissocierdocuments,#OBJET,#ID_OBJET})[(#BOUTON_ACTION{<:medias:bouton_enlever_document:>,#URL_ACTION_AUTEUR{dissocier_document,#ID_OBJET-#OBJET-#ID_DOCUMENT,#SELF},ajax,'','',[(function(){jQuery("#doc(#ID_DOCUMENT)").animateRemove();return true;})()]})]<span>|</span>]
  41. [(#AUTORISER{modifier,document,#ID_DOCUMENT}|oui)
  42. <a href="#URL_ECRIRE{document_edit,id_document=#ID_DOCUMENT}" target="_blank" class="editbox" tabindex="0" role="button"><:medias:bouton_modifier_document:></a>
  43. ]<//B_compte>
  44. [(#PIPELINE{document_desc_actions,#ARRAY{args,#ARRAY{id_document,#ID_DOCUMENT,position,document_case},data,''}})]
  45. </div>
  46. [(#PIPELINE{afficher_metas_document,#ARRAY{args,#ARRAY{'quoi','document_case','id_document',#ID_DOCUMENT},data,''}})]
  47. </div>
  48. </div>
  49. </BOUCLE_docslies>