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

org.semanticwb.portal.resources.WBUrlContent.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="frmUrlContent" action="true" method="POST">
		<admdbconnmgr defconn="true"/>
        <fieldset legend="Datos">
            <input type="TEXT" name="url" label="Url del contenido remoto:" size="50" jsrequired="true"/>
            <input type="TEXT" name="tagbcawb" label="Etiqueta a buscar:" value="bca" size="20" maxlength="20"/>
            <input type="TEXT" name="charset" label="codificaci?n" size="20" maxlength="20"/>
        </fieldset>
        <fieldset legend="Forma y estilo">
            <statictext name="showInfoLink">
                <![CDATA[
                    ?Desea mostrar la liga de la informaci?n de origen?
                ]]>
            </statictext>
            <input type="RADIO" name="InfoSource" label="No" value="0" checked="true"/>
            <input type="RADIO" name="InfoSource" label="S?" value="1"/>
        </fieldset>
        <fieldset>
            <statictext name="b">
            <![CDATA[
            <button id="btnSave" type="submit" dojoType="dijit.form.Button">Guardar</button>
            <button id="btnReset" type="reset" dojoType="dijit.form.Button">Reestablecer</button>
            ]]>
            </statictext>
        </fieldset>
	</form>
    <statictext name="txtNote">
		<![CDATA[
			<font style="color: #428AD4; font-family: Verdana; font-size: 10px;">
				* Datos requeridos.
			</font>
		]]>
	</statictext>

    <script type="text/javascript">
        <![CDATA[
        dojo.require("dijit.form.Button");

        dojo.addOnLoad(function(){
            dojo.connect(dijit.byId("btnSave"), "onClick",
                function() {
                    if(jsValida(dojo.byId("frmUrlContent"))) {
                        dojo.byId("frmUrlContent").submit();
                    }
                }
            );
        });

        dojo.addOnLoad(function(){
            dojo.connect(dijit.byId("btnReset"), "onClick",
                function() {
                    dojo.byId("frmUrlContent").reset();
                }
            );
        });*
        ]]>
    </script>
    <script type="text/javascript">
        <![CDATA[
        function jsValida(frm) {
            if(frm.url.value==null || frm.url.value=='' || frm.url.value==' ') {
                alert('Indique la direcci?n web del contenido.');
                frm.url.focus();
                return false;
            }
            return true;
        }
        ]]>
	</script>
</admresource>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy