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

org.semanticwb.portal.resources.PDFContent.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" jsframework="dojo" >
        <admdbconnmgr defconn="true"/>
        <fieldset legend="Configuraci?n de contenido">
            <input type="file" name="archive" label="Documento PDF" showfile="true" filetype="pdf" isshowfiletype="true" isremovefile="true" removemsg="Quitar documento PDF" size="40" />
        </fieldset>

        <div title="Apariencia" open="true">
        <fieldset legend="Dimensiones">
            <input type="text" name="width"  label="Ancho" value="640" maxlength="9" regExp="\d{1,7}(|px|in|cm|mm|pt|em|ex|%)" invalidMessage="Ancho inv?lido" promptMessage="Ancho. Ejemplos: 90%, 350px, 854" jsrequired="true" />
            <input type="text" name="height" label="Alto" value="480"  maxlength="9" regExp="\d{1,7}(|px|in|cm|mm|pt|em|ex|%)" invalidMessage="Altura inv?lida" promptMessage="Altura. Ejemplos: 90%, 350px, 854" jsrequired="true" />

            <statictext name="note">
            <![CDATA[
                <font style="color: #428AD4; font-family: Verdana; font-size:10px;">* Dato requerido</font>
            ]]>
            </statictext>
        </fieldset>
        </div>

        <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('archive').value) && !dojo.byId('wbNoFile_archive')) {
                alert('Especifique un documento PDF para el recurso');
                dojo.byId('archive').focus();
                return false;
            }
            return true;
        }
    ]]>
    </script>
</admresource>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy