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
| //esto supongo que está pendiente del DOM, por que pone document :) | |
| $(document).ready(function() { | |
| //esto detecta cuando el form con id="upload_form" hace submit | |
| $('#upload_form').submit(function(){ | |
| //con esto hago el paso | |
| $.ajax({ | |
| type: 'POST', |
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
| -- Dentro de la plantilla | |
| <div id="votos"> | |
| {{ contexto.imagen.numVotos }} | |
| </div> | |
| <input type="submit" action="JSDeMasAbajo">Votar | |
| --JSDeMasAbajo | |
| <pseudocodigo> |
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
| <html> | |
| <head> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| //faltaría una función que nos diga si ese usuario ya ha votado esta imágen | |
| //en ese caso se mostraría la imágen de ya votada | |
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
| /** | |
| * TRATAR BOTON | |
| * | |
| * @PARAM item IN VARCHAR2 --Item a tratar | |
| * @PARAM accion IN VARCHAR2 --acción a realizar {ocultar | mostrar | habilitar | deshabilitar} | |
| * | |
| */ | |
| PROCEDURE TratarBoton(item IN VARCHAR2, accion IN VARCHAR2) | |
| IS | |
| BEGIN |
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
| CREATE OR REPLACE PACKAGE BODY AEGPA_EP.mod_licencias_test IS | |
| v_numero_test mod_licencias_test_results.numero_test%TYPE; | |
| v_nombre_funcion mod_licencias_test_results.nombre_funcion%TYPE; | |
| v_descripcion_test mod_licencias_test_results.descripcion_test%TYPE; | |
| v_resultado mod_licencias_test_results.resultado%TYPE; | |
| v_resultado_esperado mod_licencias_test_results.resultado_esperado%TYPE; | |
| v_test_ok mod_licencias_test_results.test_ok%TYPE; | |
| PROCEDURE inicializar_test IS | |
| BEGIN |
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
| CREATE OR REPLACE PACKAGE BODY AEGPA_EP.mod_licencias IS | |
| PROCEDURE entrada (name_array IN OUT OWA.vc_arr, | |
| value_array IN OUT OWA.vc_arr) | |
| IS | |
| submitAction VARCHAR2(255) := pspgen_parameter.get_value(name_array, value_array, 'submitAction'); | |
| BEGIN | |
| IF submitAction IS NOT NULL THEN | |
| mod_licencias_validators.entrada(name_array, value_array); | |
| IF pspgen_parameter.get_value(name_array, value_array, '_form_action') IS NOT NULL THEN |
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
| <!-- Asi lo tienes tu --> | |
| <trans-unit id="i-am-on-page"> | |
| <source><![CDATA[/^(?:|I )am on (?P<page>.+)$/]]></source> | |
| <target><![CDATA[/^(?:|Yo )estoy en (?P<page>.+)$/]]></target> | |
| </trans-unit> | |
| <trans-unit id="i-go-to-page"> | |
| <source><![CDATA[/^(?:|I )go to (?P<page>.+)$/]]></source> | |
| <target><![CDATA[/^(?:|Yo )voy a (?P<page>.+)$/]]></target> | |
| </trans-unit> |
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
| <?php | |
| namespace SFM\PicmntBundle\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use SFM\PicmntBundle\Entity\Image; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
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
| Class Paginador{ | |
| private $Next; | |
| __constructor($idImage){ | |
| $this->setNext($idImage); | |
| } |
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
| ********** | |
| Ejemplo de tipos de datos | |
| ********** | |
| CREATE OR REPLACE TYPE pk_licencia AS OBJECT | |
| ( | |
| cod_tipo_licencia VARCHAR2(10) | |
| , num_licencia VARCHAR2(8) | |
| , CONSTRUCTOR FUNCTION pk_licencia(licencia VARCHAR2) RETURN SELF AS RESULT | |
| ) | |
| INSTANTIABLE FINAL; |
OlderNewer