All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.semanticwb.portal.resources.AudioPublisher.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="ISO-8859-1"?>
<admresource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xslfile>admresource.xslt</xslfile>
    <form name="frmAdmRes" action="true" method="post" enctype="multipart/form-data" jsframework="dojo" >
    <admdbconnmgr defconn="true"/>
    <fieldset legend="Configuraci?n de contenido">
        <input type="file" id="audio" name="audio" label="Audio (au, wav, rm, mp3, wma):" showfile="true" filetype="au|wav|rm|mp3|wma" isshowfiletype="true" isremovefile="true" removemsg="Quitar audio" size="40" />
        <statictext name="auto">Iniciar autom?ticamente</statictext>
        <input type="radio" id="automatic0" name="automatic" label="Si" value="true" />
        <input type="radio" id="automatic1" name="automatic" label="No" value="false" checked="true" />
        <statictext name="cntrls">Mostrar controles</statictext>
        <input type="radio" id="controls0" name="controls" label="Si" value="true" checked="true" />
        <input type="radio" id="controls1" name="controls" label="No" value="false" />
        <statictext name="lp">Reproducci?n continua</statictext>
        <input type="radio" id="loop0" name="loop" label="Si" value="true" />
        <input type="radio" id="loop1" name="loop" label="No" value="false" checked="true" />
    </fieldset>

    <fieldset legend="Aspecto">
        <input type="text" id="width"  name="width" label="Ancho" maxlength="9" regExp="\d{1,6}" invalidMessage="Ancho inv?lido" promptMessage="Ancho de la imagen. Ejemplos: 320" />
        <input type="text" id="height" name="height" label="Altura" maxlength="9" regExp="\d{1,6}" invalidMessage="Altura inv?lida" promptMessage="Altura de la imagen. Ejemplos: 280" />

        <select name="align" label="Alinear">
            <option value="left">Izquierda</option>
            <option value="right">Derecha</option>
            <option value="center">Centro</option>
        </select>
    </fieldset>

    <fieldset>
        <input type="submit" name="btnSave" id="btnSave" value="Guardar" onclick="return jsValida(this.form)" />
        <input type="reset"  name="btnReset" id="btnReset" value="Restablecer" />
    </fieldset>
    </form>

    <script type="text/javascript">
        <![CDATA[
        function jsValida(frm) {
            if( isEmpty(dojo.byId('audio').value) && !dojo.byId('wbNoFile_audio') ) {
                alert('Especifique un archivo de audio');
                dojo.byId('audio').focus();
                return false;
            }
            return true;
        }
        ]]>
    </script>
</admresource>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy