[ Index ] |
|
Code source de Serendipity 1.2 |
1 {foreach from=$media.files item="file" name="mediafiles" key="mediakey"} 2 {if $media.enclose} 3 <td nowrap="nowrap" align="center" valign="{if $media.manage}top{else}middle{/if}" width="{$media.lineBreakP}%" class="serendipity_admin_list_item serendipity_admin_list_item_even"> 4 {/if} 5 6 {if NOT $media.manage} 7 {$file.preview}{if $file.orderkey != ''}: {$file.orderkey|@escape}{/if} 8 {else} 9 <table width="100%" border="0" cellspacing="0" cellpadding="3"> 10 <tr> 11 <td valign="top" width="16" rowspan="3"> 12 {if $file.is_editable} 13 <img class="serendipityImageButton" title="{$CONST.MEDIA_FULLSIZE}" alt="{$CONST.MEDIA_FULLSIZE}" src="{$media.zoomIMG}" border="0" onclick="F1 = window.open('{if $file.hotlink}{$file.path}{else}{$file.full_file}{/if}', 'Zoom', 'height={$file.popupHeight},width={$file.popupWidth},top='+ (screen.height-{$file.popupHeight})/2 +',left='+ (screen.width-{$file.popupWidth})/2 +',toolbar=no,menubar=no,location=no,resize=1,resizable=1{if NOT $file.is_image},scrollbars=yes{/if}');" /><br /> 14 <img class="serendipityImageButton" title="{$CONST.MEDIA_RENAME}" alt="{$CONST.MEDIA_RENAME}" src="{$media.renameIMG}" border="0" onclick="rename('{$file.id}', '{$file.name|escape:javascript}')" /><br /> 15 {if $file.is_image AND NOT $file.hotlink}<img class="serendipityImageButton" title="{$CONST.IMAGE_RESIZE}" alt="{$CONST.IMAGE_RESIZE}" src="{$media.resizeIMG}" border="0" onclick="location.href='?serendipity[adminModule]=images&serendipity[adminAction]=scaleSelect&serendipity[fid]={$file.id}';" /><br />{/if} 16 {if $file.is_image AND NOT $file.hotlink}<a href="?serendipity[adminModule]=images&serendipity[adminAction]=rotateCCW&serendipity[fid]={$file.id}"><img class="serendipityImageButton" title="{$CONST.IMAGE_ROTATE_LEFT}" alt="{$CONST.IMAGE_ROTATE_LEFT}" src="{$media.rotateccwIMG}" border="0" /></a><br />{/if} 17 {if $file.is_image AND NOT $file.hotlink}<a href="?serendipity[adminModule]=images&serendipity[adminAction]=rotateCW&serendipity[fid]={$file.id}"><img class="serendipityImageButton" title="{$CONST.IMAGE_ROTATE_RIGHT}" alt="{$CONST.IMAGE_ROTATE_RIGHT}" src="{$media.rotatecwIMG}" border="0" /></a><br />{/if} 18 <a href="?serendipity[adminModule]=images&serendipity[adminAction]=properties&serendipity[fid]={$file.id}"><img class="serendipityImageButton" title="{$CONST.MEDIA_PROP}" alt="{$CONST.MEDIA_PROP}" src="{$media.configureIMG}" border="0" /></a><br /> 19 <a href="?serendipity[adminModule]=images&serendipity[adminAction]=delete&serendipity[fid]={$file.id}"><img class="serendipityImageButton" title="{$CONST.MEDIA_DELETE}" alt="{$CONST.MEDIA_DELETE}" src="{$media.deleteIMG}" border="0" /></a><br /> 20 {/if} 21 </td> 22 <td colspan="2"> 23 <div class="serendipity_media_filename" style="font-weight: bold; font-size: 8pt">{$file.realname}{if $file.orderkey != ''}: {$file.orderkey|@escape}{/if}</div> 24 <div class="serendipity_media_author" style="font-size: 8pt">{if $file.authorid != 0}{$file.authorname}{else}<br />{/if}</div> 25 </td> 26 </tr> 27 <tr> 28 <td align="center" colspan="2"> 29 {$file.preview} 30 </td> 31 </tr> 32 <tr> 33 <td colspan="2" height="10" align="center" style="font-size: 8pt"> 34 {if $file.hotlink} 35 {$file.nice_hotlink} 36 {else} 37 {if $file.is_image} 38 {$CONST.ORIGINAL_SHORT}: {$file.dimensions_width}x{$file.dimensions_height}, 39 {$CONST.THUMBNAIL_SHORT}: {$file.dim.0}x{$file.dim.1}<br /> 40 {/if} 41 {$file.nice_size}kb {if $file.realname != $file.diskname} [{$file.diskname}]{/if} 42 43 {/if} 44 </td> 45 </tr> 46 </table> 47 {/if} 48 49 {if $media.enclose} 50 </td> 51 {/if} 52 53 {if NOT $media.enclose} 54 <h3>{$file.realname} [<em>{$file.mime}</em>{if $file.realname != $file.diskname}, {$file.diskname}{/if}]</h3> 55 <div> 56 {if $file.authorid != 0}{$CONST.POSTED_BY} {$file.authorname}{/if} {$CONST.ON} {$file.date|@formatTime:DATE_FORMAT_SHORT}. 57 {if $file.hotlink} 58 {$file.nice_hotlink} 59 {elseif $file.is_image} 60 {$CONST.ORIGINAL_SHORT}: {$file.dimensions_width}x{$file.dimensions_height}, 61 {$CONST.THUMBNAIL_SHORT}: {$file.dim.0}x{$file.dim.1} 62 {/if} 63 ({$file.nice_size}kb) 64 </div> 65 66 <input type="hidden" name="serendipity[mediaProperties][{$mediakey}][image_id]" value="{$file.image_id}" /> 67 <h3>{$CONST.MEDIA_PROP}</h3> 68 <div> 69 {foreach from=$file.base_property key="prop_fieldname" item="prop_content"} 70 <label for="mediaProperty{$prop_fieldname}">{$prop_content.label}</label><br /> 71 <div> 72 {if $prop_content.type == 'textarea'} 73 <textarea cols="80" rows="5" id="mediaProperty{$prop_fieldname}" name="serendipity[mediaProperties][{$mediakey}][{$prop_content.title}]">{$prop_content.val|@escape}</textarea> 74 {elseif $prop_content.type == 'readonly'} 75 <div>{$prop_content.val|@escape}</div> 76 {elseif $prop_content.type == 'input'} 77 <input class="input_textbox" id="mediaProperty{$prop_fieldname}" type="text" name="serendipity[mediaProperties][{$mediakey}][{$prop_content.title}]" value="{$prop_content.val|@escape}" /> 78 {/if} 79 </div> 80 {/foreach} 81 {if NOT $file.hotlink} 82 <label for="newDir{$mediakey}">{$CONST.FILTER_DIRECTORY}</label><br /> 83 <div> 84 <input type="hidden" name="serendipity[oldDir][{$mediakey}]" value="{$file.path|@escape}" /> 85 <select id="newDir{$mediakey}" name="serendipity[newDir][{$mediakey}]"> 86 <option value=""></option> 87 {foreach from=$media.paths item="folder"} 88 <option {if ($file.path == $folder.relpath)}selected="selected"{/if} value="{$folder.relpath}">{' '|str_repeat:$folder.depth*2}{$folder.name}</option> 89 {/foreach} 90 </select> 91 </div> 92 {/if} 93 {if $file.is_image} 94 <div> 95 <br /><a target="_blank" class="serendipityPrettyButton input_button" href="serendipity_admin_image_selector.php?serendipity[adminModule]=images&serendipity[adminAction]=imgedit&serendipity[fid]={$file.id}">{$CONST.EDIT}</a> 96 </div> 97 {/if} 98 </div> 99 100 <h3>{$CONST.MEDIA_KEYWORDS}</h3> 101 <div> 102 <table> 103 {foreach from=$file.base_keywords key="keyword_row" item="keyword_cells"} 104 <tr> 105 {foreach from=$keyword_cells key="keyword_cell" item="keyword"} 106 <td> 107 {if $keyword.name} 108 <input class="input_checkbox" id="mediaKeyword{$keyword.name}{$mediakey}" type="checkbox" name="serendipity[mediaKeywords][{$mediakey}][{$keyword.name}]" value="true" {if $keyword.selected}checked="checked"{/if} /> <label for="mediaKeyword{$keyword.name}{$mediakey}">{$keyword.name}</label> 109 {else} 110 111 {/if} 112 </td> 113 {/foreach} 114 </tr> 115 {/foreach} 116 </table> 117 </div> 118 119 <h3>EXIF/IPTC/XMP</h3> 120 <div> 121 <dl> 122 {foreach from=$file.metadata key="meta_type" item="meta_data"} 123 <dt><h4>{$meta_type}</h4></dt> 124 <dd> 125 {if is_array($meta_data)} 126 <table> 127 {foreach from=$meta_data key="meta_name" item="meta_value"} 128 <tr> 129 <td valign="top"><em>{$meta_name}!</em></th> 130 <td>{if is_array($meta_value)}<pre>{$meta_value|@print_r}</pre>{else}{$meta_value|@formatTime:DATE_FORMAT_SHORT:false:$meta_name}{/if}</td> 131 </tr> 132 {/foreach} 133 </table> 134 {else} 135 {$meta_data|@formatTime:DATE_FORMAT_SHORT:false:$meta_type} 136 {/if} 137 </dd> 138 {/foreach} 139 </dl> 140 </div> 141 142 {if $file.references} 143 <h3>{$CONST.REFERER}</h3> 144 <ul> 145 {foreach from=$file.references item="ref"} 146 <li>({$ref.name|@escape}) <a rel="nofollow" href="{$ref.link|@escape}">{$ref.link|@default:$CONST.NONE|@escape}</a></li> 147 {/foreach} 148 </ul> 149 {/if} 150 {/if} 151 152 {if $media.enclose AND (($smarty.foreach.mediafiles.iteration % $media.lineBreak) == 0)} 153 </tr><tr> 154 {/if} 155 {/foreach}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |