-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformulario.php
More file actions
149 lines (145 loc) · 6.61 KB
/
Copy pathformulario.php
File metadata and controls
149 lines (145 loc) · 6.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
$pass = "test";
if(isset($_REQUEST['pass']) && $_REQUEST['pass'] == $pass) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Inserta tu juego aquí</title>
<script type="text/javascript" src="funciones.js"></script>
<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script>
var orden=1;
function clonarNodos()
{
var id=document.getElementById("teclas2");
var nuevos=id.cloneNode(true);
nuevos.style.id='enlaces'+orden;
orden++;
id=document.getElementById("teclas");
id.appendChild(nuevos);
}
</script>
<script>
$(document).ready(function () {
$('#select').change(function() {
$('#ikill1, #ikill2').hide();
$('#ikill' + $(this).find('option:selected').attr('id')).show();
})
});
</script>
<script type="text/javascript">
var add_tecla = function(){
/* Obtener DIV de teclas */
var div = document.getElementById("teclas");
/* Agregar otra columna */
div.innerHTML += '<i>Tecla: </i><input type="text" name="tecla[]" /> - <i>Acción:</i><input type="text" name="accion[]" /><br>';
/* Finalizar */
return true;
}
</script>
<script type="text/javascript">
function OnDropDownChange(dropDown) {
var selectedValue = dropDown.options[dropDown.selectedIndex].value;
document.getElementById("trat").value = selectedValue;
}
</script>
<link rel="stylesheet" type="text/css" href="style.css" />
<body>
<form id="form1" name="form1" method="post" action="envia.php">
<b>Nombre del juego:</b>
<input type="text" name="nombre" id="nombre" />
<div class="form">
<label for="message" style="font-weight:bold;display: block;">Descripción del juego:</label>
<textarea rows="5" onkeyup="contar(this);" cols="100" name="descripcion" id="descripcion" MAXLENGTH=500></textarea><span id="letras" class="letras">500 caracteres</span>
</div>
<select name="tipo_de_juego" id="select">
<!-- disabled="disabled" no permite seleccionar ese elemento -->
<option value="" selected="selected" disabled="disabled">Selecciona el tipo de Juego</option>
<option value="" disabled="disabled">---</option>
<option value="" disabled="disabled"></option>
<!-- Agregamos el tipo de juego -->
<option id="1" value="flash">Flash</option>
<option id="1" value="java">Java</option>
<option id="1" value="unity">Unity3D</option>
<option id="1" value="iframe">iFrame</option>
<option id="2" value="otro">Código propio</option>
</select>
<span id="ikill1"><br> <b>Link del juego:</b>
<input type="text" value="" name="link_juego" />
<br><b>Ancho:</b> <input type="text" name="ancho" id="ancho" MAXLENGTH=4 SIZE=1 /> px.
<br><b>Alto:</b> <input type="text" name="alto" id="alto" MAXLENGTH=4 SIZE=1 /> px.
<br></span>
<span id="ikill2"><br><br>
<b><u><i>Añade tu código personalizado aquí:</b></u></i><br>
<textarea rows="5" cols="100" name="code" id="code" MAXLENGTH=5000 onkeyup="contar2(this);"></textarea><br>
<b><i>* Recuerda de poner el Ancho y alto, el embed correctamente, y link del juego. ;)<br>PD: El máximo de caracteres permitidos es 5000. A ti te quedan <span id="letras2">5000 caracteres</span>.</i></b>
<br></span>
<br>
<b>Miniatura:</b>
<input type="text" name="miniatura" id="miniatura" /><br>
<b>Categoría:</b>
<select name="cat">
<option value="" selected="selected" disabled="disabled">Selecciona la categoría</option>
<option value="" disabled="disabled">---</option>
<option value="" disabled="disabled"></option>
<option value="Acción">Acción</option>
<option value="Animacion">Animación</option>
<option value="Aventuras">Aventuras</option>
<option value="Bestias">Bestias</option>
<option value="Cartas">Cartas</option>
<option value="Chicas">Chicas</option>
<option value="Clásicos">Clásicos</option>
<option value="Coches">Coches</option>
<option value="Colorear">Colorear</option>
<option value="Curiosidades">Curiosidades</option>
<option value="Deportes">Deportes</option>
<option value="Estrategia">Estrategia</option>
<option value="Habilidad">Habilidad</option>
<option value="Lucha">Lucha</option>
<option value="Multijugador">Multijugador</option>
<option value="Música">Música</option>
<option value="Naves">Naves</option>
<option value="Plataformas">Plataformas</option>
<option value="Puzzles">Puzzles</option>
<option value="Tiempo Real MMO">Tiempo Real MMO</option>
<option value="Tiros">Tiros</option>
</select><br>
<div class="form">
<label for="message" style="font-weight:bold;display: block;">Reglas del juego:</label>
<textarea rows="5" onkeyup="contar3(this);" cols="100" name="reglas" id="descripcion"></textarea><span id="letras3" class="letras">500 caracteres</span>
</div>
<b>Controles:</b><br>
<input type="button" value="Añadir tecla" onclick="clonarNodos();" />
<div style="display:none;"><div id="teclas2">
<i>Tecla: </i><input type="text" name="tecla[]" /> - <i>Acción:</i><input type="text" name="accion[]" /><br>
</div></div>
<table style="vertical-align: top;"><tbody><tr><td>
<div id="teclas">
<i>Tecla: </i><input type="text" name="tecla[]" /> - <i>Acción:</i><input type="text" name="accion[]" /><br>
</div></td><td><b><u>Teclas especiales:</u></b><br><br>Espacio (espacio) = <img src="ico/espacio.png" /><br>Click derecho (der) = <img src="ico/der.png" /><br>Click izquierdo (izq) = <img src="ico/izq.png" /><br>Mover ratón (mover) = <img src="ico/mover.png" /><br>Shift = <img src="ico/shift.png" /><br>Alt = <img src="ico/alt.png" /><br>Control (ctrl) = <img src="ico/ctrl.png" /></td><td>Flechas de movimiento (flechas) = <img src="ico/flechas.png" /><br>Enter = <img src="ico/enter.png" /><br>Letras = <img src="ico/letras.png" /><br>Letras y flechas (letrasflechas) = <img src="ico/letrasflechas.png" /></td></tr></tbody></table>
<br><br>
<font size="3px">Captcha:</font><br>
<img src="captcha.php"/><br>
<input type="text" name="vercode" /><br><br>
<input type="submit" value="Enviar" />
</form>
</body>
</html>
<?
} else {
if(isset($_REQUEST['pass']) && $_REQUEST['pass'] != $pass) {
echo '<center style="position:relative; top:50%;"><b>Contraseña incorrecta. Intentelo de nuevo.</b><br>';
}
?>
<center style="position:relative; top:50%;">
Por favor, indroduzca una contraseña:<br>
<form method="get">
<input type="password" name="pass" />
<input type="submit" value="Entrar" />
</form>
</center>
<?php
}
?>