Skip to content
Extraits de code Groupes Projets
document_desc.html 4,51 ko
Newer Older
Squelette
(c) xxx
Distribue sous licence GPL

]
<BOUCLE_docslies(DOCUMENTS documents_liens types_documents){id_document}{id_objet}{objet}{statut?}>
<div class="item #MODE vu_#VU statut_#STATUT[(#DISTANT|=={oui}|oui)distant]" id="doc#ID_DOCUMENT" onclick="jQuery(this).toggleClass('hover');">
	<div class="presentation">
		[<div class='vignette'>(#LOGO_DOCUMENT{#URL_DOCUMENT,150,150})</div>]

		<div class="descriptions">
			<h4 class="titrem">
				[(#VU|=={oui}|oui)<span class="vu"><img src='#CHEMIN_IMAGE{vu-16-10.png}' width='16' height='10' alt='<:medias:document_vu|attribut_html:>' title='<:medias:document_vu:>'/></span> ]
				<span class="#EDIT{titre} titre" title="[(#FICHIER*|basename|attribut_html)]">
					[(#TITRE|oui)#TITRE]
					[(#TITRE|non)
						<i class="sanstitre"><:info_sans_titre:></i>
						<span class="fichier">[(#FICHIER*|basename)]</span>
					]
					</span>
				<span class="image_loading"></span>
			</h4>

			<div class="descriptif [(#EDIT{descriptif})]">[(#DESCRIPTIF|couper{100})]</div>

			<div class="infos">
				<div class="permanentes">
					[(#DISTANT|=={oui}|oui)<img src='#CHEMIN_IMAGE{distant-16.png}' width='16' height='16' alt='<:medias:fichier_distant|attribut_html:>' title='<:medias:fichier_distant|attribut_html:>'/> ]<:info_numero_abbreviation:>#ID_DOCUMENT - #EXTENSION

					<a class="lien_details"
						onClick="$(this).parent().next('.detaillees').toggle(); return true;"
						title="<:medias:details_document_afficher_masquer|attribut_html:>"><:medias:details_document:></a>
				</div>
				<div class="detaillees">
					[(#SET{data,[(#VAL{
					<table class="compact">
						<tr class="credits">
							<th><:medias:label_credits:></th>
							<td class="[(#EDIT{credits})]">[(#CREDITS|sinon{<span class="vide">Crédits non renseignés</span>})]</td>
						</tr>
						[(#LARGEUR|ou{#HAUTEUR}|oui)
						<tr>
							<td>[(#VAL{info_largeur_vignette}|_T{#ARRAY{largeur_vignette,#LARGEUR,hauteur_vignette,#HAUTEUR}})]</td>
						</tr>
						<tr>
							<th><:medias:info_resolution_image:></th>
							<td>[(#VAL{medias:info_resolution_mpx}|_T{#ARRAY{resolution,#LARGEUR|mult{#HAUTEUR}|div{1000000}|round{1}}})]</td>
						]
						<tr>
							<th><:medias:info_taille:></th>
							<td>[(#TAILLE|taille_en_octets)]</td>
						</tr>
						<tr>
							<th><:date:></th>
							<td>[(#DATE|affdate)]</td>
						</tr>
						</tr>
						<tr>
							<th><:medias:label_fichier:></th>
							<td>[(#FICHIER|basename)]</td>
						</tr>
					</table>
					})]})]
					[(#PIPELINE{afficher_metas_document,#ARRAY{args,#ARRAY{'quoi','document_desc','id_document',#ID_DOCUMENT},data,#GET{data}}})]
				</div>
			</div>
	</div>

	<div class="actions">
		[(#INCLUS|=={image}|et{#EVAL{_BOUTON_MODE_IMAGE}}|oui)
		<div class="mode">
			[(#MODE|=={image}|oui)[(#BOUTON_ACTION{<:medias:upload_info_mode_document:>,#URL_ACTION_AUTEUR{changer_mode_document,#ID_DOCUMENT-document,#SELF},ajax})]
			][(#MODE|=={image}|non)[(#BOUTON_ACTION{<:medias:upload_info_mode_image:>,#URL_ACTION_AUTEUR{changer_mode_document,#ID_DOCUMENT-image,#SELF},ajax})]]
		<BOUCLE_compte(documents_liens){id_document}{0,2} />
		[(#TOTAL_BOUCLE|=={1}|et{#AUTORISER{dissocierdocuments,#OBJET,#ID_OBJET}}|et{#VU|=={non}})[(#BOUTON_ACTION{<:medias:bouton_enlever_supprimer_document:>,#URL_ACTION_AUTEUR{dissocier_document,#ID_OBJET-#OBJET-#ID_DOCUMENT-suppr-safe,#SELF},ajax,<:medias:bouton_enlever_supprimer_document_confirmation:>,'',[(function(){jQuery("#doc(#ID_DOCUMENT)").animateRemove();return true;})()]})]]
		[(#AUTORISER{dissocierdocuments,#OBJET,#ID_OBJET})[(#BOUTON_ACTION{<:medias:bouton_enlever_document:>,#URL_ACTION_AUTEUR{dissocier_document,#ID_OBJET-#OBJET-#ID_DOCUMENT--safe,#SELF},ajax,'','',[(function(){jQuery("#doc(#ID_DOCUMENT)").animateRemove();return true;})()]})]]
		[(#AUTORISER{modifier,document,#ID_DOCUMENT}|oui)
			<div class="deplacer-modifier">
				<span class="deplacer-document" data-rang="#RANG_LIEN"><img src='#CHEMIN_IMAGE{deplacer-16.png}' width='16' height='16' alt='<:medias:ordonner_ce_document|attribut_html:>' title='<:medias:ordonner_ce_document|attribut_html:>' /></span>
				<a href="#URL_ECRIRE{document_edit,id_document=#ID_DOCUMENT}" target="_blank" class="editbox" tabindex="0" role="button"><:medias:bouton_modifier_document:></a>
			</div>
		[(#PIPELINE{document_desc_actions,#ARRAY{args,#ARRAY{id_document,#ID_DOCUMENT,position,document_desc,objet,#OBJET,id_objet,#ID_OBJET},data,''}})]
kent1@arscenic.info's avatar
kent1@arscenic.info a validé
</BOUCLE_docslies>