[ Index ] |
|
Code source de LifeType 1.2.4 |
1 {include file="$admintemplatepath/chooser/header.template"} 2 <script type="text/javascript" src="js/ui/plogui.js"></script> 3 {literal} 4 <style type="text/css"> 5 #resource_list_upload 6 { 7 border-bottom : 4px solid #DEDEDE; 8 border-collapse: collapse; 9 text-align: left; 10 } 11 </style> 12 {/literal} 13 <script type="text/javascript"> 14 {literal} 15 YAHOO.util.Event.addListener( window, "load", function() { 16 var t = new Lifetype.UI.TableEffects( "list" ); 17 t.stripe(); 18 t.highlightRows(); 19 }); 20 {/literal} 21 </script> 22 <div id="list_nav_bar"> 23 <div id="list_nav_select"> 24 <form id="resourceListAlbum" action="admin.php" method="post"> 25 <fieldset> 26 <legend>{$locale->tr("show_by")}</legend> 27 <div class="list_nav_option"> 28 <label for="albumId">{$locale->tr("album")}</label> 29 <br /> 30 <select name="albumId" id="albumId"> 31 <option value="0">{$locale->tr("root_album")}</option> 32 {foreach from=$albumsList item=albumItem} 33 {assign var=indentLevel value=$albumItem->getValue("level")} 34 <option value="{$albumItem->getId()}" {if $album}{if $album->getName()==$albumItem->getName()}selected="selected"{/if}{/if}> 35 {textformat indent=$indentLevel indent_char=" "}{$albumItem->getName()}{/textformat} 36 </option> 37 {/foreach} 38 </select> 39 </div> 40 <div class="list_nav_option"> 41 <br /> 42 <input type="hidden" name="op" value="userPictureSelect" /> 43 <input type="submit" name="Show" value="{$locale->tr("show")}" /> 44 </div> 45 </fieldset> 46 </form> 47 </div> 48 <br style="clear:both" /> 49 </div> 50 <div id="container"> 51 {include file="$admintemplatepath/successmessage.template"} 52 {include file="$admintemplatepath/errormessage.template"} 53 <table id="list" class="info" summary="{$locale->tr("picture")}"> 54 <thead> 55 <tr> 56 <th style="width:270px;">{$locale->tr("resource")}</th> 57 <th style="width:150px;">{$locale->tr("actions")}</th> 58 </tr> 59 </thead> 60 <tbody> 61 {if $album && $pager->getCurrentPage()==1} 62 <tr> 63 <td> 64 <a href="admin.php?op=userPictureSelect&albumId={$album->getParentId()}&mode={$destination}&page=1"> 65 <img src="imgs/admin/icon_folder-72.png" border="0" alt="Parent" /> <br/>..</a> 66 </td> 67 <td><a onclick="_toggle('resource_list_upload');" href="#upload">{$locale->tr("upload_here")}</a></td> 68 </tr> 69 {/if} 70 {foreach from=$albums item=resalbum} 71 <tr> 72 <td> 73 <a href="admin.php?op=userPictureSelect&albumId={$resalbum->getId()}&mode={$destination}&page=1"> 74 <img src="imgs/admin/icon_folder-72.png" border="0" alt="folder" /><br/>{$resalbum->getName()}</a><br/> 75 </td> 76 <td> 77 </td> 78 </tr> 79 {/foreach} 80 {foreach from=$resources item=resource} 81 <tr> 82 <td> 83 {if $resource->hasPreview()} 84 <a href="javascript:returnResourceInformation('{$resource->getId()}','{$url->resourcePreviewLink($resource)}');window.close();"><img src="{$url->resourcePreviewLink($resource)}" alt="Preview" /></a> 85 {/if} 86 <a target="_blank" href="{$url->resourceLink($resource)}"><br/>{$resource->getFileName()}</a> 87 </td> 88 <td> 89 <a href="javascript:returnResourceInformation('{$resource->getId()}','{$url->rawResourcePreviewLink($resource)}');window.close();">{$locale->tr("select")}</a> 90 </td> 91 </tr> 92 {/foreach} 93 </tbody> 94 </table> 95 {if $album} 96 {** show this album only if we're not browsing the root album **} 97 <a name="upload"></a> 98 <div id="resource_list_upload" style="display: none;"> 99 <form name="uploadFile" method="post" action="admin.php" enctype="multipart/form-data"> 100 <fieldset class="inputField"> 101 <legend>{$locale->tr("upload_here")}</legend> 102 <div class="field"> 103 <label for="resourceFile_1">{$locale->tr("file")}</label> 104 <span class="required">*</span> 105 <input type="file" name="resourceFile_1" value="" id="resourceFile_1" /> 106 </div> 107 <div class="field"> 108 <label for="resourceDescription">{$locale->tr("description")}</label> 109 <span class="required">*</span> 110 <textarea name="resourceDescription" id="resourceDescription" rows="5" style="width:100%"></textarea> 111 </div> 112 </fieldset> 113 <div class="buttons" id="buttons" style="padding-bottom:7px"> 114 <input type="reset" name="reset" value="{$locale->tr("reset")}" /> 115 <input type="submit" name="Upload" onclick="showProgressBar('buttons')" value="{$locale->tr("add")}" /> 116 <input type="hidden" name="albumId" value="{$album->getId()}" /> 117 <input type="hidden" name="op" value="addResource" /><br/> 118 <input type="hidden" name="destView" value="userPictureSelect" /> 119 <input type="hidden" name="destination" value="{$destination}" /> 120 </div> 121 <div class="status_bar" id="status_bar" style="display: none;"> 122 {$locale->tr("upload_in_progress")} 123 <img src="imgs/admin/spinner_small.gif" alt="Spinner" /> 124 </div> 125 </form> 126 </div> 127 {/if} 128 <div id="list_action_bar"> 129 {adminpager style=list} 130 <a id="close_button" href="javascript:window.close()">{$locale->tr("close")}</a> 131 </div> 132 </div> 133 {include file="$admintemplatepath/chooser/footer.template"}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |