Created
March 10, 2010 18:28
-
-
Save juananruiz/328175 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {GRUPOexcelencia} | |
| {if $autorizado != 'si'} | |
| <div class="arena"><h3>No está autorizado en esta página</h3></div> | |
| {else} | |
| {if $smarty.session.usuario=='juanan' OR | |
| $smarty.session.usuario=='jmsb' OR | |
| $smarty.session.usuario=='dgonzalez'} | |
| <h3>Subir ficheros</h3> | |
| <div class="arena"> | |
| <p> | |
| <form method="post" action="" enctype="multipart/form-data" > | |
| <input type="file" name="archivo" style="width:75%" /> | |
| <input name="enviar" type="submit" value="Subir archivo" /> | |
| </form> | |
| </p> | |
| <p style="margin-top:10px">(*) Recuerda que el nombre del archivo es el que se verá en la relación inferior, por ello renombra tu archivo antes de subirlo para que sea clarificador para los que vayan a descargarlos.</p> | |
| <p style="color:red">IMPORTANTE: el nombre de los ficheros no deben contener caracteres como ñ, acentos o espacios en blanco. Si necesitas separar palabras utiliza el carácter "underline". | |
| </p> | |
| </div> | |
| {/if} | |
| <h3>Ficheros disponibles</h3> | |
| <table class="datos"> | |
| {foreach from=$archivosGE item=archivo } | |
| {if $archivo[0] =='.' OR $archivo[0]=='..'} | |
| {else} | |
| <tr bgcolor='#fff8e5'><td width='80%'><a href="GE_descargas.php?accion=descargar&fichero={$archivo[0]}">{$archivo[0]}</a></td><td width='15%'>{$archivo[1]}</td>{if $smarty.session.usuario=='jjmc' OR | |
| $smarty.session.usuario=='jmsb}<td><a href="GE_descargas.php?accion=borrar&fichero={$archivo[0]}" onclick="javascript: return confirm('Quieres borrar el archivo : {$archivo[0]}');">X</a></td>{/if}</tr> | |
| {/if} | |
| {/foreach} | |
| </table> | |
| {/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment